on 11-07-2011 11:50 AM
Hi everybody,
i use a OVS Value Help whitch contains one field and a button for search.
Now i want to preallocate this field with a default value and execute the search automatically when the OVS View appears.
How can i do it?
Regards,
Sid
Edited by: Sid on Nov 7, 2011 1:05 PM
Hi Sid,
You can set default value to the field in value help within the method applyInputValues() and within this method, call onQuery() method which contains the logic for fetching the search results. Please find below the sample code for applyInputValues():
public void applyInputValues(IWDNodeElement applicationNodeElement, IWDNodeElement queryInputNodeElement)
{
// On clicking Value help pop-up icon, get all the records from database
wdContext.nodeDemoOutput().invalidate();
queryInputNodeElement.setAttributeValue(IDemoInputElement.NAME, "<default_value>");
onQuery(queryInputNodeElement, wdContext.nodeDemoOutput());
}
Hope this helps.
Regards,
Pavithra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.