NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on April 04, 2014, 12:48:40 PM

Title: NT8 form, how to loop control values
Post by: Alberto on April 04, 2014, 12:48:40 PM
Hi,
Is there any way to loop through all the prompts and values of a form?
I need to set a string with its prompts and values before save.
Thanks
Title: Re: NT8 form, how to loop control values
Post by: Bruce on April 07, 2014, 12:27:17 AM
When you are saving a record, the form itself does not exist. So you can't "loop through" things that are on the browse page at that point.
Title: Re: NT8 form, how to loop control values
Post by: Alberto on April 07, 2014, 03:03:46 AM
Ok, then, when can I do it?
Is there any stage in which I can do it?... and how.
Thanks
Title: Re: NT8 form, how to loop control values
Post by: Bruce on April 07, 2014, 05:03:34 AM
when the page is constructed I guess they are all used.
But of course they could change as the user interacts with the page.

I'm not sure what problem you are trying to solve, but this may not be the right way to do it.
Title: Re: NT8 form, how to loop control values
Post by: Alberto on April 07, 2014, 05:25:46 AM
Imagine your Multiform example.
You allways show a Browse with the product table, but each record may be from a totaly different table.
The user are force to click change to see what is inside each form.
What I´m trying to do is add a field to the parent file (products), lets call it "abstract" or "resume" to show the list of propts/values of the asociated form.
That way the user can take a quick look at what the child form has.
Hope this make it clear.
Regards

[attachment deleted by admin]
Title: Re: NT8 form, how to loop control values
Post by: Bruce on April 07, 2014, 05:43:22 AM
you can't get this from the form. You'll need to make your own code to generate that description.

cheers
Bruce