Skip to Content
avatar image
Former Member

OVS Value help with a preallocate value

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 08, 2011 at 05:55 AM

    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

    Add comment
    10|10000 characters needed characters exceeded