This topic is locked

Dropdown with values from webservice

10/6/2009 11:36:43 AM
PHPRunner General questions
S
smaris author

Hi,
I want to populate a dropdown with values from an external webservice.
So, I have a webservice which gives me a list of key-value pairs. I need to present the 'values' in a dropdown, and store the 'key' in my local database table.
I need to have this only for the Add and Edit page on this table. On List and other pages, I'll just show the 'key'.
I'm trying to figure out where the best place is to do this.
Should I add a PHP snippet in the Visual editor, which builds my dropdown box? Or better work with some event code? But where and how?
Tnx
Stefan

J
Jane 10/7/2009

Stefan,
I recommend you to use custom event (Insert PHP code snippet option on the Visual Editor tab) to create dropdown with your values.