NetTalk Central

Author Topic: NT8 form, how to loop control values  (Read 3211 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
NT8 form, how to loop control values
« 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
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT8 form, how to loop control values
« Reply #1 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.

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT8 form, how to loop control values
« Reply #2 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
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT8 form, how to loop control values
« Reply #3 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.

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT8 form, how to loop control values
« Reply #4 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]
« Last Edit: April 07, 2014, 05:27:34 AM by michelis »
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT8 form, how to loop control values
« Reply #5 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