Solved

Drop Down Datawindow Filter

Posted on 2004-10-05
3
641 Views
Last Modified: 2013-12-26
Hi,

I have a drop down datawindow which needs to be filtered based on selection.
To be more specific, based on broker id child datawindow needs to be populated. If i select broker 'A' then child datawindow should filter on broker 'A'.

Currently if i filter a child dw then it is effecting all other rows also.
Is there any solution except populating in drop down list .

Thanks
Srinib
0
Comment
Question by:srinib
3 Comments
 
LVL 8

Expert Comment

by:gajender_99
ID: 12227633

in the event  itemchanged  for your broker
just write these code, these are example if you need any help let me know

String    sColumnName

sColumnName = THIS.GetColumnName ()

IF sColumnName = "column name" THEN

DataWindowChild   dwchild_1

dw_client.GetChild ("coulmn name where the is dddw ", dwchild_1)

dwchild_1.SetTransObject (SQLCA)
dwchild_1.Retrieve ()
dwchild_1.setfilter("Condition")
dwchild_1.filter()

End if
0
 
LVL 1

Author Comment

by:srinib
ID: 12228064
Gajender,

Your code seems, it will filter dropdown dw in all the rows which i don't want.  

Bottom line is....
I have broker ids, and each broker will have mulitiple acccounts.
If i select Broker 'A' in first row then i should be able to filter the dddw based on this broker id.
Again if i select broker 'B' in second row then i should be able to filter based on borker 'B'.
But whatever i have selected in first row that should remain same.
Currently it is filtering in all the rows.

Thanks for your valuable time
Srinib
0
 
LVL 4

Accepted Solution

by:
falvaro3 earned 30 total points
ID: 12258716
Follow this link for a sample solution:
http://www.bcarter.com/tip033.htm
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
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 NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

743 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

10 Experts available now in Live!

Get 1:1 Help Now