Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Drop Down Datawindow Filter

Posted on 2004-10-05
3
652 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Refresh JTable Content 6 211
Visual Studio 2013  Distorts Chrome Browser 2 182
maven import project error 7 136
Angular JS Route 3 83
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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 perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

829 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