Skip to Content

Automatically launch dynamic query

Jan 21 at 08:35 AM


avatar image

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


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Dominik Bigl Jan 21 at 02:21 PM

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");;



10 |10000 characters needed characters left characters exceeded