- Rômulo Sorato
- PowerBuilder
- Wednesday, 2 October 2019 06:07 PM UTC
I have two drop down that if i selected one value in the first the second drop down retrieve his rows .
I made to be optional, for example , if i selected one value in the first i don't need to select a value on the second.
The problem is that when i get the selected row on the second, the method always return the value 1 even if i don't select any row.
Here´s the code
0) then
dw_listagem_pessoas.SetFilter("estados_estados_id = " + lsid + " and pessoas_cidade_id = " + string(llIdCidade) +" ")
dw_listagem_pessoas.Filter()
else
dw_listagem_pessoas.SetFilter("estados_estados_id = "+ lsid +" ")
dw_listagem_pessoas.Filter()
end if
end if
In this line llRowCidade = city_child.getSelectedrow(0)
the method getSelectedrow always return 1.
So i want to know if is a way to check if user really selected a value on the second dropdow.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.