From 5687b1d2580e6071707b72c6ccd768057f425e07 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Sat, 16 Feb 2008 04:13:29 +0000 Subject: [PATCH] [ 1894787 ] Script.html outdated --- client/src/org/compiere/apps/Script.html | 69 ++++++++++++++++++++---- 1 file changed, 58 insertions(+), 11 deletions(-) diff --git a/client/src/org/compiere/apps/Script.html b/client/src/org/compiere/apps/Script.html index 5acd345145..ec27d9afe3 100644 --- a/client/src/org/compiere/apps/Script.html +++ b/client/src/org/compiere/apps/Script.html @@ -5,18 +5,65 @@

Adempiere Scripting Help

-

Variables

-

The available variables are loaded from the environment. The variables starting - with '_' are global variables. The color codes are:

+

Context Variables

+

Window context variables start with a W_ prefix.
+Login context variables start with G_ prefix.

+ +

Event Variables

+
+

Callout:

+
    -
  • boolean (orange)
  • -
  • double (cyan)
  • -
  • int (blue)
  • -
  • Timestamp (magenta)
  • -
  • String (green)
  • -
  • Object (red)
  • +
  • A_WindowNo
  • +
  • A_Tab
  • +
  • A_Field
  • +
  • A_Value
  • +
  • A_OldValue
  • +
  • A_Ctx
  • +
+
+

Process:

+
+
    +
  • Process Parameters for the process start with P_ prefix, for example P_Name. If the parameter is a range then the + parameters will be P_Name1 and P_Name2
  • +
  • A_Ctx - the context
  • +
  • A_Trx - the transaction
  • +
  • A_TrxName
  • +
  • A_Record_ID
  • +
  • A_AD_Client_ID
  • +
  • A_AD_User_ID
  • +
  • A_AD_PInstance_ID
  • +
  • A_Table_ID
  • +
+
+

Login validator:

+
+
    +
  • A_Ctx
  • +
  • A_AD_Client_ID
  • +
  • A_AD_Org_ID
  • +
  • A_AD_Role_ID
  • +
  • A_AD_User_ID
  • +
+
+

Table and document model validator:

+
+
    +
  • A_Ctx
  • +
  • A_PO
  • +
  • A_Type
  • +
  • A_Event
  • +
+
+
+ +Wiki Reference: + -Please -check the updated online version on http://www.adempiere.org/technology/integration/scripting.html