We are working on automating some of our migrations an this API is allot better than some of the old C stuff...but it's still a bit for me to get used to. :)
-----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black Sent: Tuesday, February 26, 2008 8:47 AM To: [email protected] Subject: Re: API: Rename Form LJ, No problems. I think it is a fair question to ask. (And I would guess that other programmers would suffer the same confusion.) I personally do not generally like relying on inherited methods/fields for a higher level object. Do not get me wrong, as a function/design I have no problem delegating the work to a super class. I just prefer the idea of having a "local method" that does the echo to the super class to make using the higher level class more obvious. There are many methods that are inherited for classes that are of little use to most programmers (like most of the stuff from java.lang.Object for example) that are needed for technical reasons, but are not very helpful to the "day to day" tasks of the higher level object. I prefer the approach that com.bmc.arsys.api.Form has a method of setNewName(String) and that the method then may call the super.setNewName(String) method. ( But maybe that is just my preference/test.) -- 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 Tue, Feb 26, 2008 at 10:10 AM, LJ Longwing <[EMAIL PROTECTED]> wrote: > That was the key....sorry I didn't find it myself. Thanks > > -----Original Message----- > From: Action Request System discussion list(ARSList) > [mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black > Sent: Monday, February 25, 2008 9:38 PM > To: [email protected] > Subject: Re: API: Rename Form > > LJ, > > I have not tested it, but I would try the setNewName(String newName) > method inherited from class com.bmc.arsys.api.ObjectBase. I would bet > that is the "right way" to change the forms name. > > HTH > -- > 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 Mon, Feb 25, 2008 at 11:14 PM, LJ Longwing <[EMAIL PROTECTED]> wrote: > > I'm using the 7.1 Java API and trying to rename a form. After I > have > connected here is my code > > Form frm = > conn.getForm("Old"); > frm.setKey("New"); > conn.setForm(frm); > > > I get the Form object just fine > it sets the new Key without > error > when I try to use the '.setForm' method I get error > > > Exception in thread "main" ERROR (303): Form does not exist on server; > New > > at com.bmc.arsys.api.ProxyJRpcBase.verifyStatus(Unknown Source) > > at com.bmc.arsys.api.ProxyJRpcBase.verifyStatus(Unknown Source) > > at com.bmc.arsys.api.ProxyJRpcBase.a(Unknown Source) > > at com.bmc.arsys.api.ProxyJRpcBase.arCall(Unknown Source) > > at com.bmc.arsys.api.ProxyJRpc.ARSetForm(Unknown Source) > > at com.bmc.arsys.api.ARServerUser.setForm(Unknown Source) > > at App.main(App.java:107) > > > > My question is, of course the form 'New' doesn't exist...but Old > > does...and I'm using it as a Form object, so it should be able to > do > what I'm trying to do...but due to the fact that I'm changing > the > unique identifier for the object, it can't seem to find it > under its > new name. Any suggestions out there? ____________________________________________________________________________ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

