Extensible Markup Language ( Customized Ribbon)
It seams like again , there is no way out here for adding the macro that run the forms & reports , what I'm trying to say is like below:
If I create a macro that open the sales order form and I call it " RunMyMacro" , then in XML it will look like below:
<button id="RunMyMacro" label="Run My Macro" onAction="MyMacro"/>
Now my question is suppose I have 100 forms in my application , then it means again that all those form must have macros like above if they are to be opened, for example:
(1) We use forms to open parameter queries and
(2) Data capturing
Unless I'm missing the point here , is there way out to simply use one line command to open forms???????????
Regards
Chris
If I create a macro that open the sales order form and I call it " RunMyMacro" , then in XML it will look like below:
<button id="RunMyMacro" label="Run My Macro" onAction="MyMacro"/>
Now my question is suppose I have 100 forms in my application , then it means again that all those form must have macros like above if they are to be opened, for example:
(1) We use forms to open parameter queries and
(2) Data capturing
Unless I'm missing the point here , is there way out to simply use one line command to open forms???????????
Regards
Chris
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can put the form's name in a string variable, variable's value depend on what you want to achieve.
ASKER
Exactly this what I thought , but I can do that ,and then call from XML on action, right! then what the second & third form?
You could create a method that reads the IRibbonControl Id and accordingly load the form you need...maybe you can do the mapping on a table and accordingly load the proper form...
You'll need to explain use exactly what you want to do. For now, your explanations are way too vague.
Plus, you can have more than one ribbon in the database, and each form can use a specific ribbon.
Plus, you can have more than one ribbon in the database, and each form can use a specific ribbon.
ASKER
And the procedure need to be in a standard module.
But how are you going to call it in XML to be opening the required form without specifying the parameter , please demonstrate how are doing it by using the following :
(1) Sales Order form
(2) General Journal form
(3) Payment form.
(4) Receipts form
Regards
Chris