I would expect the following code to change the filter the list datasource of 
the second combo box using the value of the first.  I do not get errors and 
the temporary filter returns the expected string.  However, the second combo 
box does not change.

#get current value of combobox: function returns viewcolumn
filtervalue=hk_thisform.get_pyvisible("cbosubject").value()

#so we must find the associated listcolumn value by finding the corresponding 
value in the same row
rownum=hk_thisform.get_pyvisible("cbosubject").viewcolumn().find(0,1000,filtervalue)
hk_thisform.get_pyvisible("cbosubject").listdatasource().goto_row(rownum)
filtervalue=hk_thisform.get_pyvisible("cbosubject").listcolumn().asstring()

filterstring="subjectid = " + filtervalue

cboCourse=hk_thisform.get_pyvisible("cboCourse")
cboCourselist=cboCourse.listdatasource()
cboCourselist.disable()
cboCourselist.set_temporaryfilter(filterstring)
cboCourselist.set_use_temporaryfilter(True)
#cboCourselist.enable()

hk_this.show_warningmessage(cboCourselist.temporaryfilter())

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Hk-classes-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hk-classes-discuss

Reply via email to