Monday, 4 March 2013

Saving multilingual data through CI via PeopleCode

We had a requirement that we wanted to save data through a component interface via PeopleCode in a record that has a related language record also and we wanted to save data in both English and an other language.

Following is how your code will look like:

rem ***** Get current PeopleSoft Session *****;
&oSession = %Session;

&REG_LNG = &oSession.RegionalSettings.LanguageCd;

&oSession.RegionalSettings.LanguageCd = "Your related language";

rem do your processing of saving data through ci via peoplecode

&oSession.RegionalSettings.LanguageCd = &REG_LNG;

No comments:

Post a Comment