Knowledgebase: Technical
Translating Nested Reports
Posted by Gian Luca De Bonis, Last modified by Gian Luca De Bonis on 08 April 2010 09:32 AM
|
|
To translate nested reports, Enable relies on PowerBuilder’s GetChild function. But this function doesn’t work for Nested Reports. So if you have a Nested you need to: 1) Edit the DW source 2) change the Processing attribute to 5 (=composite) 3) Save This works fine for the first level. For subsequent levels, you can proceed like this: 1) create a global function, like gf_translate(string as_text): string; write this code: return n_enable.translate(as_text, ‘ 2) for each label define an expression that calls the newly created function, like city_t.text = ‘City ~t gf_translate(“City”)’ (define an expression for the text property) | |
|
Comments (0)