Page 1 of 1

"applyproperty" appears to populate field, but data is missing from bound program field

Posted: Thu May 28, 2015 1:45 pm
by ppbedz
I have a screen which populates a drop-down using the selection from another drop-down. The selection from the final drop-down should populate a free-form entry field. It all appears to work properly. However, when I press the button to return control to my rpg program, the field bound to the free-form entry field is blank. I have enclosed screen shots of the Profound definitions and the program execution and debug variables. Can someone help me make sure the bound program field returns the data I am seeing on the screen instead of blanks? I am guessing these is something missing in the java script.... ? Thank you.

Note: The reason I am having the second drop-down populate a free-form field is that the user needs to be able to select from a list, or type something manually. I does not appear that you can enter data into a drop-down. if there is a better way to do this, I am open to suggestions.

Re: "applyproperty" appears to populate field, but data is missing from bound program field

Posted: Thu May 28, 2015 1:55 pm
by Alex
Instead of applyProperty("someid", "value", "somevalue"), try using pui.set("someid", "somevalue"). See http://www.profoundlogic.com/docs/pages ... d=17137692 for an explanation of pui.set(). In addition to changing the value, this API also marks the element as changed so that the new value is sent to the bound field on the server.

Re: "applyproperty" appears to populate field, but data is missing from bound program field

Posted: Thu May 28, 2015 2:04 pm
by ppbedz
That took care of it. Thank you, Alex!