How to get clicked column of Nested Datawindow

Posted on 2002-04-22
Last Modified: 2013-12-26
Hello Experts
I need some help for the following point.
I want to open new report based on the clicked column of nested report. Can any one help me "How can I get clicked column of nested (inner) dw".

Question by:pjaishankar
  • 3

Expert Comment

ID: 6977271
Hello Shanker,

Say dw_1 is the datawindow contain further two datawindows. (So dw_1. is nested report datawindow) and the dws placed in this dw_1 are the child datawindows. When we create a nested report we select one or more datawindows, these are the child datawindow. Now PB set the taborder of the columns in the childdatawindows to 0. This mean if you clicked on a such column which taborder is 0 will return 0. So all columns of the childdatawindows will return you 0.

You cannot know which column is clicked. You cant use property in the nested report. Datawndowchild have no event and no property.

As you know well how to create a datawindow dynamically. This may help you.

If you need any explaination please let me know.

Other way: you can put these datawindows in Window instead of nested report. And let the user to click on the column and transfer to the report to print.

Anyhow let me know further.

Best regards.


Expert Comment

ID: 6977402
Hi Jai,

It is also the way you wrote, the script I mntioned is working good. You can now build dws dynamically.
Of course little hard work.

If you need any explainations please let me know. THANKS.

Best regards


Author Comment

ID: 6979496
Hi Bhatti
Yes, we were using that dynamic building technique for the composite reports (Since from 1999). But now mgmt. says, when ever user clicks on a nested report, according to the clicked column values we have to bring another report. It is similar like drill down reports of Business Objects OLAP tool. But we tried all our ways to get clicked column value of nested report. It always returns clicked object as "nested object name". So, we could not get clicked column name. Is there any way to get clicked column of nested report. Drill down works fine with non-nested reports. Only nested report has this limitation.

If you get any soln. for this pls. fwd me.

Thanks for ur well try


Accepted Solution

Bhatti earned 200 total points
ID: 6980012
Hi Shanker,

We know that to get the columnname or clicked column number from the report (Nested report) is not possible. Because the PB set the taborder to 0 for all Child datawindows and DWChild have no properties.

You wrote like OLAP.

Sometime in OLAP user clicked on some column in report and then open a new small box for the further information.

Shanker as we know to get the column name or number from nested report is...

So I think it easy and usefull to do following:

We can know that user on with datawindowchild clicked.

IF = "d_proj_dwname" THEN
    li_col = INTEGER(ldwc_a.DESCRIBE("datawindow.Column.Count"))
    FOR li_count = 1 TO li_col
             ls_tag = ldwc_a.DESCRIBE("#" + STRING(li_count) + ".Tag") //Write in the TAG
    lb_1.Visible = TRUE
    lb_1.BringToTop = TRUE

AND SO ON: for other datawindowchild

From the list box can clicked with the detail text where user want to go.

Please let me know your opinion.

Best regards


Expert Comment

ID: 7058645
If still u r not satisfied by excellent solution by bhatti...
Instead of having column names (column headers ) of nested DW on the nested DW U can  have them at main datawindow. Arrange them in proper order of allignment.
U can have it in the form of command buttons and cn easily code them

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from ( Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
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.

757 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

23 Experts available now in Live!

Get 1:1 Help Now