did anyone tried launching a dashboard or menu item from configurator (runtime) button click event?
if so, could you please give me some pointers?
below is the code i tried, but not working very well.
i am in E10 … what one unusual thing i did is, i copied across EpiClientLib.dll from client to server assemblies folder, added the EpiClientLib.dll reference in Page Load event of the configurator, so that I could access Ice.Lib.Framework.
under button click event in configurator, here is the code i am playing…
I don’t understand why you copied the EpiClientLib to the Server Assemblies folder… that won’t work there are a ton of dependencies, further more the configurator RunTime runs client side, you should be able to just do the below without moving any DLL’s around
But system raised error saying “menu id not valid for current user”. there is no security restriction in our system for job tracker . anyone can access it. Donno why it says that error. It is the same case if i call any other menu item from main menu or process menu.
system raised error saying “Invalid request – object Sender must be Core.Session or implement ILaunch”
(Exception caught in: Ice.Lib.EpiClientLib
Error Detail
Message: Invalid request – object Sender must be Core.Session or implement ILaunch
Program: Ice.Lib.EpiClientLib.dll
Method: GetSessionFromSender
Client Stack Trace
at Ice.Lib.Framework.FormFunctions.GetSessionFromSender(Object sender)
at Ice.Lib.Framework.EpiBaseAdapter.get_Session()
at Ice.Lib.Framework.EpiBaseAdapter.BOConnect()
at Erp.UI.App.JobTracker.Transaction.TransactionLoad())
because the error clearly says it needs session object, thought I may need to use ILaunch out of EpiClient dll. therefore, copied across the EpiClient dll to server assemblies and played with it. however, you clearly mentioned no object exist in configurator and that dll has lot of dependencies. I agree with it. I removed that dll.
Really curious to find a way in achieving my objective.
You can launch from the configurator using this syntax. This is mapped to an Input control so if you create a button make sure to change this part of the code below (LaunchJobTracker) to the name of your control. You could also use a menu id instead of the library name