• Anonymous123
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi everyone,

I am very new to this platform and do not have much knowledge.

I want to study Web Services.

Kindly guide me with necessary documents.

I have already gone through the Apex developer guide.

 

Thanks.

Hi,

 

Please look at the below 2 code snippets:

 1)  

public class selectedRecords {
public List<clsWrapper> accls=new List<clsWrapper>();

 

2)

public class selectedRecords {
public List<clsWrapper> accls{get;set;}
public List<clsWrapper> getAccounts(){
accls=new List<clsWrapper>();
if(accls==null && accls.size()==0){
for(Account a: [select id, Name from Account limit 10]){
accls.add(new clsWrapper(a));
}
}
return accls;
}


}

 mY question is: what is the differnence between allocating memory to the list in starting of class and inside getter ?

 

 

Hi,

 

Please look at the below 2 code snippets:

 1)  

public class selectedRecords {
public List<clsWrapper> accls=new List<clsWrapper>();

 

2)

public class selectedRecords {
public List<clsWrapper> accls{get;set;}
public List<clsWrapper> getAccounts(){
accls=new List<clsWrapper>();
if(accls==null && accls.size()==0){
for(Account a: [select id, Name from Account limit 10]){
accls.add(new clsWrapper(a));
}
}
return accls;
}


}

 mY question is: what is the differnence between allocating memory to the list in starting of class and inside getter ?

 

 

Here we go....

 <apex:outputpanel rendered="{!errorxml}">
         <apex:pageBlockSection title="Payment Result">
             <apex:pageblocksectionItem >
                  <Label class="table">Transaction Status</Label>
                  <apex:outputtext value="{!cnpxmlstring.ErrorData}"/>
              </apex:pageblocksectionItem>
              <apex:pageblocksectionItem >
                  <label>Order Number</label>
                  <apex:outputText value="{!cnpxmlstring.TransactionNumber}"></apex:outputText>
              </apex:pageblocksectionItem>

       </apex:pageblocksection>

</apex:outputpanel>

 

 <apex:commandButton value="Process payment" id="processpayment"  action="{!PaymentAPIMethod}"  reRender="seexml,errorxml"/>

 

But cant able to find the payment result values.....Any help pls

 

Thanks,