Hi All
I have two cascading lists that work just fine. I would like the child list to show all items in the list when there are no items selected in the parent list. Currently, no items are shown until an option in the parent list is selected.
I have a button which allows me to deselect the list using
(btw ... list1 is the child list, list2 is the parent list)
I would like to be able to click the button and effectively set the list to the same filter as the parent list, but omitting the argument from the filter.
Eg ... filter for list might be, when an item is selected :
WHERE StartDate >= getdate() AND EndDate <= getdate() AND Category = :aCategory (this works fine in the cascading list)
What I would like to happen when the button is clicked is for the parent list to have it's options deselected and the filter to now be
WHERE StartDate >= getdate() AND EndDate <= getdate()
I would prefer to have this as being a 'feature' of the parent list, rather than a function of the button, so that the child list displays all the records ignoring the argument, i.e. once the button sets the parent list choices to be deselected, then that should trigger the second WHERE clause above, and also that the second WHERE clause is the one used on entering the dialog (I have 'Allow Null selection' checked in both lists).
Possible? Clear as mud?
TIA
Phil
I have two cascading lists that work just fine. I would like the child list to show all items in the list when there are no items selected in the parent list. Currently, no items are shown until an option in the parent list is selected.
I have a button which allows me to deselect the list using
Code:
var lObj = {dialog.object}.getControl('list2'); lObj._deselectAll();
I would like to be able to click the button and effectively set the list to the same filter as the parent list, but omitting the argument from the filter.
Eg ... filter for list might be, when an item is selected :
WHERE StartDate >= getdate() AND EndDate <= getdate() AND Category = :aCategory (this works fine in the cascading list)
What I would like to happen when the button is clicked is for the parent list to have it's options deselected and the filter to now be
WHERE StartDate >= getdate() AND EndDate <= getdate()
I would prefer to have this as being a 'feature' of the parent list, rather than a function of the button, so that the child list displays all the records ignoring the argument, i.e. once the button sets the parent list choices to be deselected, then that should trigger the second WHERE clause above, and also that the second WHERE clause is the one used on entering the dialog (I have 'Allow Null selection' checked in both lists).
Possible? Clear as mud?
TIA
Phil
Comment