Rinkashiki
10th February 2015, 03:02
hi. there is a form on data input in the table with 9 fields. if in the table there is no record on the key field Warehouse still. that is necessary on an input form, to create the field Warehouse. if I do by means of dialog.add.field, problems are not present. and it is impossible to insert a new field into the existing form.
before.program:
long dlg
dlg = bshell.pid ()
ret = num.to.date(date.num(),year.f,m_,d_)
dialog.add.field(dlg, "year.f", "іЮФ",|*Год
DLG_ZOOM_PROG, "tfgld0556m000",
DLG_ZOOM_RETURN, "tfgld006.year",
DLG_DOMAIN, "tfgld.year")
bhushanchanda
10th February 2015, 10:46
Hi,
Do you want to add a new field on the form? If yes, you can use DFE and add the required field on the form. You need to declare the field in your script.
May be I did not understand your requirement. Can you provide the exact requirement and the problem you are facing?
Rinkashiki
11th February 2015, 02:01
yes, I want to add a field on already existing form
bhushanchanda
11th February 2015, 06:26
Hi,
So in that case, why are you using dialogs? You can use Dynamic Form Editor as well. Are there any restrictions for not using DFE?
Rinkashiki
11th February 2015, 10:01
it is necessary to me that this two field appeared on a condition or did not appear absolutely.
bhushanchanda
11th February 2015, 10:10
Ok,
This is what I was assuming. Well, then you can use inputfield.invisible() based on conditions to hide the fields from the form. Or the second optionn can be, create a similar session with the 2 new fields. Now based on the coditions, in before .program you can call the new session and kill the current session.
You can go with either of these options.