Can someone please tell me why this code does not work? Nothing happens when I click the button. The dropdownlist populates fine when the form loads, but I cannot get it to repopulate. I have tried hardcoding the parameter with aLike, =, etc.
topmostSubform.Page1.Button1::click - (FormCalc, client)
var sCategoryId = sname.rawValue
var oDataConn = Ref(xfa.sourceSet.DataConnection.clone(1))
oDataConn.#command.query.commandType = "text"
oDataConn.#command.query.select = concat("SELECT * FROM oca WHERE last Alike '", sCategoryId, "'" )
oDataConn.open()
DropDownList1.#bindItems
regards
Milton