Hello,
I have a dataTable with some default fields defined in schema and some other fields are filled on onNewRow defined in business rules in schema with JavaScript script.
-
When I’m using
var newRow = table.appendRow();
the fields of newRow are all null even if, as I mentioned above, some fields have default values.
Why is not working?
Is not impleneted yet? -
Moving forward I filled all the fields like this:
Adapter.getData(tabelSalvareComenziEditabile,
RemObjects.DataAbstract.Util.createRequestInfo(true, -1, filtru, []),
function() {
var newRow = tabelSalvareComenziEditabile.appendRow();
tabelSalvareComenziEditabile.setFieldValue(‘SN’,‘CMZF’);
tabelSalvareComenziEditabile.setFieldValue(‘NRCMZ’,nrcmz);
…
tabelSalvareComenziEditabile.setFieldValue(‘IDUSER0’,userObject.ex_IdUser.value);
tabelSalvareComenziEditabile.setFieldValue(‘STERS’,‘F’);
tabelSalvareComenziEditabile.setFieldValue(‘CODAGENT’,“NEC”);Adapter.applyUpdates(tabelSalvareComenziEditabile, function(){ .... }, RemObjects.UTIL.showError); },RemObjects.UTIL.showError);
when running Adaper.applyUpdates in the server throw an exception
First chance exception at $75E1C83B. Exception class EADException with message
’[AnyDAC][Phys][IB]-345. Data too large for variable [CODAGENT]. Max len = [20], actual len = [51428264]
Hint: set the TADParam.Size to a greater value’.
It seems that each field value is sent to server with len=51428264.
In client (Google chrome) server’s response is “Out Of memory”!.
I’m using the last gamma version.
Thanks,
Tiberiu Stoicescu