axapta - How to use container or generic variable in a query? -
it's possible use string value in query?
i have code in form init method:
container con; select mytable mytable.myfield == conpeek(con, 1); //i fill stringeditcontrol stringedit.text(strfmt('%1', mytable.myfield));
i have error this:
"the fields of type string container , unconstrained not allowed in expression."
how can use value string or container (in case) in query?
thanks time,
enjoy!
extract string container prior using select statement:
mytable mytable; container con; str 50 strvalue; strvalue = conpeek(con, 1); select mytable mytable.myfield == strvalue; stringedit.text(strfmt('%1', mytable.myfield));
Comments
Post a Comment