Thread: Re: [Arsperl-users] Errors opening a form
Brought to you by:
jeffmurphy
|
From: Peter F. <Pet...@LP...> - 2007-08-22 20:16:23
|
Damn! I do not have any control over the Remedy side so I doubt there is
anything I can do about it. Every time I start to use ARSPerl it throws up
another roadblock.
Thanks for the reply, Jarl.
--
Regards,
Peter
The President, he's got his war
Folks don't know just what it's for
Nobody gives us rhyme or reason
Have one doubt, they call it treason
Lyrics from "Compared to What?"
by Eugene McDaniels, circa 1969
On Wed, August 22, 2007 15:37, Jarl Grøneng wrote:
> I think this is because ARSPerl (or only the OO interface?) does not
support gaps in enum fields index..
>
> Old version has index startig with 0, and then 1,2,3. In version 7 you
can specify your own index; ie: 10, 20, 30, 40.
>
> --
> Jarl
>
>
> On 8/22/07, Peter Farr <Pet...@lp...> wrote:
>> I am having trouble using the OO interface on a remedy 7 system. When I do
>> a "new ARS::form" or $h->openForm I get a eries of messages about caching
>> fields, then I see:
>>
>> ...
>> caching field: Ticket Status
>> datatype: char
>> caching field: Assignee Group+
>> datatype: char
>> caching field: Identifier
>> datatype: char
>> caching field: Change Scheduled Start Date
>> datatype: time
>> caching field: Priority*
>> datatype: enum
>> Sorry. I'm not sure what to do with non-regularLists of enums.
>> (this enum is type "customList")
>> listStyle =
>> Died at /usr/lib/perl5/site_perl/5.8.8/i686-linux/ARSOOform.pm line 74.
>> at /usr/lib/perl5/site_perl/5.8.8/i686-linux/ARSOOform.pm line 74...
>> --
>> Regards,
>> Peter
>>
>> The President, he's got his war
>> Folks don't know just what it's for
>> Nobody gives us rhyme or reason
>> Have one doubt, they call it treason
>> Lyrics from "Compared to What?"
>> by Eugene McDaniels, circa 1969
>>
>>
>>
>>
>>
>> -------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems? Stop.
>> Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
>
> -------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
|
|
From: Jeff M. <jcm...@je...> - 2007-08-22 20:24:39
|
Peter Farr wrote: > Damn! I do not have any control over the Remedy side so I doubt there is > anything I can do about it. Every time I start to use ARSPerl it throws up > another roadblock. > > Thanks for the reply, Jarl. Make a simple form, if you can, that duplicates the problem and submit the form definition and script. We can then look into adding that functionality. jeff |
|
From: Peter F. <Pet...@LP...> - 2007-08-23 15:23:30
|
The reason I switched to the OO version of the interface was because the old style one did not return any data. I could do calls like ars_GetListField, ars_GetFieldByName and ars_GetServerInfo, but any calls that tried to retrieve data like ars_GetListEntryWithFields or ars_GetListEntry did not return anything. When I asked one of the Remedy developers to trace it on their side he could see the API calls for login, ars_GetListField (or whatever), but never saw anything in the log if I tried ars_GetListEntry. It is like the API never sent any request at all to the server if it involved reading field contents. When I switched to the OO style we could see all the calls come across in the trace, including $c->getFieldID() and $c->getAsHash(), and even better, I actually get data back into Perl. Then we ran into the openForm() issue, which we have resolved by creating a self-join with no enumerated fields(thanks Jarl). I am pretty much ready to just switch to C if I run into any more issues. I am on a very short schedule. -- Regards, Peter Farr Consulting Principal, LPI Solutions Helping to design, build, manage and secure your data infrastructure 416.436.5977 Pet...@LP... http://www.LPI-Solutions.com "They have discovered that they not only hate their enemies but everyone who does not share their hatred, and that they want to fight and to force other people to fight." George Bernard Shaw, Androcles and the Lion On Thu, August 23, 2007 04:33, Thilo Stapff wrote: > As Jarl already explained, this is a problem with the new (since ARS > 7.0) "custom" enum lists. ARSperl 1.90 supports them, so this is > definitely a problem with the OO interface. > > Regards, > Thilo > > > Jeff Murphy wrote: >> Peter Farr wrote: >>> Damn! I do not have any control over the Remedy side so I doubt there >>> is >>> anything I can do about it. Every time I start to use ARSPerl it throws >>> up >>> another roadblock. >>> >>> Thanks for the reply, Jarl. >> >> >> >> Make a simple form, if you can, that duplicates the problem and submit >> the form definition and script. We can then look into adding that >> functionality. >> >> jeff >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Arsperl-users mailing list >> Ars...@ar... >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > |
|
From: Thilo S. <thi...@ap...> - 2007-08-23 16:13:03
|
The OO interface is just a layer on top of the standard ars_Get... functions. The $c->query() method, for example, uses ars_GetListEntry internally. Without having seen some code, I can only take a guess as to what went wrong with the failed ars_GetListEntry attempts: ars_GetListEntry could have been called with the wrong number of arguments (probably the firstRetrieve parameter missing). In this case, ars_GetListEntry is aborted before any connection over the network occurs. The way to detect this would be to check $ars_errstr after the ars_GetListEntry call, but if this is omitted the whole behaviour might indeed appear quite mysterious. Regards, Thilo Stapff Peter Farr wrote: > The reason I switched to the OO version of the interface was because the > old style one did not return any data. I could do calls like > ars_GetListField, ars_GetFieldByName and ars_GetServerInfo, but any calls > that tried to retrieve data like ars_GetListEntryWithFields or > ars_GetListEntry did not return anything. When I asked one of the Remedy > developers to trace it on their side he could see the API calls for login, > ars_GetListField (or whatever), but never saw anything in the log if I > tried ars_GetListEntry. It is like the API never sent any request at all > to the server if it involved reading field contents. > > When I switched to the OO style we could see all the calls come across in > the trace, including $c->getFieldID() and $c->getAsHash(), and even > better, I actually get data back into Perl. Then we ran into the > openForm() issue, which we have resolved by creating a self-join with no > enumerated fields(thanks Jarl). > > I am pretty much ready to just switch to C if I run into any more issues. > I am on a very short schedule. |
|
From: Thilo S. <thi...@ap...> - 2007-08-23 08:33:29
|
As Jarl already explained, this is a problem with the new (since ARS 7.0) "custom" enum lists. ARSperl 1.90 supports them, so this is definitely a problem with the OO interface. Regards, Thilo Jeff Murphy wrote: > Peter Farr wrote: >> Damn! I do not have any control over the Remedy side so I doubt there is >> anything I can do about it. Every time I start to use ARSPerl it throws up >> another roadblock. >> >> Thanks for the reply, Jarl. > > > > Make a simple form, if you can, that duplicates the problem and submit > the form definition and script. We can then look into adding that > functionality. > > jeff > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > |