Article: AN0001912Updated:
Localized message
If you operate ObjectGears system in more languages, it is necessary to use localized messages.
Where to use this script: Button
Following script will display localized message of type Information, that has code no_request_pending.
OGForm.SetInfo( OG.MessageLoc.GetText( OGModel.Id, 'no_request_pending'));
Following script will display localized message of type Error and stops processing in the button.
OGForm.SetError( OG.MessageLoc.GetText( OGModel.Id, 'previous_request'));
return;