• sfdcdev8
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

Hi All,

 

If condition is not working in VF page... If I need to make modification in apex class and pass it on to VF pager then i need to do it at couple of palces and there are other complexities....

 

Can any one tell me whats wrong with this statement and how to over come it.

 

 <apex:inputField id="abc" style="width:60px;" value="{!IF(lockinputs, Quote.xyz__c, Account.xyz__c)}" > 

 

The error says:

 

Syntax Error, Missing ')'

 

 

Thank you in advance.

Hello,

 

I am trying to update picklist values but SOapUI is throwing error

 

MY Request:

 

--------------------------

 

   <soapenv:Header>
    <met:CallOptions>
         <met:client></met:client>
      </met:CallOptions>
      <met:SessionHeader>
         <met:sessionId>-----</met:sessionId>
      </met:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
      <met:update>
         <!--Zero or more repetitions:-->
         <met:UpdateMetadata>
            <met:currentName>Account.test_field2__c</met:currentName>
            <met:metadata>
               <!--Optional:-->
               <met:fullName>Account.test_field2__c</met:fullName>
                <met:label>test field2</met:label>
    <met:picklist>
             <met:picklistValues>
        <met:fullName>five</met:fullName>
             </met:picklistValues>
        <met:sorted>false</met:sorted>
  </met:picklist>
        <met:type>Picklist</met:type>
    </met:metadata>
         </met:UpdateMetadata>
      </met:update>
   </soapenv:Body>
</soapenv:Envelope>
 
Error:
----------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>Must specify a {http://www.w3.org/2001/XMLSchema-instance}type attribute value for the {http://soap.sforce.com/2006/04/metadata}metadata element</faultstring>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>
 
One more thing I am not sure what should be the value in the <met:client></met:client>
 
Please suggest.
 

Hi All,

 

If condition is not working in VF page... If I need to make modification in apex class and pass it on to VF pager then i need to do it at couple of palces and there are other complexities....

 

Can any one tell me whats wrong with this statement and how to over come it.

 

 <apex:inputField id="abc" style="width:60px;" value="{!IF(lockinputs, Quote.xyz__c, Account.xyz__c)}" > 

 

The error says:

 

Syntax Error, Missing ')'

 

 

Thank you in advance.

<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<SessionHeader xmlns="http://soap.sforce.com/2006/04/metadata">
<sessionId>...</sessionId>
</SessionHeader>
<CallOptions xmlns="http://soap.sforce.com/2006/04/metadata">
<client>...</client>
</CallOptions>
</S:Header>
<S:Body>
<create xmlns="http://soap.sforce.com/2006/04/metadata">
<metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Folder">
<fullName>testFolderFullName</fullName>
<accessType>Public</accessType>
<name>testFolderName</name>
</metadata>
</create>
</S:Body>
</S:Envelope>

 

When submitting the above XML, the server responds with a 500 and the following error:

 

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>Must specify a {http://www.w3.org/2001/XMLSchema-instance}type attribute value for the {http://soap.sforce.com/2006/04/metadata}metadata element</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

 

 

However, the following xml gets a 200 back (and actually does create the metadata object).

 

 

<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<SessionHeader xmlns="http://soap.sforce.com/2006/04/metadata">
<sessionId>...</sessionId>
</SessionHeader>
<CallOptions xmlns="http://soap.sforce.com/2006/04/metadata">
<client>...</client>
</CallOptions>
</S:Header>
<S:Body>
<create xmlns="http://soap.sforce.com/2006/04/metadata">
<metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CustomField">
<fullName>Lead.foobar__c</fullName>
<label>foo label</label>
<length>28</length>
<type>Text</type>
</metadata>
</create>
</S:Body>
</S:Envelope>

 

 

 

Both requests have the "type" attribute on the "metadata" element in the correct namespace. Any idea why the second works while the first doesn't? (The second does have a "type" sub-element, but that's a property of CustomField specifically.)