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 am using a WCF Service for Client Binding. How do I pass a parameter to my Select Method (getAllForecastTypes)?
<ISWebGrid:WebGrid ID="WebGrid2" runat="server" Height="250px" UseDefaultStyle="True" Width="500px" BindingOperationMode="ClientBinding"> <RootTable DataKeyField="value"> <Columns> <ISWebGrid:WebGridColumn Caption="Text" DataMember="text" Name="text" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="value" DataMember="value" Name="value" Width="100px"> </ISWebGrid:WebGridColumn> </Columns> </RootTable> <ClientBindingSettings DataSourceType="WcfService" ServiceUrl="MarketDefinitionServices.svc"> <ServiceMethods SelectMethod="getAllForecastTypes" /> </ClientBindingSettings> </ISWebGrid:WebGrid>
Hi Glenn,
I am running into a JavaScript error with my implementation of the WebService. I attached a small, stand alone solution that shows the error.
Do you know what is causing this error?
Dave
OK - Yudhiy solved this for me - I had to replace the <!DocType.. and <html.. tags with just <html>:
Yudhiy Ariawan : if I change the doctype from<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
Yudhiy Ariawan : into following:<html>
and my Javascript error goes away.
Sorry for the late reply, I am still discussing this issue with the developer. Currently, I am also having tne same difficulty in passing parameter on WCF service ClientBinding. I will inform you as soon I have any update from the developer.
The developer has updated me regarding the issue, it seems the issue is caused by a bug and a bug report has been submitted.
In the mean time, if it is possible, you could try using our WebService method. When using WebService, you could pass the custom select parameter in the tag property during ServiceEvent selecting event in the client side.
function GetCustomers_Selecting(control, selectArguments) { selectArguments.Tag = "City='Jakarta'";}
In the WebService select method, you could retrieve the parameter using the Tag property as well from the DataSourceSelectArgument object.
The method is identical for the WCFService, however because of a bug this method is currently not working for the WCFService
I am working with the ClientBinding_VirtualGroupPaging_WebService example. I am trying to get this working with my WCF Service.
My SelectMethod is set to receive "selectArguments". Unfortunately, this SelectMethod is never called - but if I remove the "selectArguments" parameter from the definition of my SelectMethod, then it is called.
Is this the result of the bug you mention above? Any idea on the turn around time for resolving this? I do not want to use a WebService.
Thanks,Dave
The proposed fix will be similar to the WebService implementation. You will need to use DataSourceSelectArguments as your select method parameter. The DataSourceSelectArguments will contain a tag property which you could use to hold you custom select arguments. This tag property will be filled during the client side selecting service event.
Selecting client side event
Client binding settings
<ClientBindingSettings DataSourceType="WcfService" ServiceUrl="WcfService.svc"> <ServiceEvents Selecting="GetCustomers_Selecting" /> <ServiceMethods SelectMethod="GetCustomers" /></ClientBindingSettings>
Select method definition
public List<Customer> GetCustomers(ISNet.ClientServices.DataSourceSelectArguments selectArguments){ //Data selection logic }
I spent most of the night trying to create a WebService. I ran into a circular reference error that I believe was associated with my Entity Framework context. I am accessing more than one table in order to populate the grid.
Is Entity Framework supported? Do you know how to avoid these circular references when you have multiple table?
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