Solved

Creating Datawindow Control in PB

Posted on 2000-03-03
2
492 Views
Last Modified: 2010-05-19
Can we create a datawindow control dynamically in Power Builder 6.0 and above. If it is yes how to create it?
0
Comment
Question by:murugaiah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Expert Comment

by:david_levine
ID: 2583118
Wouldn't it be acceptable to create a datawindow in your app and change it programmatically?

What needs to be dynamic?
0
 
LVL 2

Accepted Solution

by:
jkotek earned 15 total points
ID: 2592518

Yes, it is possible using the OpenUserObject window function.

windowname.OpenUserObject ( userobjectvar, userobjecttype {, x, y } )

You have to store the userobjectvar variable for further refference to the opened DataWindow control. The opened object can be in fact any descendant of dragobject - a command button, picture or datawindowcontrol. You only have to specify the type of object in string userobjecttype.

Here is the example:

let there be an instance variable idw_data of type datawindow, that will serve us as a refference to the newly opened DataWindow.

somewhere in the script execute:

w_main.OpenUserObject(idw_data,"datawindow",100,200)

do idw_data.settransobject(), idw_data.retrieve() or what ever you want to do.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question