Seroche wrote:
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Remedy Maniac
Sent: Wednesday, February 27, 2008 4:50 AM
To: [email protected]
Subject: what does a push field do ?
dear listers,
whenever I try to open one of the AL which contains a Push Field action,
and I try to read the Push Field, I get a error message and I am not
able to read what the Push field does because "one or more fields have
been deleted from the form ..."
I have a backup of the AL so I can read the following for that Push
field action:
action {
push-field : [EMAIL PROTECTED]
}
My question is simple: what does all this mean?
So "TEST2" is my form and 536871161 one of the field. But what about the
rest?
Where to find the references?
Thank you
Serouche
Seroche,
Taking your original action:
action {
push-field : [EMAIL PROTECTED]
}
The syntax starts along the lines of
Push field No\Server length\Server\Schema length\Schema\
So, in your example we have
Push field no 0 \
length of next field (1) \
'@', which means this server \
length of next field (16) \
Name of Schema which is here called 'TEST2' which is not 16 chars long.
It looks as though someone has changed the name of the Schema in the
definition file. I would therefore suggest that you change the '16' to
'4' and try an import again. It might also be worth checking whether
there is a field with the ID of 536871161 in the form TEST2.
For you information the rest of the push-fields line
(1\536871161\0\4\5\101\6\0\) can be interpreted as:
1 => Assign Type Field (AR_FIELD in ar.h)
536871161 => Field Id in remote schema (TEST2) we are pushing to
0 => This states that there is no "Push Field If" qualification
specified in the AL
4 => 'If No Requests Match' set to "Create a New Request"
(AR_NO_MATCH_SUBMIT)
5 => 'If Any Requests Match' set to "Modify All Matching Requests"
(AR_MULTI_MATCH_MODIFY_ALL)
101 => Assign type is a Value (AR_ASSIGN_TYPE_VALUE + 100)
6 => Enum data type (AR_DATA_TYPE_ENUM)
0 => the first item in the enum list (e.g. 'New' for field Status
(ID 7) on a newly created form)
Hope all this helps,
Ian
------------------------------------------------------------------------
Ian Trimnell, AR System Lead Developer (amongst other jobs),
Specialist Support & Information Team, Academic & Administrative
Computing Service
Open University, MILTON KEYNES, UK
Phone: 01908 653741 web: http://www.open.ac.uk/
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"