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
<ISWebCombo:WebCombo ID="WebComboProd" runat="server" AdditionalSearchFields="ProductName, Speedy_CustProdRefDescription"
DataTextField="ProductNumber"
DataValueField="ProductId"MinCharsToRequest="2"Height="20px"
UseDefaultStyle="True"OnInitializeRow="WebComboProd_InitializeRow"
Width="550px"Latency="200"
OnInitializeDataSource="WebComboProd_InitializeDataSource"
OnInitializeLayout="WebComboProd_InitializeLayout" AllowWildCardSearch="True"
DropDownRows="7" >
<Columns>
protected void WebComboProd_InitializeDataSource(object sender, ISNet.WebUI.WebCombo.DataSourceEventArgs e)
{
string appleOrderTypeBehaviour = HiddenApplyOrderTypeBehaviour.Value;
if (!HiddenEntityType.Value.Equals("salesorder"))
appleOrderTypeBehaviour = "false";
}
if (HiddenCustomizedDataSource.Value == "true")
DataSet1TableAdapters.pGetproductreferenceTableAdapter prods = new pGetproductreferenceTableAdapter();
orderId = Request.QueryString["id"];
orgname = Request.QueryString["orgname"];
//Request.QueryString["userId"]);
DataSet ds = newDataSet();
string queryText = "";
if (!e.IsFlyDataRequest)
if (WebComboProd.Value != "" && WebComboProd.Value != null && WebComboProd.Value != " ")
ds.Tables.Add(prods.GetDataById(Request.QueryString["customerid"], Request.QueryString["userlcid"], Request.QueryString["orglcid"], HiddenApplyProductDist.Value, Request.QueryString["userId"], HiddenEnableProdRef.Value, WebComboProd.Value));
e.DataSource = ds;
else
int rowCount = e.RowCount;
if (e.StartRow != 0)
rowCount = e.RowCount / 2;
int TopRows = e.StartRow + rowCount;
queryText = e.QueryText.Replace("*", "%");
if (!e.QueryText.Contains("*"))
queryText = queryText + "%";
string connectionString = Wuerth.Phoenix.Speedy.PriceSearchPlugin.Properties.Settings.Default.Speedy_ConnectionString;
using (SqlConnection conn = new SqlConnection(connectionString))
conn.Open();
using (SqlCommand storedProcCommand = new SqlCommand("p_GetproductreferenceQueryTxt", conn))
storedProcCommand.CommandType = CommandType.StoredProcedure;
storedProcCommand.Parameters.AddWithValue("@accountID", Request.QueryString["customerid"]);
storedProcCommand.Parameters.AddWithValue("@languageID", Request.QueryString["userlcid"]);
storedProcCommand.Parameters.AddWithValue("@languageIDOrg", Request.QueryString["orglcid"]);
storedProcCommand.Parameters.AddWithValue("@applyProductDist", HiddenApplyProductDist.Value);
storedProcCommand.Parameters.AddWithValue("@userID", Request.QueryString["userId"]);
storedProcCommand.Parameters.AddWithValue("@enableProdRef", HiddenEnableProdRef.Value);
storedProcCommand.Parameters.AddWithValue("@queryTxt", queryText);
storedProcCommand.Parameters.AddWithValue("@numRowsToGet", TopRows);
storedProcCommand.Parameters.AddWithValue("@applyBehaviour", appleOrderTypeBehaviour);
storedProcCommand.Parameters.AddWithValue("@orderType", orderType);
SqlDataAdapter adapter = new SqlDataAdapter(storedProcCommand);
adapter.Fill(ds, e.StartRow, rowCount, "pGetproductreference");
WebComboProd.SkipRowParsing = true;
using (SqlCommand storedProcCommand = new SqlCommand("p_GetproductreferenceQueryTxtCount", conn))
storedProcCommand.Parameters.AddWithValue("@applyBehaviour", HiddenApplyOrderTypeBehaviour.Value);
WebComboProd.TotalDataSourceRows = int.Parse(storedProcCommand.ExecuteScalar().ToString());
conn.Close();
WebComboProd.AllowAutoQueryHandler = false;
WebComboProd.AllowAutoQueryHandler = true;
WebComboProd.DataSourceID = "ISProductRefDS";
WebComboProd.DataMember = "pGetproductreference";
DataSet ds = new DataSet();
SELECT Contactid,FullName FROM Contact where speedy_departmentid =@speedy_departmentid order by FullName asc
the datasource:
<isdatasource:isdatasource id="ISContact" runat="server" enablecaching="No" schemaname="Wuerth.Phoenix.Speedy.OrderlineGrid.DataSet1"> <tables> <ISDataSource:ISDataSourceTable SelectMethod="GetData" TableName="FilteredContact" TypeName="Wuerth.Phoenix.Speedy.OrderlineGrid.DataSet1TableAdapters.FilteredContactTableAdapter"> <SelectParameters> <asp:QueryStringParameter Name="speedy_departmentid" QueryStringField="speedy_departmentid" Type="String" /> </SelectParameters> </ISDataSource:ISDataSourceTable> </tables> </isdatasource:isdatasource>
The definition of webcombo:
<ISWebCombo:WebCombo ID="WebComboContact" runat="server" DataMember="FilteredContact" DataSourceID="ISContact" DataTextField="FullName" DataValueField="Contactid" Height="20px" UseDefaultStyle="True" Width="200px" > <FlyPostBackSettings PostControlState="False" PostViewState="False"/> <LayoutSettings StatusBoxVisible="False" TextBoxMode="Editable" AlwaysShowAllRowsOnDropdown="True" ResultBoxWindowType="Normal"> </LayoutSettings> </ISWebCombo:WebCombo>
the column:
<ISWebGrid:WebGridColumn Caption="Contacts" DataMember="speedy_contactid" EditType="WebComboNET" Name="contactid" Width="150px" WebComboID="WebComboContact"> <ValueList DataMember="FilteredContact" DataSourceID="ISContact" DataTextField="FullName" DataValueField="Contactid"> </ValueList> </ISWebGrid:WebGridColumn>
Thanks
Hi Bernards,Thanks for your help but i have another problem about this:Now i get the value by thisobjectObjectValue = CustomEditorObj.GetBaseEditorElement().value; but if i try to update this value in the component objectObjectValue = objectObjectValue.replace(',', '.');the application show the same the wrong value 3,333.00.I need to show the correct value (33.33 or 33,33), i suppose che CustomEditor has another Elementthat contain the value 3,333.00 for example.
After the customer has enter a discount value with ',' (for example 33,33) he must press tab or enter key the focus go to the Note Cell, i should replace the ',' with '.' before the Cell will be processed by CustomEditor ( in this way is like the user has enter 33.33 instead 33,33).
If is possibile can you help me about this implementation?
thanks in advanceArmore1972
Line 483: </tables> Line 484: </isdatasource:isdatasource> Line 485: <ISWebCombo:WebCombo ID="WebComboProd" runat="server" AdditionalSearchFields="ProductName, Speedy_CustProdRefDescription" Line 486: DataSourceID="ISProductRefDS" DataMember="pGetproductreference" DataTextField="ProductNumber" Line 487: DataValueField="ProductId" MinCharsToRequest="2" Height="20px" UseDefaultStyle="True"
[MissingMethodException: Method not found: 'Void ISNet.WebUI.ISDesignerBase.SetDirty()'.] ISNet.WebUI.WebCombo.WebCombo.set_Width(Unit value) +0 ASP.orderpositionsgrid_aspx.__BuildControlWebComboProd() in c:\Program Files\Microsoft Dynamics CRM\CRMWeb\ISV\Speedy\SpeedyPlusCrmUFX20120511\OrderPositionsGrid.aspx:485 ASP.orderpositionsgrid_aspx.__BuildControlmain() in c:\Program Files\Microsoft Dynamics CRM\CRMWeb\ISV\Speedy\SpeedyPlusCrmUFX20120511\OrderPositionsGrid.aspx:125 ASP.orderpositionsgrid_aspx.__BuildControlform1() in c:\Program Files\Microsoft Dynamics CRM\CRMWeb\ISV\Speedy\SpeedyPlusCrmUFX20120511\OrderPositionsGrid.aspx:115 ASP.orderpositionsgrid_aspx.__BuildControlTree(orderpositionsgrid_aspx __ctrl) in c:\Program Files\Microsoft Dynamics CRM\CRMWeb\ISV\Speedy\SpeedyPlusCrmUFX20120511\OrderPositionsGrid.aspx:1 ASP.orderpositionsgrid_aspx.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\isv_speedy_speedypluscrmufx20120511\1a5c456a\4d4ff7c2\App_Web_gb0xf8m-.4.cs:0 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +55 System.Web.UI.Page.ProcessRequest() +91 System.Web.UI.Page.ProcessRequest(HttpContext context) +240 ASP.orderpositionsgrid_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\isv_speedy_speedypluscrmufx20120511\1a5c456a\4d4ff7c2\App_Web_gb0xf8m-.4.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
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