Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 28, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Add Lookup to Activity Insert
Bill
Posts: 10
 
Add Lookup to Activity InsertYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Apr 12 2:33 PM
fiogf49gjkf0d

I am trying to be able to bind an activity to a new entity "Project".  I've added the lookup to ActivityDetails.ascx.  A test shows the lookup functioning properly, however, when I try to add the binding to ActivityDetails.ascx.cs ( bs.Bindings.Add(new WebEntityBinding("lueProject", ProjectID, "LookupResultValue")) the form crashes out with an error "The name 'ProjectID' does not exist in the current contex."


I've added the field ProjectID to the Activities entity.


Does anyone have any clue why this isn't working?


 



        bs.Bindings.Add(new WebEntityBinding("ContactId", ContactId, "LookupResultValue"));
        bs.Bindings.Add(new WebEntityBinding("lueProject", ProjectID, "LookupResultValue")); //WDB 03/29/2012
        bs.Bindings.Add(new WebEntityBinding("AccountId", ContactId, "SeedValue"));
        bs.Bindings.Add(new WebEntityBinding("OpportunityId", OpportunityId, "LookupResultValue"));


<div class=" lbl alignleft"><br />                <asp:Label ID="lueProject_lbl" AssociatedControlID="lueProject" runat="server" Text="Project:" ></asp:Label>
            </div>  
            <div  class="textcontrol lookup"  >
                <SalesLogix:LookupControl runat="server" ID="lueProject" LookupEntityName="Project" LookupEntityTypeName="Sage.Entity.Interfaces.IGDCGProject, Sage.Entity.Interfaces, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" LookupBindingMode="String" AllowClearingResult="true"  >
                    <LookupProperties>
                        <SalesLogix:LookupProperty PropertyHeader="Account Name" PropertyName="Account.AccountName" PropertyType="System.String" PropertyFormat="None" PropertyFormatString="" UseAsResult="True" ExcludeFromFilters="False"></SalesLogix:LookupProperty>
                        <SalesLogix:LookupProperty PropertyHeader="Description" PropertyName="Description" PropertyType="System.String" PropertyFormat="None" PropertyFormatString="" UseAsResult="True" ExcludeFromFilters="False"></SalesLogix:LookupProperty>
                        <SalesLogix:LookupProperty PropertyHeader="Division" PropertyName="Division" PropertyType="System.String" PropertyFormat="None" PropertyFormatString="" UseAsResult="True" ExcludeFromFilters="False"></SalesLogix:LookupProperty>
                        <SalesLogix:LookupProperty PropertyHeader="Job Number" PropertyName="JobNumber" PropertyType="System.String" PropertyFormat="None" PropertyFormatString="" UseAsResult="True" ExcludeFromFilters="False"></SalesLogix:LookupProperty>
                    </LookupProperties>
                    <LookupPreFilters>
                    </LookupPreFilters>
                </SalesLogix:LookupControl>
            </div>

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Add Lookup to Activity InsertYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Apr 12 12:04 AM
fiogf49gjkf0d

Case matters, are you sure the property is ProjectID and not ProjectId or something?

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Add Lookup to Activity InsertYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Apr 12 4:34 AM
fiogf49gjkf0d

You have your control name and property names mixed up, your line should be:


bs.Bindings.Add(new WebEntityBinding("ProjectID",lueProject , "LookupResultValue")); //WDB 03/29/2012


(Second param is control name, not property name.)


It is confusing on the activity screen as they call the lookups by their entity property names which is unusual..


Cheers,


Nick


 


 

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/28/2025 7:55:31 AM