In this topic we will look at some examples of using GetFormValue function.
Names of some document windows are composed of a 'root' and a suffix representing document type. If we want to print the referent on invoices of issuing of goods , we write down the term
[GetFormValue('PrometIzdDob3000.fReferentZap')]
It will only be printed for the document type 3000, but not for others. In order to print for all document types, we have to write it down like this
[GetFormValue('PrometIzdDob'+<tbLookPoslDog."acDocType">+'.fReferentZap')]
Where dataset "tbLookPoslDog" is not available, we can get the name of the window from the document number. On sale orders we write down:
[IIF(Copy(<qReportIzpisD."acKeyView">,Pos('-',
<qReportIzpisD."acKeyView">)+4,1) ='-',
GetFormValue('Naroc'+Copy(<qReportIzpisD."acKeyView">,Pos('-',
<qReportIzpisD."acKeyView">)+1,3)+'0.fReferentZap'),
GetFormValue('Naroc'+Copy(<qReportIzpisD."acKeyView">,Pos('-',
<qReportIzpisD."acKeyView">)+1,4)+'.fReferentZap'))]
Getting Value of Object from PANTHEON Window
The names of some document windows are composed of a base and a suffix representing the type of document. If we want to print the referent on the issue, we write down the term
[GetFormValue('PrometIzdDob3000.fReferentZap')]
Getting Value fro Document Wondows
t will only be printed for the document type 3000, but not for all others. In order to print for all document types, we have to write it down like this
[GetFormValue('PrometIzdDob'+<tbLookPoslDog."acDocType">+'.fReferentZap')]
Kjer dataseta tbLookPoslDog ni na voljo, lahko dobimo naziv okna iz številke dokumenta. Na naročilih kupcev zapišemo takole
Where tbLookPoslDog datase is not available, we can get the name of the window from the document number. On sale orders we write down:
[IIF(Copy(<qReportIzpisD."acKeyView">,Pos('-',
<qReportIzpisD."acKeyView">)+4,1) ='-',
GetFormValue('Naroc'+Copy(<qReportIzpisD."acKeyView">,Pos('-',
<qReportIzpisD."acKeyView">)+1,3)+'0.fReferentZap'),
GetFormValue('Naroc'+Copy(<qReportIzpisD."acKeyView">,Pos('-',
<qReportIzpisD."acKeyView">)+1,4)+'.fReferentZap'))]