DataProssecor.js

  • i am using dataprossecor.js and
    i am using addrow(....) then the row will be inserted in the database according to the action file ,
  • then if i tried to modify any cell from the new row it will insert a new row because that action file works as add new row if he get the parameter(!nativeeditor_status=inserted) 
  •  i found the soluation that each time i add a row i do reload to the grid,but this is bad solution because my grid is too big,
  •  so can you help me please  ?

i hope my question is clear enough


thank you very much.


If I understood correctly - you need the way to add new row and prevent “insert” operation for it.
This can be done in next way
    mygrid.addRow(rowId,…   //adding row
    myDataProcessor.setUpdated(rowId,false); //this command remove mark from row, so it will be counted as already inserted


what i need exactly is to remove (!nativeeditor_status=inserted) from the outgoing url to my action file after addrow()



and how i can set a value in certin cell from dataproccesor.



thank you very much

what i need exactly is to remove (!nativeeditor_status=inserted) from the outgoing url to my action file after addrow()

The status stored as userdata , so you can just

mygrid.addRow(rowId,…   //adding row
mygrid.setUserData(“rowId”,"!nativeeditor_status","");