cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically launch dynamic query

0 Kudos
199

Hi guys,

is it possible to automatically start a search query in web ui?

In my case, I am using the bpsearch_account_popup to search for business partners. I have created a dynamic query so some fileds have default values. I don't want to click on the search button every time I open the pop up. Is there a way to launch the search automatically, when I open the pop up?

Thank you and best regards

Chris

Accepted Solutions (1)

Accepted Solutions (1)

Domi
Active Contributor
0 Kudos

Hi Christian

You can do this with javascript in the view:

thtmlbUnregisterOnLoad( myOnload );
thtmlbRegisterOnLoad( myOnload );

function myOnload(){
<%
  data(lr_viewset) = cast zl_bp_head__mainsearch_impl( controller->m_parent ).
%>

var rbutton = document.getElementById("<%= lr_viewset->COMPONENT_ID %>_SEARCH_BTN");
thBtMgr.click(rbutton);
}

regard

Domi

Answers (0)