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

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

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

Please...

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?

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?
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.
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 )?
boolean bb = UserInfo.ismulticurrency();

ErrorError: Compile Error: Method does not exist or incorrect signature: UserInfo.ismulticurrency() at line 60 column 29
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

 

Where can I get a real straight forward AJAX reference not this laic ajax guide that tells almost nothing?
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


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?