Solved

What are 2 ways to populate a drop down datawindow?

Posted on 2001-06-16
6
426 Views
Last Modified: 2013-12-26
What are the two ways to populate a drop down datawindow?
0
Comment
Question by:gordito
  • 3
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
hink earned 50 total points
ID: 6202393
1) Plain DDDW's, that don't need any retrieval arguments, will be retrieved automatically at first retrieve of the main DW. It uses the same transaction object as the main DW.

2) DDDW's that needs arguments, another transobject or special handling, must be populated manually (by Your code). At first, use GETCHILD function to get the datawindowchild object (the reference to the child DW). Then You can call SETTRANSOBJECT, RETRIEVE and many other functions (INSERT, FILTER etc.) to handle this child datawindow.
0
 
LVL 1

Expert Comment

by:levr
ID: 6219449
If the main DW is external (not SQL) DDDW has always to be populated by calling RETRIEVE as at the p.2
Lev
0
 
LVL 3

Expert Comment

by:hink
ID: 6223448
You can assign select command later (to external DW's) using setsqlselect or modify (datawindow.table.select). Then the DDDW tries to retrieve data as though to be set in the painter. But is is better to fabricate a SQL Select, otherwise is should not have any retrieval argument. For example "select convert(varchar(20),'') as my_column1, .... from row_generator". You are able to define retrieval arguments, even if they are not used. They can be used when we will set sqlselect in runtime.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:levr
ID: 6271401
as I get your Hink point,
if you setsql to external DW, it would trigger retrieve?
Or I misundenstand some? Lev
0
 
LVL 3

Expert Comment

by:hink
ID: 6276033
Yes, You will obtain SQL Error like "Empty SQL command". But DW Painter doesn't allow to use DW as DDDW, when it doesn't have select of procedure datasource (when it is external). The source SQL must be present. You can obtain this error only when You will assign the DDDW at runtime.

For example: dwo.colname.dddw.name="d_samle_external_dw".

When main DW is retrieved (or first row is inserted), it tries to retrieve all DDDW's that are still empy (have no rows). Before it, You can set another SQL command or retrieve it with arguments if needed (or both).
0
 

Expert Comment

by:SpideyMod
ID: 8297036
Force Accepted

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now