Error Undefined property: display_imports_ini::$nm_where_dinamico

Just converted a running grid app from sc8 to sc9 and I get above named error at the top of the page once app starts.

How do I even begin to fix this? (display_imports being the name of my app)

Nobody else ever encountered this?

Seems this is caused by my use of sc_select_where(add)… in onAppInit event which wasn’t an issue in SC8.

I have the exact same problem. Could you find any solution?

Moved it into onScriptInit.

Mine is already in onScriptInit but it doesn’t work.

What type of app? Grid or form? Also after migrating from SC8 to 9 or fresh in 9?

Grid, after migration from SC8 to SC9.
Any ideas of what I could try?

Moving it to onScriptInit solved it for me.

Asides the horrible option of recreating the app afresh, you can go around the problem with something like this: create a global variable say [whereclause]. Make it an “out” vairable or optional. In onScriptInit or onAppInit, put something like

[whereclause] = " and x = 2 "  or  [whereclause] = " where x = 2 " 

depending on what your grid’s SQL looks like and then place the variable appropriately in the grid SQL according to SQL syntax. You might need to wrap in a conditional to set it to blank so your grid execution doesn’t fail at times.