Dynamic Functions

f-addaction

Used to add action. List of possible actions can be found here.

ReturnType: Logical

AppliesTo: Program

Syntax:

v-ok = dynamic-function('f-addaction' in v-xe-sourceprocedure, input sessionID, input Action, input Parameter).

Input Parameters:

Parameters Data Type Description
sessionID Integer ID of Program session
Action Character Name of action to run
parameter Character Parameter if needed

Used as:

procedure p-choose-continue-shopping:

/*----------------------------------
Field: v-continueshop
Event  : CHOOSE
-----------------------------------*/
assign
v-ok     = dynamic-function('f-addaction' in v-xe-sourceprocedure, input integer(f-get-xsest('dboard_xpsen')),  input 'runxeprog', input 'w/wshomcart.p')
p-action = 's-exit’.
end procedure. /* p-choose-continue-shopping */

f-addattrib-xaml

Used to set attribute of widget such as enabling/disabling assigning class. Some attributes are listed here.

ReturnType: Logical

AppliesTo: Widget

Syntax:

v-ok = dynamic-function("f-addattrib-xaml" in v-xe-sourceprocedure, input sessionID, input File, input Field , input Attribute, input Value).

Input Parameters:

Parameters Data Type Description
sessionID Integer ID of Program session
File Character Name of file
Field Character Name of field
Attribute Character Name of attribute to set
Value Character Value to the attribute

Used as:

procedure p-fillDataSet:

/*---------------------------------
Event  : DS-FILL
-----------------------------------*/
/* show lable that rfq is not available in button and make it disable */
v-ok = dynamic-function("f-addattrib-xaml" in v-xe-sourceprocedure, input 0, input "", input "v-norfqlabel-ttRequested” , input "sensitive", input "false").

/* add class to collapse buton */
v-ok = dynamic-function("f-addattrib-xaml" in v-xe-sourceprocedure, input 0, input "", input "v-collapse-ttRequested”  , input "ADD-ATTR", input "hide").
end procedure. /* p-fillDataSet */

f-addresult

Used to set value of widget.

ReturnType: Logical

AppliesTo: Widget

Syntax:

v-ok = dynamic-function("f-addresult" in v-xe-sourceprocedure, input sessionID,input RowID, input File, input Field ,input Value).

Input Parameters:

Parameters Data Type Description
sessionID Integer ID of Program session
RowID Rowid Rowid of file
File Character Name of file
Field Character Name of field
Value Character Value to the attribute

Used as:

procedure p-dsFill:
/*------------------------------------
Event  : DS-FILL
-------------------------------------*/
/* assigning value in v-pagenum variable into v-totalPage widget of screen */
assign
v-ok = dynamic-function('f-addresult'in v-xe-sourceprocedure, input 0, input ?, input '‘, input 'v-totalPage', string(v-pagenum)).
end procedure. /* p-dsFill */

results matching ""

    No results matching ""