Solved

How to get clicked column of Nested Datawindow

Posted on 2002-04-22
7
961 Views
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".

Regards
Jai
GAC-Dubai
0
Comment
Question by:pjaishankar
  • 3
7 Comments
 
LVL 4

Expert Comment

by:Bhatti
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 dwo.name 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.


Bhatti
0
 
LVL 4

Expert Comment

by:Bhatti
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


Bhatti
0
 

Author Comment

by:pjaishankar
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
Jai

0
 
LVL 4

Accepted Solution

by:
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 dwo.name = "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.AddItem(ls_tag)
    NEXT
    lb_1.Visible = TRUE
    lb_1.BringToTop = TRUE
END IF

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


Bhatti
0
 

Expert Comment

by:vikas1711
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
Regards
vikas
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

Title # Comments Views Activity
c++ class logger 6 104
How to create project in Eclipse ? 1 193
notepad++ shortcuts 6 135
How to make the Angular JS application work in JetBrains WebStorm 11 2 67
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
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.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

932 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

11 Experts available now in Live!

Get 1:1 Help Now