• Doker
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 24
    Questions
  • 18
    Replies

<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?

  • February 16, 2009
  • Like
  • 0

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>

 

 

Message Edited by Doker on 02-12-2009 05:20 AM
  • February 12, 2009
  • Like
  • 0

Anyone knows how to add an error to record in Javascript (when custom button is pressed)?

Please...

  • February 02, 2009
  • Like
  • 0

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.

  • February 02, 2009
  • Like
  • 0
Hi. I have installed MDF & Co-op 2.0 but no application has installed. Objects and tabs are there but no application that groups them. What have happend?
  • January 26, 2009
  • Like
  • 0
Hi All,
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?
  • January 15, 2009
  • Like
  • 0
If I go to currently installed application and add my Payment Tab it shows up on top of page.
But if I deploy ChannelFunds.app file with
Code:
<?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).
 
Did I find a bug?
  • January 07, 2009
  • Like
  • 0
How can I add my button to list view?
 
In custom deployment process i added

<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?

  • January 05, 2009
  • Like
  • 0

Whenever I call
apexApiObject.executeAnonymous(apexCode);

it throws an error
System.Web.Services.Protocols.SoapHeaderException: No operation available for request
{http://soap.sforce.com/2006/08/apex}executeAnonymous
 
even if my apexCode = ";" ;
 
Can you please help me out with this, please?
  • December 29, 2009
  • Like
  • 0
How to query CurrencyISOCode in SOQL when organization is Multi Currency (UserInfo.isMultiCurrencyOrganization) and don't query that otherwise, and in the same query filter by an array of ids (...where id in :ids )?
  • December 05, 2008
  • Like
  • 0
Can you explain me how to call apex from list button that it could set field errors (errors under each invalid line), please?

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'.
  • December 04, 2008
  • Like
  • 0
boolean bb = UserInfo.ismulticurrency();

ErrorError: Compile Error: Method does not exist or incorrect signature: UserInfo.ismulticurrency() at line 60 column 29
  • December 04, 2008
  • Like
  • 0
Can you explain me how to call apex from list button that it could set field errors (errors under each invalid line), please?

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'.


  • December 03, 2008
  • Like
  • 0
How to write some inner query like that (this one gives an error)

Code:
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

 

  • December 03, 2008
  • Like
  • 0
If the "Trigger is not available for this organization." thread is to hard to answear, maybe you can quote some example of c#/vb.net code that creates a trigger, please.
  • November 30, 2008
  • Like
  • 0
Code:
            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
  • November 30, 2008
  • Like
  • 0
Where can I get a real straight forward AJAX reference not this laic ajax guide that tells almost nothing?
  • November 27, 2008
  • Like
  • 0
Lets say I want to add some object, fields using meta Api.
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
  • November 27, 2008
  • Like
  • 0
How to get namespace to stick it in front of object's name when adding stuff using meta api?
  • November 14, 2008
  • Like
  • 0
In my Company Profile i have different options than described in help. There is no Manage Currencies.
Why is that?



Message Edited by Doker on 11-14-2008 05:09 AM
  • November 14, 2008
  • Like
  • 0

<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?

  • February 16, 2009
  • Like
  • 0

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>

 

 

Message Edited by Doker on 02-12-2009 05:20 AM
  • February 12, 2009
  • Like
  • 0

Anyone knows how to add an error to record in Javascript (when custom button is pressed)?

Please...

  • February 02, 2009
  • Like
  • 0
If I go to currently installed application and add my Payment Tab it shows up on top of page.
But if I deploy ChannelFunds.app file with
Code:
<?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).
 
Did I find a bug?
  • January 07, 2009
  • Like
  • 0

Is it possible to dynamic update of the WSDL file through a .net application after application compilation?

 

 

/

David Dollas

 

 

Whenever I call
apexApiObject.executeAnonymous(apexCode);

it throws an error
System.Web.Services.Protocols.SoapHeaderException: No operation available for request
{http://soap.sforce.com/2006/08/apex}executeAnonymous
 
even if my apexCode = ";" ;
 
Can you please help me out with this, please?
  • December 29, 2009
  • Like
  • 0
I'm building a web app and trying to get lists out of SalesForce.com. The thing i am trying to do is make a List of Contacts that the user can make and then in my app they should be able to select a List of Contacts they made in Salesforce.com. So i made a view in contact's, but now i want to know what call i should make to the wsdl to get all the list views availeble for the user.

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.
  • December 22, 2008
  • Like
  • 0
How to query CurrencyISOCode in SOQL when organization is Multi Currency (UserInfo.isMultiCurrencyOrganization) and don't query that otherwise, and in the same query filter by an array of ids (...where id in :ids )?
  • December 05, 2008
  • Like
  • 0
boolean bb = UserInfo.ismulticurrency();

ErrorError: Compile Error: Method does not exist or incorrect signature: UserInfo.ismulticurrency() at line 60 column 29
  • December 04, 2008
  • Like
  • 0
How to write some inner query like that (this one gives an error)

Code:
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

 

  • December 03, 2008
  • Like
  • 0
Where can I get a real straight forward AJAX reference not this laic ajax guide that tells almost nothing?
  • November 27, 2008
  • Like
  • 0
Why the code throws "null: Must specify a deployment status for the Custom Object"?

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


  • November 12, 2008
  • Like
  • 0
When I execute the code almoste cut & pasted from examples I get en error:
No operation available for request {http://soap.sforce.com/2006/04/metadata}create
on
Code:
        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:

Code:
            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?

 


 
  • November 07, 2008
  • Like
  • 0