>>>oCAD = getCursorAdapter(…) >>>oCAD.FieldsNeeded = '…' >>>oCAD.cursorFill() && .beforeCursorFill() re-builds the selectCmd using .FieldsNeeded >>>… >>>oCAD.cursorRefresh() >>>>>
>>LPARAMETERS luseCursorSchema, lNoDataOnLoad, cSelectCmd >> >>*!* In my base cursorAdapter class i have Select * From Table >>*!* Here i can set a different kind of query reducing the number of fields >>*!* for example: select id from Table >>If !Empty(This.CustomSelect) >> cSelectCmd = This.CustomSelect >>EndIf >> >>*!* Here i can set a where condition >>If !Empty(This.CustomWhere) >> cSelectCmd = cSelectCmd + " Where " + This.CustomWhere >>EndIf >> >>Return dodefault(@m.lUseCursorSchema, @m.lNoDataOnLoad, @m.cSelectCmd) >> >>>>
>>cSelectCmd = "select * from anag where id<100"
>>
>>>>cSelectCmd = "Select id from anag where id<100"
>>
>>What did i miss ?>if not oCAD.cursorFill() > ? caError() && wrapper around aError() >endif >The error i have is:
Invalid update column name "TPAN"where TPAN is the first column of my table, that is not included in my custom "select" command....