Mark, You might try the keyword $ FIELDID $ or maybe more reliably $ FIELDNAME $. ($ FIELDNAME $ can be translated to a field ID with the special process "Application-Map-Names-To-Ids". However you may have to use a filter to get at that info this way too. It maybe better to use the string names and then do what I am going to suggest next. :) )
Now how to get the "next" field after the current field..... I would suggest that you create and maintain a simple list of "From" "To" pairs. Create a row for every Attachment FIELDID (or name) and have it return the value that should be used next. Keep in mind that when the "last" field is selected you likely need to return some kind of error message or try to loop over to the top of the list. ( Your choice.) Hope that helps. -- Carey Matthew Black Remedy Skilled Professional (RSP) ARS = Action Request System(Remedy) Love, then teach Solution = People + Process + Tools Fast, Accurate, Cheap.... Pick two. On Thu, Sep 18, 2008 at 4:47 AM, Mark Milke <[EMAIL PROTECTED]> wrote: > Hi Listers, > > the PERFORM-ACTION-ADD-ATTACHMENT call requires the <field id> of the > attachment field. > > In effort to build kind of a read only attachment field I took over > the control by adding dedicated buttons for Adding, Deleting and > Displaying attachments. > > Having >1 attachment field in an attachment pool I need to figure out > the id of the attachment field however, otherwise I will always add/ > replace the attachment of the first attachment field. > > How do I get the ID of an the currently focused Attachment field? > > > Thanks, > Mark _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"