James,
First, let's take a look at what a service execution is
When you issue a service call, you are issuing a call to the form you are
targeting -- just like when you do a create or a set or a get operation. So,
you are working IN THE CONTEXT of the form that you have specified in the
service call. The key is that there is no insert or update performed to the
database when the service call is issued. It will perform all the filters that
fire on service and return whatever fields are requested by the service call,
but that is all. If you did specify an entryID with the service request, it
will perform the operation within the context of THAT entry. In other words,
if you reference a field and that value is not in the input list of fields, it
will get the value from the entry in the database for processing. If you do
not specify an entryID with the service request, the operation is independent
of any existing entry and any reference to a field that is not present in the
input list (or loaded by a previous filter operation) will be NULL.
OK, now that you understand what a service call is and how it works...
The answer to your question is -- Set Fields and Push Fields work EXACTLY THE
SAME within a Service call as they do for any other call.
A Set Fields will set fields on the current transaction record (within the
context of a single entry if an entry ID was specified or for a blank entry
if no entry ID was specified). Note that if you specified an entryId, there is
NO update of that entry, the set fields will update the transaction and the
transaction values at the end are what are returned by the service call in the
result parameters.
A Push Fields will operate on some other entry in the system as specified by
the push fields qualification.
Does this give you what you need?
Doug Mueller
-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:arslist@ARSLIST.ORG] On Behalf Of James Smith
Sent: Tuesday, December 30, 2014 10:41 AM
To: arslist@ARSLIST.ORG
Subject: Service Execution - Set Field and Push Field
Hi All and A Happy New Year,
It might be a simple question for many of you but I have no clue about it. I
need to know the difference between set field action and push field action in a
service execution option of a filter. I am not expecting the basic difference
between set field and push field action.
Cheers!
James
___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Where the Answers
Are, and have been for 20 years
___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Where the Answers Are, and have been for 20 years