StringFromSet Function
Gastón Salomone
12-4-18
Hi,

I´m trying to use StringFromSet function in a WebPublic function and I doesn´t work with customized Set Ids.
It is a SERP 8.4 in cloudnode, but If I start a server manually it Works perfectly also.

I write this set:
SetBegin(920);
    SetText(0," ");
    SetText(1,"No");
    SetText(2,"Yes");
    EndSet;


And If I call StringFromSet(919,2) return "Yes", from client side Its Works.
But I call it in server side in a webpublic function allways returns 2.

Is there any replacement function to use? Is this a bug ?

Regards
Omar Dottin
12-5-18
Hi Gaston, it is important to have

SetLangMode

If you have this already, please also add

SetText(0,"-")

and test. If you are still experiencing issues, we will need the full Hal file to analyze.

Regards,
HW Support
Gastón Salomone
12-10-18
Hi Omar,

Is SetLangMode really necessary ?
I found that as son as I do some Expo/Impo functions starts to work correctly.
But as soon as I validate SERP product key SetLanguage starts to fail, I don´t know Why.


Regards
Omar Dottin
12-27-19
Hi Gaston, our developers do recommend to have SetLangMode in 8.5 as well. It's needed for product key validation. Hope this helps!

Thanks,
Omar
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
David Delač
Hi Piotr, The log entry:
2024-12-14 08:40:43 0.000 CallHal(IsHansaWorldCustomer) appears because the server is running with the verbosity=debug-detailed setting in its parameters.txt file. Thi...
09:43 16 Dec 2024
Brittany McGrath
Hi Vaughn, I can confirm this has been fixed now and is live in Standard ERP 2024-11-20 Version: 85556786. Thank you. ...
10:04 10 Dec 2024