I have an app I built that I want to launch from quotes. Currently we have two menus, one for quote entry and the other for quote tracker. What I need to do is when quote tracker is launched, I need to pass a parameter to my app that says it should also run in read only mode. If Quote Entry is launched though, I need to be able to make changes in my app. What can I look at in the quote application to determine if it’s running as a tracker instead of an entry menu?
Since both Quote Tracker and Quote Entry use the same app, the best way I can think of would be to make 2 versions of the layer that you’re putting on the Quote form (a layer that you’ll apply to tracker, and one you’ll apply to quote entry).
On the layer you apply to tracker, pass a value when you launch your new app. In the layer for Quote Entry, don’t pass the value (or pass a different value). Then you can just look for that value when your app launches, and apply read only mode if it’s found.
I would have a read only and normal version on under different Menus and launch each as needed from the app-open event ( referencing the appropriate menu)
My understanding of your post is you have a custom app… let’s call it MyApp.
You have (2) menus built from that app.
MyApp
MyAppReadOnly
When you’re in Quote Entry, and you click your button, you want to launch MyApp.
But if you’re in Quote Tracker, and you click your button, you want to launch MyAppReadOnly.
Is this correct?
What you need to do, on your Quote Entry button event is to include a condition. I would base this on the value of TransView.SysReadOnly.
In Quote Entry… TransView.SysReadOnly = false.
In Quote Tracker… TransView.SysReadOnly = true.
So, your button to launch your app from Quote Entry/Tracker should have a condition of:
{TransView.SysReadOnly} === false
True branch… app-open MyApp
False branch… app-open MyAppReadOnly
Thanks David, “{TransView.SysReadOnly}” is exactly what I was looking for.