[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: PeopleCode.....
The syntax for doing what you want is:
First, the function you want to call must already exist on the other record.
On the field event of the record that needs to execute the other record's
PeopleCode, this is what you do:
(1) you declare the function
(2) you call the function with any optional parameters.
To declare the function: Declare Function {function name} PeopleCode
{record}.{field} {field event};
To call the function: function_name(parameters);
In my example below,
the FUNCTION NAME is: EDIT_RUNCNTL_ID
the RECORD name where the actual people code exists is called: FUNCLIB_PC
the FIELD name that has the people code associated with it is called:
RUN_CNTL_ID
the EVENT that triggers the execution of the people code is called:
FieldFormula
Putting all this together, the statement to call this code would be:
Declare Function edit_runcntl_id PeopleCode FUNCLIB_PC.RUN_CNTL_ID FieldFormula;
edit_runcntl_id(RUN_CNTL_ID);
Hope this helps some.
"Aguirre, Jose" <JAguir@LSUHSC.EDU> on 01/07/2002 05:34:17 PM
Please respond to sqr-users@list.iex.net
To: SQR-USERS@list.iex.net
cc: (bcc: Rick Creel/IT/Aon Consulting)
Subject: PeopleCode.....
Hi all,
I'm trying execute a record field PeopleCode Event from another record
field PeopleCode Event, if anyone has done that, please send me the syntax.
Thanks in advance,
Jos
é Aguirre