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've been trying to set up a WebCombo with a LinqDataSource that uses a stored procedure. I can do this with a WebGrid. Since I couldn't get the WebCombo to work I decided to first try a WebCombo and a WebGrid with a simple select statement in the LinqDataSource. The WebGrid works but the WebCombo fails with a fatal error.
I've attached the sample. You need the northWind SQL db. An example of a stored procedure that will load the WebCombo and WebGrid is "Ten Most Expensive Products".
Looking forward to your response.
George
Hi George,
It seems this is a bug in our WebCombo which WebCombo could not recognize an alias. I have submitted this to our developer. They are checking it right now and i will let you know the result.
Regards,Handy
Handy
Please have them check the use of a stored procedure, too.
for the sample use the Ten Most Expensive products stored procedure that is in NorthWind. I don't know if i have the name correct but it is easy to find.
Ok, I have forwarded this to our developer. Thank you.
After analyzing your issue further, we found that the issue is not a bug in WebCombo. It's more to the LINQ limitation in which new select projection will cause underlying datasource's schema to be invalid. This caused WebCombo to unable to filter the "conditions" clause because the target members are no longer existed in the datasource after the new projection.
Unlike WebGrid which processes all data after data retrieval, WebCombo requires pre-databound filtering process. As such, WebCombo requires the fields used in DataTextField and DataValueField to remain the same after the new projection.
The following code shows the working version of WebCombo bound to LINQ DataSource.
<ISWebCombo:WebCombo ID="WebCombo1" runat="server" DataSourceID="ISLinqDataSource1" DataTextField="ProductName" DataValueField="ProductName" Height="20px" UseDefaultStyle="True" Width="200px"> </ISWebCombo:WebCombo> <ISLinqDataSource:ISLinqDataSource ID="ISLinqDataSource1" runat="server" ContextTypeName="NorthwindDataContext" Select="new (ProductName, UnitPrice)" TableName="Products"> </ISLinqDataSource:ISLinqDataSource>
Let me know if you have any questions.
Hope this helps.
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