Forum OpenACS Development: Re: passing a list from form to form

Collapse
Posted by Jun Yamog on
Hi Janine,

I charted on this waters and so did Jeff Lu.  Sadly I think if no one implements a hidden widget that accepts -values and renders them in many hidden widgets.  I guess you will have to change your course.  Unless I missed something big, from what I know you will have to code additional code in acs templating.  So hidden with multiple values will render in multiple hiddens.

I thought we where just doing things wrongly and did not get much advice from the forum.  I guess there are 3 of us doing something similar.  Maybe its worth it to have multiple hidden.  Anyway can't volunteer any code, but I hope someone will.  It should help atleast 3 poor souls :)

Collapse
Posted by Darren Ferguson on
This is an ugly work around but you could do the following.

set a [list 245 278]

set a [string map " " "-" $a]

then set a as the value in the hidden field.

Then in your spam.tcl for processing the form you can do transform the numbers back using the string map function
Not sure how good the suggestion is but it should work

Darren