joraboy328
30th September 2010, 08:35
How to reference label which is maintain by session ttadv1140m000 in my script?
Thank you
grzegorz
30th September 2010, 12:34
Syntax
string tt.label.desc( string label_code(19), domain ttadv.cont label_context, [ref string desc() mb] )
Description
This returns information of the specified label. It is returned, and optionally also stored in the desc argument. (The optional argument is only present for backwards compatibility.)
Arguments
label_code
The label code, including the package code.
label_context
The label's context. The possible values are:
ttadv.cont.general: General Use (for labels on forms and reports)
ttadv.cont.description: Session, Table or Report Descriptions
ttadv.cont.enumerate: Enumerate descriptions
ttadv.cont.indices: Index descriptions
ttadv.cont.charts: Chart descriptions
ttadv.cont.menus: Menu and menu field descriptions
ttadv.cont.ch.opt: Chart Application Option descriptions
ttadv.cont.bus.obj: Business Object descriptions
ttadv.cont.sub.func: Subfunction descriptions
ttadv.cont.form.cmd: Form Command descriptions
ttadv.cont.external: Descriptions for External Use
ttadv.cont.form.casc.menu: Cascading item on button descriptions
desc
This returns the longest description (in the user's current language) of the specified label.
Return values
The description is returned.
MilindV
7th October 2010, 09:51
Hi Grzegorz,
Does this function available in BaaN IV as well?
As joraboy profile says, he works on BaaN IV.
--MilindV
mark_h
7th October 2010, 15:58
Yes - it should work in Baan IV. At least I think I have used it before.
mark_h
7th October 2010, 16:36
May have jumped the gun on that - did a little looking and saw where we just read the table ttadv140. Also noticed ottdllfindlabel which has a function to read label desc. Looks like you just pass it the language, package, label, and a description. I thought I used something like get.label.desc$ somewhere, but can not find anything like that.