Displaying elements of a form variable which is an array

Questions and answers for designing and implementing forms in Servoy

Displaying elements of a form variable which is an array

Postby huber » Sun Jan 06, 2013 11:58 pm

Hi

I would like to display on a form each element of a forms variable (and array) separatly, like for example with displayTag like %%array[0]%%, %%array[1]%% and so on, but can's find a working solution. It doesn't need to be displayed as tag, any way would be possible.

Best regards, Robert
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 516
Joined: Mon May 14, 2012 11:31 pm

Re: Displaying elements of a form variable which is an array

Postby ROCLASI » Wed Jan 09, 2013 1:19 pm

Hi Robert,

You could use a method that loops through the array and populates the label's like on an onShow or other event.
You could even use your own tags and substitutes those in your code.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium


Return to Forms

Who is online

Users browsing this forum: No registered users and 3 guests