The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
How do I add a right-click lookup option to a main toolbar button?
Posted: 11 Mar 09 9:29 AM
|
I've created a new mainview, and the big button for it on the left-hand side needs the lookup/insert/etc options added to it.
I've created a "Services NavBar" section in my menu, and so can see the options okay when I right-click, but can't quite work out what to enter. The Account button's "lookup" references a Function called "Lookup:AccountCompany", but I can't find where that is in the plugins or code.
I do have a Lookup, hooked into the "SERVICE" table called "Service Name", but this doesn't show up in the list in the functions drop-down.
I've created a Secured Function called Lookup > Service > Lookup Service Name, which seems to have a function name of LookupServiceName, but I'm not sure where to put this either!
Thanks,
Mark |
|
|
| |
| |
| |
| |
|
Re: How do I add a right-click lookup option to a main toolbar button?
Posted: 16 Mar 09 8:03 AM
|
I don't know why these groups are not shown. They must be displayed. But there is another way to call lookup. Create Active Script (for example, call it "ServicesLookup" and save in "Personal" family) with following content:
option explicit sub Main Application.BasicFunctions.DoInvoke "Lookup", "Service:Service Name" end sub
And then in menu plugin select Active Script for Action and Personal:ServicesLookup for Argument. |
|
|
|
Re: How do I add a right-click lookup option to a main toolbar button?
Posted: 16 Mar 09 9:42 AM
|
I've created a Secured Function called Lookup > Service > Lookup Service Name, which seems to have a function name of LookupServiceName, but I'm not sure where to put this either! |
|
If you did want to use Secured Function, then do the following.
- Create new or edit existing Global Script. Add the following lines to it:
Function OnBeforeFunctionExecute_LookupServiceName(functionNumber, functionName) Application.BasicFunctions.DoInvoke "Lookup", "Service:Service Name" OnBeforeFunctionExecute_LookupServiceName = True End Function
Where LookupServiceName is Actial Name of secured function.
- In your menu plugin select Function in Action drop down list and Lookup:Service Name in Argument field.
|
|
|
| |
| |
|
Re: How do I add a right-click lookup option to a main toolbar button?
Posted: 24 Mar 09 5:47 AM
|
I have a Custom Menu for my SERVICES stuff, this contains a top-level entry (just under "Menus") called "Services NavMenu". In this I put the various actions I want on the right-click menu.
Then, on my toolbar item for the main Services button, I type in "Services NavMenu" for the "Popup menu" option, and it automagically uses the relevent menu commands. |
|
|
|