I'm trying to find a way in RTC to be able to run different versions of pages by company, for example a Sales Order or Customer Card...I can create the additional pages, but can't figure out a way to change which one runs depending on the company. Does anyone know of a solution for this? Thanks in advance for any help!
0
Comments
This code needs to be run on the OnOpen Trigger The Error(''); is needed because you can't run currpage.close on the OnOpen trigger (known issue, reported to MS, this is their workaround), it just closes the page.
RunHyperlinkRTC(): Is a function that runs a Hyperlink to open the Card in New-Mode, otherwise you can't use the standard "sparkle" new buttons
Here is the RunHyperlinkRTC Function: Name DataType Subtype Length
Utility Codeunit Online Map Utilities
And the last one: Name DataType Subtype Length
DomDoc Automation 'Microsoft XML, v3.0'.DOMDocument
DomNode Automation 'Microsoft XML, v3.0'.IXMLDOMNode
WSHNetwork Automation 'Windows Script Host Object Model'.WshNetwork
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
every time Job Card should be opened, my enhanced job card gets opened instead. Pages defined in Properties are supported too.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
For result action i guess that's not possible.
Functions could be implemented in the alternative Page as well and called after the Runmodal to give the result back to the original caller.
I don't say it's the best thing to do, or even recommend this [-X but i think most of the requirements can be done with this.
btw: 2009 R2 is required for the hyperlink function.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
@deV.ch
Im using hyperlink(..) for this and sometimes it errors out for no reason. Would you mind sharing that function ExecuteShell() ?
Name DataType Subtype Length
WSH Automation 'Windows Script Host Object Model'.WshShell
Thanks, has this too but it didn't start. Just revisited the code and noticed the create "run on client" parameter.. :oops:
How do you bypass the security warning from NAV?
But I guess if you set up SPN then you wouldn't get a message at all.
Microsoft Dynamics NAV Security Notice
You are about to connect to 'DynamicsNAV' on server 'vm004', which is not your current default connection setting.
This can create a security risk.
Do you want to continue?
Yes No
If you are working on your default instance (like it should be in a normal customer environment) you won't get this message.
Are you using a custom shortcut (for connecting to a specific instance) in you scenario?
Sorry for going off topic and thx.
And then from the Menusuite, I removed the page and added a codeunit, which checks for the company information and opens the page accordingly.
It was possible for me as I removed all the default menuitems from the menu and given limited options.
Regards,
Raveendran.BS