Hi, i wanted to save the data of the fields in a Form to specific directory or specific folder.
You didn't actually ask a question, so not sure what your issue is. This post gives an example of a form with an option to save and load a template to a file - maybe that addresses your need?
In reply to Andrew Beckett:
In reply to Neeraj Vardhan:
So presumably my reply (referencing the other post) answered your question?
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~>fieldListthisfieldvalue = get(thisform thisfield)~>valuesprintf(printline "FIELD:%L:VALUE:%L\n" thisfield thisfieldvalue)fprintf(formdatafile printline))close(formdatafile)8< - - - - - - - - - - - - - - - hope this helps
In reply to StefanSL:
Thank you Andrew and Stefan for the help.