Service Execution - Set Field and Push Field

2014-12-30 Thread James Smith
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


Re: Service Execution - Set Field and Push Field

2014-12-30 Thread Mueller, Doug
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


Re: Service Execution - Set Field and Push Field

2014-12-30 Thread Grooms, Frederick W
A filter running in a service operation is no different than a filter running 
in a submit or modify operation.  Set fields and Push fields work the same way. 
 The only difference for Set fields is that there is no automatic save to the 
database of the form's data.

If you are talking about the Service Action in a filter then you send data to 
the service in the input mapping and receive data back in the output mapping.

Fred

-Original Message-
From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of James Smith
Sent: Tuesday, December 30, 2014 12:41 PM
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


Re: Service Execution - Set Field and Push Field

2014-12-30 Thread Ray Gellenbeck
Others said it more eloquently, but mine is the shorter version...

You can remove the service execution portion of the question...they function 
the same way as they do in the other operations.

Set field - set the value of a field on the target/current form (client-side 
operation on the displayed/existing record/form)

Push field - set the value of a single or defined range of records in the 
database table (server-side operation on target record(s)).

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Where the Answers Are, and have been for 20 years