- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Discussions
- Announcements
- General Development
- Schema Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Mobile
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- REST API Integration
- Streaming API
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Site.com
- Jobs Board - Administrators
- Jobs Board - Developers
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Visualforce Development
- :
- Problem displaying list of items returned from Web...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Problem displaying list of items returned from WebService Callout
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-08-2010 01:11 PM
Good afternoon,
I am having trouble displaying a list of items returned from a webservice callout.
On the visual force page I receive the following error:
| Error: Unknown property 'WebServ.CampaignType.name' |
Visual force page:
<apex:repeat value="{!CFCampaigns}" var="campaignList"> {!campaignList.name}
</apex:repeat>
Here's my controller code:
Public List<WebServ.CampaignType> CFCampaigns;
public CF_ctlr() { WebServ.BroadcastServiceHttpPort webService = new WebServ.BroadcastServiceHttpPort(); WebServ.ArrayOfCampaignType result = webService.getFullCampaignList('2134ds'); this.CFCampaigns = result.CampaignType; } public List<WebServ.CampaignType> getCFCampaigns() { return this.CFCampaigns; } public String getCampaignId() { return this.CFCampaigns[0].name;
}
I verified that the property does exist and the getCampaignId method in my controller works.
Any ideas?
Thanks,
Michael
Re: Problem displaying list of items returned from WebService Callout
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-09-2010 01:01 AM - last edited on 03-09-2010 01:02 AM
That smacks that there isn't a getName method on the WebServ.CampaignType object.
In your getCampaignId, you use : return this.CFCampaigns[0].name, which is directly accessing the field.
However, when the VF page is rendering the contents of your repeat tag, {!campaignList.name}
equates to campaignList.getName()
Certified Salesforce Technical Architect, Developer, Advanced Developer, Administrator, Advanced Administrator, Consultant, Sales Cloud Consultant,Service Cloud Consultant
Force.com MVP | The Bob Buzzard Blog | Linked In | Twitter
If my answer helps, its your call to mark it as the solution - I'm not going to guilt you into it.
Re: Problem displaying list of items returned from WebService Callout
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-09-2010 10:15 AM
The WebServ object/class is generated by WSDL2Apex.
Thanks ,
Michael

