iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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:
validDate.setFullYear(1901, 01, 01);
}
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?
The GetSelectedRow in WebCombo javascript function will return a HTML element. In order to access the text in the cell you will need to use the getElementsByTagName javascript function. Here is the snippet to access the third cell text in the WebCombo selected row:
function getComboData() { var combo = ISGetObject('cmb'); var selectedRow = combo.GetSelectedRow(); var dateText = selectedRow.getElementsByTagName('TD')[2].innerText; alert(dateText);}
Since the dateText will be a string type, you will need further process to convert it to Date object for your scenario of comparing 2 Date object
Brilliant. Thanks for this post. It was exactly what I needed!
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname