11/22/2024 3:56:40 PM
|
|
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!
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.
|
|
|
|
blahblah.ascx(127): error CS0117: 'object' does not contain a definition for 'Remove'
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 |
|
|
| |
|
Re: blahblah.ascx(127): error CS0117: 'object' does not contain a definition for 'Remove'
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.... |
|
|
|
Re: blahblah.ascx(127): error CS0117: 'object' does not contain a definition for 'Remove'
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 |
|
|
|
Re: blahblah.ascx(127): error CS0117: 'object' does not contain a definition for 'Remove'
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 |
|
|
|
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!
|
|
|
|
|
|
|
|