Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, May 17, 2024 
 
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: blahblah.ascx(127): error CS0117: 'object' does not contain a definition for 'Remove'
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
blahblah.ascx(127): error CS0117: 'object' does not contain a definition for 'Remove' Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Sep 07 9:32 AM
Hi,

Has anybody come across the following issue?

I am adding a new one to many tab on Opportunity - when I add a delete column to the grid I get the below error:

blahblah.ascx(127): error CS0117: 'object' does not contain a definition for 'Remove'

Looking at the code at this point, it says:

if (childentity != null)
{
mainentity.Id.Remove(childentity);
childentity.Delete();
}
}

which I know is incorrect - it should be more like:

if (childentity != null)
{
mainentity.MyEntity.Remove(childentity);
childentity.Delete();
}
}

I cant see what would cause it to think my child entity would be called ID? Ive rebuilt several times, removed and added relationships to no avail. If I remove the delete column I can add and edit records without a problem. Ive spent a long time looking at this now and hope somebody else reading knows what causes this.

Many thanks,
Nick
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: blahblah.ascx(127): error CS0117: 'object' does not contain a definition for 'Remove' Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Sep 07 1:05 AM
Weird. I've used delete columns in grid with no problems. You have set the BusinessRuleObject and BusinessRule properties for the column?

Not sure I have many ideas for you. I've not experienced this issue with delete columns.
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: blahblah.ascx(127): error CS0117: 'object' does not contain a definition for 'Remove' Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Sep 07 2:10 AM
Yes ive used delete columns elsewhere without a problem (in RC4, not in Gold) - I have set those properties also. If I edit the code after deploy to say .entity.remove as opposed to id.remove it works correctly?! Very strange...I need a way to edit the code of the quickform and for it to remember my change - as soon as you build after you edited the code, the quickform overwrites any changes you have made making it impossible to edit its code....
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: blahblah.ascx(127): error CS0117: 'object' does not contain a definition for 'Remove' Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Sep 07 10:43 AM
There is a way to disconnect a SmartPart from it's accociated QuickForm, but then any changes made to the QuickForm will not get written out to the SmartPart. That would be a pain to deal with just for the delete columns.

I wish I had some better ideas for you on this one, but I've just not experienced this with delete columns.

Is the code you're changing (where the problem is occurring) inline in the SmartPart? So it's not part of the entity or anything, right? I was just thinking maybe the problem is elsewhere but manifesting itself on the SmartPart when deleting? Maybe if you add a delete button to the form itself (not on the grid) you could see if you see the same problem?

-Ryan
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: blahblah.ascx(127): error CS0117: 'object' does not contain a definition for 'Remove' Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Sep 07 11:02 AM
Hi Ryan,

Thanks for persevering! I am fairly convinced it was because I missed one of the several vital build Interfaces along the way - I have added a new tab and entity since and have no trouble using the delete. I will delete the whole thing and start from scratch at some point (maybe next week as its now 5pm and time for the weekend! )

I would be interested in knowing how to separate out the smart part from the quickform but not essential - as some things are much easier in the custom smart parts than in the limiting quick forms (basic form element adding aside, of course)...

Thanks,
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 © 2024 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): 5/17/2024 12:51:43 AM