Page 1 of 1

in-mem ...getColumnNames() returns a non-existing column

PostPosted: Wed Nov 13, 2019 2:31 pm
by jhilgers
Hi all,

I'm using a foundset load trigger to initialize an in-mem datasource with the code below

Code: Select all
function onFoundSetLoad_record_history(inMemName) {
   var ds = databaseManager.createEmptyDataSet(0, datasources.mem.record_history.getColumnNames());
   ds.createDataSource(inMemName);
}


getColumnNames() returns ["_sv_rowid"... as the first column which doesn't exist in the in-mem datasource.

createDataSource(inMemName) then reaises this warning:
WARN com.servoy.j2db.util.Debug - Dataset column names definition does not match inmem table definition for datasource

Any ideas how to get rid of this?

best
Jo

Servoy Version: 2019.9.0.3522

Re: in-mem ...getColumnNames() returns a non-existing column

PostPosted: Fri Nov 22, 2019 12:25 pm
by jcompagner
can you create a case for this?
I think the internal generated pks (_svy_rowid) should not be given back there, it really should only give the stuff you give (design time or at runtime)

Re: in-mem ...getColumnNames() returns a non-existing column

PostPosted: Fri Nov 22, 2019 12:58 pm
by jhilgers
done: SVY-14405