avpatil
18th February 2003, 22:36
Hi,
Is there a way where I can progmatically know all the field on all the forms of a session.
I need to capture the field name and there value.I tried using lattr.firstfld$, lattr.nextfld$, but cannot get the next field. Any suggestions?
Thanks
NPRao
18th February 2003, 23:27
Hi Patil,
you can query the tools table - ttadv301 for the forms fields for a form/session.
I am not sure if you can access, a sessions forms fields values from another program which doesnt invoke it. You can use the AFS/API or get.var() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_variables_interprocess_transfer_get_var) or import() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_variables_interprocess_transfer_import)
The predefined variables - lattr.firstfld$, lattr.nextfld$ work for the report scripts.
I think you should put forward your requirement for others to suggest something.
avpatil
19th February 2003, 00:21
Hi NPR,
The lattr.firstfld$works for sessions too. My problem is to get all the form field name. I have a custom table where I am referncing the formfield name with some other code.I have twothings to do
1. Should be able to know all the form fields
2. Should be able to capture all the form fields name.
The lattr.firstfld$ gives me the first field on the form. My session is type4 session with more than one form.
So I was looking for some kind of function that will go through all the form fields of all the form of the session (same session only).
Thanks
Arvind
zardoz
21st February 2003, 16:44
The table ttadv301 (company 000) contains all the form fields used in a form.