Hello,
I am new to SLX and try to use a dependent lookup control like AreaCategoryIssue. So I added a CountryState dependent lookup in InsertAccount and AccountDetails form. This is working fine in the details form , but in the InsertAccount , only country is saved, I made both via the App Architect.
Could you tell me please what to check in the code ?
thanks !
here my code :
<SalesLogix:DependencyLookupControl runat="server" ID="dlCountryProvince" LabelCssClass="lbl" > <LookupResultsHeaderStyle BackColor="ActiveCaption" Font-Bold="True" ForeColor="White" /> <LookupDialogStyle BackColor="ButtonFace" /> <LookupResultsStyle CellPadding="4" ForeColor="Black" /> <DependentLookups> <SalesLogix:DependentLookup LookupEntityName="CFCCountryProvince" LookupEntityTypeName="Sage.Entity.Interfaces.ICFCCountryProvince, Sage.Entity.Interfaces, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" DropDownDisplayProperty="Country" ParentProperty="" PropertyDisplay="<%$ resources: dlCountryProvince.DependentLookups.Country.PropertyDisplay %>" BindingPropertyName="Address.Country"> </SalesLogix:DependentLookup> <SalesLogix:DependentLookup LookupEntityName="CFCCountryProvince" LookupEntityTypeName="Sage.Entity.Interfaces.ICFCCountryProvince, Sage.Entity.Interfaces, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" DropDownDisplayProperty="Province" ParentProperty="Country" PropertyDisplay="<%$ resources: dlCountryProvince.DependentLookups.Province.PropertyDisplay %>" BindingPropertyName="Address.State"> </SalesLogix:DependentLookup> </DependentLookups> <LookupPreFilters> </LookupPreFilters> </SalesLogix:DependencyLookupControl> </div>
OnAddEntityBindings
// dlCountryProvince.Text Binding Sage.Platform.WebPortal.Binding.WebEntityBinding dlCountryProvinceTextBinding = new Sage.Platform.WebPortal.Binding.WebEntityBinding("Address.Country", dlCountryProvince, "Text"); BindingSource.Bindings.Add(dlCountryProvinceTextBinding);
so here I have only the Address.Country link , so I should add the province , but how ? and why is it working in the details form (I check the code and for me they are exactly the same).
I suppose this is a very easy thing but all help is welcome !
thanks !
|