Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

PowerDynamo Connection to Jaguar Power Builder Object

10 posts in General Discussion (old) Last posting was on 2000-03-30 08:54:20.0Z
abiewer Posted on 2000-03-27 12:44:00.0Z
Newsgroups: sybase.public.easerver
X-Priority: 3 (Normal)
X-MIMETrack: Serialize by Notes Client on Axel Biewer/Plansoft(Release 5.0 (Intl)|30 March 1999) at 27.03.2000 14:35:50, Serialize complete at 27.03.2000 14:35:50, Serialize by Notes Client on Axel Biewer/Plansoft(Release 5.0 (Intl)|30 March 1999) at 27.03.2000 14:35:57, Serialize complete at 27.03.2000 14:35:57
From: abiewer@plansoft.de
Subject: PowerDynamo Connection to Jaguar Power Builder Object
X-Newsreader: Lotus Notes Release 5.0 (Intl) 30 March 1999
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 27 Mar 2000 07:44:00 -0500
Lines: 23
NNTP-Posting-Host: pec-40.au1.sb.uunet.de 149.228.12.40
Message-ID: <347_PyMQgo#l$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25673
Article PK: 155736

I'm a novice in PowerDynamo and I'm trying to use a PowerBuilder NVO
Jaguar-Component from a PowerDynamo Script.
The package-name of the PB-Object is 'jag' and the component-name is
'n_jag', which has been deployed to JAGUAR using the PowerBuilder 7.0
wizzard;
'test(int)' is a method of the component 'n_jag'.
Now, I'm triing to create an object in a PD script using this code:

var jag;
jag=CreateObject("jag.n_jag");
str=jag.test(1);

but this only brings the error message: Undefined Variable...
I'm assuming that I'm doing something basically wrong; I'm sure I don't
have any valid connection to Jaguar.

Now my question is:
How can I establish a valid connection to a PowerBuilder-Component from
within PowerDynamo and then create a component and call a method of
this component?

Could you help me???
Thanks a lot and sorry for my bad English!

axel biewer


Jim O'Neil [Sybase] Posted on 2000-03-27 14:40:21.0Z
Newsgroups: sybase.public.easerver
Date: Mon, 27 Mar 2000 09:40:21 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: PowerDynamo Connection to Jaguar Power Builder Object
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 34
NNTP-Posting-Host: joneil-nt.sybase.com 204.167.42.111
Message-ID: <347_38DF72D4.3A45794E@sybase.com>
References: <347_PyMQgo#l$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25661
Article PK: 155723

Take a look at the documentation on CreateComponent within Dynamo as well
as some of the documentation on the WebDW from SDN or in the DataWindow
Programmer's Guide, that should give you a number of examples to 'borrow.'

Und Ihr Englisch ist sehr besser als mein Deutsch!

Viel Glueck,

--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc

abiewer@plansoft.de wrote:

> I'm a novice in PowerDynamo and I'm trying to use a PowerBuilder NVO
> Jaguar-Component from a PowerDynamo Script.
> The package-name of the PB-Object is 'jag' and the component-name is
> 'n_jag', which has been deployed to JAGUAR using the PowerBuilder 7.0
> wizzard;
> 'test(int)' is a method of the component 'n_jag'.
> Now, I'm triing to create an object in a PD script using this code:
>
> var jag;
> jag=CreateObject("jag.n_jag");
> str=jag.test(1);
>
> but this only brings the error message: Undefined Variable...
> I'm assuming that I'm doing something basically wrong; I'm sure I don't
> have any valid connection to Jaguar.
>
> Now my question is:
> How can I establish a valid connection to a PowerBuilder-Component from
> within PowerDynamo and then create a component and call a method of
> this component?
>
> Could you help me???
> Thanks a lot and sorry for my bad English!
>
> axel biewer


abiewer Posted on 2000-03-27 15:48:50.0Z
Newsgroups: sybase.public.easerver
From: abiewer@plansoft.de
Subject: Re: PowerDynamo Connection to Jaguar Power Builder Object
X-Newsreader: Lotus Notes Release 5.0 (Intl) 30 March 1999
X-Priority: 3 (Normal)
X-MIMETrack: Serialize by Notes Client on Axel Biewer/Plansoft(Release 5.0 (Intl)|30 March 1999) at 27.03.2000 17:40:51, Serialize complete at 27.03.2000 17:40:51
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 27 Mar 2000 10:48:50 -0500
Lines: 21
NNTP-Posting-Host: pec-42.au1.sb.uunet.de 149.228.12.42
Message-ID: <347_lefAyPAm$GA.201@forums.sybase.com>
References: <347_PyMQgo#l$GA.202@forums.sybase.com> <347_38DF72D4.3A45794E@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25651
Article PK: 155715

Thanks for your tips!
I generated stub and I tried the code:
jag = java.CreateComponent( "jag/n_jag", "iiop://tp:9000","jagadmin", '');
str = jag.test(1);
but I still get the message 'Warning: undefined variable jag.test[test] near line 36 in
"/ekat/scripts/start.ssc"'
and I get no connection to the PB object.
I assume that I have to use the following syntax:
connection.CreateComponent (packageName , componentName )
but how can I create the Jaguar-Connection? - I cannot find suitable
examples in the Power Dynamo Reference and in the
Power-Builder Help I only get help how to get a connection to JAGUAR from
within PowerBuilder, which is not
my problem because the Jaguar-Connection from within PowerBuilder works
fin with my test-object.
Thanks in advance
axel biewer


Jim O'Neil [Sybase] Posted on 2000-03-27 16:02:54.0Z
Newsgroups: sybase.public.easerver
Date: Mon, 27 Mar 2000 11:02:54 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: PowerDynamo Connection to Jaguar Power Builder Object
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 32
NNTP-Posting-Host: joneil-nt.sybase.com 204.167.42.111
Message-ID: <347_38DF862E.7094B338@sybase.com>
References: <347_PyMQgo#l$GA.202@forums.sybase.com> <347_38DF72D4.3A45794E@sybase.com> <347_lefAyPAm$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25644
Article PK: 155709

The CreateComponent call has the URL of the name server and the login/password as part of
the arguments, so its making your connection for you. You mentioned generating the stubs -
did you also compile them? Additionally, you can include a call to
document.Writeln(site.getErrorInfo()) - check the upper/lower case on that though - after
the CreateComponent call to get a better error message.

abiewer@plansoft.de wrote:

> Thanks for your tips!
> I generated stub and I tried the code:
> jag = java.CreateComponent( "jag/n_jag", "iiop://tp:9000","jagadmin", '');
> str = jag.test(1);
> but I still get the message 'Warning: undefined variable jag.test[test] near line 36 in
> "/ekat/scripts/start.ssc"'
> and I get no connection to the PB object.
> I assume that I have to use the following syntax:
> connection.CreateComponent (packageName , componentName )
> but how can I create the Jaguar-Connection? - I cannot find suitable
> examples in the Power Dynamo Reference and in the
> Power-Builder Help I only get help how to get a connection to JAGUAR from
> within PowerBuilder, which is not
> my problem because the Jaguar-Connection from within PowerBuilder works
> fin with my test-object.
> Thanks in advance
> axel biewer


abiewer Posted on 2000-03-28 09:54:34.0Z
Newsgroups: sybase.public.easerver
From: abiewer@plansoft.de
Subject: Re: PowerDynamo Connection to Jaguar Power Builder Object
X-Newsreader: Lotus Notes Release 5.0 (Intl) 30 March 1999
X-Priority: 3 (Normal)
X-MIMETrack: Serialize by Notes Client on Axel Biewer/Plansoft(Release 5.0 (Intl)|30 March 1999) at 28.03.2000 11:45:47, Serialize complete at 28.03.2000 11:45:47
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 28 Mar 2000 04:54:34 -0500
Lines: 21
NNTP-Posting-Host: pec-46.au1.sb.uunet.de 149.228.12.46
Message-ID: <347_v98JfuJm$GA.52@forums.sybase.com>
References: <347_PyMQgo#l$GA.202@forums.sybase.com> <347_38DF72D4.3A45794E@sybase.com> <347_lefAyPAm$GA.201@forums.sybase.com> <347_38DF862E.7094B338@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25516
Article PK: 155597

Thanks for your help; I get now the following ErrorInfo:
'Exception thrown: org.omg.CORBA.COMM_FAILURE: tp:9000 - Connection
refused in method CreateComponent of class jagcomp. Unable to find or
create the required component with the given parameters: "jag/n_jag
iiop://tp:9000 jagadmin jagadmin". '
I indeed didn't compile the generated *.java; when I try to compile them i
get Message:
' Interface org.omg.CORBA.Object of interface jag.n_jag not found.'; this
is probably some Classpath-Problem, but I'm really very confused not
to have some more information about classpath-settings, because there are
*.java files spread in a lot of subdirectories below the EAS-Installation-
directory and I alos cannot find any batch-file that will make the job in
a suitable way?.


Dave Wolf [Sybase] Posted on 2000-03-28 11:28:06.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: PowerDynamo Connection to Jaguar Power Builder Object
Date: Tue, 28 Mar 2000 06:28:06 -0500
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: nomad6-31.sybase.com 157.133.176.31
Message-ID: <347_kfl4WlKm$GA.201@forums.sybase.com>
References: <347_PyMQgo#l$GA.202@forums.sybase.com> <347_38DF72D4.3A45794E@sybase.com> <347_lefAyPAm$GA.201@forums.sybase.com> <347_38DF862E.7094B338@sybase.com> <347_v98JfuJm$GA.52@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25512
Article PK: 155593

Just do this before you compile

SET CLASSPATH=%JAGUAR%\html\classes;.

BTW the COMM_FAILURE means it found the stubs but couldnt connect.

Dave Wolf
Internet Applications Division

<abiewer@plansoft.de> wrote in message
news:v98JfuJm$GA.52@forums.sybase.com...
> Thanks for your help; I get now the following ErrorInfo:
> 'Exception thrown: org.omg.CORBA.COMM_FAILURE: tp:9000 - Connection
> refused in method CreateComponent of class jagcomp. Unable to find or
> create the required component with the given parameters: "jag/n_jag
> iiop://tp:9000 jagadmin jagadmin". '
> I indeed didn't compile the generated *.java; when I try to compile them i
> get Message:
> ' Interface org.omg.CORBA.Object of interface jag.n_jag not found.'; this
> is probably some Classpath-Problem, but I'm really very confused not
> to have some more information about classpath-settings, because there are
> *.java files spread in a lot of subdirectories below the EAS-Installation-
> directory and I alos cannot find any batch-file that will make the job in
> a suitable way?.
>
>


abiewer Posted on 2000-03-30 08:54:20.0Z
Newsgroups: sybase.public.easerver
From: abiewer@plansoft.de
Subject: Re: PowerDynamo Connection to Jaguar Power Builder Object
X-Newsreader: Lotus Notes Release 5.0 (Intl) 30 March 1999
X-Priority: 3 (Normal)
X-MIMETrack: Serialize by Notes Client on Axel Biewer/Plansoft(Release 5.0 (Intl)|30 March 1999) at 30.03.2000 10:46:10, Serialize complete at 30.03.2000 10:46:10
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 30 Mar 2000 03:54:20 -0500
Lines: 3
NNTP-Posting-Host: pec-33.au1.sb.uunet.de 149.228.12.33
Message-ID: <347_jyH0JWim$GA.276@forums.sybase.com>
References: <347_PyMQgo#l$GA.202@forums.sybase.com> <347_38DF72D4.3A45794E@sybase.com> <347_lefAyPAm$GA.201@forums.sybase.com> <347_38DF862E.7094B338@sybase.com> <347_v98JfuJm$GA.52@forums.sybase.com> <347_kfl4WlKm$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25259
Article PK: 155383

Thank you very much,
I finally succeded and the connection to the PB component works fine.
Bye
Axel Biewer


Francois Vachon Posted on 2000-03-27 13:50:51.0Z
Newsgroups: sybase.public.easerver
Date: Mon, 27 Mar 2000 08:50:51 -0500
From: Francois Vachon <fvachon@globetrotter.qc.ca>
X-Mailer: Mozilla 4.05 [en] (WinNT; U)
MIME-Version: 1.0
To: abiewer@plansoft.de
Subject: Re: PowerDynamo Connection to Jaguar Power Builder Object
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 32
NNTP-Posting-Host: 67-164.tr.cgocable.ca 205.151.67.164
Message-ID: <347_38DF673B.B66D751C@globetrotter.qc.ca>
References: <347_PyMQgo#l$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25671
Article PK: 155733

Try this syntax :

jag = java.CreateComponent( "jag/n_jag", "iiop://localhost:9000",
"jagadmin", '');
str = jag.test(1);

Replace localhost by the name of the computer who run Jaguar.

Look at "CreateComponent" ( Java Object) in the PowerDynamo Reference Guide
for more details.

abiewer@plansoft.de wrote:

> I'm a novice in PowerDynamo and I'm trying to use a PowerBuilder NVO
> Jaguar-Component from a PowerDynamo Script.
> The package-name of the PB-Object is 'jag' and the component-name is
> 'n_jag', which has been deployed to JAGUAR using the PowerBuilder 7.0
> wizzard;
> 'test(int)' is a method of the component 'n_jag'.
> Now, I'm triing to create an object in a PD script using this code:
>
> var jag;
> jag=CreateObject("jag.n_jag");
> str=jag.test(1);
>
> but this only brings the error message: Undefined Variable...
> I'm assuming that I'm doing something basically wrong; I'm sure I don't
> have any valid connection to Jaguar.
>
> Now my question is:
> How can I establish a valid connection to a PowerBuilder-Component from
> within PowerDynamo and then create a component and call a method of
> this component?
>
> Could you help me???
> Thanks a lot and sorry for my bad English!
>
> axel biewer


Sem Kazazic Posted on 2000-03-27 13:59:38.0Z
Newsgroups: sybase.public.easerver
From: "Sem Kazazic" <semk@vytalnet.com>
Subject: Re: PowerDynamo Connection to Jaguar Power Builder Object
Date: Mon, 27 Mar 2000 08:59:38 -0500
Lines: 48
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 209.121.88.73
Message-ID: <347_jecErV$l$GA.52@forums.sybase.com>
References: <347_PyMQgo#l$GA.202@forums.sybase.com> <347_38DF673B.B66D751C@globetrotter.qc.ca>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25669
Article PK: 155735

Have you generated stub from jag manager ?
Regards,
Sem.

Francois Vachon wrote in message <38DF673B.B66D751C@globetrotter.qc.ca>...
>Try this syntax :
>
>jag = java.CreateComponent( "jag/n_jag", "iiop://localhost:9000",
>"jagadmin", '');
>str = jag.test(1);
>
>Replace localhost by the name of the computer who run Jaguar.
>
>Look at "CreateComponent" ( Java Object) in the PowerDynamo Reference Guide
>for more details.
>
>abiewer@plansoft.de wrote:
>
>> I'm a novice in PowerDynamo and I'm trying to use a PowerBuilder NVO
>> Jaguar-Component from a PowerDynamo Script.
>> The package-name of the PB-Object is 'jag' and the component-name is
>> 'n_jag', which has been deployed to JAGUAR using the PowerBuilder 7.0
>> wizzard;
>> 'test(int)' is a method of the component 'n_jag'.
>> Now, I'm triing to create an object in a PD script using this code:
>>
>> var jag;
>> jag=CreateObject("jag.n_jag");
>> str=jag.test(1);
>>
>> but this only brings the error message: Undefined Variable...
>> I'm assuming that I'm doing something basically wrong; I'm sure I don't
>> have any valid connection to Jaguar.
>>
>> Now my question is:
>> How can I establish a valid connection to a PowerBuilder-Component from
>> within PowerDynamo and then create a component and call a method of
>> this component?
>>
>> Could you help me???
>> Thanks a lot and sorry for my bad English!
>>
>> axel biewer
>
>
>


abiewer Posted on 2000-03-27 15:39:50.0Z
Newsgroups: sybase.public.easerver
X-Priority: 3 (Normal)
X-MIMETrack: Serialize by Notes Client on Axel Biewer/Plansoft(Release 5.0 (Intl)|30 March 1999) at 27.03.2000 17:31:36, Serialize complete at 27.03.2000 17:31:36, Serialize by Notes Client on Axel Biewer/Plansoft(Release 5.0 (Intl)|30 March 1999) at 27.03.2000 17:31:40, Serialize complete at 27.03.2000 17:31:40
From: abiewer@plansoft.de
Subject: Re: PowerDynamo Connection to Jaguar Power Builder Object
X-Newsreader: Lotus Notes Release 5.0 (Intl) 30 March 1999
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 27 Mar 2000 10:39:50 -0500
Lines: 15
NNTP-Posting-Host: pec-42.au1.sb.uunet.de 149.228.12.42
Message-ID: <347_Ra8jwKAm$GA.290@forums.sybase.com>
References: <347_PyMQgo#l$GA.202@forums.sybase.com> <347_38DF673B.B66D751C@globetrotter.qc.ca> <347_jecErV$l$GA.52@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25655
Article PK: 155722

Thanks for your tips!
I generated stub and I tried the code:
jag = java.CreateComponent( "jag/n_jag", "iiop://tp:9000","jagadmin", '');
str = jag.test(1);
but I still get the message 'Warning: undefined variable jag.test[test] near line 36 in
"/ekat/scripts/start.ssc"'
and I get no connection to the PB object.
I assume that I have to use the following syntax:
connection.CreateComponent (packageName , componentName )
but how can I create the Jaguar-Connection? - I cannot find suitable
examples in the Power Dynamo Reference.
Thanks in advance
axel biewer