OptimistNot
OptimistNot
Any ideia how long will it take you to fix it? Really need it to work fast. Thanks!
Thnak you a lot! Just one more question :) i really don't know what to do now with mContainerAdapter how do i get it? and how i get mModelAdapter?
ok, i suppose its something like this: public JsonModel(Class table) { super(table); mModelAdapter = FlowManager.getModelAdapter(table); mContainerAdapter = FlowManager.getContainerAdapter(table); } wrong?
hey! still same scenario, im sending one key and getting this one: "W/System.err﹕ android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1" Log.d("CURSOR_____", cursor.getCount() + " " + cursor.getColumnNames().length +...
found it! on isNull() it throws exception cz of not being at any position. so just before calling mContainerAdapter.loadFromCursor(cursor, this); added cursor.moveToFirst(); finally it loads data! Thank you very much!...
ok, so i extended JSONModel and Overrided getValue() and for id column of table it works perfectly, but for foreign keys...when bindToContentValues called they (fk) using own container so getValue()...
ok i Overrided getInstance also...now i only work with JsonModel class and getValue() is called properly. Thanks anyway :)
http://pastebin.com/KZ6rbw8A where AQL and Supplier foreign keys can have null values
Meanwhile is there any quick fix? Thanks in advance.
http://pastebin.com/sLV4UxLw on lines 145-148