Timo Sehrbruch
Posts: 0
Joined: Thu May 09, 2013 7:41 pm

link from xml

is it possible that i map a url retrieved from a xml file to an array of buttons?

e.g.
precode
<root>
<link>
<url>http:&#47;&#47;www&#46;google&#46;de<&#47;url>
<name>Google<&#47;name>
<&#47;link>
<link>
<url>http:&#47;&#47;www&#46;appery&#46;io<&#47;url>
<name>Appery<&#47;name>
<&#47;link>
<link>
<url>http:&#47;&#47;www&#46;some&#46;url<&#47;url>
<name>Example<&#47;name>
<&#47;link>
/code/pre
then i create an array of containers from "link" and inside is always a button which should target to "url".

in the xml mapping i can only map it to "text"-attribute of the button

thank you

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

link from xml

Try to use List component. Put button and label to list component. Set "Visible" false on label. Map response "name" to button and "url" to label. Get label value and target to "url",
on button click event. On next tutuorial you can find how to map response to elements on list component:
http://docs.appery.io/tutorials/build...

Timo Sehrbruch
Posts: 0
Joined: Thu May 09, 2013 7:41 pm

link from xml

thanks for your answer. but i found a much easier method. i just used the "link" module, which i just didnt see last time.

Return to “Issues”