Develop Know How App for an existing PPR Context type object and execute script

Sindhu N

Develop Know How App for an existing PPR Context type object and execute script

Hello i would like to know how i can integrate an existing PPR context object into a Know How App and add functionalities like button clicks to execute scripts. I am able to create independent Apps and various commands on button clicks but would like to know the possibility for this use case.

Thanks.

Edited By:
Sindhu N[CENIT AG] @ Dec 21, 2022 - 10:04 PM (IDLW)

Sindhu N

RE: Develop Know How App for an existing PPR Context type object and execute script
(in response to Sindhu N)

I have tried something on my own but not fully successful, not sure what i miss:

I have tried to run the EKL action programmatically from another EKL action: 

let Root (VPMReference)
Root = GetEditorRoots( "VPMReference" ).GetItem(1)
PopupMessage("Root: ", Root.name)
let action (AdvisorAction)

let actionsList(List)

actionsList=Root.Query("AdvisorAction","x.Name  == "myscript"")
PopupMessage("actions: ", actionsList.Size())
action=actionsList.GetItem(1)
PopupMessage("run action", action.Name)
action.Run()

The above code shows the values correctly in the pop up but just doesnot run the EKL action. Is it not possible from an ekl action or something more needs to be done.