Hi,
I am hoping someone can advise.
I would like to build a dynamic list from values retrieved from a Rest Web Service. I am able to retrieve the values and theoretically insert them into a table but I am unable to use these tables for a dynamic list as the table isn't "backed" by a resource.
The only solution I have, and it is undesireable, is to actually retrieve the data from the web server and then save it to a resource backed database table and then display the list. This will involve wiping the table every timer and re-populating during each form session. I was hoping I could do it "on the fly" from the Web Service.
Thanks,
Alex
Creating a dynamic list from a Web Service
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 95
- Joined: Wed Feb 27, 2013 5:16 pm
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
You can do this on the fly, you don't need a database, you can use a "custom list" instead e.g.
Set the field type to dropdown and you will see the list.
Code: Select all
var list = fields.myfield.createCustomList();
for each (value in someloop)
{
list.add(value );
}
0 x
-
- Ebase User
- Posts: 95
- Joined: Wed Feb 27, 2013 5:16 pm
Who is online
Users browsing this forum: No registered users and 8 guests