- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2016 02:44 AM
Hi all,
Self Service Portal Helsinki : g_form.setValue('field', getMessage'message') not working the first time page loads. But when I open again the record producer form still from the portal, the message shows up.
Any idea what the issue could be?
Regs,
Lô Mouhamadou
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2016 04:23 AM
Sorry for more bad news. I found the issue in Helsinki Patch 2, so upgrading to that release won't be your answer (yet). The function only prints the key and does not fetch the message from the server (even if you use the Messages field.) So sad.
I know it's not the answer you were looking for, but if you would be so kind... please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
If you are viewing this discussion from your "inbox", use the "mark as correct" option under actions. If you are viewing it directly from the thread use the Correct Answer link (red with a star).
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2016 12:59 AM
Are you sure ? I use it for the getmessage and it works fine.
For the date: it works as well but when user enter the date without the date picker then the alert msg is shown twice. That is the only issue I have with it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2016 01:14 AM
Hi, in our instance (version Hesinki - Patch 2) I saw that the message returns translated value by executing it the second time, example:
- Catalog client script executes OnChange checking with regular expression the value of related field.
- When the script was called for the first time the value was not translated, but when the script was called again, translated value was returned.
So calling the same function getMessage 2 times, waiting before execution of the second one, it works:
Here is a work around implemented until the next upgrade:
// the first call without translation
var msg = getMessage('The message to translate.');
// the second call waiting 1 second before execution
setTimeout(function () {g_form.showErrorBox('u_variable_name',getMessage('The message to translate.'))}, 1000);
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2017 11:42 PM
Hi thanks but finally we are using an ajax call and it works fine from the first and unique call