Highlighted
Super Contributor.. Super Contributor..
Super Contributor..
249 views

How does $L.action get assigned a value

When you click the button "Reopen" on an incident record, it executes the Process im.reopen.

Inside the process im.reopen, there's the following code:

if ($L.action="reopensave") then ($L.do.reopen.save=true)

How did the $L.action gets its value?

I was trying to call the im.reopen via script but it does not execute because the value of $L.action is "reopen" only.  It doesn't recognize it if I set the value in the script by using the code system.vars.$L_action = "reopensave"

0 Likes
1 Reply
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How does $L.action get assigned a value

In External Access Definition is a service name "MobilityIncident1" that triggers "reopensave" action. So it's called via web services.

If you look the state definition "im.view" (which bundles together display actions, display screens, forms..), there are two actions calling "im.reopen".

Condition of action "reopen" is true, but "reopensave" is $G.bg. Latter means it can be run. if it has been called "from the background". So IMO, you can't call that action without running the calling code in a background.

It might be easier to modify the process "im.reopen" and set for example

if ($L.action="reopensave" or $yourVariable=true) then ($L.do.reopen.save=true)

Now you can call a "standard" reopen and trigger reopen+save functionality by setting the variable true/false in your code.

---
Moving on, this account is no longer active. Best regards, Kelalek
- So Long, and Thanks for All the Fish
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.