Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#822249
You are copying a reference to the grid, so temp.deleteRow(1) will delete a row from the original grid.

If you want to clone an object in JavaScript, instead of creating a reference, see:
https://medium.com/@Farzad_YZ/3-ways-to ... 52d148054d

However, even if you clone the grid object, you are still copying elements which contain references to the original grid.
Code: Select all
var oGrid = interationCopy( $("#myGrid") );
oGrid.deleteRow(2); //will delete a row in the original grid

var oGrid2 = interationCopy( getFieldById("myGrid").gridtable );
oGrid2[2][3].setValue("hello world"); //will set value in field in the original grid
The best that you can do is get a copy of the grid data in an array of arrays:
Code: Select all
var aValues = $("#myGrid").getValue();
var secondRowThirdField = aValues[1][2]; //starts counting from zero

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]

Betvisa clone scripts are pre-built software solut[…]