[Arsperl-users] Using arsperl to export 'definition' files

2008-09-18 Thread Urban, Robert (, externer Mitarbeiter)
Hello Folks,
 
does anyone have a script that can export a 'definition' file for an 
application, or for all objects/elements on an ARS server? Actually, I'd be 
interested in any kind of script to is able to 'export' definitions, or even a 
description of how the GUI goes about doing such things, in order to have an 
idea of how to mimic the operation using the API.
 
thanks,

robert urban
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/

--
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users


Re: [Arsperl-users] ars_GetListVUI not working?

2008-09-26 Thread Urban, Robert (, externer Mitarbeiter)
Hi Thilo,

I'm using v7.1 patch 004.

rob urban 

-Ursprüngliche Nachricht-
Von: Thilo Stapff [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 25. September 2008 20:24
An: ARSperl User Discussion
Betreff: Re: [Arsperl-users] ars_GetListVUI not working?

It should definitely work this way. What version of ARSperl are you using?



Urban, Robert (, externer Mitarbeiter) wrote:
 Hi Folks,
  
 I'm trying to get
  
 (@views = ars_GetListVUI($ARS, $schema, 0)) || die $ars_errstr;
  
 to work.I've also tried:
  
 (@views = ars_GetListVUI($ARS, $schema)) || die $ars_errstr;
  
 Both return an empty list, but $ars_errstr is also empty.  $ARS and 
 $schema are valid.
  
 Does this not work, or is there some magical incantation?
  
 thanks,
  
 rob urban
 
 
 
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 
 
 
 
 
 
 --
 Arsperl-users mailing list
 Arsperl-users@arsperl.org
 https://lists.sourceforge.net/lists/listinfo/arsperl-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/


--
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/


--
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users


Re: [Arsperl-users] ars_GetListVUI not working?

2008-09-26 Thread Urban, Robert (, externer Mitarbeiter)
Oops, sorry.  It's v1.84.

rob urban 

-Ursprüngliche Nachricht-
Von: Thilo Stapff [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 26. September 2008 12:40
An: ARSperl User Discussion
Betreff: Re: [Arsperl-users] ars_GetListVUI not working?

Hi Rob,

I asked about the version of arsperl.


Thilo


Urban, Robert (, externer Mitarbeiter) wrote:
 Hi Thilo,
 
 I'm using v7.1 patch 004.
 
 rob urban 
 
 -Ursprüngliche Nachricht-
 Von: Thilo Stapff [mailto:[EMAIL PROTECTED] 
 Gesendet: Donnerstag, 25. September 2008 20:24
 An: ARSperl User Discussion
 Betreff: Re: [Arsperl-users] ars_GetListVUI not working?
 
 It should definitely work this way. What version of ARSperl are you using?
 
 
 
 Urban, Robert (, externer Mitarbeiter) wrote:
 Hi Folks,
  
 I'm trying to get
  
 (@views = ars_GetListVUI($ARS, $schema, 0)) || die $ars_errstr;
  
 to work.I've also tried:
  
 (@views = ars_GetListVUI($ARS, $schema)) || die $ars_errstr;
  
 Both return an empty list, but $ars_errstr is also empty.  $ARS and 
 $schema are valid.
  
 Does this not work, or is there some magical incantation?
  
 thanks,
  
 rob urban


 

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/


 



 --
 Arsperl-users mailing list
 Arsperl-users@arsperl.org
 https://lists.sourceforge.net/lists/listinfo/arsperl-users
 
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 
 
 --
 Arsperl-users mailing list
 Arsperl-users@arsperl.org
 https://lists.sourceforge.net/lists/listinfo/arsperl-users
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 
 
 --
 Arsperl-users mailing list
 Arsperl-users@arsperl.org
 https://lists.sourceforge.net/lists/listinfo/arsperl-users
 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/


--
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/


--
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users


Re: [Arsperl-users] ars_GetListVUI not working?

2008-09-26 Thread Urban, Robert (, externer Mitarbeiter)
Hmm. Thanks for your answers.  Unfortunately, I just compiled/installed v1.91 
(aside:
perl Makefile.PL PREFIX=/some/other/path doesn't work) and tried my script 
again. Ars_GetVUI() is still returning undef :(  Here's my code:

--snip--
my $ARS = ars_Login($server, $username, $password);
defined($ARS) || die connection failed\nars-error:\n$ars_errstr\n;

print connect OK\n;

my %fields = ars_GetFieldTable($ARS, $schema);
%fields || die getFieldTable failed: $ars_errstr;

exists($fields{$field}) || die field [$field] does not exist\n;

my $id = $fields{$field};
print id=[$id]\n;
my $finfo = ars_GetField($ARS, $schema, $fields{$field}) || die $ars_errstr;
my @di_list = @{ $finfo-{displayInstanceList}-{dInstanceList} };
foreach my $di (@di_list) {
print vui = [$di-{vui}]\n;
my $vinfo = ars_GetVUI($ARS, $schema, $di-{vui});
defined($vinfo)  die GetVUI failed: $ars_errstr;
print VUI dump:\n, Dumper($vinfo), \n--done--\n;
}
--snip--

...and the output:

--snip--
connect OK
id=[536870939]
vui = [536870912]
GetVUI failed:  at ./get-vui-info.pl line 58.
--snip--

So you can see, the rest is working ok...

It's Friday evening here, 18:35, so I'm heading home, but I read (and respond) 
on Monday to mails.

Cheers,

rob urban

-Ursprüngliche Nachricht-
Von: Thilo Stapff [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 26. September 2008 18:17
An: ARSperl User Discussion
Betreff: Re: [Arsperl-users] ars_GetListVUI not working?

The problem is definitely a bug in 1.84 (and probably earlier versions). 
Versions 1.85 or higher should work fine.

Thilo


LJ Longwing wrote:
 Could you try upgrading to 1.90 or 1.91 and see if you still have problems? 
 
 -Original Message-
 From: Urban, Robert (, externer Mitarbeiter)
 [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 26, 2008 9:38 AM
 To: ARSperl User Discussion
 Subject: Re: [Arsperl-users] ars_GetListVUI not working?
 
 Oops, sorry.  It's v1.84.
 
 rob urban 
 
 -Ursprüngliche Nachricht-
 Von: Thilo Stapff [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 26. September 2008 12:40
 An: ARSperl User Discussion
 Betreff: Re: [Arsperl-users] ars_GetListVUI not working?
 
 Hi Rob,
 
 I asked about the version of arsperl.
 
 
 Thilo
 
 
 Urban, Robert (, externer Mitarbeiter) wrote:
 Hi Thilo,

 I'm using v7.1 patch 004.

 rob urban

 -Ursprüngliche Nachricht-
 Von: Thilo Stapff [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 25. September 2008 20:24
 An: ARSperl User Discussion
 Betreff: Re: [Arsperl-users] ars_GetListVUI not working?

 It should definitely work this way. What version of ARSperl are you using?



 Urban, Robert (, externer Mitarbeiter) wrote:
 Hi Folks,
  
 I'm trying to get
  
 (@views = ars_GetListVUI($ARS, $schema, 0)) || die $ars_errstr;
  
 to work.I've also tried:
  
 (@views = ars_GetListVUI($ARS, $schema)) || die $ars_errstr;
  
 Both return an empty list, but $ars_errstr is also empty.  $ARS and 
 $schema are valid.
  
 Does this not work, or is there some magical incantation?
  
 thanks,
  
 rob urban


 -
 ---

 -
  This SF.Net email is sponsored by the Moblin Your Move 
 Developer's challenge Build the coolest Linux based applications with 
 Moblin SDK  win great prizes Grand prize is a trip for two to an 
 Open Source event anywhere in the world 
 http://moblin-contest.org/redirect.php?banner_id=100url=/


 -
 ---



 --
 Arsperl-users mailing list
 Arsperl-users@arsperl.org
 https://lists.sourceforge.net/lists/listinfo/arsperl-users

 --
 --- This SF.Net email is sponsored by the Moblin Your Move Developer's 
 challenge Build the coolest Linux based applications with Moblin SDK  
 win great prizes Grand prize is a trip for two to an Open Source event 
 anywhere in the world 
 http://moblin-contest.org/redirect.php?banner_id=100url=/


 --
 Arsperl-users mailing list
 Arsperl-users@arsperl.org
 https://lists.sourceforge.net/lists/listinfo/arsperl-users

 --
 --- This SF.Net email is sponsored by the Moblin Your Move Developer's 
 challenge Build the coolest Linux based applications with Moblin SDK  
 win great prizes Grand prize is a trip for two to an Open Source event 
 anywhere in the world 
 http://moblin-contest.org/redirect.php?banner_id=100url=/


 --
 Arsperl-users mailing list
 Arsperl-users@arsperl.org
 https://lists.sourceforge.net/lists/listinfo/arsperl-users

 
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes Grand prize is a trip for two to an Open Source

Re: [Arsperl-users] Using arsperl to export 'definition' files

2008-12-03 Thread Urban, Robert (, externer Mitarbeiter)
Hi Mark,

I did get an answer, if short.  Jeff Murphy wrote:
 In the source distribution, have a look at example/Dump_Setup.pl

also, I found this entry on the arslist:

http://www.mail-archive.com/arsperl-users@arsperl.org/msg00016.html

which contains scripts written to perform exports.

cheers,

Rob Urban


Von: Mark Vaughan [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 2. Dezember 2008 23:20
An: 'ARSperl User Discussion'
Betreff: Re: [Arsperl-users] Using arsperl to export 'definition' files

Robert,
Did you ever get an answer to your question?


Thanks,

Mark Vaughan

303.601.4434 (mobile)


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Urban, Robert (, 
externer Mitarbeiter)
Sent: Thursday, September 18, 2008 8:24 AM
To: ARSperl User Discussion
Subject: [Arsperl-users] Using arsperl to export 'definition' files

Hello Folks,

does anyone have a script that can export a 'definition' file for an 
application, or for all objects/elements on an ARS server? Actually, I'd be 
interested in any kind of script to is able to 'export' definitions, or even a 
description of how the GUI goes about doing such things, in order to have an 
idea of how to mimic the operation using the API.

thanks,

robert urban
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/

--
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users


Re: [Arsperl-users] Non-regularLists of enums

2009-03-25 Thread Urban, Robert (, externer Mitarbeiter)
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:philipp.wollschle...@alpiq.com] 
Gesendet: Mittwoch, 25. M?rz 2009 13:09
An: arsperl-users@arsperl.org
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
Arsperl-users@arsperl.org
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
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users