Dear Team
We are using SC11.0p
The below code scenario is not retriving the null value.
I have a list grid with 3 columns A1, A2 and A3 as follows.
<field name="A1" type="text" />
<field name="A2" type="datetime" />
<field name="A3" type="text" />
In the list grid we have a functionality to refresh a single row for which we have written the below code.
isc.DataSource.get(listGridID.dataSource).fetchData({"A1":listGridID.getSelectedRecord()["A1"]},
function(dsResponse,data,dsRequest)
{
if(data){
var rowNum = listGridID.getRowNum(listGridID.getSelectedRecord());
isc.addProperties(listGridID.getRecord(rowNum), data[0]);
listGridID.refreshRow(rowNum);
}
});
Refresh record is working properly for A3 column but for A2 column if the value is set as NULL then in the callback i.e., data[0] the column A3 is not at all coming.
Because of which the column A3 column value is not getting set to NULL in the User Interface.
Please suggest what can be done in this regard.
We are using SC11.0p
The below code scenario is not retriving the null value.
I have a list grid with 3 columns A1, A2 and A3 as follows.
<field name="A1" type="text" />
<field name="A2" type="datetime" />
<field name="A3" type="text" />
In the list grid we have a functionality to refresh a single row for which we have written the below code.
isc.DataSource.get(listGridID.dataSource).fetchData({"A1":listGridID.getSelectedRecord()["A1"]},
function(dsResponse,data,dsRequest)
{
if(data){
var rowNum = listGridID.getRowNum(listGridID.getSelectedRecord());
isc.addProperties(listGridID.getRecord(rowNum), data[0]);
listGridID.refreshRow(rowNum);
}
});
Refresh record is working properly for A3 column but for A2 column if the value is set as NULL then in the callback i.e., data[0] the column A3 is not at all coming.
Because of which the column A3 column value is not getting set to NULL in the User Interface.
Please suggest what can be done in this regard.
Comment