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.
"applyproperty" appears to populate field, but data is missing from bound program field
-
- Experienced User
- Posts: 147
- Joined: Tue Jun 17, 2014 4:00 pm
- First Name: Patti
- Last Name: Bednarz
- Company Name: McGard
- State / Province: New York
- Country: United States
- Contact:
"applyproperty" appears to populate field, but data is missing from bound program field
- Attachments
-
- hrtrain.docx
- (281.68 KiB) Downloaded 57 times
- Alex
- Profound Logic Staff Member
- Posts: 233
- Joined: Fri Jan 04, 2008 12:10 pm
- First Name: Alex
- Last Name: Roytman
- Company Name: Profound Logic Software
- Contact:
Re: "applyproperty" appears to populate field, but data is missing from bound program field
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.
-
- Experienced User
- Posts: 147
- Joined: Tue Jun 17, 2014 4:00 pm
- First Name: Patti
- Last Name: Bednarz
- Company Name: McGard
- State / Province: New York
- Country: United States
- Contact:
Re: "applyproperty" appears to populate field, but data is missing from bound program field
That took care of it. Thank you, Alex!
Who is online
Users browsing this forum: Ahrefs [Bot] and 6 guests