Default
I am using SmartGWT 2.2
I could like pass a value, say, 10 into a DataSource
Should I do
DataSource ds = ${Some datasource}
ds.setAttribute("targetID", 10, ${allowPostCreate}); (btw, should allowPostCreate here be set to true false?)
Or
DSRequest dsr = new DSRequest();
dsr.setAttribute("targetId", 10);
ds.setRequestProperties(dsr);
Both work, but I am not sure which one is the recommended style.
Thanks in advance
Sean
I am using SmartGWT 2.2
I could like pass a value, say, 10 into a DataSource
Should I do
DataSource ds = ${Some datasource}
ds.setAttribute("targetID", 10, ${allowPostCreate}); (btw, should allowPostCreate here be set to true false?)
Or
DSRequest dsr = new DSRequest();
dsr.setAttribute("targetId", 10);
ds.setRequestProperties(dsr);
Both work, but I am not sure which one is the recommended style.
Thanks in advance
Sean
Comment