function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pooja Agichapooja Agicha 

List Values Display on the Visualforce page(Error: Unknown pagereference property)

Hi,

 

My webservice call retruns me the result in a list. I just want to display the returned result on a VF page.

When I am Trying to display the value Getting error as "Unknown Pagereference property ApprPurchAmt"

Here is my code:

 

VF page:

<apex:repeat value="{!AccountOtbDetails}" var="OtbDetails">

<apex:outputText value="{!OtbDetails.ApprPurchAmt}" rendered="true"/>

</apex:repeat>

 

Controller class:

public List<ESBAIMSAccounts.AccountOtbDetail> AccountOtbDetails{ get; set; }

 

// Call external web service

AIMSIntegration Aims = new AIMSIntegration();

AccountOtbDetails=Aims.GetOtbDetails();

 

system.debug('OTB details'+ AccountOtbDetails);

 

In the debug I can see the result of List. 

 

Webservice Class Method:

public class AccountOtbDetail {

public Decimal ApprPurchAmt{get;}

.....

.....

}

 

 

NaishadhNaishadh
Webservices never returns data in object format. It always return data in xml format. So you need to parse the response and fill it in object for further processing.