HI All,
How do I correctly get and compare a transaction (bill) status in client script?
If I get the field value of status I get e.g. 'Open', but when I switch the NS language I get the translation of that status.
I need to make sure my function only executes in a specific bill status.
Martin Horacek
03/05/2020, 9:16 AM
Looks like I can use the documentstatus field.
Please let me know if there are better ways.
n
NElliott
03/05/2020, 9:17 AM
You beat me to it by about 3 seconds! 😄
NElliott
03/05/2020, 9:19 AM
I'm not aware of anything else you might be able to use in client script.
I added &xml=T to the record url and searched on "status".
Retrieving that field value back on the regular record view worked in the console.
m
Martin Horacek
03/05/2020, 9:20 AM
Worked for me too and I guess this will be the only solution 🙂