Hi W.Neeraj,
to make it a bit easier
(if my understanding is correct, you want to write all field/value-pairs into a file):
you need to know the name of your form -> variable thisform
- hiFormList() can be used to show all forms currently known -
and you have opened a file for writing -> handle formdatafile
now: loop over all fields of your form, get the value of each field, write name and value to your outfile;
i've divided this into two lines, formatting a string and printing it to the outport:
8< - - - - - - - - - - - - - - -
foreach(thisfield thisform~>fieldList
thisfieldvalue = get(thisform thisfield)~>value
sprintf(printline "FIELD:%L:VALUE:%L\n" thisfield thisfieldvalue)
fprintf(formdatafile printline)
)
close(formdatafile)
8< - - - - - - - - - - - - - - -
hope this helps
Stefan