• Luckky
  • NEWBIE
  • 25 Points
  • Member since 2011

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 7
    Replies

Hello,

 

Could you help me out in generating a trigger.  I want to see the Count of all the completed activities in the lead record. It should be in Apex and a Field. So that i could also use it in the Reports. 

  • August 17, 2011
  • Like
  • 0

Hi ,

 

I need to know

 

 By using Query or Api can we retrieve all the related Sandbox ids in Production environment ?

 

please tell me this is possible or not?

 

if possible please tell me how?

 

 

 

 

 Hello,

I have an problem. I try to use data table apex function in my page, but show me empty always. The controller return good data, but something happens in "apex:dataTable". This is my code:

<apex:page controller="exampleCon" cache="false">
  <apex:dataTable value="{!contacts}" var="c" id="theTable" rowClasses="odd,even" styleClass="tableClass">

        <apex:column><apex:facet name="header">Name</apex:facet>
            <apex:outputText value="-{!c.Name}"/>
        </apex:column>

        <apex:column>
            <apex:facet name="header">Phone</apex:facet>
            <apex:outputText value="-{!c.Phone}"/>

        </apex:column>

    </apex:dataTable>

</apex:page>


And my controller:

public class exampleCon {

    List<Contact> contacts;

    public List<Contact> getcontacts() {
        contacts = [select Name, Phone from Contact limit 10];     
        return contacts;
    }
}


Thanks.

  • August 18, 2011
  • Like
  • 0

Hello,

 

Could you help me out in generating a trigger.  I want to see the Count of all the completed activities in the lead record. It should be in Apex and a Field. So that i could also use it in the Reports. 

  • August 17, 2011
  • Like
  • 0

Hi ,

 

I need to know

 

 By using Query or Api can we retrieve all the related Sandbox ids in Production environment ?

 

please tell me this is possible or not?

 

if possible please tell me how?

 

 

 

 

Using apache soap to generate soap clients for the "enterprise" and "metadata" wsdls.


The following works great with the "Enterprise" wsdl::

        binding = (SoapBindingStub) new SforceServiceLocator().getSoap();

        loginResult = binding.login(userName, password);
        binding._setProperty(SoapBindingStub.ENDPOINT_ADDRESS_PROPERTY,
            loginResult.getServerUrl());
        SessionHeader sh = new SessionHeader();
        sh.setSessionId(loginResult.getSessionId());
        binding.setHeader(new SforceServiceLocator().getServiceName().getNamespaceURI(),
                          "SessionHeader", sh);
//all subsequent calls work great



However, I must be missing something in the metadata api. There is no "login" method on the MetadataBindingStub generated from the metadata.wsdl ... how does one login and create a session?

            metaBinding = (MetadataBindingStub) new MetadataServiceLocator().getMetadata();
            metaBinding.setUsername(userName);
            metaBinding.setPassword(password);

            metaBinding.describeMetadata(); // >> INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session


Thanks.

  • March 04, 2008
  • Like
  • 0