Applicative Context & Paths Functions

This page discusses:

CreateDialogCommand

The CreateDialogCommand is used to launch a new User-defined dialog. These dialogs are created using Know-how Apps UX context and must be deployed in the runtime view or you must have the component containing the dialog definition loaded in the session.

Signature

CreateDialogCommand(iDialogName: String) : DialogCommandInvocation

Arguments

NameInput / OutputRequired?TypeComment
iDialogNameInYesString-

Example

let myCustomDialog(DialogCommandInvocation) 
myCustomDialog = CreateDialogCommand("myDialog") 
myCustomDialog.StartDialog()

GetApplicationContext

GetApplicationContext can be used only in the runtime context of an installed Know-how App. Its goal is to retrieve the active selection in this environment and allow the script to interact with it.

Signature

GetApplicationContext() : ApplicationContext

Example

let mySelection(ObjectPath) 
let myAppliCtx(ApplicationContext) 
myAppliCtx = GetApplicationContext() 
mySelection = myAppliCtx.ActiveObject

PLMKbaAppliComponent.VerifyConsistency()

VerifyConsistency is an expert check used in Quality Rules Capture PLM checks. This method ensures that the application and all its content is valid for use. It checks the prerequisite errors and overlapping definitions between all embedded components.

Signature

PLMKbaAppliComponent.VerifyConsistency (iThisCheck: KWECheck) : Boolean

Arguments

NameInput / OutputRequired?TypeComment
iThisCheckInYesKWECheck-

ReturnType

Boolean

Example

let myAppliComponent(PLMKbaAppliComponent) 
... myAppliComponent.VerifyConsistency(this)

PLMKbaAppliConfiguration.VerifyConsistency()

Signature

PLMKbaAppliConfiguration.VerifyConsistency, iThisCheck: KWECheck) : Boolean

Arguments

NameInput / OutputRequired?TypeComment
iThisCheckInYesKWECheck-

ReturnType

Boolean

PLMKbaBusinessApplication.VerifyConsistency()

Signature

PLMKbaBusinessApplication.VerifyConsistency, iThisCheck: KWECheck) : Boolean

Arguments

NameInput / OutputRequired?TypeComment
iThisCheckInYesKWECheck-

ReturnType

Boolean