cancel
Showing results for 
Search instead for 
Did you mean: 

OVS Value help with a preallocate value

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Pavithra,

could you please help me also with this question about OVS Value Helps:

Thanks!

Sid

Answers (0)