Javascript functions in Javra IDE

getCurrentScreen

Description: get the current screen object. It returns the screen object.

Syntax:

getCurrentScreen()

Usage:

var obj = x.getCurrentScreen();

fGetValue

Description: Get widget value from the screen

Syntax:

fGetValue([file],[field],[screen object])

Where,
file : File name
field : Name of the field
Screen object: screen object (Optional)

Usage:

var obj     = x.getCurrentScreen(),
    custnum = x.fGetValue('customer', 'custnum', obj);

pResult:

Description: Assigns value on a screen widget.

Syntax:

pResult([file], [field], [value], [screen object])

Usage:

var obj = x.getCurrentScreen();
x.pResult('customer','name', 'John Doe', obj);

triggerXfilesEvent

Description: Runs the backend event

Syntax:

x.triggerXfilesEvent([Event type], [file], [Field], [parameters separated by “|”])

Usage:

x.triggerXfilesEvent("choose", "", "v-calculate", x.fGetValue('customer', 'custnum'));

pAction

Description: Runs the predefined set of actions

Syntax:

pAction([action],[parameter])

Where,

action: Possible set of actions. Various actions supported currently are:

OPENLINK: Opens the link specified in parameter

S-REFRESH: triggers the s-refresh action in backend

getXpsenTab

Description: Get the parent screen object

Syntax:

getXpsenTab([screen object])

Usage:

var obj       = x.getCurrentScreen(),
    objMaster = x.getXpsenTab(obj);

results matching ""

    No results matching ""