Skip to Content

Automatically launch dynamic query

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    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");
    thBtMgr.click(rbutton);
    }
    
    

    regard

    Domi

    Add comment
    10|10000 characters needed characters exceeded