Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Get value of boolean column in web combo
posted

Hello

I am having some trouble retrieving the value from a boolean column in my webcombo. The value is always returned as TRUE.

I have stepped through the code that populates the webcombo and the column definately contains some FALSE values.

Below is my code. I am doing validation on the client side. The user has selected a row in a webcombo and I want to get the value of one of the columns in the selected row. The column is a boolean column. My code is as follows:

var workTypeCombo = igcmbo_getComboById("cmbWorkType");

var workNoteReqd = workTypeCombo.getGrid().Rows.getRow(workTypeCombo.getSelectedIndex()).getCellFromKey("WorkNoteReqdFlag").getValue();

var workNote = document.getElementById("WorkNote");

if (workNoteReqd == true && workNote.value == "")

{

errorMessage = errorMessage +
"A Work Note must be supplied for the selected Work Type.<br/>";

}

Has anyone else had this problem? What am I doing wrong?

Your help would be much appreciate.