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
In a LOB application, i have page with 3 webcombos for project, company,person.. I want to change company and person webcombo values when user select a row at project webcombo. To do that, when project webcombo value changed "OnAfterItemSelected" event triggered, and from that with the help of "SendCustomRequest()" server side event is triggered.In the server side event, i do some db queries, then set values of company and person webcombos.But in the clientside, company and person webcombos are not updated.How can i do it?
Note: Webcombos are connected to ISLinqDataSource
Here is a simple sample of the solution for the scenario. During the server side event, you could use the invokeScript function to call a JS function to set the value of the WebCombo. This method will be the more efficient compared to refreshing the WebCombo programatically in the server side.
Hi,
I have similar problem, but I don't use SendCustomRequest(), but LoadValue() on combo2 and combo3 (it should be more efficient), Problem is on the server side I can't read Value of the combo1 (WHY!!!) - It's a BUG. We can obey this if, I write combo1.Value to some hidden fields and read this one on the server - but it's not prof.
Any idea?
Could you provide us with a client side snippet and the server side event you are using, in order for us to replicate the issue you are having?
see attachment.
For such scenario, we recommend using Linked WebCombo feature. I have taken the liberty of modifying the sample to use Linked WebCombo feature to simplify the scenario, the after WebCombo1 item selected will also correctly set the WebCombo2 item in the modified sample.
In order to update the WebCombo1 value, you will need to call the function WebCombo1.UpdateState();
In my app. I've more complicated situation , so Linked WebCombo solution is out. Maybe I'm wrong, but I suppose that linked Webcombo don't create SQL syntax with conditions, but only filter cached data.How feel linked WebCombo with more than 1milion record in database ?
BTW, your suggestion about UpdateState() is perfect
Here is full javascript :
function WebCombo1_OnAfterItemSelected(controlId) {var WebCombo1 = ISGetObject("WebCombo1");var WebCombo2 = ISGetObject("WebCombo2");WebCombo2.ClearSelection();var wc1CatID = WebCombo1.Value;switch (wc1CatID) {case "1": WebCombo2.SetText("Chai");break;case "2":WebCombo2.SetText("Aniseed Syrup");break;default:WebCombo2.IsDirty = true;WebCombo2.NeedClearList = true;break;}WebCombo1.UpdateState();WebCombo2.LoadValue();}
I tested and IsDirty and NeedClearList must be set to true, in other way we receive unexpected result.
Thank you
Andrzej
I have confirmed the linked WebCombo behavior with the developer. Your assessment is correct, by default the WebCombo will retrieve all the value and filter the data based on the WebCombo 1 selection.
On the other hand, the method you are using in your provide sample will only retrieve partial row based on the selection of the WebCombo1.
... we have to take care about perfomance
thank you for support
regards
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