Bruce,
These are two snippets of the source of the generated code. Offcourse I used an example to explain the problem. In the real app the tables are called RegistratieVraagAntwoord (Country) and Antwoord (Province).
This is the generated code from the EIP dropdown on the browse:
open(RVA:AntwoordId_OptionView)
RVA:AntwoordId_OptionView{prop:filter} = 'ANT:VraagId=1'
RVA:AntwoordId_OptionView{prop:order} = 'UPPER(ANT:Antwoord_tekst)'
db.debugout(ANT:VraagID & '-' & RVA:VraagId)
db.debugout(RVA:AntwoordId_OptionView{prop:filter})
Set(RVA:AntwoordId_OptionView)
Loop
Next(RVA:AntwoordId_OptionView)
If ErrorCode() then Break.
packet = clip(packet) & p_web.CreateOption(ANT:Antwoord_tekst,ANT:Id,choose(ANT:Id = RVA:AntwoordId),p_web.combine(p_web.site.style.browseDropOption,),,) &'<13,10>'
End
Close(RVA:AntwoordId_OptionView)
When putting the dropdown on a form this is the generated code:
open(Reg:IngangId_OptionView)
Reg:IngangId_OptionView{prop:filter} = 'ANT:VraagId=1'
Reg:IngangId_OptionView{prop:order} = 'UPPER(ANT:Antwoord_tekst)'
Set(Reg:IngangId_OptionView)
Loop
Next(Reg:IngangId_OptionView)
If ErrorCode() then Break.
if p_web.IfExistsSessionValue('Reg:IngangId') = 0
p_web.SetSessionValue('Reg:IngangId',ANT:Id)
end
loc:rowstyle = choose(sub(' SelectList',1,1)=' ',clip(loc:fieldclass) & clip(' SelectList') & loc:even,clip(' SelectList') & loc:even)
packet = clip(packet) & p_web.CreateOption(ANT:Antwoord_tekst,ANT:Id,choose(ANT:Id = p_web.getsessionvalue('Reg:IngangId')),clip(loc:rowstyle),,) &CRLF
loc:even = Choose(loc:even=1,2,1)
do SendPacket
End
Close(Reg:IngangId_OptionView)
I cannot find the difference that could cause my filtering issue on the EIP dropdown.