Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0 PowerBuilder
Hi
The below written article in C# is great and really really helped me alot. First thank you for sharing the article.
 

PowerBuilder – Using C# Visual Objects in PB Classic Applications[^]
 

I have a one question, regarding powerbuilder datawindow retrieve for ole object which I want to trace through C#.

Here is what exact where I'm stuck in figuring out the retrieve option.

1) I have created line graph exactly as you explained for creating the "track bar" which is VB6 Interop control. The graph pulls the data through SQL stored procedure which takes one argument/parameter (i.e Id).

2)I have created a new OLE datawindow (adding stored procedure to it) and placed the above created graph control in the powerbuilder datawindow.

3) So, normal datawindow funtionality for Ole objects is, it retrieve the data through stored procedure and passes the data through "target data (datawindow property)" to Ole object.

4) I'm stuck here, where i need to capture the data (for example 'id' value) when datawindow stored procedure passes the id to Ole object.

I could be really help full if some one can assist me how to grab there data from the Powerbuilder ole datawindow through C# interop code.
 
If you please can help me in the above case would be really help full. Your help is much appreciated.

Looking forward to you.
Thank you.

 
Note: Also there is code which sybase recommend is to use the sybase.datawindow.net library ( need to buy the library) to grab the data when data window retrieve passes the data to Ole target data.
VB CODE
settings = dw.Describe("ole1.target")

I dont know how much the above code is help full, but I really dont want to buy the library for now.
Posted 31-Oct-12 21:40pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 386
1 Marcin Kozub 225
2 Sergey Alexandrovich Kryukov 215
3 /\jmot 189
4 Praneet Nadkar 173
0 OriginalGriff 8,289
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,624
3 Maciej Los 4,989
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 1 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100