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"