Get the any column for the selected row

2 replies. Last post: September 21, 2010 4:47 PM by Raechel Curiel
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

I'm trying to retrieve the value from any column for a selected row in a webcombo from a JS script and can't seem to find the correct method to peform this action.  I'm trying to compare 2 dates on the form, one from a date picker and one that is embedded in the webcombo control as another column (not the key column).  Here is what I have so far:

 

function validateDates() { //Get Bond Date var bDate = new Date(); bDate = eo_GetObject("bDate").getSelectedDate(); var validDate = new Date();

validDate.setFullYear(1901, 01, 01);

if(bondDate > validDate) { // Valid BondDate..proceed var combo = ISGetObject("webcombo1"); // Gets the selected WebComboRow object var row = combo.GetSelectedRow(); if (row != null) { var cell = row.GetCell(3); alert("The Expire Date for the selected row is " + cell.Value);

}

}

return true;

}

 

The JS fails on var cell = row.GetCell(3); and says "object doesn't support this property or method".  I think this method is for the webgrid and not webcombo.  Is there an equivilent for webcombo possibly?   Any thoughts?

 
Best regards, Michael
All times are GMT -5. The time now is 1:38 AM.
Previous Next