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 posted this question as a Discussion type, but didn't get an answer. Hopefully after I post it as a Question, I will get a better result.
I populated two Unbound combos: one is a Parent and another is a Child that depends on the value selected in the Parent. Everything works fine except for the Count of rows in a Child combo. I select a value in Parent combo and 12 rows are populated in Child combo, what is correct.
GetRowsCount() gives 50 rows (a total number of rows without a filter). TotalRetrievedRows() and TotalRows() give 0.
I need to know the count in order to select a default value in Child: if Count > 1, don't select anything, if Count = 1, select that value.
Thanks.
Hi Ellen,
As I mentioned our your last post before, we cannot get the total of rows count before the WebCombo shows the dropdown list first and retrieve the filtered data. The workaround for this scenario is by showing the dropdown list first then, after that, we can get the total row of its value. In here, I show the total row in a HTML TextBox. Here are the snippet:
function WebCombo1_OnAfterItemSelected(controlId) { var WebCombo1 = ISGetObject(controlId); var WebCombo2 = ISGetObject("WebCombo2"); var count; WebCombo2.SetFocus() WebCombo2.ShowDropDown(); setTimeout(function() { count = WebCombo2.GetRowsCount() document.getElementById("Text1").value = count; WebCombo2.HideDropDown(); }, 800); return true; }
I hope it helps and please do not hesitate to ask if you have any other questions. Thank you.
Best Regards,
Andi Santoso
Hi Andi,
Thank you for the details. I will test that solution.
I found a way around to do what I needed passing Server side data to a hidden control and retrieving it with Client side code.
Your solution may be better than mine.
Regards,
Alla
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