on 12-30-2014 10:57 AM
Hello,
I have an extension to the Customer BO and am looking at options on how to translate the message. Any idea if this is possible and if yes how?
Thanks and Regards
Vikram
Not possible. You need to raise different message for each language.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Alessandro,
I am trying to follow whats given on the documentation. My code snippet
import AP.Common.GDT;
import AP.FO.BusinessPartner.Global;
import BASIS.Global;
[Extension] businessobject AP.FO.BusinessPartner.Global:Customer raises MsgERPData, MsgERPData_FI, MsgIndividualCustomer, MsgIndividualCustomer_FI {
// You must activate this business object before you can access the extension fields
// or messages in script files, forms, and screens.
node AddressInformation {
}
message MsgERPData text "Fill mandatory data required for promoting the Prospect to Customer";
message MsgERPData_FI text "Täytä pakolliset tiedot ERP-Tiedot välilehdeltä";
message MsgIndividualCustomer text "Last Name,First Name,Identity Number required for Individual Customers";
message MsgIndividualCustomer_FI text "Etunimi, Sukunimi ja Henkilötunnus ovat pakollisia yksityisasiakkaalle";
---------------------------------------------------------------------
And on the Validation-OnSave
import ABSL;
if(this.CurrentBusinessCharacters.ProspectIndicator == false)
{
var userLanguage;
userLanguage = Context.GetCurrentUserLanguage().ToString();
//ERP Mandatory
if((this.CurrentCommon.KNA1_KTOKD == "")|| (this.CurrentCommon.RF02D_BUKRS == "") || (this.CurrentCommon.KNVV_VKORG == "") || (this.CurrentCommon.KNVV_VTWEG == "") || (this.CurrentCommon.KNVV_SPART == ""))
{
if(userLanguage == "FI") { MsgERPData_FI.Create("E");}
else { raise MsgERPData.Create("E");}
//raise MsgERPData.Create("E");
return false;
}
What happens is that for the _FI message we are never getting the error to pop up and we always get the default "Save Failed" error.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.