Starting Enterprise Search from Menu
Sebastian Schweer
Hallo Everybody,our customers have now access to the Enterprise Search from Coresystems, which is a fantastic tool for every user.
But we have now one great problem. Once the user closes the enterprise Search, they can't find it anymore.
My idea was now to create a coresuite Menu and add the enterprise Search in the Help Menu from SAP or starting the Search from a Button.
But how can I trigger the Enterprise Search? How can i start it per code?
Best Regards,
Sebastian
Paolo Manfrin
Hi Sebastian,at the moment the possibility to open the enterprise search by code is not available as the method is not exposed.
In the next version of the enterprise search a new menu entry will be created so that every use can start it.
hth
cheers,
paolo
Sebastian Schweer
Hi Paolo,thanks for the fast answer.
But you progammed the enterprise Search in Business One, didn't you?
Didn't they have then a UID where i can open the form with?
With the System Information no Information about UID or Form will be shown.
Best Regards,
Sebastian
Paolo Manfrin
Hi Sebastian,problem is that the object id of the enterprise search is always the same (it is "COR_EntrSearch" btw) but the UID changes every time.
I guess you would like to open it like:
SwissAddonFramework.UI.Components.Form.OpenFormByKey("COR_EntrSearch", ???);
but ??? cannot be determinated.
Regards,
paolo
Martin Ehrensberger
Hi Sebastian,Its not the most elegant solution, but it works
Here you go:
Add a "newMenu" within coresuite customize. On my test-system the help-menu has uid 43564.
Within this "newMenu"-Rule add following code "MenuItem.GetFromUID("COR_Enterprise_Search").Activate();"
With the solution above, you can create a Menu Entry in the help menu, which then simulates a click on the Enterprise Search Menu (which usually lies in Administration\AddOns\EnterpriseSearch).
Nevertheless, in the next enterprise search version (which will be released upcoming week) there will be a new Menu to start EPsearch through the help-Menu anyway.
Hth,
Regards,
Martin Ehrensberger
0
Please sign in to leave a comment.
Comments
0 comments