Mathieu,
 
Add a separate active link just after the commit that either grabs the
lastid (when creating a new record) or the current request id (when
modifying an existing record).  Set the value to a tmp field. Use this
tmp field in the open window command in place of the lastid keyword.

HTH
Stephen

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Mathieu Pitre
Sent: Thursday, November 16, 2006 3:31 PM
To: [email protected]
Subject: Update/Save button(Commit changes)

Hi all,

I have a question concerning the commit change action.

I have a Update/Save button in my application which I use to submit and
save a request. I am using 4 actions within the active link:

1- Commit Changes
2- Open Window - Window Type = Modify
Qualification =  'Request ID' = $LASTID$ (To get the last saved entry)
3- Run Process = SET-CHANGE-FLAG 0 (To close the window without any
warning)
4- Close Window (To close the original window)

The problem is quiet simple. The behaviour is good when I sumbit the
entry
($LASTID$) but not when I do a modify(Update) because the $LASTID$ is
not applicable for the modify event.

Can I use something that will always work. Basicly I am trying to Submit
and Modify a record by clicking on a button(Update/Save) without getting
a blank form. I want to user to see the same entry once they click on
the Update/Save button. Is there something for last modified entry?

Mathieu Pitre

________________________________________________________________________
_______
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where
the Answers Are"

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to