on 01-18-2006 11:18 PM
Hi
Am building a form with UI elements(Inputfield, dropdown by key,etc) and i need to add the values entered in the form elements to the back end.
How do i capture the UI elements values so that i can pass the same into my code and add them to backend.
Thanks in advance
UI element properties are bound to view context attributes. In an event handler you can access these attributes.
If you have a DropDownByKey UI element, you will have bound the property "selectedKey" to a context attribute. The currently selected key is the value of this attribute.
For an InputField, you will have bound the "value" property to a context attribute. The cuurent value in the InputField is the value of this attribute.
etc.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You will be required to capture the value entered in input field and dropdownbykey when the end user press the submit button
For input field bind the value property to a context attribute say att1
For dropdownbykey bind the selectedkey property to a context attribute say att2
Associate the onAction property of button to an action
In the eventhandler of the action in implementation write
String val_inputfield = wdContext.currentContextElement.getAtt1()
String val_dropdown = wdContext.currentContextElement.getAtt1()
You will get the values entered
Regards
Rohit
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.