Re: [Arsperl-devel] ars_export not returning expected output
Brought to you by:
jeffmurphy
|
From: Michiel B. <mi...@be...> - 2009-03-23 20:39:18
|
[moving to arsperl-devel mailinglist] Thilo, You're working on getting ARSperl to work with Remedy 7.5, thats good news! I only modified it a little to compile with the 7.5 libs, I changed infra/exsi.pl to pick up some new values from ar.h - where the comments did not indicate the variable types, and I modified the calls to ars_GetActivelink and the like. But I did not feel that to be enough to check into CVS. I've been looking at the whats-new documentation for 7.5 and saw an awful lot of new API calls for the debug functions. I guess you are not implementing those, right? Are you implementing the ARGetImage/ARSetImage etc calls? I noticed they implemented LOTS more new server information options than the ones they specified in the what's new guide... Is there anything I could do to help you with? Kind regards, -- Michiel Beijen Software Consultant +31 6 - 457 42 418 Bee Free IT + http://beefreeit.nl On Mon, Mar 23, 2009 at 17:50, Thilo Stapff <thi...@ap...>wrote: > Hi Michiel, > > as I understand it, only Jeff can create a release. > > However, I'd rather prefer to wait one or two weeks with this, since I'm > currently working on the 7.5 migration, which should definitely make it into > the next release. > > > Regards, > Thilo > > > Michiel Beijen wrote: > >> ** Actually, I can confirm this problem using ARSperl 1.91 and the 7.1 >> API. >> >> When use the 'head' version of ARSperl this does not occur - this is >> because Thilo Stapff has checked in some additions to ARSperl that did not >> make it to the 1.91 release. >> >> I will ask Thilo if he can create a 1.92 release. In the mean time, you >> can checkout the latest version from CVS and use that. >> >> Kind regards, >> -- >> Michiel Beijen >> Software Consultant >> +31 6 - 457 42 418 >> Bee Free IT + http://beefreeit.nl >> >> >> On Mon, Mar 23, 2009 at 02:36, Carey Matthew Black <bla...@gm...<mailto: >> bla...@gm...>> wrote: >> >> Bhupesh Gupta, >> >> Again.. I am guessing about this... Maybe your using a 64-bit Perl >> install? >> >> I have seen many references to the idea that the ARS API ( when >> version is < 7.5) is only compatible with a 32 bit Perl install. >> >> If your using ARS 7.5 libraries, then you likely have to use a 64 bit >> Perl insteall, but I have no idea how well ARSPerl has (or has not >> yet) been adapted for v7.5. >> >> Again, I am only guessing based on the information you have provided. >> I may be totally wrong. >> >> >> >> For what it is worth, posting ARSPerl questions to ARSList is fine. >> However, you may get more specific ARSPerl help if you cross post your >> questions to the ARSPerl mailing list. Here is the page to subscribe >> to that list: >> http://lists.sourceforge.net/mailman/listinfo/arsperl-users >> Specifically that ARSPerl list wants emails that are: >> " >> Appropriate content for this list: >> - reports of bugs >> - how to use ARSperl >> - how to solve a problem using ARSperl >> " >> >> I think you at least have found what looks to me to be a problem(bug?) >> in the examples/Dump_Setup.pl script. >> >> So I am cross posting this response to see if we can get some response >> about at least that part of this problem. Since you may not be a part >> of the ARSPerl list I would invite any response from the ARSPerl list >> to be sent to the list and also sent directly to you too. (Just in >> case your not getting email or watching the list on the web.) >> >> >> One other thing.... >> It may be helpful for everyone who might try to help you to know more >> about your environment: >> To name a few questions that may be helpful to know: >> >> What version of ARS are you using? >> What version of ARSPerl are you using? >> What platform are you installing ARSPerl on? >> >> Good luck. >> >> -- >> Carey Matthew Black >> BMC Remedy AR System Skilled Professional (RSP) >> ARS = Action Request System(Remedy) >> >> Love, then teach >> Solution = People + Process + Tools >> Fast, Accurate, Cheap.... Pick two. >> >> >> On Sun, Mar 22, 2009 at 10:59 AM, Bhupesh Gupta >> <gup...@gm... <mailto:gup...@gm...>> >> wrote: >> > Hi Matthew, >> > >> > You are correct, the intial error were due to invalid number of >> arguments, >> > but after correcting the script as suggested by you i am getting the >> > following error: >> > >> > "Free to wrong pool 265b08 not 10c015f at Dump_Setup.pl line 65." >> > >> > PLease suggest >> > >> >> Date: Sat, 21 Mar 2009 13:13:36 -0400 >> Subject: Re: ars_export not returning expected output >> From: Carey Matthew Black <bla...@gm... >> <mailto:bla...@gm...>> >> To: ar...@ar... <mailto:ar...@ar...> >> >> >> Bhupesh Gupta, >> >> You may want to check the value of $ars_errstr after the ars_Export >> function. I hope it will give you a good error message about what is >> wrong with your current code. >> >> >> However, to take a guess without seeing the error message. >> >> If I am reading your code correctly then you are seeing run time >> values like this: >> $type =3D "Schema" >> $name =3D "A_correct_form_name_for_your_server" >> and you are not getting any returned any value from the AR System >> server. >> >> >> If that is the case then I think you have two problems in your code. >> Your answer can be found here: >> http://arsperl.org/manual/ars_Export.html >> >> The function signature is as follows: >> ars_Export(ctrl, displayTag, vuiType, type1, name1, type2, name2, ...) >> >> And it returns this: >> On success >> returns a scalar string >> On failure >> returns undef >> >> ( Your getting the undef value back. ) >> >> >> You are calling it with values like this: >> ars_Export($ctrl, "", "Schema", $name1); >> ( That looks wrong to me. ) >> >> I do not see one of the displayTag or vuiType values in call that you >> are making. >> I think the type1 value that you are passing is also wrong. >> " >> Valid types are: >> * "schema" >> * "schema_defn" >> * "schema_view" >> * "schema_mail" >> * "filter" >> * "active_link" >> * "admin_ext" >> * "char_menu" >> * "escalation" >> * "dist_map" >> * "schema_view_min" >> * "container" >> * "dist_pool" >> * "schema_view_2" >> * "vui" >> * "field" >> * "xml_schema" >> * "xml_filter" >> * "xml_active_link" >> * "xml_char_menu" >> * "xml_escalation" >> * "xml_dist_map" >> * "xml_container" >> * "xml_dist_pool" >> * "xml_vui" >> * "xml_field" >> " >> >> In Perl ("Schema" ne "schema"). ( ne means, "not equals in a string >> sense") >> >> I think you need to do these two things: >> >> # note the change in case from Schema --> schema >> dump_type("$path/schema", "schema", \@schema); >> >> And then also do this... >> >> # added a vuiType constant value from the ARS module >> my $val =3D ars_Export($c,"", &ARS::AR_VUI_TYPE_NONE, $type,$name); >> >> >> I think that might work. >> >> -- >> Carey Matthew Black >> BMC Remedy AR System Skilled Professional (RSP) >> ARS =3D Action Request System(Remedy) >> >> Love, then teach >> Solution =3D People + Process + Tools >> Fast, Accurate, Cheap.... Pick two. >> >> >> On Wed, Mar 18, 2009 at 12:53 PM, Bhupesh Gupta >> <gup...@gm... <mailto:gup...@gm...>> >> wrote: >> > ** >> > >> > ---------- Forwarded message ---------- >> > From: Bhupesh Gupta <gup...@gm... >> <mailto:gup...@gm...>> >> > Date: Sat, Mar 7, 2009 at 8:18 PM >> > Subject: ars_export not returning expected output >> > To: AR...@li... <mailto:AR...@li...> >> > Cc: Bhupesh Gupta <gup...@gm... >> <mailto:gup...@gm...>> >> > >> > >> > ($ACCOUNT, $PASSWORD, $path) = @ARGV; >> > #chomp($path = `pwd`) if (!$path); >> > $c = ars_Login("BHUPESH-GUPTA",$ACCOUNT,$PASSWORD); >> > die "login error: $ars_errstr\n" unless defined($c); >> > >> > @schema = ars_GetListSchema($c, 0, 1024); >> > @active = ars_GetListActiveLink($c); >> > @filter = ars_GetListFilter($c); >> > @escal = ars_GetListEscalation($c); >> > @menu = ars_GetListCharMenu($c); >> > @admin_ext = ars_GetListAdminExtension($c); >> > >> > sub dump_type { >> > my ($path, $type, $names) = @_; >> > >> > if (! -d "$path") { >> > mkdir "$path" || die "can't create directory $path"; >> > mkdir "$path/RCS" || die "can't create directory $path/RCS"; >> > } >> > foreach $name (@$names) { >> > my $val = ars_Export($c,"",$type,$name); >> > print "$type\n"; >> > print "$name\n"; >> > print "$val\n"; >> > } >> > } >> > >> > dump_type("$path/schema", "Schema", \@schema); >> > >> > Dear friends : Please suggest. >> > >> > when i am executing this small programm, the print $val statement >> not >> > printing anything. the syntax looks ok. Please help >> > >> > -- >> > Regards, >> > Bhupesh Gupta >> >> >> _______________________________________________________________________________ >> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org >> <http://www.arslist.org> >> Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are" >> >> >> __Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are" html___ >> > > > _______________________________________________________________________________ > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org > Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are" > |