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

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -