hbenade
19th April 2005, 09:40
compiling the session tfacp1110, am getting the error : Unresolved reference
to function "dialog.add.text" which is coding in the script, it contain the includes <bic_text>, <bic_dialog>, <bic_dam>
Can somebody give me a hint where to go an look for this
problem (This is Baan52Ca
Thanks
Hans
This script exist in one of our systems (companies) we have loaded Service Pack 3 from Baan support) this script tfacp1110 compiles without errors.
I have copy this script to one of our other Baan systems same Version and it compile with the above error message, I have also copied the Include6.2 directory from where the script compile succesfully to the other system
Copy of script with service pack 3
case tfacp.inv.purchase:
if not isspace(i.order) and isspace(i.packing.slip) then
ret = dialog.add.text(
dlg,
sprintf$(form.text$("tfacps1110.18"), trim$(i.order)),
|* Select the Logistic Company for Purchase Order
|* %1$s.
DLG_FIELD_WIDTH,
60)
endif
NPRao
19th April 2005, 10:00
Hans,
I am not sure if there is a function - dialog.add.text()
Programmable dialogs synopsis (http://www.baanboard.com/programmers_manual_baanerp_help_functions_programmable_dialogs_synopsis)
long dialog.new ( string dialog.name()
[, long attribute, value] ... )
long dialog.add.field (long id, const string name, const string label
[, long attribute, value] ... )
long dialog.add.listbox (long dlg, domain ttadv.fldn fldName,
domain ttcdes fldLabel, long no.items, long enum.vals(),
string enum.desc(,), ...)
long dialog.show (long dlg)
long dialog.add.button (long dlg, const string btnFunction(),
const string btnLabel())
long dialog.refresh.field (long dlg, const string field())
The example shows a text area - Example (http://www.baanboard.com/programmers_manual_baanerp_help_functions_programmable_dialogs_example)
dialog.add.field(dlg, "txt.field", "Enter your text here",
DLG_FIELD_LENGTH, 40,
DLG_FIELD_TYPE, DLG_TYPE_MULTI_LINE)
hbenade
19th April 2005, 10:38
This script exist in one of our systems (companies) we have loaded Service Pack 3 from Baan support) this script tfacp1110 compiles without errors.
I have copy this script to one of our other Baan systems same Version and it compile with the above error message, I have also copied the Include6.2 directory from where the script compile succesfully to the other system
Copy of script with service pack 3
case tfacp.inv.purchase:
if not isspace(i.order) and isspace(i.packing.slip) then
ret = dialog.add.text(
dlg,
sprintf$(form.text$("tfacps1110.18"), trim$(i.order)),
|* Select the Logistic Company for Purchase Order
|* %1$s.
DLG_FIELD_WIDTH,
60)
endif
NPRao
19th April 2005, 19:21
I was checking the Programmer's Guide of Reger version where that function is not listed by compiles fine.
There should be new BIC include files delivered with the Service Pack CD. You would need the latest version of bic_dialog.
Here is the function prototype from the Gemini Programmer's Guide -
SSA ERP LN 6.1 Programmer's Guide
dialog.add.text()
--------------------------------------------------------------------------------
Syntax
long dialog.add.text(long dlg, const string text(), ...)
Description
This function creates static texts on the dialog. Purpose of this text can be for explanation or additional help.
Arguments
dlg The identifier of the dialog. The identifier must be created with the function dialog.new().
text The text to be displayed.
attribute, value Possible attributes are:
DLG_FIELD_WIDTH: The number of characters to be displayed on one line.
Return values
None.
Context
3GL library function
More notes from the example program -
dialog.add.text(dlg, "Programmable dialogs offer a very flexible way" &
" of developing dialogs. The dialogs can be configured at run time." &
" All you have to do is writing some function calls. Basically," &
" there are 3 commands: dialog.new() for creating a dialog structure,"&
" dialog.add.field() for adding fields to the dialog structure and" &
" finally dialog.show() for displaying the created dialog on the" &
" screen. dialog.add.text and dialog.add.listbox are just" &
" variants of dialog.add.field().",
DLG_FIELD_WIDTH, 100)