The ars_SetEntry call should rather look like this:

ars_SetEntry($c, "Form Name", $entryId, 0, $t{'Status'}, "Closed", ...

The "0" after $entryId is the "getTime" parameter. If it has a nonzero 
value, it can be used to prevent the change if the entry has been 
changed by another user after the "getTime" (seconds after Jan 1 1970).

Regards,
Thilo


Paizo wrote:
> thanks for your anwers.
> I still don't understand how you choose a specific trouble ticket, you 
> just call getfieldtable by passing a form name and change the status and 
> the diary by ars_setentry but of which ticket?!
> 
> 
> 2007/5/15, Jeff Murphy <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>>:
> 
>     Paizo wrote:
>      > Hi Listeners,
>      >
>      > I would like to know how to modify a trouble ticket, for example
>     change
>      > its status and write some lines on the diary field of the note. I
>     didn't
>      > find examples about this, can you give some hints please?
>      >
> 
>     Off the top of my head..
> 
>     $c = ars_Login(server, user, pass);
>     %t = ars_GetFieldTable($c, "Form Name");
>     ars_SetEntry($c, "Form Name", $t{'Status'}, "Closed",
>                     $t{'Diary'}, "All fixed!")
>         || die $ars_errstr;
> 
>     ars_Logoff($c);
> 
> 
> 
> 
>     something fairly close to that. Combine the above with the
>     documentation, and you should be on your way!
> 
> 
>     jeff
> 
>     -------------------------------------------------------------------------
>     This SF.net email is sponsored by DB2 Express
>     Download DB2 Express C - the FREE version of DB2 express and take
>     control of your XML. No limits. Just data. Click to get it now.
>     http://sourceforge.net/powerbar/db2/
>     _______________________________________________
>     Arsperl-users mailing list
>     [email protected] <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/arsperl-users
> 
> 
> 
> 
> -- 
> CFAH3 CUT-LASS
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Arsperl-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/arsperl-users


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Arsperl-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/arsperl-users

Reply via email to