Hello Jesper,
I tried that before. It indeed works, but my fellow consultant reconed that it would not be a good solution because the screen texts would be changing during the process.


I need this functionality in generating XML invoices for a printing service. The processing is most of the time in a batch. Depending on the customers language, the texts need to be in Finnish, Swedish, etc. Mostly in these two languages.

The current solution is as follows:
- Find the enum node in the aot,  for examlple 'Salestype'
- Get the child node, for example 'Sales'
- get the properties string "  ..... #Label  [EMAIL PROTECTED] "
- extract the @SYS99999 whatever using string functions
- construct a Label object
- get the language text.

This works, however it is a bit complicated... If anyone can come up with a simpler solution that would be highly appreciated :)

thanks for the help

Jan Kaiponen



--- In [EMAIL PROTECTED], <[EMAIL PROTECTED]> wrote:
Hi Jan,
I don't know if this is he best way, but it works.
static void JJ_Test(Args _args)
{
LanguageId orglanguageId = infolog.language();
;
infolog.language('En-GB');
info(enum2str(ItemType::Service));
infolog.language('FI');
info(enum2str(ItemType::Service));
infolog.language(orglanguageId);
}
/Jesper
Original Message processed by Tobit InfoCenter Subject: [development-axapta] enum2str() .. language labels (10-
Dez-2003 9:50)
From:    [EMAIL PROTECTED]
To:      [EMAIL PROTECTED]


Hello,


enum2str(CustInvoiceJour.SalesType)

returns the English string value (label) for the enum element.
How do I get the other languages texts?

Jan


Yahoo! Groups Sponsor ADVERTISEMENT




Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.



Yahoo! Groups Sponsor ADVERTISEMENT
click here


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Reply via email to