Dear Amosbatto and Ashkufaraz,
Thank you so much...so much for yours Help.
now i try add one more js to control the grid`s row,
change the button below the grid (i call the name is "below" js)
Code: Select allfunction DocumentIsReady(){
var oRow = document.getElementById("form[ExpensesGrid]").insertRow(-1);
var sRow = document.getElementById("form[ExpensesGrid][addLink]").parentNode.parentNode.innerHTML;
sRow = sRow.replace('[addLink]', '[addLink2]');
document.getElementById("form[ExpensesGrid][addLink]").parentNode.parentNode.parentNode.style.display="none";
oRow.innerHTML = sRow;
}
var dynaformOnload = DocumentIsReady;
if i want to add the limit the grid`s row function,(that`s code i found at the forum)
i add to another js field (i call the name is "limit" js)
Code: Select allgetField('ExpensesGrid][bullet').parentNode.childNodes[2].onclick = function() {
if (Number_Rows_Grid("ExpensesGrid", "Description") < 5)
getObject("ExpensesGrid").addGridRow();
else
alert("No more than 5 items is allowed!");
};
i dont understand,
"below" js is control the screen,
use "parentNode" to change the aligh right or left,
it just change button below the grid at the screen,
just change the VIEW, right?
while i add the "limit" js , it cant control the grid `s row? (it`s work alone)
in my mind, change the VIEW but the structure parameters was not change, right?
"limit" js code is call the bullet / Number_Rows_Grid is the struture parameters?
is that sentence " getField('ExpensesGrid][bullet').parentNode.childNodes[2].onclick " get the wrong Parameters ,
so...it cant work?
Sony