How to pass parameters from MenuSuite to opened form

azwierzchowski
Member Posts: 15
In menusuite user can create hyperlink, and send form to menusuite as links. But creating links in MenuSuite designer is impossible. Fortunatelly editing hyperlinks works, so you can export MenuSuite to text file, add hyperlink here, and import it back to Navision. Then you edit change hyperlink in MenuSuite designer.
When form is opened from this menu item, it fires OnHyperlink trigger, so you can modify hyperlink, and decide what to do in this trigger (for example apply filters, init variables...)
The only problem is that import treats // as comment and imports next line as next part of Hyperlink, so before import you must change // to something else (for example / /), and after impord edit menusuite in designer and change it back to //
And here is my example of MenuSuite (with "navision://client" changed to "navision:/ /client"):
OBJECT MenuSuite 80 Partner
{
OBJECT-PROPERTIES
{
Date=05-10-11;
Time=14:25:43;
Modified=Yes;
Version List=;
}
PROPERTIES
{
}
MENUNODES
{
{ ;[{DF601C8A-07F7-4841-8929-9F2065BCB302}] ;NextNodeID=[{3AB30C12-4A41-4E75-B517-C5C7AA83C60D}] }
{ MenuShortcut ;[{3AB30C12-4A41-4E75-B517-C5C7AA83C60D}] ;Name=Link Test;
CaptionML=PLK=Link Test;
MemberOfMenu=[{F8D2429D-034B-4C58-9B5E-81BE962DB1BC}];
ParentNodeID=[{F8D2429D-034B-4C58-9B5E-81BE962DB1BC}];
ShortcutURL=navision:/ /client/run?target=Form%2016%26MYVARIABLE=123;
Visible=Yes }
}
}
It will open form 16 and fire OnHyperlink trigger with URL = [url=navision://client/run?target=Form%2016%26MYVARIABLE=123]navision://client/run?target=Form%2016%26MYVARIABLE=123[/url]
When form is opened from this menu item, it fires OnHyperlink trigger, so you can modify hyperlink, and decide what to do in this trigger (for example apply filters, init variables...)
The only problem is that import treats // as comment and imports next line as next part of Hyperlink, so before import you must change // to something else (for example / /), and after impord edit menusuite in designer and change it back to //
And here is my example of MenuSuite (with "navision://client" changed to "navision:/ /client"):
OBJECT MenuSuite 80 Partner
{
OBJECT-PROPERTIES
{
Date=05-10-11;
Time=14:25:43;
Modified=Yes;
Version List=;
}
PROPERTIES
{
}
MENUNODES
{
{ ;[{DF601C8A-07F7-4841-8929-9F2065BCB302}] ;NextNodeID=[{3AB30C12-4A41-4E75-B517-C5C7AA83C60D}] }
{ MenuShortcut ;[{3AB30C12-4A41-4E75-B517-C5C7AA83C60D}] ;Name=Link Test;
CaptionML=PLK=Link Test;
MemberOfMenu=[{F8D2429D-034B-4C58-9B5E-81BE962DB1BC}];
ParentNodeID=[{F8D2429D-034B-4C58-9B5E-81BE962DB1BC}];
ShortcutURL=navision:/ /client/run?target=Form%2016%26MYVARIABLE=123;
Visible=Yes }
}
}
It will open form 16 and fire OnHyperlink trigger with URL = [url=navision://client/run?target=Form%2016%26MYVARIABLE=123]navision://client/run?target=Form%2016%26MYVARIABLE=123[/url]
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions