-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
24Questions
-
18Replies
How to create a button that does not require selecting items on list?
<apex:page standardController="PaymentExport__c" tabStyle="DemoPage__tab" showHeader="true" recordSetVar="pex" extensions="DemoPageController"> <apex:sectionHeader title="Payments" /> <apex:ListViews type="PaymentExport__c" > <apex:facet name="header"> <apex:form > <div style="text-align: center; padding-top: 1px"> <apex:commandButton value="New Payment" action="{!create}" id="btnSave" / > </div> </apex:form> </apex:facet> </apex:ListViews> </apex:page>
I have New Payment button in header of listviews but it asks to select a row.
Can I do something about that?
-
- Doker
- February 16, 2009
- Like
- 0
- Continue reading or reply
runtime error invalid field ID
Any idea why is this throwing runtime error invalid field ID for SObject mynamespace__PaymentExport__c?
<apex:page standardController="PaymentExport__c" recordSetVar="pec" > <!-- Begin Default Content REMOVE THIS --> <h1>Congratulations {!$User.FirstName}</h1> This is your new Page <!-- End Default Content REMOVE THIS --> <apex:pageBlock > <apex:pageBlockTable value="{! pec }" var="rec" > <apex:column value="{! rec.ID }" /> </apex:pageBlockTable> </apex:pageBlock> </apex:page>
-
- Doker
- February 12, 2009
- Like
- 0
- Continue reading or reply
field error in javascript
Anyone knows how to add an error to record in Javascript (when custom button is pressed)?
Please...
-
- Doker
- February 02, 2009
- Like
- 0
- Continue reading or reply
Goto Object with specific list view filter selected.
With this I can go to specific tab:
var destUrl = "{!URLFOR( $Action.MyObject__c.List, $ObjectType.MyObject__c )}";
How can I go to specific List view filter there? Lets say I want to show MyObject__c with "All" filter.
-
- Doker
- February 02, 2009
- Like
- 0
- Continue reading or reply
MDF & Co-op
-
- Doker
- January 26, 2009
- Like
- 0
- Continue reading or reply
Certs
So I have a web service class genereted from partner api web service in c#.
I have also downloaded cert file from API tab in setup page on SF.
But when I create an object of PartnerApi in c# / vb and call Login,
after that, how do I check that the machine I have just connected is the real SalesForce?
So how do I validate the Salesforce against the certificate I have downloaded?
-
- Doker
- January 15, 2009
- Like
- 0
- Continue reading or reply
Application and a tab
<?xml version="1.0" encoding="UTF-8"?> <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> <defaultLandingTab>standard-home</defaultLandingTab> <description>Channel Funds is used by channel managers and partners to create joint marketing programs. The closed loop process is tracked and integrated with Salesforce.com. Partner self-service is supported through the Partner Portal.</description> <label>Channel Funds</label> <logo>AppExchangeLogos/Appexchange.gif</logo> <tab>AboutChannelFunds</tab> <tab>SFDC_MDF__c</tab> <tab>SFDC_MDF_Claim__c</tab> <tab>SFDC_Channel_Budget__c</tab> <tab>standard-report</tab> <tab>standard-Dashboard</tab> <tab>PaymentExport__c</tab> </CustomApplication>
Payment Tab shows up in Application details but does not show on top of page (in menu).
-
- Doker
- January 07, 2009
- Like
- 0
- Continue reading or reply
How to add button to search layout, please?
<searchLayouts>
<listViewButtons>Mark_as_Rebate_Contact</listViewButtons>
</searchLayouts>
to Contact object file. Yet it didn't add the button to list view search layout. What else do I have to do?
-
- Doker
- January 05, 2009
- Like
- 0
- Continue reading or reply
executeAnonymous pwned me :/
Whenever I call
apexApiObject.executeAnonymous(apexCode);
-
- Doker
- December 29, 2009
- Like
- 0
- Continue reading or reply
Query fields dependent on UserInfo variable.
-
- Doker
- December 05, 2008
- Like
- 0
- Continue reading or reply
How can I display errors by a field?
Currently I check action cheeckboxes and click my custom button.
I execute an apex procedure from ajax. (sforce.apex.execute(...))
This procedure adds errors to some fields ( rec.Status__c.addError ('This field...'))
This is bad because there is an exception thrown that says 'SObject row does not allow errors'.
-
- Doker
- December 04, 2008
- Like
- 0
- Continue reading or reply
Is that a bug?
![]() | Error: Compile Error: Method does not exist or incorrect signature: UserInfo.ismulticurrency() at line 60 column 29 |
-
- Doker
- December 04, 2008
- Like
- 0
- Continue reading or reply
Can you explain me how to call apex from list button AND set field errors?
Currently I check action cheeckboxes and click my custom button.
I execute an apex procedure from ajax. (sforce.apex.execute(...))
This procedure adds errors to some fields ( rec.Status__c.addError ('This field...'))
This is bad because there is an exception thrown that says 'SObject row does not allow errors'.
-
- Doker
- December 03, 2008
- Like
- 0
- Continue reading or reply
SOQL relation
select
Status__c,
Approved_Amount__c,
(select firstName from cc.MDF__r.account__r.Contacts where MySpecificValue = true )
from SFDC_MDF_Claim__c cc where id in :ids
-
- Doker
- December 03, 2008
- Like
- 0
- Continue reading or reply
How to Create a trigger?
-
- Doker
- November 30, 2008
- Like
- 0
- Continue reading or reply
Trigger is not available for this organization.
var rebateTrigger = new ApexTrigger(); rebateTrigger.apiVersion = 14.0; rebateTrigger.fullName = "Contact.OnUpdateRebateContact"; rebateTrigger.content = GetResourceFile("SourceCodes.ContactRebateUpdateTrigger.txt"); metaApi.create(new[] { rebateTrigger });
That is how I try to add a trigger.
But why do I receive
INVALID_TYPE: This type of object is not available for this organization
SourceCodes.ContactRebateUpdateTrigger.txt contains trigger source code that is correct. I take its source code and cast it to byte[] to assign to content property.
Help please.
PS. I have a namespace prefix set in my organization. Maybe that's the case?
Message Edited by Doker on 11-30-2008 01:55 PM
-
- Doker
- November 30, 2008
- Like
- 0
- Continue reading or reply
good ajax toolkit reference
-
- Doker
- November 27, 2008
- Like
- 0
- Continue reading or reply
How do I deal with that matter of not knowing current namespace prefix
But I don't know what namespace prefix (if any) is on the account im logged in.
How do I deal with that matter?
Thanks,
JJ
Message Edited by Doker on 11-27-2008 06:21 AM
-
- Doker
- November 27, 2008
- Like
- 0
- Continue reading or reply
how to get namespace?
-
- Doker
- November 14, 2008
- Like
- 0
- Continue reading or reply
Where have currency settings gone?
Why is that?
Message Edited by Doker on 11-14-2008 05:09 AM
-
- Doker
- November 14, 2008
- Like
- 0
- Continue reading or reply
How to create a button that does not require selecting items on list?
<apex:page standardController="PaymentExport__c" tabStyle="DemoPage__tab" showHeader="true" recordSetVar="pex" extensions="DemoPageController"> <apex:sectionHeader title="Payments" /> <apex:ListViews type="PaymentExport__c" > <apex:facet name="header"> <apex:form > <div style="text-align: center; padding-top: 1px"> <apex:commandButton value="New Payment" action="{!create}" id="btnSave" / > </div> </apex:form> </apex:facet> </apex:ListViews> </apex:page>
I have New Payment button in header of listviews but it asks to select a row.
Can I do something about that?
- Doker
- February 16, 2009
- Like
- 0
- Continue reading or reply
runtime error invalid field ID
Any idea why is this throwing runtime error invalid field ID for SObject mynamespace__PaymentExport__c?
<apex:page standardController="PaymentExport__c" recordSetVar="pec" > <!-- Begin Default Content REMOVE THIS --> <h1>Congratulations {!$User.FirstName}</h1> This is your new Page <!-- End Default Content REMOVE THIS --> <apex:pageBlock > <apex:pageBlockTable value="{! pec }" var="rec" > <apex:column value="{! rec.ID }" /> </apex:pageBlockTable> </apex:pageBlock> </apex:page>
- Doker
- February 12, 2009
- Like
- 0
- Continue reading or reply
field error in javascript
Anyone knows how to add an error to record in Javascript (when custom button is pressed)?
Please...
- Doker
- February 02, 2009
- Like
- 0
- Continue reading or reply
Application and a tab
<?xml version="1.0" encoding="UTF-8"?> <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> <defaultLandingTab>standard-home</defaultLandingTab> <description>Channel Funds is used by channel managers and partners to create joint marketing programs. The closed loop process is tracked and integrated with Salesforce.com. Partner self-service is supported through the Partner Portal.</description> <label>Channel Funds</label> <logo>AppExchangeLogos/Appexchange.gif</logo> <tab>AboutChannelFunds</tab> <tab>SFDC_MDF__c</tab> <tab>SFDC_MDF_Claim__c</tab> <tab>SFDC_Channel_Budget__c</tab> <tab>standard-report</tab> <tab>standard-Dashboard</tab> <tab>PaymentExport__c</tab> </CustomApplication>
Payment Tab shows up in Application details but does not show on top of page (in menu).
- Doker
- January 07, 2009
- Like
- 0
- Continue reading or reply
Dynamic update of WSDL file
Is it possible to dynamic update of the WSDL file through a .net application after application compilation?
/
David Dollas
- Milestone Web
- January 07, 2009
- Like
- 0
- Continue reading or reply
executeAnonymous pwned me :/
Whenever I call
apexApiObject.executeAnonymous(apexCode);
- Doker
- December 29, 2009
- Like
- 0
- Continue reading or reply
How do i get List Views from SalesForce.com to my Web app?
My wsdl object is:
public SforceService binding;
I already checked all the documentation i could find and the forum's and could only find one thread with almost the same question, but could not find a solution.
- T-Qwan
- December 22, 2008
- Like
- 0
- Continue reading or reply
Query fields dependent on UserInfo variable.
- Doker
- December 05, 2008
- Like
- 0
- Continue reading or reply
Is that a bug?
![]() | Error: Compile Error: Method does not exist or incorrect signature: UserInfo.ismulticurrency() at line 60 column 29 |
- Doker
- December 04, 2008
- Like
- 0
- Continue reading or reply
SOQL relation
select
Status__c,
Approved_Amount__c,
(select firstName from cc.MDF__r.account__r.Contacts where MySpecificValue = true )
from SFDC_MDF_Claim__c cc where id in :ids
- Doker
- December 03, 2008
- Like
- 0
- Continue reading or reply
good ajax toolkit reference
- Doker
- November 27, 2008
- Like
- 0
- Continue reading or reply
Why is meta update throwing exception?
Code:
CustomObject co = new CustomObject(); String name = "MyCustomObject"; co.fullName = (name + "__c"); co.deploymentStatus = (DeploymentStatus.InDevelopment); co.description = ("Created by the Metadata API"); co.enableActivities = (true); co.label = (name + " Object"); co.pluralLabel = (co.label + "s"); co.sharingModel = (SharingModel.ReadWrite); CustomField nf = new CustomField(); nf.type = (FieldType.Text); nf.label = (co.fullName + " Name"); co.nameField = (nf); UpdateMetadata updateMetadata = new UpdateMetadata(); updateMetadata.metadata = (co); updateMetadata.currentName = co.fullName; AsyncResult[] ars = ms.update(new UpdateMetadata[] { updateMetadata });
This is simply translation from Java on http://www.salesforce.com/us/developer/docs/api_meta/index.htm
- Doker
- November 12, 2008
- Like
- 0
- Continue reading or reply
Code from example doesn't work
public AsyncResult[] create([System.Xml.Serialization.XmlElementAttribute("metadata")] Metadata[] metadata) { object[] results = this.Invoke("create", new object[] { metadata}); return ((AsyncResult[])(results[0])); }
The code is:
var force = new ForcePartner.SforceService(); var logRes = force.login("xxx", "xxx"); force.Url = logRes.serverUrl; force.SessionHeaderValue = new ForceAPITest.ForcePartner.SessionHeader(); force.SessionHeaderValue.sessionId = logRes.sessionId; var ms = new ForceMeta.MetadataService(); ms.Url = logRes.serverUrl; ms.SessionHeaderValue = new ForceAPITest.ForceMeta.SessionHeader(); ms.SessionHeaderValue.sessionId = logRes.sessionId; ForceMeta.CustomField cf = new ForceMeta.CustomField(); cf.description = "Favorite fruit"; cf.fullName = "Account.favFruit__c"; cf.label = "Fav Fruit"; cf.type = FieldType.Text; cf.length = 25; cf.lengthSpecified = true; ForceMeta.AsyncResult r = ms.create(new ForceMeta.Metadata[] { cf })[0]; while (!r.done) { System.Threading.Thread.Sleep(r.secondsToWait * 1000); r = ms.checkStatus(new string[] { r.id })[0]; } if (r.state == ForceMeta.AsyncRequestState.Error) Console.WriteLine("Error : {0} {1}", r.statusCode, r.message); else { Console.WriteLine("Done, added new field to Account"); }
What's wrong, anyone please?
- Doker
- November 07, 2008
- Like
- 0
- Continue reading or reply