Self Service Portal Helsinki : g_form.setValue('field', getMessage'message') not working the first time page loads

lomouhamadou
Kilo Guru

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

1 ACCEPTED SOLUTION

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


View solution in original post

12 REPLIES 12

Do you have the related problem number ?


Hi Lo,



I did a little digging and came up with this number: PRB684427



It looks like the fix target is Helsinki Patch 3 (and included in Istanbul.) No target release date on Helsinki Patch 3 yet, but if history is any indication, we have been releasing patches about once a month.


thanks for this I appreciate


diegosantiago
Kilo Expert

You can use it with a callback function.



Ex:



Alert:


getMessage("Hello World", function(msg){


        alert(msg);


});



Info Message:


getMessage("Hello World", function(msg){


        g_form.showFieldMsg('field_name', msg, 'info');


});


FWIW, callback doesn't work with Service Portal (my journey started there.) See above PRB for reference.