on 2018 Jan 21 8:35 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
33 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.