Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Drop Down Datawindow Filter

Posted on 2004-10-05
3
Medium Priority
?
670 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 120 total points
ID: 12258716
Follow this link for a sample solution:
http://www.bcarter.com/tip033.htm
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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 column That will then direct you to their download page. From that p…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

916 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