Bogdan
8th July 2002, 11:39
Hi,
I have a problem with text in tdsls040;
I select field tdsls040.txta and put it into a report; if the text language is the "default" language everything is ok, but if the language is diferent then the report shows nothing.
Does anybody knows why?
OmeLuuk
8th July 2002, 12:13
The sales order text is language dependent. See tttxt010.
This is for obvious reasons. The customer itself uses a language (on the form too on tdsls4101m000 - or "s" in BaanERP).
Bogdan
8th July 2002, 12:45
Yes, but it's also obvious that baan is making a select at compile or at run time, because field tdsls040.txta is long and the result is string.
Whatever, is possible to get the text "language independent" other way then making the whole select (tdsls040->tttxt010)?
Thanks a lot
OmeLuuk
8th July 2002, 13:24
Assume Baan IVc...
The text characteristics are determined in the program script of the session:
choice.text.manager:
before.choice:
...
tdsls4101.fill.textparameters()
...
and in the include tdsls4101 it reads:
function tdsls4101.fill.textparameters()
{
#ifdef BIC_4GL | to prevent compilation errors in 3GL-scripts
attr.textlang$ = get.system.language(tdsls040.clan)
attr.textkw1$ = form.text$("tdslss0044") | Sales
attr.textkw2$ = form.text$("tdslss0045") | Header line
attr.textkw3$ = edit$(tdsls040.orno,"ZZZZZ9")
attr.textkw4$ = tdsls040.refa
if attr.textfield$ = "tdsls040.txtb" then
attr.textkw2$ = form.text$("tdslss0041") | Footer Text
endif
#endif
}
Suppose the field tdsls040.clan should be empty or the include should be modified to read language independent text ...?
Bogdan
8th July 2002, 17:00
Thanks a lot OmeLuuk,
I solved the problem: solution is very simple I just need to fill the field Lang/Curr(expr) in report field editor for tdsls040.txta with the language for text (tcmcs046.lang).
I always wonder why there are so many fields in baan windows: to get simple answers to annoying problems.
Thank you again