Page History
...
The information you trace appears in the trace window when you execute the Framework in trace mode. Here is an example of a AJAX function tracing a FETCH operation:
Subroutine Name(GET) *
...
Get the employee number supplied and trace it Execute
...
Subroutine(GETA)
...
With_Parms(EMPNO
...
'
...
'
...
1
...
#EMPNO)
...
...
Use Builtin(VF_TraceAvalue)
...
With_Args('
...
GET received employee number' #EMPNO)
...
Fetch Fields(#PSLMST)
...
From_File(PSLMST)
...
With_Key(#EMPNO)
...
Issue_Msg(*YES)
...
Execute Subroutine(PUTA)
...
With_Parms(IO_
...
STATUS '
...
'
...
1 #IO$STS) *
...
If the record was found trace the salary and surname values retrieved If_
...
Status Is(*OKAY)
...
...
Use Builtin(VF_TraceNvalue)
...
With_Args('
...
GET request found salary' #Salary)
...
Use Builtin(VF_TraceAvalue)
...
With_Args('
...
GET request found surname' #Surname)
...
…etc…
VF_TRACEAVALUE and VF_TRACENVALUE
...
Example 1: This code fragment is seen in many applications generated by the Program Coding Assistant:
Use Builtin(VF_TRACEAVALUE) With_Args('#VF_EVENT value is unknown and has been ignored' #VF_EVENT)
Example 2: Trace some alpha values:
Use Builtin(VF_TRACEAVALUE) With_Args('Department and section are' #DEPTMENT #SECTION)
Example 3: Trace some numeric values:
Use Builtin(VF_TRACENVALUE) With_Args('Salary=' #SALARY)Use Builtin(VF_TRACENVALUE) With_Args('Zip Code=' #POSTCODE)