This topic is locked

Multiple language

11/15/2008 5:25:01 AM
ASPRunnerPro General questions
C
carlo author

Hi
i work with asprunne pro 6.0 build 587
i have seen ttah exist a new build...
I have this trouble :

with this last version , now i have label editor for multiple language and it is ok!
But... how could i, with asprunner, to "change" the field whne customr change language ?
i mean :

i have a table with

PRODUCT ID

DESCRIPTION_ITALIAN_LANGUAGE

DESCRIPTION_ENGLISH_LANGUAGE

DESCRIPTION_GERMAN_LANGUAGE

PRICE
I would like to have on list/add/edit page only PRODUCT ID and DESCRIPTION_ITALIAN_LANGUAGE and PRICE when italian language is selected; PRODUCT ID and DESCRIPTION_ENGLISH_LANGUAGE and PRICE when english language is selected,etc
i think it is possible working on events or with some code snippet but i have a very (very!) basic knowledge on asp code
Some one have suggestion ?
Thanks in advance!
Carlo

J
Jane 11/17/2008

Hi,
use List page: After record processed event on the Events tab to check current language and hide unnecessary fields.

Here is a sample:

if Session("language")="English" then

row("DESCRIPTION_ITALIAN_LANGUAGE_fieldcolumn") = false

row("DESCRIPTION_GERMAN_LANGUAGE_fieldcolumn") = false

end if



Then hide column header on the list page in the List page: Before display event if needed:

if Session("language")="English" then

xt.assign "DESCRIPTION_ITALIAN_LANGUAGE_fieldheadercolumn",false

xt.assign "DESCRIPTION_GERMAN_LANGUAGE_fieldheadercolumn",false

end if


To hide fields on the edit page use Edit page: Before display event:

if Session("language")="English" then

xt.assign "DESCRIPTION_ITALIAN_LANGUAGE_fieldblock",false

xt.assign "DESCRIPTION_GERMAN_LANGUAGE_fieldblock",false

end if

C
carlo author 11/22/2008

Hi,

use List page: After record processed event on the Events tab to check current language and hide unnecessary fields.

Here is a sample:
Then hide column header on the list page in the List page: Before display event if needed:
To hide fields on the edit page use Edit page: Before display event:


Thanks
i will try it soon
Ciao
Carlo