I'm trying to get an action button to translate the content of a function to the chart when clicked. This seems fairly simple but is evading me. From an object oriented programming model, one should be able to put code in the "on click" property of an set the text value of a component and voila it's done. How do I accomplish this? I'm using the VFE for the sake of conversation. I need the output of "REPLACESTR(REPLACESTR(regprovider("refphys","","delimited"), "^", " "),"|",HRET)" to translate to the chart only when the button is clicked. I also have the content of said formula populating a data field.
Here's how I've accomplished this in the past:
Code the button to set a value, like: output=999
Then, put your translation behind any other field wrapped in an IF statement, like:
!if output=999 then
REPLACESTR(REPLACESTR(regprovider("refphys","","delimited"), "^", " "),"|",HRET)
else ""
endif
I'd have to search for specific examples, but it seems like I've used this trick more than once in the past.