arsperl-users Mailing List for ARSperl (Page 14)
Brought to you by:
jeffmurphy
You can subscribe to this list here.
| 1996 |
Jan
(6) |
Feb
(7) |
Mar
(16) |
Apr
(5) |
May
(21) |
Jun
(5) |
Jul
(5) |
Aug
(13) |
Sep
(4) |
Oct
(12) |
Nov
(7) |
Dec
(24) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1997 |
Jan
(38) |
Feb
(65) |
Mar
(32) |
Apr
(37) |
May
(47) |
Jun
(45) |
Jul
(28) |
Aug
(38) |
Sep
(41) |
Oct
(81) |
Nov
(21) |
Dec
(45) |
| 1998 |
Jan
(18) |
Feb
(26) |
Mar
(44) |
Apr
(34) |
May
(36) |
Jun
(44) |
Jul
(31) |
Aug
(34) |
Sep
(56) |
Oct
(40) |
Nov
(20) |
Dec
(25) |
| 1999 |
Jan
(49) |
Feb
(50) |
Mar
(33) |
Apr
(51) |
May
(54) |
Jun
(43) |
Jul
(91) |
Aug
(34) |
Sep
(120) |
Oct
(102) |
Nov
(101) |
Dec
(25) |
| 2000 |
Jan
(55) |
Feb
(105) |
Mar
(44) |
Apr
(89) |
May
(123) |
Jun
(51) |
Jul
(98) |
Aug
(120) |
Sep
(101) |
Oct
(77) |
Nov
(58) |
Dec
(39) |
| 2001 |
Jan
(36) |
Feb
(50) |
Mar
(57) |
Apr
(62) |
May
(81) |
Jun
(55) |
Jul
(46) |
Aug
(51) |
Sep
(37) |
Oct
(60) |
Nov
(38) |
Dec
(41) |
| 2002 |
Jan
(70) |
Feb
(41) |
Mar
(49) |
Apr
(55) |
May
(93) |
Jun
(48) |
Jul
(88) |
Aug
(52) |
Sep
(92) |
Oct
(63) |
Nov
(37) |
Dec
(63) |
| 2003 |
Jan
(62) |
Feb
(78) |
Mar
(101) |
Apr
(90) |
May
(104) |
Jun
(31) |
Jul
(29) |
Aug
(66) |
Sep
(50) |
Oct
(114) |
Nov
(111) |
Dec
(49) |
| 2004 |
Jan
(19) |
Feb
(68) |
Mar
(59) |
Apr
(30) |
May
(54) |
Jun
(33) |
Jul
(115) |
Aug
(69) |
Sep
(33) |
Oct
(80) |
Nov
(25) |
Dec
(47) |
| 2005 |
Jan
(34) |
Feb
(26) |
Mar
(28) |
Apr
(57) |
May
(53) |
Jun
(59) |
Jul
(42) |
Aug
(25) |
Sep
(26) |
Oct
(33) |
Nov
(20) |
Dec
(2) |
| 2006 |
Jan
(35) |
Feb
(15) |
Mar
(14) |
Apr
(7) |
May
(22) |
Jun
(22) |
Jul
(22) |
Aug
(3) |
Sep
(7) |
Oct
(20) |
Nov
(25) |
Dec
(8) |
| 2007 |
Jan
(44) |
Feb
(26) |
Mar
(24) |
Apr
(34) |
May
(23) |
Jun
(61) |
Jul
(18) |
Aug
(39) |
Sep
(28) |
Oct
(31) |
Nov
(31) |
Dec
(23) |
| 2008 |
Jan
(18) |
Feb
(5) |
Mar
(18) |
Apr
(15) |
May
(17) |
Jun
(18) |
Jul
(13) |
Aug
(10) |
Sep
(71) |
Oct
(25) |
Nov
(5) |
Dec
(14) |
| 2009 |
Jan
(3) |
Feb
(6) |
Mar
(19) |
Apr
(5) |
May
(2) |
Jun
(5) |
Jul
(23) |
Aug
|
Sep
|
Oct
(2) |
Nov
(15) |
Dec
(7) |
| 2010 |
Jan
(5) |
Feb
(6) |
Mar
|
Apr
|
May
(10) |
Jun
|
Jul
(9) |
Aug
(6) |
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
| 2011 |
Jan
(16) |
Feb
(24) |
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
(6) |
Aug
(4) |
Sep
(1) |
Oct
|
Nov
(13) |
Dec
|
| 2012 |
Jan
(17) |
Feb
(14) |
Mar
(14) |
Apr
(3) |
May
(5) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(7) |
Oct
(14) |
Nov
(4) |
Dec
(4) |
| 2013 |
Jan
(1) |
Feb
(12) |
Mar
(7) |
Apr
(5) |
May
|
Jun
|
Jul
(1) |
Aug
(21) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
(4) |
| 2014 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(27) |
Jun
|
Jul
(8) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(4) |
| 2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <Con...@t-...> - 2009-04-13 18:51:44
|
Steve, the example is not correct. (@entries = ars_GetListEntry($ctrl, $schema, $qual, 0 , 0)) should work. Kind Regards Conny ________________________________ Von: Steve McDonald [mailto:Ste...@ch...] Gesendet: Montag, 13. April 2009 20:21 An: ARSperl User Discussion Betreff: [Arsperl-users] ars_GetListEntry Good morning all, I'm having problems with my own code so tried the example and get this same error: /remedy/ARSperl-1.91/example] ars_GetListEntry.pl remedyDEV Demo demo Testing: basic format. ars_GetListEntry: [ERROR] GetListFields must be an ARRAY reference (ARERR #80005) at ars_GetListEntry.pl line 54. Line 54 is: (@entries = ars_GetListEntry($ctrl, $schema, $qual, 0)) ARSperl-1.91 SunOS 10 ARSystem 7.1 Thanks in Advance! Steve McDonald Sr. Remedy Applications Programmer Choice Hotels International |
|
From: Steve M. <Ste...@ch...> - 2009-04-13 18:21:42
|
Good morning all, I'm having problems with my own code so tried the example and get this same error: /remedy/ARSperl-1.91/example] ars_GetListEntry.pl remedyDEV Demo demo Testing: basic format. ars_GetListEntry: [ERROR] GetListFields must be an ARRAY reference (ARERR #80005) at ars_GetListEntry.pl line 54. Line 54 is: (@entries = ars_GetListEntry($ctrl, $schema, $qual, 0)) ARSperl-1.91 SunOS 10 ARSystem 7.1 Thanks in Advance! Steve McDonald Sr. Remedy Applications Programmer Choice Hotels International |
|
From: Steve M. <Ste...@ch...> - 2009-03-31 14:12:29
|
Well, sounds like sql is the way to go. Other than the t, h, b, and bxxx tables, do I have anything else to consider? Thanks everyone. -----Original Message----- From: Thilo Stapff [mailto:thi...@ap...] Sent: Tuesday, March 31, 2009 1:17 AM To: ARSperl User Discussion Subject: Re: [Arsperl-users] ars_DeleteEntry Just as a note, the speed of mass deletions can be vastly increased by using ars_Begin(End)BulkEntryTransaction. Of course, deleting by SQL will probably still be a magnitude faster. jeff murphy wrote: > Yes, although it'll take probably a long time to delete them all. You > might be better off going to SQL and deleting from the H, T and B > tables directly. > > On Mar 30, 2009, at 7:56 PM, Steve McDonald wrote: > >> Prior to a server upgrade and migration I need to purge 750k + >> records from my custom help desk application. The records contain an >> attachment pool. If I use ars_DeleteEntry will the corresponding b >> table bxxxcxxxxxxx entries be deleted as well? >> >> Thanks, >> >> >> Steve McDonald >> Sr. Remedy Applications Programmer >> Choice Hotels International >> >> --------------------------------------------------------------------- >> --------- >> >> >> -- >> Arsperl-users mailing list >> Ars...@ar... <mailto:Ars...@ar...> >> https://lists.sourceforge.net/lists/listinfo/arsperl-users > > > ---------------------------------------------------------------------- > -- > > ---------------------------------------------------------------------- > -------- > > > ---------------------------------------------------------------------- > -- > > > > -- > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users ------------------------------------------------------------------------------ -- Arsperl-users mailing list Ars...@ar... https://lists.sourceforge.net/lists/listinfo/arsperl-users |
|
From: Thilo S. <thi...@ap...> - 2009-03-31 08:17:09
|
Just as a note, the speed of mass deletions can be vastly increased by using ars_Begin(End)BulkEntryTransaction. Of course, deleting by SQL will probably still be a magnitude faster. jeff murphy wrote: > Yes, although it'll take probably a long time to delete them all. You > might be better off going to SQL and deleting from the H, T and B tables > directly. > > On Mar 30, 2009, at 7:56 PM, Steve McDonald wrote: > >> Prior to a server upgrade and migration I need to purge 750k + records >> from my custom help desk application. The records contain an >> attachment pool. If I use ars_DeleteEntry will the corresponding b >> table bxxxcxxxxxxx entries be deleted as well? >> >> Thanks, >> >> >> Steve McDonald >> Sr. Remedy Applications Programmer >> Choice Hotels International >> >> ------------------------------------------------------------------------------ >> >> >> -- >> Arsperl-users mailing list >> Ars...@ar... <mailto:Ars...@ar...> >> https://lists.sourceforge.net/lists/listinfo/arsperl-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > > -- > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users |
|
From: jeff m. <jcm...@je...> - 2009-03-31 00:38:16
|
Yes, although it'll take probably a long time to delete them all. You might be better off going to SQL and deleting from the H, T and B tables directly. On Mar 30, 2009, at 7:56 PM, Steve McDonald wrote: > Prior to a server upgrade and migration I need to purge 750k + > records from my custom help desk application. The records contain > an attachment pool. If I use ars_DeleteEntry will the corresponding > b table bxxxcxxxxxxx entries be deleted as well? > > Thanks, > > > Steve McDonald > Sr. Remedy Applications Programmer > Choice Hotels International > > ------------------------------------------------------------------------------ > > > -- > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users |
|
From: Steve M. <Ste...@ch...> - 2009-03-31 00:35:46
|
Prior to a server upgrade and migration I need to purge 750k + records from my custom help desk application. The records contain an attachment pool. If I use ars_DeleteEntry will the corresponding b table bxxxcxxxxxxx entries be deleted as well? Thanks, Steve McDonald Sr. Remedy Applications Programmer Choice Hotels International |
|
From: Urban, R. (, e. Mitarbeiter) <EXT...@al...> - 2009-03-25 14:02:24
|
Hi Philipp,
The quick answer is: don't use the ARS OO interface. You'll have to use the procedural interface and sort out the enum values yourself. Look at ARSOOform.pm. The code that produces your error-message is:
if ($fv->{'dataType'} eq "enum") {
if (ref($fv->{'limit'}->{'enumLimits'}) eq "ARRAY") {
$enums{$_} = [@{$fv->{'limit'}->{'enumLimits'}}];
}
elsif (exists $fv->{'limit'}->{'enumLimits'}->{'regularList'}) {
$enums{$_} = [@{$fv->{'limit'}->{'enumLimits'}->{'regularList'}}];
} else {
print "Sorry. I'm not sure what to do with non-regularLists of enums.\n";
print "(this enum is type \"", keys %{$fv->{'limit'}->{'enumLimits'}}, "\")\n";
print "listStyle = ", $fv->{'limit'}->{'enumLimits'}->{'listStyle'}, "\n";
die;
}
}
}
I find Data::Dumper very helpful for quickly getting to know the data-structures returned by various API calls.
Cheers,
Rob Urban
-----Urspr?ngliche Nachricht-----
Von: Wollschlegel Philipp [mailto:phi...@al...]
Gesendet: Mittwoch, 25. M?rz 2009 13:09
An: ars...@ar...
Betreff: [Arsperl-users] Non-regularLists of enums
Greetings List,
I am trying to open a form with arsperl 1.91 like so:
$form = $connection->openForm(-form=> "CHG:Template");
While some forms work ok with the above method, I get the following error when I try to open the above mentioned form:
Died at /usr/local/lib/perl/5.10.0/ARSOOform.pm line 74.
new connection object: (servername, username, )
caching field: Authoring Organization
datatype: char
caching field: z1D Char11
datatype: char
caching field: z1D_AssociationType02
datatype: enum
Sorry. I'm not sure what to do with non-regularLists of enums.
(this enum is type "customList")
listStyle =
destroying connection object: ars_Logoff called.
Am I using the wrong method to open the form?
Sincerely,
- Philipp Wollschlegel
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Michiel B. <mi...@be...> - 2009-03-25 13:19:44
|
Hi Philipp, Custom enum fields are not supported via the OO interface in ARSperl 1.91; they will be in the next version. The changes are already in CVS. See: http://arsperl.cvs.sourceforge.net/viewvc/arsperl/ARSperl/ARSOOform.pm?view=log You could use the regular (non-oo) ARSperl calls to get your data in and out of ITSM. Regards, -- Michiel Beijen Software Consultant +31 6 - 457 42 418 Bee Free IT + http://beefreeit.nl On Wed, Mar 25, 2009 at 13:08, Wollschlegel Philipp < phi...@al...> wrote: > Greetings List, > > I am trying to open a form with arsperl 1.91 like so: > > $form = $connection->openForm(-form=> "CHG:Template"); > > While some forms work ok with the above method, I get the following error > when I try to open the above mentioned form: > > Died at /usr/local/lib/perl/5.10.0/ARSOOform.pm line 74. > new connection object: (servername, username, ) > caching field: Authoring Organization > datatype: char > caching field: z1D Char11 > datatype: char > caching field: z1D_AssociationType02 > datatype: enum > Sorry. I'm not sure what to do with non-regularLists of enums. > (this enum is type "customList") > listStyle = > destroying connection object: ars_Logoff called. > > Am I using the wrong method to open the form? > > Sincerely, > - Philipp Wollschlegel > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > > -- > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > |
|
From: Wollschlegel P. <phi...@al...> - 2009-03-25 12:39:08
|
Greetings List, I am trying to open a form with arsperl 1.91 like so: $form = $connection->openForm(-form=> "CHG:Template"); While some forms work ok with the above method, I get the following error when I try to open the above mentioned form: Died at /usr/local/lib/perl/5.10.0/ARSOOform.pm line 74. new connection object: (servername, username, ) caching field: Authoring Organization datatype: char caching field: z1D Char11 datatype: char caching field: z1D_AssociationType02 datatype: enum Sorry. I'm not sure what to do with non-regularLists of enums. (this enum is type "customList") listStyle = destroying connection object: ars_Logoff called. Am I using the wrong method to open the form? Sincerely, - Philipp Wollschlegel |
|
From: _HK_ <har...@go...> - 2009-03-25 09:52:29
|
Yes. That's correct. I'm utf8 encoding all data before I send it anywhere. I can use all the other ars_*Entry functions with utf8 data. cheers, ~H 2009/3/25 <Con...@t-...> > You will have to call all functions with UTF8-encoded data. If you do > not, your data will get corrupted. > > Kind Regards Conny > > ------------------------------ > *Von:* Michiel Beijen [mailto:mi...@be...] > *Gesendet:* Mittwoch, 25. März 2009 08:53 > *An:* ARSperl User Discussion > *Betreff:* Re: [Arsperl-users] arsperl 1.91 ars_Login Unicode > > That's great, and it surprises me a little... > But can you now only log in with a UTF8 string? Or can you also use > ars_CreateEntry, ars_GetEntry and the like with UTF8 data? > > Regards, > -- > Michiel Beijen > Software Consultant > +31 6 - 457 42 418 > Bee Free IT + http://beefreeit.nl > > > 2009/3/25 _HK_ <cip...@gm...> > >> Thank you folks. LANG=en_US.utf8 alone seemed to fix it! >> >> cheers, >> ~H >> >> 2009/3/24 <Con...@t-...> >> >>> setting the encoding via "lang" parameter doesn't work. >>> >>> Try setting env-Variable LANG=en_US.utf8 >>> >>> Or you can use the attached patch, which introduces a new parameter >>> (charSet) to ars_Login where you can specify the encoding. >>> >>> Possible (tested) values are >>> >>> utf8 >>> 1252 >>> 1250 >>> >>> HTH >>> Kind Regards Conny >>> ------------------------------ >>> *Von:* _HK_ [mailto:cip...@gm...] >>> *Gesendet:* Dienstag, 24. März 2009 08:21 >>> *An:* ars...@ar... >>> *Betreff:* [Arsperl-users] arsperl 1.91 ars_Login Unicode >>> >>> Summary: I'm unable to send utf8 data using arsperl to my Remedy >>> server which is unicode ready(and the remedy server works, as I can store >>> utf8 data via other means). >>> >>> I tried setting the "lang" parameter in ars_Login function to >>> UTF-8/utf8/en_US/en_US.utf8 and a few other combinations, but it doesn't >>> seem to matter- when I look via gdb, the actual value for charset in the >>> ARControlStruct->localeInfo is always "WESTERN". >>> >>> The module was built against 7.01 api with all the unicode libs in place >>> (libicuucbmc, libicudatabmc, etc..). Any pointers/suggestions are sincerely >>> appreciated. >>> >>> thanks, >>> ~H >>> >>> >>> ------------------------------------------------------------------------------ >>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >>> easily build your RIAs with Flex Builder, the Eclipse(TM)based >>> development >>> software that enables intelligent coding and step-through debugging. >>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >>> >>> >>> -- >>> Arsperl-users mailing list >>> Ars...@ar... >>> https://lists.sourceforge.net/lists/listinfo/arsperl-users >>> >>> >> >> >> -- >> ~H >> http://www.harishkotha.com >> >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> >> >> -- >> Arsperl-users mailing list >> Ars...@ar... >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> >> > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > > -- > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > > |
|
From: Michiel B. <mi...@be...> - 2009-03-25 09:43:41
|
H. Good to know that! Kind regards, -- Michiel Beijen Software Consultant +31 6 - 457 42 418 Bee Free IT + http://beefreeit.nl 2009/3/25 _HK_ <cip...@gm...> > Yes. That's correct. I'm utf8 encoding all data before I send it anywhere. > I can use all the other ars_*Entry functions with utf8 data. > > cheers, > ~H > > 2009/3/25 <Con...@t-...> > > You will have to call all functions with UTF8-encoded data. If you do >> not, your data will get corrupted. >> >> Kind Regards Conny >> >> ------------------------------ >> *Von:* Michiel Beijen [mailto:mi...@be...] >> *Gesendet:* Mittwoch, 25. März 2009 08:53 >> *An:* ARSperl User Discussion >> *Betreff:* Re: [Arsperl-users] arsperl 1.91 ars_Login Unicode >> >> That's great, and it surprises me a little... >> But can you now only log in with a UTF8 string? Or can you also use >> ars_CreateEntry, ars_GetEntry and the like with UTF8 data? >> >> Regards, >> -- >> Michiel Beijen >> Software Consultant >> +31 6 - 457 42 418 >> Bee Free IT + http://beefreeit.nl >> >> >> 2009/3/25 _HK_ <cip...@gm...> >> >>> Thank you folks. LANG=en_US.utf8 alone seemed to fix it! >>> >>> cheers, >>> ~H >>> >>> 2009/3/24 <Con...@t-...> >>> >>>> setting the encoding via "lang" parameter doesn't work. >>>> >>>> Try setting env-Variable LANG=en_US.utf8 >>>> >>>> Or you can use the attached patch, which introduces a new parameter >>>> (charSet) to ars_Login where you can specify the encoding. >>>> >>>> Possible (tested) values are >>>> >>>> utf8 >>>> 1252 >>>> 1250 >>>> >>>> HTH >>>> Kind Regards Conny >>>> ------------------------------ >>>> *Von:* _HK_ [mailto:cip...@gm...] >>>> *Gesendet:* Dienstag, 24. März 2009 08:21 >>>> *An:* ars...@ar... >>>> *Betreff:* [Arsperl-users] arsperl 1.91 ars_Login Unicode >>>> >>>> Summary: I'm unable to send utf8 data using arsperl to my Remedy >>>> server which is unicode ready(and the remedy server works, as I can store >>>> utf8 data via other means). >>>> >>>> I tried setting the "lang" parameter in ars_Login function to >>>> UTF-8/utf8/en_US/en_US.utf8 and a few other combinations, but it doesn't >>>> seem to matter- when I look via gdb, the actual value for charset in the >>>> ARControlStruct->localeInfo is always "WESTERN". >>>> >>>> The module was built against 7.01 api with all the unicode libs in place >>>> (libicuucbmc, libicudatabmc, etc..). Any pointers/suggestions are sincerely >>>> appreciated. >>>> >>>> thanks, >>>> ~H >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >>>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >>>> easily build your RIAs with Flex Builder, the Eclipse(TM)based >>>> development >>>> software that enables intelligent coding and step-through debugging. >>>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >>>> >>>> >>>> -- >>>> Arsperl-users mailing list >>>> Ars...@ar... >>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users >>>> >>>> >>> >>> >>> -- >>> ~H >>> http://www.harishkotha.com >>> >>> >>> ------------------------------------------------------------------------------ >>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >>> easily build your RIAs with Flex Builder, the Eclipse(TM)based >>> development >>> software that enables intelligent coding and step-through debugging. >>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >>> >>> >>> -- >>> Arsperl-users mailing list >>> Ars...@ar... >>> https://lists.sourceforge.net/lists/listinfo/arsperl-users >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> >> >> -- >> Arsperl-users mailing list >> Ars...@ar... >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> >> > > > -- > ~H > http://www.harishkotha.com > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > > -- > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > > |
|
From: _HK_ <cip...@gm...> - 2009-03-25 09:23:46
|
Yes. That's correct. I'm utf8 encoding all data before I send it anywhere. I can use all the other ars_*Entry functions with utf8 data. cheers, ~H 2009/3/25 <Con...@t-...> > You will have to call all functions with UTF8-encoded data. If you do > not, your data will get corrupted. > > Kind Regards Conny > > ------------------------------ > *Von:* Michiel Beijen [mailto:mi...@be...] > *Gesendet:* Mittwoch, 25. März 2009 08:53 > *An:* ARSperl User Discussion > *Betreff:* Re: [Arsperl-users] arsperl 1.91 ars_Login Unicode > > That's great, and it surprises me a little... > But can you now only log in with a UTF8 string? Or can you also use > ars_CreateEntry, ars_GetEntry and the like with UTF8 data? > > Regards, > -- > Michiel Beijen > Software Consultant > +31 6 - 457 42 418 > Bee Free IT + http://beefreeit.nl > > > 2009/3/25 _HK_ <cip...@gm...> > >> Thank you folks. LANG=en_US.utf8 alone seemed to fix it! >> >> cheers, >> ~H >> >> 2009/3/24 <Con...@t-...> >> >>> setting the encoding via "lang" parameter doesn't work. >>> >>> Try setting env-Variable LANG=en_US.utf8 >>> >>> Or you can use the attached patch, which introduces a new parameter >>> (charSet) to ars_Login where you can specify the encoding. >>> >>> Possible (tested) values are >>> >>> utf8 >>> 1252 >>> 1250 >>> >>> HTH >>> Kind Regards Conny >>> ------------------------------ >>> *Von:* _HK_ [mailto:cip...@gm...] >>> *Gesendet:* Dienstag, 24. März 2009 08:21 >>> *An:* ars...@ar... >>> *Betreff:* [Arsperl-users] arsperl 1.91 ars_Login Unicode >>> >>> Summary: I'm unable to send utf8 data using arsperl to my Remedy >>> server which is unicode ready(and the remedy server works, as I can store >>> utf8 data via other means). >>> >>> I tried setting the "lang" parameter in ars_Login function to >>> UTF-8/utf8/en_US/en_US.utf8 and a few other combinations, but it doesn't >>> seem to matter- when I look via gdb, the actual value for charset in the >>> ARControlStruct->localeInfo is always "WESTERN". >>> >>> The module was built against 7.01 api with all the unicode libs in place >>> (libicuucbmc, libicudatabmc, etc..). Any pointers/suggestions are sincerely >>> appreciated. >>> >>> thanks, >>> ~H >>> >>> >>> ------------------------------------------------------------------------------ >>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >>> easily build your RIAs with Flex Builder, the Eclipse(TM)based >>> development >>> software that enables intelligent coding and step-through debugging. >>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >>> >>> >>> -- >>> Arsperl-users mailing list >>> Ars...@ar... >>> https://lists.sourceforge.net/lists/listinfo/arsperl-users >>> >>> >> >> >> -- >> ~H >> http://www.harishkotha.com >> >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> >> >> -- >> Arsperl-users mailing list >> Ars...@ar... >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> >> > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > > -- > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > > -- ~H http://www.harishkotha.com |
|
From: <Con...@t-...> - 2009-03-25 08:34:23
|
You will have to call all functions with UTF8-encoded data. If you do not, your data will get corrupted. Kind Regards Conny ________________________________ Von: Michiel Beijen [mailto:mi...@be...] Gesendet: Mittwoch, 25. März 2009 08:53 An: ARSperl User Discussion Betreff: Re: [Arsperl-users] arsperl 1.91 ars_Login Unicode That's great, and it surprises me a little... But can you now only log in with a UTF8 string? Or can you also use ars_CreateEntry, ars_GetEntry and the like with UTF8 data? Regards, -- Michiel Beijen Software Consultant +31 6 - 457 42 418 Bee Free IT + http://beefreeit.nl 2009/3/25 _HK_ <cip...@gm...> Thank you folks. LANG=en_US.utf8 alone seemed to fix it! cheers, ~H 2009/3/24 <Con...@t-...> setting the encoding via "lang" parameter doesn't work. Try setting env-Variable LANG=en_US.utf8 Or you can use the attached patch, which introduces a new parameter (charSet) to ars_Login where you can specify the encoding. Possible (tested) values are utf8 1252 1250 HTH Kind Regards Conny ________________________________ Von: _HK_ [mailto:cip...@gm...] Gesendet: Dienstag, 24. März 2009 08:21 An: ars...@ar... Betreff: [Arsperl-users] arsperl 1.91 ars_Login Unicode Summary: I'm unable to send utf8 data using arsperl to my Remedy server which is unicode ready(and the remedy server works, as I can store utf8 data via other means). I tried setting the "lang" parameter in ars_Login function to UTF-8/utf8/en_US/en_US.utf8 and a few other combinations, but it doesn't seem to matter- when I look via gdb, the actual value for charset in the ARControlStruct->localeInfo is always "WESTERN". The module was built against 7.01 api with all the unicode libs in place (libicuucbmc, libicudatabmc, etc..). Any pointers/suggestions are sincerely appreciated. thanks, ~H ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com -- Arsperl-users mailing list Ars...@ar... https://lists.sourceforge.net/lists/listinfo/arsperl-users -- ~H http://www.harishkotha.com ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com -- Arsperl-users mailing list Ars...@ar... https://lists.sourceforge.net/lists/listinfo/arsperl-users |
|
From: Michiel B. <mi...@be...> - 2009-03-25 07:53:35
|
That's great, and it surprises me a little... But can you now only log in with a UTF8 string? Or can you also use ars_CreateEntry, ars_GetEntry and the like with UTF8 data? Regards, -- Michiel Beijen Software Consultant +31 6 - 457 42 418 Bee Free IT + http://beefreeit.nl 2009/3/25 _HK_ <cip...@gm...> > Thank you folks. LANG=en_US.utf8 alone seemed to fix it! > > cheers, > ~H > > 2009/3/24 <Con...@t-...> > >> setting the encoding via "lang" parameter doesn't work. >> >> Try setting env-Variable LANG=en_US.utf8 >> >> Or you can use the attached patch, which introduces a new parameter >> (charSet) to ars_Login where you can specify the encoding. >> >> Possible (tested) values are >> >> utf8 >> 1252 >> 1250 >> >> HTH >> Kind Regards Conny >> ------------------------------ >> *Von:* _HK_ [mailto:cip...@gm...] >> *Gesendet:* Dienstag, 24. März 2009 08:21 >> *An:* ars...@ar... >> *Betreff:* [Arsperl-users] arsperl 1.91 ars_Login Unicode >> >> Summary: I'm unable to send utf8 data using arsperl to my Remedy server >> which is unicode ready(and the remedy server works, as I can store utf8 data >> via other means). >> >> I tried setting the "lang" parameter in ars_Login function to >> UTF-8/utf8/en_US/en_US.utf8 and a few other combinations, but it doesn't >> seem to matter- when I look via gdb, the actual value for charset in the >> ARControlStruct->localeInfo is always "WESTERN". >> >> The module was built against 7.01 api with all the unicode libs in place >> (libicuucbmc, libicudatabmc, etc..). Any pointers/suggestions are sincerely >> appreciated. >> >> thanks, >> ~H >> >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> >> >> -- >> Arsperl-users mailing list >> Ars...@ar... >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> >> > > > -- > ~H > http://www.harishkotha.com > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > > -- > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > > |
|
From: _HK_ <cip...@gm...> - 2009-03-24 23:33:18
|
Thank you folks. LANG=en_US.utf8 alone seemed to fix it! cheers, ~H 2009/3/24 <Con...@t-...> > setting the encoding via "lang" parameter doesn't work. > > Try setting env-Variable LANG=en_US.utf8 > > Or you can use the attached patch, which introduces a new parameter > (charSet) to ars_Login where you can specify the encoding. > > Possible (tested) values are > > utf8 > 1252 > 1250 > > HTH > Kind Regards Conny > ------------------------------ > *Von:* _HK_ [mailto:cip...@gm...] > *Gesendet:* Dienstag, 24. März 2009 08:21 > *An:* ars...@ar... > *Betreff:* [Arsperl-users] arsperl 1.91 ars_Login Unicode > > Summary: I'm unable to send utf8 data using arsperl to my Remedy server > which is unicode ready(and the remedy server works, as I can store utf8 data > via other means). > > I tried setting the "lang" parameter in ars_Login function to > UTF-8/utf8/en_US/en_US.utf8 and a few other combinations, but it doesn't > seem to matter- when I look via gdb, the actual value for charset in the > ARControlStruct->localeInfo is always "WESTERN". > > The module was built against 7.01 api with all the unicode libs in place > (libicuucbmc, libicudatabmc, etc..). Any pointers/suggestions are sincerely > appreciated. > > thanks, > ~H > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > > -- > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > > -- ~H http://www.harishkotha.com |
|
From: Michiel B. <mi...@be...> - 2009-03-24 09:25:50
|
ARSperl is a lot older than the - pretty recent - unicode support in AR server. Because of this, ARSperl is not designed with unicode compatibility in mind. It does not handle strings internally as unicode. See perldoc perlunicode if you would like to see what it takes to make ARSperl handle unicode properly. I would suggest that if you need unicode capabilities, you should look into the other integration possibilities such as the Java or C APIs. -- Michiel Beijen Software Consultant +31 6 457 42 418 Bee Free IT + http://beefreeit.nl On Mar 24, 2009 8:31 AM, "_HK_" <cip...@gm...> wrote: Summary: I'm unable to send utf8 data using arsperl to my Remedy server which is unicode ready(and the remedy server works, as I can store utf8 data via other means). I tried setting the "lang" parameter in ars_Login function to UTF-8/utf8/en_US/en_US.utf8 and a few other combinations, but it doesn't seem to matter- when I look via gdb, the actual value for charset in the ARControlStruct->localeInfo is always "WESTERN". The module was built against 7.01 api with all the unicode libs in place (libicuucbmc, libicudatabmc, etc..). Any pointers/suggestions are sincerely appreciated. thanks, ~H ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com -- Arsperl-users mailing list Ars...@ar... https://lists.sourceforge.net/lists/listinfo/arsperl-users |
|
From: _HK_ <cip...@gm...> - 2009-03-24 07:26:28
|
Summary: I'm unable to send utf8 data using arsperl to my Remedy server which is unicode ready(and the remedy server works, as I can store utf8 data via other means). I tried setting the "lang" parameter in ars_Login function to UTF-8/utf8/en_US/en_US.utf8 and a few other combinations, but it doesn't seem to matter- when I look via gdb, the actual value for charset in the ARControlStruct->localeInfo is always "WESTERN". The module was built against 7.01 api with all the unicode libs in place (libicuucbmc, libicudatabmc, etc..). Any pointers/suggestions are sincerely appreciated. thanks, ~H |
|
From: Carey M. B. <bla...@gm...> - 2009-03-23 01:47:40
|
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...> 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...> To: 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...> wrote: > ** > > ---------- Forwarded message ---------- > From: Bhupesh Gupta <gup...@gm...> > Date: Sat, Mar 7, 2009 at 8:18 PM > Subject: ars_export not returning expected output > To: AR...@li... > Cc: Bhupesh Gupta <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 |
|
From: jeff m. <jcm...@je...> - 2009-03-21 03:12:29
|
If you have a remedy support account, you can download their binaries and install them. If you have no license key it will run in 'demo' mode. Otherwise, call a BMC sales person and ask them for a demo. jeff On Mar 20, 2009, at 10:36 PM, sup...@co... wrote: > Does anyone know how to get a trial version of Remedy that I could > use to test some code against. If that isn't available, is there a > test server that is publicly available. I doubt that there is, but > thought I'd ask. > > Thanks in advance, > Tony |
|
From: <sup...@co...> - 2009-03-21 03:05:43
|
Does anyone know how to get a trial version of Remedy that I could use to test some code against. If that isn't available, is there a test server that is publicly available. I doubt that there is, but thought I'd ask. Thanks in advance, Tony |
|
From: jeff m. <jcm...@je...> - 2009-02-28 21:00:03
|
On Feb 28, 2009, at 2:14 PM, Gary sperano wrote:
> Hello All,
> I am extremely new to posting to this group as well as to the
> ASR module for perl. I have been tasked with converting a a vbs
> script, that currently creates remedy tickets, to perl. With that
> being said, I do have a question in regards to the field ID, I think.
> The vbs script contains the following lines. I think, please
> correct me if I am wrong, in between the parentheses is the field
> id. Using the ARS module, how do I create the ticket using the field
> id? Also, I need to make sure that a ticket number is returned to me
> and that the process was successful, how do I do this?
>
#!/usr/bin/perl
use ARS;
$c = ars_Login('server', 'user', 'pass);
die $ars_errstr unless $c;
$x = ars_CreateEntry($c,
"Form Name", # adjust form name
100000038, "stormgt",
100000003, "stormgt",
...); # repeat fieldid, fieldvalue list...
die "Failed to create entry: $ars_errstr" unless $x;
ars_Logoff($c);
> fieldValues.Item(100000038)= "stormgt" 'PersonID
> fieldValues.Item(100000003) = "stormgt" 'FirstName
> fieldValues.Item(100000001) = "stormgt" 'Last Name
> fieldValues.Item(100000007) = arrFields(2) 'Comments Work Log
> fieldValues.Item(536870916) = arrFields(3) 'Group Assigned
> fieldValues.Item(100000031) = "Originating Call" 'Incident
> Relationship
> fieldValues.Item(100000017) = arrFields(4) 'Incident Type
> fieldValues.Item(100000039) = arrFields(5) 'Item Affected
> fieldValues.Item(536870932) = "SHCWeb_wsf" 'Originating Desk
> fieldValues.Item(100000013) = arrFields(6) 'Priority
> fieldValues.Item(8) = arrFields(7) 'Problem Summary
> fieldValues.Item(100000014) = arrFields(8) 'Problem Type
> fieldValues.Item(100000000) = arrFields(10) 'Symptoms
> fieldValues.Item(536870913) = arrFields(11) 'Problem Detail
> fieldValues.Item(536870912) = arrFields(12) 'Specific Issue
>
> Below are the contents of the entire script that needs to be
> converted
>
> Thanks for any and all assistance you can offer
>
> <code>
> 'This script will parse TSO Backuplogs, and create GIRS tickets
> where needed
>
> Dim objFSO, objSource, objOutput, strLine
> Dim arrFields, headerline
> Dim OutputFile,ProxyName,Secword,Newword, FolderPath
> Dim objFolder, colFiles, objFile , ErrorLog, objErrorOutput
>
> ProxyName="prxpnbu"
> Secword="4Password"
> Const formName = "Incident"
> Dim server, fieldValues, entryId, result
> Set server = CreateObject("BMC.ARSystem.Server")
> Set fieldValues = CreateObject("BMC.ARSystem.FieldValueList")
> Newword=Chr(Asc(Left(Secword,1)+2)) & Mid(Secword,2)
> server.Login "server.my.company.com", ProxyName, Newword
> FolderPath="F:\Ticketing"
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> Set objFolder= objFSO.GetFolder(FolderPath)
> Set colFiles= objFolder.Files
> For Each objFile In colFiles
> 'If the source file has the correct name, then process it,
> otherwise move to next file.
> If instr(1,objFile.Name,"DPA_Ticket_Creator") Then
> 'If the file has content, process it
> If objFile.Size > 100 then
> 'Wscript.Echo objFile.name
> SourceFile = FolderPath & "\" & objFile.Name
> Set objSource= objFSO.OpenTextFile(SourceFile,1)
> 'If the log file doesn't exist, then create it.
> OutputFile="F:\Ticketing\Logs\Processed" & objFile.Name
> If objFSO.FileExists(OutputFile) Then
> Set objOutput= objFSO.OpenTextFile(OutputFile,1 )
> 'If there is no header in the logfile, add it.
> If objoutput.AtEndOfStream = True Then
> objOutput.Close
> Set objOutput= objFSO.OpenTextFile(OutputFile,8)
> 'Copy original header
> strLine= objSource.ReadLine
> objOutput.WriteLine ("IncidentID," & strLine & ",
> Ticket_Create_Time")
> Else
> 'Logfile already exists with content
> Set objOutput= objFSO.OpenTextFile(OutputFile,8)
> 'Skip headerline of source
> objSource.SkipLine
> End If
> Else
> Set objOutput=objFSO.CreateTextFile(OutputFile)
> objOutput.Close
> Set objOutput= objFSO.OpenTextFile(OutputFile,8 )
> 'Copy original header
> strLine= objSource.ReadLine
> objOutput.WriteLine ("IncidentID," & strLine & "," &
> "Ticket Create Time")
> End If
> Do Until objSource.AtEndOfStream
> On Error Resume Next
> strLine= objSource.ReadLine
> arrFields= Split(strLine, ",")
> 'Test Group Assigned To field to confirm that there is
> not a ticket value there.
> 'If so, change to TSO-C/S Backup
> If UCASE(Mid(arrFields(3),1,1)) = "C" And
> isnumeric(mid(arrFields(3),3,2))= True Then arrFields(3)= "TSO-C/S
> Backup"
> 'Enter values
> fieldValues.Item(100000038)= "stormgt" 'PersonID
> fieldValues.Item(100000003) = "stormgt" 'FirstName
> fieldValues.Item(100000001) = "stormgt" 'Last Name
> fieldValues.Item(100000007) = arrFields(2)
> 'Comments Work Log
> fieldValues.Item(536870916) = arrFields(3) 'Group
> Assigned
> fieldValues.Item(100000031) = "Originating Call"
> 'Incident Relationship
> fieldValues.Item(100000017) = arrFields(4)
> 'Incident Type
> fieldValues.Item(100000039) = arrFields(5) 'Item
> Affected
> fieldValues.Item(536870932) = "SHCWeb_wsf"
> 'Originating Desk
> fieldValues.Item(100000013) = arrFields(6) 'Priority
> fieldValues.Item(8) = arrFields(7) 'Problem
> Summary
> fieldValues.Item(100000014) = arrFields(8) 'Problem
> Type
> fieldValues.Item(100000000) = arrFields(10) 'Symptoms
> fieldValues.Item(536870913) = arrFields(11)
> 'Problem Detail
> fieldValues.Item(536870912) = arrFields(12)
> 'Specific Issue
> Err.Clear
> 'Create ticket, and return ticket number
> entryId = server.CreateEntry(formName, fieldValues)
> If Err.Number<> 0 Then
> 'wscript.echo err.number
> 'If the line errored, create the ticket to Backup
> team with default values
> fieldValues.Item(100000017) = arrFields(4)
> 'Incident Type
> fieldValues.Item(100000039) = "ADSM Backup Client"
> 'Item Affected
> fieldValues.Item(100000013) = "Medium" 'Priority
> fieldValues.Item(100000014) = "Software"
> 'Problem Type
> fieldValues.Item(536870913) = arrFields(11)
> 'Problem Detail
> fieldValues.Item(536870912) = "nosla" 'Specific
> Issue
> fieldValues.Item(536870916)= "TSO-C/S Backup"
> entryId = server.CreateEntry(formName, fieldValues)
> 'If it errors again, write line to error log
> ErrorLog="F:\Ticketing\Logs\Error" & objFile.Name
> If objFSO.FileExists(ErrorLog) Then
> Set objErrorOutput= objFSO.OpenTextFile(ErrorLog,8 )
> objErrorOutput.WriteLine ("Error creating " &
> entryID & "," & strLine)
> objErrorOutput.Close
> Else 'The Errorlog doesn't exist, create it
> Set objErrorOutput=objFSO.CreateTextFile(ErrorLog)
> objErrorOutput.Close
> Set objErrorOutput= objFSO.OpenTextFile(ErrorLog,8 )
> objErrorOutput.WriteLine ("Error creating " &
> entryID & "," & strLine)
> objErrorOutput.Close
> End If
> End If
> 'Write ticket information to log: IncidentID, Server,
> Timestamp
> strLine = entryId & "," & strline& "," & Date & " " & Time
> objOutput.WriteLine(strLine)
> Loop
> 'The source file is processed. Copy it to ...\logs
> \Original...
> objSource.Close
> objFSO.MoveFile FolderPath & "\" & objFile.Name, FolderPath
> & "\Logs\Original" & objFile.Name
> Else 'The source file has no content, move/rename to ...Logs
> \Empty & Name
> objFSO.MoveFile FolderPath & "\" & objFile.Name, FolderPath
> & "\Logs\Empty" & objFile.Name
> End If
> End If 'Valid File end
> Next
> ' Cleanup
> Call server.Logout
> Set objErrorOutput=Nothing
> Set objSource= Nothing
> Set objOutput= Nothing
> Set entryId = Nothing
> Set result = Nothing
> Set fieldValues = Nothing
> Set server = Nothing
>
> </code>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source
> code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
>
> --
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Thilo S. <thi...@ap...> - 2009-02-28 20:43:32
|
Your script should probably look something like this:
my $ctrl = ars_Login( $server, $user, $passwd );
die "Login Error: $ars_errstr\n" if ! $ctrl;
my %fieldValues = (
100000038 => "stormgt", # PersonID
100000003 => "stormgt", # FirstName
100000001 => "stormgt", # Last Name
100000007 => $arrFields[2], # Comments Work Log
536870916 => $arrFields[3], # Group Assigned
# ... remaining fields .....
);
my $entryId = ars_CreateEntry( $ctrl, $formName, %fieldValues );
die "Create Error: $ars_errstr\n" if ! $ctrl;
Regards,
Thilo
Gary sperano wrote:
> Hello All,
>
> I am extremely new to posting to this group as well as to the ASR
> module for perl. I have been tasked with converting a a vbs script, that
> currently creates remedy tickets, to perl. With that being said, I do
> have a question in regards to the field ID, I think.
>
> The vbs script contains the following lines. I think, please
> correct me if I am wrong, in between the parentheses is the field id.
> Using the ARS module, how do I create the ticket using the field id?
> Also, I need to make sure that a ticket number is returned to me and
> that the process was successful, how do I do this?
>
>
>
> * fieldValues.Item(100000038)= "stormgt" 'PersonID*
>
> * fieldValues.Item(100000003) = "stormgt" 'FirstName*
>
> * fieldValues.Item(100000001) = "stormgt" 'Last Name*
>
> * fieldValues.Item(100000007) = arrFields(2) 'Comments Work Log*
>
> * fieldValues.Item(536870916) = arrFields(3) 'Group Assigned*
>
> * fieldValues.Item(100000031) = "Originating Call" 'Incident Relationship*
>
> * fieldValues.Item(100000017) = arrFields(4) 'Incident Type*
>
> * fieldValues.Item(100000039) = arrFields(5) 'Item Affected*
>
> * fieldValues.Item(536870932) = "SHCWeb_wsf" 'Originating Desk*
>
> * fieldValues.Item(100000013) = arrFields(6) 'Priority*
>
> * fieldValues.Item(8) = arrFields(7) 'Problem Summary*
>
> * fieldValues.Item(100000014) = arrFields(8) 'Problem Type*
>
> * fieldValues.Item(100000000) = arrFields(10) 'Symptoms*
>
> * fieldValues.Item(536870913) = arrFields(11) 'Problem Detail*
>
> * fieldValues.Item(536870912) = arrFields(12) 'Specific Issue*
>
>
>
> Below are the contents of the entire script that needs to be converted
>
>
>
> Thanks for any and all assistance you can offer
>
>
>
> <code>
>
> 'This script will parse TSO Backuplogs, and create GIRS tickets where needed
>
>
>
> Dim objFSO, objSource, objOutput, strLine
>
> Dim arrFields, headerline
>
> Dim OutputFile,ProxyName,Secword,Newword, FolderPath
>
> Dim objFolder, colFiles, objFile , ErrorLog, objErrorOutput
>
>
>
> ProxyName="prxpnbu"
>
> Secword="4Password"
>
> Const formName = "Incident"
>
> Dim server, fieldValues, entryId, result
>
> Set server = CreateObject("BMC.ARSystem.Server")
>
> Set fieldValues = CreateObject("BMC.ARSystem.FieldValueList")
>
> Newword=Chr(Asc(Left(Secword,1)+2)) & Mid(Secword,2)
>
> server.Login "server.my.company.com", ProxyName, Newword
>
> FolderPath="F:\Ticketing"
>
> Set objFSO = CreateObject("Scripting.FileSystemObject")
>
> Set objFolder= objFSO.GetFolder(FolderPath)
>
> Set colFiles= objFolder.Files
>
> For Each objFile In colFiles
>
> 'If the source file has the correct name, then process it, otherwise
> move to next file.
>
> If instr(1,objFile.Name,"DPA_Ticket_Creator") Then
>
> 'If the file has content, process it
>
> If objFile.Size > 100 then
>
> 'Wscript.Echo objFile.name
>
> SourceFile = FolderPath & "\" & objFile.Name
>
> Set objSource= objFSO.OpenTextFile(SourceFile,1)
>
> 'If the log file doesn't exist, then create it.
>
> OutputFile="F:\Ticketing\Logs\Processed" & objFile.Name
>
> If objFSO.FileExists(OutputFile) Then
>
> Set objOutput= objFSO.OpenTextFile(OutputFile,1 )
>
> 'If there is no header in the logfile, add it.
>
> If objoutput.AtEndOfStream = True Then
>
> objOutput.Close
>
> Set objOutput= objFSO.OpenTextFile(OutputFile,8)
>
> 'Copy original header
>
> strLine= objSource.ReadLine
>
> objOutput.WriteLine ("IncidentID," & strLine & ",
> Ticket_Create_Time")
>
> Else
>
> 'Logfile already exists with content
>
> Set objOutput= objFSO.OpenTextFile(OutputFile,8)
>
> 'Skip headerline of source
>
> objSource.SkipLine
>
> End If
>
> Else
>
> Set objOutput=objFSO.CreateTextFile(OutputFile)
>
> objOutput.Close
>
> Set objOutput= objFSO.OpenTextFile(OutputFile,8 )
>
> 'Copy original header
>
> strLine= objSource.ReadLine
>
> objOutput.WriteLine ("IncidentID," & strLine & "," & "Ticket
> Create Time")
>
> End If
>
> Do Until objSource.AtEndOfStream
>
> On Error Resume Next
>
> strLine= objSource.ReadLine
>
> arrFields= Split(strLine, ",")
>
> 'Test Group Assigned To field to confirm that there is not a
> ticket value there.
>
> 'If so, change to TSO-C/S Backup
>
> If UCASE(Mid(arrFields(3),1,1)) = "C" And
> isnumeric(mid(arrFields(3),3,2))= True Then arrFields(3)= "TSO-C/S Backup"
>
> 'Enter values
>
> fieldValues.Item(100000038)= "stormgt" 'PersonID
>
> fieldValues.Item(100000003) = "stormgt" 'FirstName
>
> fieldValues.Item(100000001) = "stormgt" 'Last Name
>
> fieldValues.Item(100000007) = arrFields(2) 'Comments
> Work Log
>
> fieldValues.Item(536870916) = arrFields(3) 'Group Assigned
>
> fieldValues.Item(100000031) = "Originating Call" 'Incident
> Relationship
>
> fieldValues.Item(100000017) = arrFields(4) 'Incident Type
>
> fieldValues.Item(100000039) = arrFields(5) 'Item Affected
>
> fieldValues.Item(536870932) = "SHCWeb_wsf" 'Originating
> Desk
>
> fieldValues.Item(100000013) = arrFields(6) 'Priority
>
> fieldValues.Item(8) = arrFields(7) 'Problem Summary
>
> fieldValues.Item(100000014) = arrFields(8) 'Problem Type
>
> fieldValues.Item(100000000) = arrFields(10) 'Symptoms
>
> fieldValues.Item(536870913) = arrFields(11) 'Problem Detail
>
> fieldValues.Item(536870912) = arrFields(12) 'Specific Issue
>
> Err.Clear
>
> 'Create ticket, and return ticket number
>
> entryId = server.CreateEntry(formName, fieldValues)
>
> If Err.Number<> 0 Then
>
> 'wscript.echo err.number
>
> 'If the line errored, create the ticket to Backup team
> with default values
>
> fieldValues.Item(100000017) = arrFields(4) 'Incident
> Type
>
> fieldValues.Item(100000039) = "ADSM Backup Client"
> 'Item Affected
>
> fieldValues.Item(100000013) = "Medium" 'Priority
>
> fieldValues.Item(100000014) = "Software" 'Problem Type
>
> fieldValues.Item(536870913) = arrFields(11) 'Problem
> Detail
>
> fieldValues.Item(536870912) = "nosla" 'Specific
> Issue
>
> fieldValues.Item(536870916)= "TSO-C/S Backup"
>
> entryId = server.CreateEntry(formName, fieldValues)
>
> 'If it errors again, write line to error log
>
> ErrorLog="F:\Ticketing\Logs\Error" & objFile.Name
>
> If objFSO.FileExists(ErrorLog) Then
>
> Set objErrorOutput= objFSO.OpenTextFile(ErrorLog,8 )
>
> objErrorOutput.WriteLine ("Error creating " & entryID
> & "," & strLine)
>
> objErrorOutput.Close
>
> Else 'The Errorlog doesn't exist, create it
>
> Set objErrorOutput=objFSO.CreateTextFile(ErrorLog)
>
> objErrorOutput.Close
>
> Set objErrorOutput= objFSO.OpenTextFile(ErrorLog,8 )
>
> objErrorOutput.WriteLine ("Error creating " & entryID
> & "," & strLine)
>
> objErrorOutput.Close
>
> End If
>
> End If
>
> 'Write ticket information to log: IncidentID, Server, Timestamp
>
> strLine = entryId & "," & strline& "," & Date & " " & Time
>
> objOutput.WriteLine(strLine)
>
> Loop
>
> 'The source file is processed. Copy it to ...\logs\Original...
>
> objSource.Close
>
> objFSO.MoveFile FolderPath & "\" & objFile.Name, FolderPath &
> "\Logs\Original" & objFile.Name
>
> Else 'The source file has no content, move/rename to
> ...Logs\Empty & Name
>
> objFSO.MoveFile FolderPath & "\" & objFile.Name, FolderPath &
> "\Logs\Empty" & objFile.Name
>
> End If
>
> End If 'Valid File end
>
> Next
>
> ' Cleanup
>
> Call server.Logout
>
> Set objErrorOutput=Nothing
>
> Set objSource= Nothing
>
> Set objOutput= Nothing
>
> Set entryId = Nothing
>
> Set result = Nothing
>
> Set fieldValues = Nothing
>
> Set server = Nothing
>
>
>
> </code>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
>
>
> ------------------------------------------------------------------------
>
>
>
> --
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Gary s. <g_s...@ho...> - 2009-02-28 19:23:16
|
Hello All,
I am extremely new to posting to this group as well as to the ASR module for perl. I have been tasked with converting a a vbs script, that currently creates remedy tickets, to perl. With that being said, I do have a question in regards to the field ID, I think.
The vbs script contains the following lines. I think, please correct me if I am wrong, in between the parentheses is the field id. Using the ARS module, how do I create the ticket using the field id? Also, I need to make sure that a ticket number is returned to me and that the process was successful, how do I do this?
fieldValues.Item(100000038)= "stormgt" 'PersonID
fieldValues.Item(100000003) = "stormgt" 'FirstName
fieldValues.Item(100000001) = "stormgt" 'Last Name
fieldValues.Item(100000007) = arrFields(2) 'Comments Work Log
fieldValues.Item(536870916) = arrFields(3) 'Group Assigned
fieldValues.Item(100000031) = "Originating Call" 'Incident Relationship
fieldValues.Item(100000017) = arrFields(4) 'Incident Type
fieldValues.Item(100000039) = arrFields(5) 'Item Affected
fieldValues.Item(536870932) = "SHCWeb_wsf" 'Originating Desk
fieldValues.Item(100000013) = arrFields(6) 'Priority
fieldValues.Item(8) = arrFields(7) 'Problem Summary
fieldValues.Item(100000014) = arrFields(8) 'Problem Type
fieldValues.Item(100000000) = arrFields(10) 'Symptoms
fieldValues.Item(536870913) = arrFields(11) 'Problem Detail
fieldValues.Item(536870912) = arrFields(12) 'Specific Issue
Below are the contents of the entire script that needs to be converted
Thanks for any and all assistance you can offer
<code>
'This script will parse TSO Backuplogs, and create GIRS tickets where needed
Dim objFSO, objSource, objOutput, strLine
Dim arrFields, headerline
Dim OutputFile,ProxyName,Secword,Newword, FolderPath
Dim objFolder, colFiles, objFile , ErrorLog, objErrorOutput
ProxyName="prxpnbu"
Secword="4Password"
Const formName = "Incident"
Dim server, fieldValues, entryId, result
Set server = CreateObject("BMC.ARSystem.Server")
Set fieldValues = CreateObject("BMC.ARSystem.FieldValueList")
Newword=Chr(Asc(Left(Secword,1)+2)) & Mid(Secword,2)
server.Login "server.my.company.com", ProxyName, Newword
FolderPath="F:\Ticketing"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder= objFSO.GetFolder(FolderPath)
Set colFiles= objFolder.Files
For Each objFile In colFiles
'If the source file has the correct name, then process it, otherwise move to next file.
If instr(1,objFile.Name,"DPA_Ticket_Creator") Then
'If the file has content, process it
If objFile.Size > 100 then
'Wscript.Echo objFile.name
SourceFile = FolderPath & "\" & objFile.Name
Set objSource= objFSO.OpenTextFile(SourceFile,1)
'If the log file doesn't exist, then create it.
OutputFile="F:\Ticketing\Logs\Processed" & objFile.Name
If objFSO.FileExists(OutputFile) Then
Set objOutput= objFSO.OpenTextFile(OutputFile,1 )
'If there is no header in the logfile, add it.
If objoutput.AtEndOfStream = True Then
objOutput.Close
Set objOutput= objFSO.OpenTextFile(OutputFile,8)
'Copy original header
strLine= objSource.ReadLine
objOutput.WriteLine ("IncidentID," & strLine & ", Ticket_Create_Time")
Else
'Logfile already exists with content
Set objOutput= objFSO.OpenTextFile(OutputFile,8)
'Skip headerline of source
objSource.SkipLine
End If
Else
Set objOutput=objFSO.CreateTextFile(OutputFile)
objOutput.Close
Set objOutput= objFSO.OpenTextFile(OutputFile,8 )
'Copy original header
strLine= objSource.ReadLine
objOutput.WriteLine ("IncidentID," & strLine & "," & "Ticket Create Time")
End If
Do Until objSource.AtEndOfStream
On Error Resume Next
strLine= objSource.ReadLine
arrFields= Split(strLine, ",")
'Test Group Assigned To field to confirm that there is not a ticket value there.
'If so, change to TSO-C/S Backup
If UCASE(Mid(arrFields(3),1,1)) = "C" And isnumeric(mid(arrFields(3),3,2))= True Then arrFields(3)= "TSO-C/S Backup"
'Enter values
fieldValues.Item(100000038)= "stormgt" 'PersonID
fieldValues.Item(100000003) = "stormgt" 'FirstName
fieldValues.Item(100000001) = "stormgt" 'Last Name
fieldValues.Item(100000007) = arrFields(2) 'Comments Work Log
fieldValues.Item(536870916) = arrFields(3) 'Group Assigned
fieldValues.Item(100000031) = "Originating Call" 'Incident Relationship
fieldValues.Item(100000017) = arrFields(4) 'Incident Type
fieldValues.Item(100000039) = arrFields(5) 'Item Affected
fieldValues.Item(536870932) = "SHCWeb_wsf" 'Originating Desk
fieldValues.Item(100000013) = arrFields(6) 'Priority
fieldValues.Item(8) = arrFields(7) 'Problem Summary
fieldValues.Item(100000014) = arrFields(8) 'Problem Type
fieldValues.Item(100000000) = arrFields(10) 'Symptoms
fieldValues.Item(536870913) = arrFields(11) 'Problem Detail
fieldValues.Item(536870912) = arrFields(12) 'Specific Issue
Err.Clear
'Create ticket, and return ticket number
entryId = server.CreateEntry(formName, fieldValues)
If Err.Number<> 0 Then
'wscript.echo err.number
'If the line errored, create the ticket to Backup team with default values
fieldValues.Item(100000017) = arrFields(4) 'Incident Type
fieldValues.Item(100000039) = "ADSM Backup Client" 'Item Affected
fieldValues.Item(100000013) = "Medium" 'Priority
fieldValues.Item(100000014) = "Software" 'Problem Type
fieldValues.Item(536870913) = arrFields(11) 'Problem Detail
fieldValues.Item(536870912) = "nosla" 'Specific Issue
fieldValues.Item(536870916)= "TSO-C/S Backup"
entryId = server.CreateEntry(formName, fieldValues)
'If it errors again, write line to error log
ErrorLog="F:\Ticketing\Logs\Error" & objFile.Name
If objFSO.FileExists(ErrorLog) Then
Set objErrorOutput= objFSO.OpenTextFile(ErrorLog,8 )
objErrorOutput.WriteLine ("Error creating " & entryID & "," & strLine)
objErrorOutput.Close
Else 'The Errorlog doesn't exist, create it
Set objErrorOutput=objFSO.CreateTextFile(ErrorLog)
objErrorOutput.Close
Set objErrorOutput= objFSO.OpenTextFile(ErrorLog,8 )
objErrorOutput.WriteLine ("Error creating " & entryID & "," & strLine)
objErrorOutput.Close
End If
End If
'Write ticket information to log: IncidentID, Server, Timestamp
strLine = entryId & "," & strline& "," & Date & " " & Time
objOutput.WriteLine(strLine)
Loop
'The source file is processed. Copy it to ...\logs\Original...
objSource.Close
objFSO.MoveFile FolderPath & "\" & objFile.Name, FolderPath & "\Logs\Original" & objFile.Name
Else 'The source file has no content, move/rename to ...Logs\Empty & Name
objFSO.MoveFile FolderPath & "\" & objFile.Name, FolderPath & "\Logs\Empty" & objFile.Name
End If
End If 'Valid File end
Next
' Cleanup
Call server.Logout
Set objErrorOutput=Nothing
Set objSource= Nothing
Set objOutput= Nothing
Set entryId = Nothing
Set result = Nothing
Set fieldValues = Nothing
Set server = Nothing
</code> |
|
From: Axton <axt...@gm...> - 2009-02-19 03:42:41
|
Your problem probably lies in this: sun4-solaris-64int Axton Grams The opinions, statements, and/or suggested courses of action expressed in this E-mail do not necessarily reflect those of BMC Software, Inc. My voluntary participation in this forum is not intended to convey a role as a spokesperson, liaison or public relations representative for BMC Software, Inc. On Thu, Feb 12, 2009 at 12:53 PM, Steve McDonald < Ste...@ch...> wrote: > Hello Everyone, > > I've just upgraded my dev and QA servers to 7.1 and while compiling the > latest arsperl I got the following warnings: > > cc -c -I/remedy/arAPI/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.91\" > -DXS_VERSION=\"1.91\" -KPIC > "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -g -DARS32 -DARS452 > -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=4 -DPERL_BASEREV_IS=50 > support.c > "support.c", line 3358: warning: argument #2 is incompatible with > prototype: > prototype: pointer to unsigned int : "support.c", line 825 > argument : pointer to int > > cc -c -I/remedy/arAPI/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.91\" > -DXS_VERSION=\"1.91\" -KPIC > "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -g -DARS32 -DARS452 > -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=4 -DPERL_BASEREV_IS=50 > supportrev.c > "supportrev.c", line 1244: warning: argument #2 is incompatible with > prototype: > prototype: pointer to unsigned int : > "/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE/proto.h", line 1289 > argument : pointer to int > > > Anybody seen thisbefore and have a fix? > > > ------------------------------------------------------------------------------ > > > > -- > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > > |
|
From: Steve M. <Ste...@ch...> - 2009-02-12 19:26:19
|
Hello Everyone,
I've just upgraded my dev and QA servers to 7.1 and while compiling the
latest arsperl I got the following warnings:
cc -c -I/remedy/arAPI/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.91\"
-DXS_VERSION=\"1.91\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"
-g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=4
-DPERL_BASEREV_IS=50 support.c
"support.c", line 3358: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned int : "support.c", line 825
argument : pointer to int
cc -c -I/remedy/arAPI/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.91\"
-DXS_VERSION=\"1.91\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"
-g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=4
-DPERL_BASEREV_IS=50 supportrev.c
"supportrev.c", line 1244: warning: argument #2 is incompatible with
prototype:
prototype: pointer to unsigned int :
"/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE/proto.h", line 1289
argument : pointer to int
Anybody seen thisbefore and have a fix?
|