Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Filtering of Dropdowndatawindow

$
0
0

Hi

 

I am having a DW where column edit style is dddw.

 

My code is posted below.

 

DataWindowChild mgr_id

dw_1.GetChild ("d_dddw_empfiltered", mgr_id)

mgr_id.SetTransObject(SQLCA)

mgr_id.reset()

mgr_id.retrieve(gi_userclass)

 

When executed, the dddw is blank. What am I missing here?

 

In the data window, in the EDIT tab I've given "d_dddw_empfiltered" in the dddw datawindow object name, and display columns and data columns are also mapped properly.

 

The "d_dddw_empfiltered" contains two classes of employees. My requirement is actually to filter them at run time based on the logged in user name.

 

Instead of the above code, if I am able to filter the dddw at run time, still better.

 

 

What is the way out?

 

Regards


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>