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.

How to create a non visual object dynamically

14 posts in Objects Last posting was on 2006-07-10 10:01:54.0Z
Sid Posted on 2006-06-27 20:25:06.0Z
Sender: 3d4e.44a15192.1804289383@sybase.com
From: Sid
Newsgroups: sybase.public.powerbuilder.objects
Subject: How to create a non visual object dynamically
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <44a192f0.3fab.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 27 Jun 2006 13:20:00 -0700, 10.22.241.42
Lines: 14
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 27 Jun 2006 13:20:01 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 27 Jun 2006 13:25:06 -0700
X-Trace: forums-1-dub 1151439906 10.22.108.75 (27 Jun 2006 13:25:06 -0700)
X-Original-Trace: 27 Jun 2006 13:25:06 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8902
Article PK: 736100

I am trying to explore ideas to do the following:
(1) Store the source code of non visual user object in a
database
(2) The application retrieves this source code at run time
and builds this non visual and is able to execute its
methods.

Any ideas if this is something that can be accomplishsed ?
Please help

This is similar to the concept of creating dynamic
datawindows.

Thanks


Philip Salgannik Posted on 2006-06-28 01:54:19.0Z
From: "Philip Salgannik" <philemaxNOSPAM@comcast.net>
Newsgroups: sybase.public.powerbuilder.objects
References: <44a192f0.3fab.1681692777@sybase.com>
Subject: Re: How to create a non visual object dynamically
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: c-24-218-138-208.hsd1.ma.comcast.net
Message-ID: <44a1e01d$1@forums-2-dub>
X-Original-Trace: 27 Jun 2006 18:49:17 -0700, c-24-218-138-208.hsd1.ma.comcast.net
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 27 Jun 2006 18:49:20 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 27 Jun 2006 18:54:19 -0700
X-Trace: forums-1-dub 1151459659 10.22.108.75 (27 Jun 2006 18:54:19 -0700)
X-Original-Trace: 27 Jun 2006 18:54:19 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8903
Article PK: 736101

What is the purpose of this excercise and of part (1) in particular?

<Sid> wrote in message news:44a192f0.3fab.1681692777@sybase.com...
>I am trying to explore ideas to do the following:
> (1) Store the source code of non visual user object in a
> database
> (2) The application retrieves this source code at run time
> and builds this non visual and is able to execute its
> methods.
>
> Any ideas if this is something that can be accomplishsed ?
> Please help
>
> This is similar to the concept of creating dynamic
> datawindows.
>
> Thanks


Sid Posted on 2006-06-28 04:24:22.0Z
Sender: 1d1d.44a203ad.1804289383@sybase.com
From: Sid
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: How to create a non visual object dynamically
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <44a20476.1d23.1681692777@sybase.com>
References: <44a1e01d$1@forums-2-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 27 Jun 2006 21:24:22 -0700
X-Trace: forums-1-dub 1151468662 10.22.241.41 (27 Jun 2006 21:24:22 -0700)
X-Original-Trace: 27 Jun 2006 21:24:22 -0700, 10.22.241.41
Lines: 26
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8904
Article PK: 736104

Its is simple. I can make changes to the user object code
and apply changes to the database without re building my
application

> What is the purpose of this excercise and of part (1) in
> particular?
>
> <Sid> wrote in message
> news:44a192f0.3fab.1681692777@sybase.com... >I am trying
> > to explore ideas to do the following: (1) Store the
> > source code of non visual user object in a database
> > (2) The application retrieves this source code at run
> > time and builds this non visual and is able to execute
> > its methods.
> >
> > Any ideas if this is something that can be accomplishsed
> > ? Please help
> >
> > This is similar to the concept of creating dynamic
> > datawindows.
> >
> > Thanks
>
>


Jason 'Bug' Fenter [TeamSybase] Posted on 2006-06-28 13:11:35.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <jason.fenter@teamsybase.com>
User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: How to create a non visual object dynamically
References: <44a1e01d$1@forums-2-dub> <44a20476.1d23.1681692777@sybase.com>
In-Reply-To: <44a20476.1d23.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: ppp-70-251-79-2.dsl.rcsntx.swbell.net
X-Original-NNTP-Posting-Host: ppp-70-251-79-2.dsl.rcsntx.swbell.net
Message-ID: <44a28007$1@forums-1-dub>
Date: 28 Jun 2006 06:11:35 -0700
X-Trace: forums-1-dub 1151500295 70.251.79.2 (28 Jun 2006 06:11:35 -0700)
X-Original-Trace: 28 Jun 2006 06:11:35 -0700, ppp-70-251-79-2.dsl.rcsntx.swbell.net
Lines: 38
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8905
Article PK: 736103

You won't be able to do this. PowerScript is a compiled language, not an
interpreted one. The closest you can get is Describe("evaluate()") and
datawindow expressions. (Well, you can look at ORCAScript, but I don't
think that will even get you where you want to go.)

Here's one alternative: use VBScript. You can connect to the Windows
scripting engine via COM and run code that way. (I'd have to Google for
details and I'm running late for work.) With the quality and power of
VBScript compared to PowerScript (PB), I wouldn't be happy with this
solution myself.

Sid wrote:
> Its is simple. I can make changes to the user object code
> and apply changes to the database without re building my
> application
>
>
>
>> What is the purpose of this excercise and of part (1) in
>> particular?
>>
>> <Sid> wrote in message
>> news:44a192f0.3fab.1681692777@sybase.com... >I am trying
>>> to explore ideas to do the following: (1) Store the
>>> source code of non visual user object in a database
>>> (2) The application retrieves this source code at run
>>> time and builds this non visual and is able to execute
>>> its methods.
>>>
>>> Any ideas if this is something that can be accomplishsed
>>> ? Please help
>>>
>>> This is similar to the concept of creating dynamic
>>> datawindows.
>>>
>>> Thanks
>>


"Alexander Pire" <Alexander_no_spam_ Posted on 2006-06-29 03:56:08.0Z
From: "Alexander Pire" <Alexander_no_spam_@powerobjects_dot_com>
Newsgroups: sybase.public.powerbuilder.objects
References: <44a1e01d$1@forums-2-dub> <44a20476.1d23.1681692777@sybase.com> <44a28007$1@forums-1-dub>
Subject: Re: How to create a non visual object dynamically
Lines: 74
Organization: PowerObjects
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 71-215-236-220.mpls.qwest.net
X-Original-NNTP-Posting-Host: 71-215-236-220.mpls.qwest.net
Message-ID: <44a34f58$1@forums-1-dub>
Date: 28 Jun 2006 20:56:08 -0700
X-Trace: forums-1-dub 1151553368 71.215.236.220 (28 Jun 2006 20:56:08 -0700)
X-Original-Trace: 28 Jun 2006 20:56:08 -0700, 71-215-236-220.mpls.qwest.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8906
Article PK: 736106

Interesting, never thougth in this before, I think with Orca you can put the
nvo into a pbl, not pbd, after this you should be able to generate the pbd.
another crazy idea is save the PBD in the DB, in this way you can downloaded
the pbd into a file when your timestamp are different (or any flags), and
after that you should be able to add this pbd dinamicly to your
application(this is not hard to do it), next some interesting point here.

As ORB if you change any signature of any method in your NVO you should have
to rebuild your clients, one idea to solve this problem could be make
dinamic call and save the signature info in the DB, so as soon as you modify
the signature of any method in your NVO you have to change your pseudo IDL.
This is not looking easy to do. Another idea about it could be if you put
the client as separate pbd and save it into the DB, so as soon as you have
any change in the nvo pbd and specific in some signatures you can put the
new client too, so the application can retrieve the last client and the last
nvo.

hehehe, If you are going to implement this, think better in use an
application server and partition your app, would be easier to develop this
crazy idea.

Regards

--

Alexander Pire
PowerObjects
www.powerobjects.com
612.339.3355
**IT Solutions - Outside the Box**

"Jason 'Bug' Fenter [TeamSybase]" <jason.fenter@teamsybase.com> wrote in
message news:44a28007$1@forums-1-dub...
> You won't be able to do this. PowerScript is a compiled language, not an
> interpreted one. The closest you can get is Describe("evaluate()") and
> datawindow expressions. (Well, you can look at ORCAScript, but I don't
> think that will even get you where you want to go.)
>
> Here's one alternative: use VBScript. You can connect to the Windows
> scripting engine via COM and run code that way. (I'd have to Google for
> details and I'm running late for work.) With the quality and power of
> VBScript compared to PowerScript (PB), I wouldn't be happy with this
> solution myself.
>
>
> Sid wrote:
>> Its is simple. I can make changes to the user object code
>> and apply changes to the database without re building my
>> application
>>
>>
>>
>>> What is the purpose of this excercise and of part (1) in
>>> particular?
>>>
>>> <Sid> wrote in message
>>> news:44a192f0.3fab.1681692777@sybase.com... >I am trying
>>>> to explore ideas to do the following: (1) Store the
>>>> source code of non visual user object in a database
>>>> (2) The application retrieves this source code at run
>>>> time and builds this non visual and is able to execute
>>>> its methods.
>>>>
>>>> Any ideas if this is something that can be accomplishsed
>>>> ? Please help
>>>>
>>>> This is similar to the concept of creating dynamic
>>>> datawindows.
>>>>
>>>> Thanks
>>>


Bruce Armstrong [TeamSybase] Posted on 2006-06-29 04:04:05.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAMbruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: How to create a non visual object dynamically
Organization: TeamSybase
Reply-To: NOCANSPAMbruce.armstrong@teamsybase.com
Message-ID: <8uj6a29bgstlkv2crql7d6ss0q116iguli@4ax.com>
References: <44a1e01d$1@forums-2-dub> <44a20476.1d23.1681692777@sybase.com> <44a28007$1@forums-1-dub> <44a34f58$1@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 68-190-226-38.static.lsan.ca.charter.com
X-Original-Trace: 28 Jun 2006 20:58:58 -0700, 68-190-226-38.static.lsan.ca.charter.com
Lines: 16
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 28 Jun 2006 20:58:59 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 28 Jun 2006 21:04:05 -0700
X-Trace: forums-1-dub 1151553845 10.22.108.75 (28 Jun 2006 21:04:05 -0700)
X-Original-Trace: 28 Jun 2006 21:04:05 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8907
Article PK: 736105

On 28 Jun 2006 20:56:08 -0700, "Alexander Pire"

<Alexander_no_spam_@powerobjects_dot_com> wrote:

>
>hehehe, If you are going to implement this, think better in use an
>application server and partition your app, would be easier to develop this
>crazy idea.
>

Yep, either that or put a lot of the business logic code in stored
procedures/functions/packages in the database. Just get it out of the
client somewhere so you don't have to redeploy for a business logic
change.


"Alexander Pire" <Alexander_no_spam_ Posted on 2006-06-29 04:12:30.0Z
From: "Alexander Pire" <Alexander_no_spam_@powerobjects_dot_com>
Newsgroups: sybase.public.powerbuilder.objects
References: <44a1e01d$1@forums-2-dub> <44a20476.1d23.1681692777@sybase.com> <44a28007$1@forums-1-dub> <44a34f58$1@forums-1-dub> <8uj6a29bgstlkv2crql7d6ss0q116iguli@4ax.com>
Subject: Re: How to create a non visual object dynamically
Lines: 31
Organization: PowerObjects
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: 71-215-236-220.mpls.qwest.net
Message-ID: <44a351f9@forums-2-dub>
X-Original-Trace: 28 Jun 2006 21:07:21 -0700, 71-215-236-220.mpls.qwest.net
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 28 Jun 2006 21:07:24 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 28 Jun 2006 21:12:30 -0700
X-Trace: forums-1-dub 1151554350 10.22.108.75 (28 Jun 2006 21:12:30 -0700)
X-Original-Trace: 28 Jun 2006 21:12:30 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8908
Article PK: 736109

Much Better and cheapier put the logic into db.

--

Alexander Pire
PowerObjects
www.powerobjects.com
612.339.3355
**IT Solutions - Outside the Box**


"Bruce Armstrong [TeamSybase]" <NOCANSPAMbruce.armstrong@teamsybase.com>

wrote in message news:8uj6a29bgstlkv2crql7d6ss0q116iguli@4ax.com...
> On 28 Jun 2006 20:56:08 -0700, "Alexander Pire"
> <Alexander_no_spam_@powerobjects_dot_com> wrote:
>
>>
>>hehehe, If you are going to implement this, think better in use an
>>application server and partition your app, would be easier to develop this
>>crazy idea.
>>
>
> Yep, either that or put a lot of the business logic code in stored
> procedures/functions/packages in the database. Just get it out of the
> client somewhere so you don't have to redeploy for a business logic
> change.
>
>
>


Papadomichelakis Ioannis Posted on 2006-06-29 09:05:35.0Z
From: "Papadomichelakis Ioannis" <dont.spam.me.please.papadomichelakis@logismos.gr>
Newsgroups: sybase.public.powerbuilder.objects
References: <44a1e01d$1@forums-2-dub> <44a20476.1d23.1681692777@sybase.com>
Subject: Re: How to create a non visual object dynamically
Lines: 33
Organization: Logismos s.a.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: logismos1.the.forthnet.gr
Message-ID: <44a396a8$1@forums-2-dub>
X-Original-Trace: 29 Jun 2006 02:00:24 -0700, logismos1.the.forthnet.gr
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 29 Jun 2006 02:00:27 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 29 Jun 2006 02:05:35 -0700
X-Trace: forums-1-dub 1151571935 10.22.108.75 (29 Jun 2006 02:05:35 -0700)
X-Original-Trace: 29 Jun 2006 02:05:35 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8910
Article PK: 736107

Why not putting your code in separate pbd (or dll) in order to incrementally
deploy your changes?

<Sid> wrote in message news:44a20476.1d23.1681692777@sybase.com...
> Its is simple. I can make changes to the user object code
> and apply changes to the database without re building my
> application
>
>
>
>> What is the purpose of this excercise and of part (1) in
>> particular?
>>
>> <Sid> wrote in message
>> news:44a192f0.3fab.1681692777@sybase.com... >I am trying
>> > to explore ideas to do the following: (1) Store the
>> > source code of non visual user object in a database
>> > (2) The application retrieves this source code at run
>> > time and builds this non visual and is able to execute
>> > its methods.
>> >
>> > Any ideas if this is something that can be accomplishsed
>> > ? Please help
>> >
>> > This is similar to the concept of creating dynamic
>> > datawindows.
>> >
>> > Thanks
>>
>>


dinis miguel Posted on 2006-07-06 14:35:06.0Z
From: "dinis miguel" <dinis.miguel@sisgarbe.pt>
Newsgroups: sybase.public.powerbuilder.objects
References: <44a192f0.3fab.1681692777@sybase.com>
Subject: Re: How to create a non visual object dynamically
Lines: 526
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: static-b4-248-148.telepac.pt
X-Original-NNTP-Posting-Host: static-b4-248-148.telepac.pt
Message-ID: <44ad1f9a@forums-1-dub>
Date: 6 Jul 2006 07:35:06 -0700
X-Trace: forums-1-dub 1152196506 81.193.248.148 (6 Jul 2006 07:35:06 -0700)
X-Original-Trace: 6 Jul 2006 07:35:06 -0700, static-b4-248-148.telepac.pt
X-Authenticated-User: pb110beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8911
Article PK: 736111

Try this.
Only tested with PB8

<Sid> escreveu na mensagem news:44a192f0.3fab.1681692777@sybase.com...

>I am trying to explore ideas to do the following:
> (1) Store the source code of non visual user object in a
> database
> (2) The application retrieves this source code at run time
> and builds this non visual and is able to execute its
> methods.
>
> Any ideas if this is something that can be accomplishsed ?
> Please help
>
> This is similar to the concept of creating dynamic
> datawindows.
>
> Thanks


"Alexander Pire" <Alexander_no_spam_ Posted on 2006-07-07 17:11:31.0Z
From: "Alexander Pire" <Alexander_no_spam_@powerobjects_dot_com>
Newsgroups: sybase.public.powerbuilder.objects
References: <44a192f0.3fab.1681692777@sybase.com> <44ad1f9a@forums-1-dub>
Subject: Re: How to create a non visual object dynamically
Lines: 40
Organization: PowerObjects
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-Original-NNTP-Posting-Host: 12.43.229.154
Message-ID: <44ae945d$1@forums-2-dub>
X-Original-Trace: 7 Jul 2006 10:05:33 -0700, 12.43.229.154
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 7 Jul 2006 10:05:36 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 7 Jul 2006 10:11:31 -0700
X-Trace: forums-1-dub 1152292291 10.22.108.75 (7 Jul 2006 10:11:31 -0700)
X-Original-Trace: 7 Jul 2006 10:11:31 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8913
Article PK: 736108

PB 9 is exactly the same, just change the dll name, I have had some problems
with ORCA 10 dlls, so I can't say the same.

Great code, I never tried before to put the source code directly into the
PDB.

--

Alexander Pire
PowerObjects
www.powerobjects.com
612.339.3355
**IT Solutions - Outside the Box**

"dinis miguel" <dinis.miguel@sisgarbe.pt> wrote in message
news:44ad1f9a@forums-1-dub...
> Try this.
> Only tested with PB8
>
> <Sid> escreveu na mensagem news:44a192f0.3fab.1681692777@sybase.com...
>>I am trying to explore ideas to do the following:
>> (1) Store the source code of non visual user object in a
>> database
>> (2) The application retrieves this source code at run time
>> and builds this non visual and is able to execute its
>> methods.
>>
>> Any ideas if this is something that can be accomplishsed ?
>> Please help
>>
>> This is similar to the concept of creating dynamic
>> datawindows.
>>
>> Thanks
>
>
>


dinis miguel Posted on 2006-07-07 17:25:59.0Z
From: "dinis miguel" <dinis.miguel@sisgarbe.pt>
Newsgroups: sybase.public.powerbuilder.objects
References: <44a192f0.3fab.1681692777@sybase.com> <44ad1f9a@forums-1-dub> <44ae945d$1@forums-2-dub>
Subject: Re: How to create a non visual object dynamically
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Response
X-Original-NNTP-Posting-Host: static-b4-248-148.telepac.pt
Message-ID: <44ae97c0$1@forums-2-dub>
X-Original-Trace: 7 Jul 2006 10:20:00 -0700, static-b4-248-148.telepac.pt
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 7 Jul 2006 10:20:02 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 7 Jul 2006 10:25:59 -0700
X-Trace: forums-1-dub 1152293159 10.22.108.75 (7 Jul 2006 10:25:59 -0700)
X-Original-Trace: 7 Jul 2006 10:25:59 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8914
Article PK: 736113

Isn't so easy, already i've tried with PB9 and can't get it work.
Sounds like sybase folks changed something

"Alexander Pire" <Alexander_no_spam_@powerobjects_dot_com> escreveu na
mensagem news:44ae945d$1@forums-2-dub...

> PB 9 is exactly the same, just change the dll name, I have had some
> problems with ORCA 10 dlls, so I can't say the same.
>
> Great code, I never tried before to put the source code directly into the
> PDB.
>
> --
>
> Alexander Pire
> PowerObjects
> www.powerobjects.com
> 612.339.3355
> **IT Solutions - Outside the Box**
>
>
> "dinis miguel" <dinis.miguel@sisgarbe.pt> wrote in message
> news:44ad1f9a@forums-1-dub...
>> Try this.
>> Only tested with PB8
>>
>> <Sid> escreveu na mensagem news:44a192f0.3fab.1681692777@sybase.com...
>>>I am trying to explore ideas to do the following:
>>> (1) Store the source code of non visual user object in a
>>> database
>>> (2) The application retrieves this source code at run time
>>> and builds this non visual and is able to execute its
>>> methods.
>>>
>>> Any ideas if this is something that can be accomplishsed ?
>>> Please help
>>>
>>> This is similar to the concept of creating dynamic
>>> datawindows.
>>>
>>> Thanks
>>
>>
>>
>
>


"Alexander Pire" <Alexander_no_spam_ Posted on 2006-07-07 19:56:37.0Z
From: "Alexander Pire" <Alexander_no_spam_@powerobjects_dot_com>
Newsgroups: sybase.public.powerbuilder.objects
References: <44a192f0.3fab.1681692777@sybase.com> <44ad1f9a@forums-1-dub> <44ae945d$1@forums-2-dub> <44ae97c0$1@forums-2-dub>
Subject: Re: How to create a non visual object dynamically
Lines: 109
Organization: PowerObjects
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 12.43.229.154
X-Original-NNTP-Posting-Host: 12.43.229.154
Message-ID: <44aebc75$1@forums-1-dub>
Date: 7 Jul 2006 12:56:37 -0700
X-Trace: forums-1-dub 1152302197 12.43.229.154 (7 Jul 2006 12:56:37 -0700)
X-Original-Trace: 7 Jul 2006 12:56:37 -0700, 12.43.229.154
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8915
Article PK: 736112

I tried your sample in PB9 and is working to me, but I didn't try in PB10
because I have had another problems with other tool a built sometime ago.

This what I did with your code and it worked for me.

Function long SessionOpen () Library "PBORC90.DLL" Alias for
"PBORCA_SessionOpen"
Subroutine SessionClose ( long hORCASession ) Library "PBORC90.DLL" Alias
for "PBORCA_SessionClose"
Function int SessionSetLibraryList ( long hORCASession, ref string
pLibNames[], int iNumberOfLibs) Library "PBORC90.DLL" Alias for
"PBORCA_SessionSetLibraryList"
Function int SessionSetCurrentAppl ( long hORCASession, string
lpszApplLibName, string lpszApplName ) Library "PBORC90.DLL" Alias for
"PBORCA_SessionSetCurrentAppl"
Function int LibraryEntryExport ( long hORCASession, string lpszLibraryName,
string lpszEntryName, long otEntryType, ref string lpszExportBuffer, long
lExportBufferSize ) Library "PBORC90.DLL" Alias for
"PBORCA_LibraryEntryExport"
Function int CompileEntryImport ( long hORCASession, string lpszLibraryName,
string lpszEntryName, long otEntryType, string lpszComments, string
lpszEntrySyntax, long lEntrySyntaxBuffSize, long pCompErrorProc, long
pUserData ) Library "PBORC90.DLL" Alias for "PBORCA_CompileEntryImport"
Function int LibraryEntryCopy ( long hORCASession, string lpszSourceLibName,
string lpszDestLibName, string lpszEntryName, long otEntryType ) Library
"PBORC90.DLL" Alias for "PBORCA_LibraryEntryCopy"
/*
Function long SessionOpen () Library "PBORC80.DLL" Alias for
"PBORCA_SessionOpen"
Subroutine SessionClose ( long hORCASession ) Library "PBORC80.DLL" Alias
for "PBORCA_SessionClose"
Function int SessionSetLibraryList ( long hORCASession, ref string
pLibNames[], int iNumberOfLibs) Library "PBORC80.DLL" Alias for
"PBORCA_SessionSetLibraryList"
Function int SessionSetCurrentAppl ( long hORCASession, string
lpszApplLibName, string lpszApplName ) Library "PBORC80.DLL" Alias for
"PBORCA_SessionSetCurrentAppl"
Function int LibraryEntryExport ( long hORCASession, string lpszLibraryName,
string lpszEntryName, long otEntryType, ref string lpszExportBuffer, long
lExportBufferSize ) Library "PBORC80.DLL" Alias for
"PBORCA_LibraryEntryExport"
Function int CompileEntryImport ( long hORCASession, string lpszLibraryName,
string lpszEntryName, long otEntryType, string lpszComments, string
lpszEntrySyntax, long lEntrySyntaxBuffSize, long pCompErrorProc, long
pUserData ) Library "PBORC80.DLL" Alias for "PBORCA_CompileEntryImport"
Function int LibraryEntryCopy ( long hORCASession, string lpszSourceLibName,
string lpszDestLibName, string lpszEntryName, long otEntryType ) Library
"PBORC80.DLL" Alias for "PBORCA_LibraryEntryCopy"
*/
--

Alexander Pire
PowerObjects
www.powerobjects.com
612.339.3355
**IT Solutions - Outside the Box**

"dinis miguel" <dinis.miguel@sisgarbe.pt> wrote in message
news:44ae97c0$1@forums-2-dub...
> Isn't so easy, already i've tried with PB9 and can't get it work.
> Sounds like sybase folks changed something
>
> "Alexander Pire" <Alexander_no_spam_@powerobjects_dot_com> escreveu na
> mensagem news:44ae945d$1@forums-2-dub...
>> PB 9 is exactly the same, just change the dll name, I have had some
>> problems with ORCA 10 dlls, so I can't say the same.
>>
>> Great code, I never tried before to put the source code directly into the
>> PDB.
>>
>> --
>>
>> Alexander Pire
>> PowerObjects
>> www.powerobjects.com
>> 612.339.3355
>> **IT Solutions - Outside the Box**
>>
>>
>> "dinis miguel" <dinis.miguel@sisgarbe.pt> wrote in message
>> news:44ad1f9a@forums-1-dub...
>>> Try this.
>>> Only tested with PB8
>>>
>>> <Sid> escreveu na mensagem news:44a192f0.3fab.1681692777@sybase.com...
>>>>I am trying to explore ideas to do the following:
>>>> (1) Store the source code of non visual user object in a
>>>> database
>>>> (2) The application retrieves this source code at run time
>>>> and builds this non visual and is able to execute its
>>>> methods.
>>>>
>>>> Any ideas if this is something that can be accomplishsed ?
>>>> Please help
>>>>
>>>> This is similar to the concept of creating dynamic
>>>> datawindows.
>>>>
>>>> Thanks
>>>
>>>
>>>
>>
>>
>
>


"Alexander Pire" <Alexander_no_spam_ Posted on 2006-07-07 20:01:28.0Z
From: "Alexander Pire" <Alexander_no_spam_@powerobjects_dot_com>
Newsgroups: sybase.public.powerbuilder.objects
References: <44a192f0.3fab.1681692777@sybase.com> <44ad1f9a@forums-1-dub> <44ae945d$1@forums-2-dub> <44ae97c0$1@forums-2-dub> <44aebc75$1@forums-1-dub>
Subject: Re: How to create a non visual object dynamically
Lines: 129
Organization: PowerObjects
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 12.43.229.154
X-Original-NNTP-Posting-Host: 12.43.229.154
Message-ID: <44aebd98@forums-1-dub>
Date: 7 Jul 2006 13:01:28 -0700
X-Trace: forums-1-dub 1152302488 12.43.229.154 (7 Jul 2006 13:01:28 -0700)
X-Original-Trace: 7 Jul 2006 13:01:28 -0700, 12.43.229.154
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8916
Article PK: 736114

Do you want I tested something specific, to see what is your problem?,
another option could be some bug I tested in PB 9.0.3 8614

Let me know, I'm glad to help you

--

Alexander Pire
PowerObjects
www.powerobjects.com
612.339.3355
**IT Solutions - Outside the Box**

"Alexander Pire" <Alexander_no_spam_@powerobjects_dot_com> wrote in message
news:44aebc75$1@forums-1-dub...
>I tried your sample in PB9 and is working to me, but I didn't try in PB10
>because I have had another problems with other tool a built sometime ago.
>
> This what I did with your code and it worked for me.
>
> Function long SessionOpen () Library "PBORC90.DLL" Alias for
> "PBORCA_SessionOpen"
> Subroutine SessionClose ( long hORCASession ) Library "PBORC90.DLL" Alias
> for "PBORCA_SessionClose"
> Function int SessionSetLibraryList ( long hORCASession, ref string
> pLibNames[], int iNumberOfLibs) Library "PBORC90.DLL" Alias for
> "PBORCA_SessionSetLibraryList"
> Function int SessionSetCurrentAppl ( long hORCASession, string
> lpszApplLibName, string lpszApplName ) Library "PBORC90.DLL" Alias for
> "PBORCA_SessionSetCurrentAppl"
> Function int LibraryEntryExport ( long hORCASession, string
> lpszLibraryName, string lpszEntryName, long otEntryType, ref string
> lpszExportBuffer, long lExportBufferSize ) Library "PBORC90.DLL" Alias for
> "PBORCA_LibraryEntryExport"
> Function int CompileEntryImport ( long hORCASession, string
> lpszLibraryName, string lpszEntryName, long otEntryType, string
> lpszComments, string lpszEntrySyntax, long lEntrySyntaxBuffSize, long
> pCompErrorProc, long pUserData ) Library "PBORC90.DLL" Alias for
> "PBORCA_CompileEntryImport"
> Function int LibraryEntryCopy ( long hORCASession, string
> lpszSourceLibName, string lpszDestLibName, string lpszEntryName, long
> otEntryType ) Library "PBORC90.DLL" Alias for "PBORCA_LibraryEntryCopy"
> /*
> Function long SessionOpen () Library "PBORC80.DLL" Alias for
> "PBORCA_SessionOpen"
> Subroutine SessionClose ( long hORCASession ) Library "PBORC80.DLL" Alias
> for "PBORCA_SessionClose"
> Function int SessionSetLibraryList ( long hORCASession, ref string
> pLibNames[], int iNumberOfLibs) Library "PBORC80.DLL" Alias for
> "PBORCA_SessionSetLibraryList"
> Function int SessionSetCurrentAppl ( long hORCASession, string
> lpszApplLibName, string lpszApplName ) Library "PBORC80.DLL" Alias for
> "PBORCA_SessionSetCurrentAppl"
> Function int LibraryEntryExport ( long hORCASession, string
> lpszLibraryName, string lpszEntryName, long otEntryType, ref string
> lpszExportBuffer, long lExportBufferSize ) Library "PBORC80.DLL" Alias for
> "PBORCA_LibraryEntryExport"
> Function int CompileEntryImport ( long hORCASession, string
> lpszLibraryName, string lpszEntryName, long otEntryType, string
> lpszComments, string lpszEntrySyntax, long lEntrySyntaxBuffSize, long
> pCompErrorProc, long pUserData ) Library "PBORC80.DLL" Alias for
> "PBORCA_CompileEntryImport"
> Function int LibraryEntryCopy ( long hORCASession, string
> lpszSourceLibName, string lpszDestLibName, string lpszEntryName, long
> otEntryType ) Library "PBORC80.DLL" Alias for "PBORCA_LibraryEntryCopy"
> */
> --
>
> Alexander Pire
> PowerObjects
> www.powerobjects.com
> 612.339.3355
> **IT Solutions - Outside the Box**
>
>
> "dinis miguel" <dinis.miguel@sisgarbe.pt> wrote in message
> news:44ae97c0$1@forums-2-dub...
>> Isn't so easy, already i've tried with PB9 and can't get it work.
>> Sounds like sybase folks changed something
>>
>> "Alexander Pire" <Alexander_no_spam_@powerobjects_dot_com> escreveu na
>> mensagem news:44ae945d$1@forums-2-dub...
>>> PB 9 is exactly the same, just change the dll name, I have had some
>>> problems with ORCA 10 dlls, so I can't say the same.
>>>
>>> Great code, I never tried before to put the source code directly into
>>> the PDB.
>>>
>>> --
>>>
>>> Alexander Pire
>>> PowerObjects
>>> www.powerobjects.com
>>> 612.339.3355
>>> **IT Solutions - Outside the Box**
>>>
>>>
>>> "dinis miguel" <dinis.miguel@sisgarbe.pt> wrote in message
>>> news:44ad1f9a@forums-1-dub...
>>>> Try this.
>>>> Only tested with PB8
>>>>
>>>> <Sid> escreveu na mensagem news:44a192f0.3fab.1681692777@sybase.com...
>>>>>I am trying to explore ideas to do the following:
>>>>> (1) Store the source code of non visual user object in a
>>>>> database
>>>>> (2) The application retrieves this source code at run time
>>>>> and builds this non visual and is able to execute its
>>>>> methods.
>>>>>
>>>>> Any ideas if this is something that can be accomplishsed ?
>>>>> Please help
>>>>>
>>>>> This is similar to the concept of creating dynamic
>>>>> datawindows.
>>>>>
>>>>> Thanks
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


dinis miguel Posted on 2006-07-10 10:01:54.0Z
From: "dinis miguel" <dinis.miguel@sisgarbe.pt>
Newsgroups: sybase.public.powerbuilder.objects
References: <44a192f0.3fab.1681692777@sybase.com> <44ad1f9a@forums-1-dub> <44ae945d$1@forums-2-dub> <44ae97c0$1@forums-2-dub> <44aebc75$1@forums-1-dub>
Subject: Re: How to create a non visual object dynamically
Lines: 121
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Response
X-Original-NNTP-Posting-Host: static-b4-248-148.telepac.pt
Message-ID: <44b2241d@forums-2-dub>
X-Original-Trace: 10 Jul 2006 02:55:41 -0700, static-b4-248-148.telepac.pt
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Jul 2006 02:55:42 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Jul 2006 03:01:54 -0700
X-Trace: forums-1-dub 1152525714 10.22.108.75 (10 Jul 2006 03:01:54 -0700)
X-Original-Trace: 10 Jul 2006 03:01:54 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8928
Article PK: 736125

Other solution is:
http://www.topwizprogramming.com/

Goto PBOrcapi link


"Alexander Pire" <Alexander_no_spam_@powerobjects_dot_com> escreveu na
mensagem news:44aebc75$1@forums-1-dub...

>I tried your sample in PB9 and is working to me, but I didn't try in PB10
>because I have had another problems with other tool a built sometime ago.
>
> This what I did with your code and it worked for me.
>
> Function long SessionOpen () Library "PBORC90.DLL" Alias for
> "PBORCA_SessionOpen"
> Subroutine SessionClose ( long hORCASession ) Library "PBORC90.DLL" Alias
> for "PBORCA_SessionClose"
> Function int SessionSetLibraryList ( long hORCASession, ref string
> pLibNames[], int iNumberOfLibs) Library "PBORC90.DLL" Alias for
> "PBORCA_SessionSetLibraryList"
> Function int SessionSetCurrentAppl ( long hORCASession, string
> lpszApplLibName, string lpszApplName ) Library "PBORC90.DLL" Alias for
> "PBORCA_SessionSetCurrentAppl"
> Function int LibraryEntryExport ( long hORCASession, string
> lpszLibraryName, string lpszEntryName, long otEntryType, ref string
> lpszExportBuffer, long lExportBufferSize ) Library "PBORC90.DLL" Alias for
> "PBORCA_LibraryEntryExport"
> Function int CompileEntryImport ( long hORCASession, string
> lpszLibraryName, string lpszEntryName, long otEntryType, string
> lpszComments, string lpszEntrySyntax, long lEntrySyntaxBuffSize, long
> pCompErrorProc, long pUserData ) Library "PBORC90.DLL" Alias for
> "PBORCA_CompileEntryImport"
> Function int LibraryEntryCopy ( long hORCASession, string
> lpszSourceLibName, string lpszDestLibName, string lpszEntryName, long
> otEntryType ) Library "PBORC90.DLL" Alias for "PBORCA_LibraryEntryCopy"
> /*
> Function long SessionOpen () Library "PBORC80.DLL" Alias for
> "PBORCA_SessionOpen"
> Subroutine SessionClose ( long hORCASession ) Library "PBORC80.DLL" Alias
> for "PBORCA_SessionClose"
> Function int SessionSetLibraryList ( long hORCASession, ref string
> pLibNames[], int iNumberOfLibs) Library "PBORC80.DLL" Alias for
> "PBORCA_SessionSetLibraryList"
> Function int SessionSetCurrentAppl ( long hORCASession, string
> lpszApplLibName, string lpszApplName ) Library "PBORC80.DLL" Alias for
> "PBORCA_SessionSetCurrentAppl"
> Function int LibraryEntryExport ( long hORCASession, string
> lpszLibraryName, string lpszEntryName, long otEntryType, ref string
> lpszExportBuffer, long lExportBufferSize ) Library "PBORC80.DLL" Alias for
> "PBORCA_LibraryEntryExport"
> Function int CompileEntryImport ( long hORCASession, string
> lpszLibraryName, string lpszEntryName, long otEntryType, string
> lpszComments, string lpszEntrySyntax, long lEntrySyntaxBuffSize, long
> pCompErrorProc, long pUserData ) Library "PBORC80.DLL" Alias for
> "PBORCA_CompileEntryImport"
> Function int LibraryEntryCopy ( long hORCASession, string
> lpszSourceLibName, string lpszDestLibName, string lpszEntryName, long
> otEntryType ) Library "PBORC80.DLL" Alias for "PBORCA_LibraryEntryCopy"
> */
> --
>
> Alexander Pire
> PowerObjects
> www.powerobjects.com
> 612.339.3355
> **IT Solutions - Outside the Box**
>
>
> "dinis miguel" <dinis.miguel@sisgarbe.pt> wrote in message
> news:44ae97c0$1@forums-2-dub...
>> Isn't so easy, already i've tried with PB9 and can't get it work.
>> Sounds like sybase folks changed something
>>
>> "Alexander Pire" <Alexander_no_spam_@powerobjects_dot_com> escreveu na
>> mensagem news:44ae945d$1@forums-2-dub...
>>> PB 9 is exactly the same, just change the dll name, I have had some
>>> problems with ORCA 10 dlls, so I can't say the same.
>>>
>>> Great code, I never tried before to put the source code directly into
>>> the PDB.
>>>
>>> --
>>>
>>> Alexander Pire
>>> PowerObjects
>>> www.powerobjects.com
>>> 612.339.3355
>>> **IT Solutions - Outside the Box**
>>>
>>>
>>> "dinis miguel" <dinis.miguel@sisgarbe.pt> wrote in message
>>> news:44ad1f9a@forums-1-dub...
>>>> Try this.
>>>> Only tested with PB8
>>>>
>>>> <Sid> escreveu na mensagem news:44a192f0.3fab.1681692777@sybase.com...
>>>>>I am trying to explore ideas to do the following:
>>>>> (1) Store the source code of non visual user object in a
>>>>> database
>>>>> (2) The application retrieves this source code at run time
>>>>> and builds this non visual and is able to execute its
>>>>> methods.
>>>>>
>>>>> Any ideas if this is something that can be accomplishsed ?
>>>>> Please help
>>>>>
>>>>> This is similar to the concept of creating dynamic
>>>>> datawindows.
>>>>>
>>>>> Thanks
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>