Matt,

Ok.  Then I think the following will help some. While I am not sure I
can share my code, I think it is reasonable to discuss how I
approached the problem. So here are some of the comments I left in my
code to give you a few ideas about what you likely need to deal with
for your program.

"
// get connection to the source server (from xml config file I created)
// get connection to the target server  (from xml config file I created)

// verify source form exists on the source server
// verify target forms exists on the target server
// verify source field exists on source form (sourceField)
// verify source field does not exist on target form
// point the field object to the target form. (setSchema)
// point the field object to the target server connection (setContext)

// do some validity checking that I think really should be done by the
ARS server, but apparently is not. (Sigh)

// verify all display instances apply for the target form views
// remove any that do not apply
  // the source field has display instances
  // get the view info for the target form
  // verify that each displayinfo on the source field should be
applied to the target form

//   field option (required, optional, display only) - verify against
form type too!


// Now to actually do the work: update target form
  // make sure we still have a good connection.
  sourceField.create(); // this actually creates the field
  // verify field is now on the form
                // this did not work at first. I guess due to the lag in all of 
the
server threads seeing the field... so... connection must be set to use
admin thread...390600 and it now works.. cool!

 // loop for next form and repeat above steps
 // do not forget to logout
"

HTH

P.S. If you have specific questions feel free to ask them too. I am
sure I can talk about the API and what I know of how it works. :)

--
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 1/15/07, Matt <[EMAIL PROTECTED]> wrote:
Thanks for the reply, i'm looking into developing an api in java to get
this done, at least it would be re-useable too.

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

Reply via email to