Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, June 8, 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: OK my Head is FLAT and still have no resolution
RJ Eaton
Posts: 234
 
OK my Head is FLAT and still have no resolutionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Mar 13 10:31 AM

I have an issue that has seemed to come from no-where -- omg I sound like an end user now -- anyway .. after our last deploy we are seeing the strangest thing.


When someone tries to delete a product from an opportunity, we are seeing a popup displaying the number 1 clicking on ok makes the popup go away but doesn't delete the product.


I have stepped through the code break points starting at the delete command from both oob product tab and our new custom one. There are NO dialog calls, no excetion calls .. no where does it every get close to something resembling displaying a popup with the number 1 in it. In the opportunity events, there are NO events inside the OnBeforeDelete or OnAfterdelete events, I have looked at them in reflector to see..


The Code that seems to fire the popup is here -- this code is from the opportunityproduct.cs


 




public override void

Delete()

{


ISession session = SessionFactoryHolder.HolderInstance.CreateSession();



 






try




 


 



{



 



 


using (var ts = new



TransactionScope(TransactionMode.Inherits))

{



session.Evict(this







);

session.Delete(this





); <------------ this line is last line before the popup occurs



 


Does anyone have another idea where I can start looking for where this is stemming from..?  Any Ideas..??

signed


Head changed from Pinhead to Flathead

[Reply][Quote]
Adam Travers
Posts: 113
 
Re: OK my Head is FLAT and still have no resolutionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Mar 13 12:07 PM


Hi,


I’m not sure if this is the same issue I have had in the past with users unable to delete Opportunity Products?  I posted this on the SalesLogix Community and resolved it myself in the end.


http://community.sagesaleslogix.com/t5/Administration/Web-Opportunity-Products-Issue-v-7-5-4/m-p/137047#M1717

[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: OK my Head is FLAT and still have no resolutionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Mar 13 1:10 PM

Thanks Adam was a great guess.. sadly however doesn't look like I have WebDev enabled ..


I'll keep trying to explore that route though..

[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: OK my Head is FLAT and still have no resolutionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Mar 13 4:17 PM
Ok Still having issues with this dam popup.. I removed the custom code form the application and now getting it in old OOB forms. I do not have WEB DAV installed as Adam suggested. 

Any Ideas how I can get past the line of code below I have marked out

<p> public override void Delete()

 

{

ISession session = SessionFactoryHolder.HolderInstance.CreateSession();

try


{

using (var ts = new TransactionScope(TransactionMode.Inherits))


{

session.Evict(this);

session.Delete(this); <----- CAN ANYONE HELP ME DEBUG FURTHER ON THIS LINE OF CODE .. THIS LINE IS WHAT IS CAUSING MY POP UP TO APPEAR

}

}

finally

{

SessionFactoryHolder.HolderInstance.ReleaseSession(session);

}


}


 



 


[Reply][Quote]
Mike LaSpina
Posts: 116
 
Re: OK my Head is FLAT and still have no resolutionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Mar 13 3:45 PM

Rich,


   You getting anything in the event log?  I ran into a similar issue and the event log was showing an OleDB error -the number of query parameters mismatching.  This usually indicates an ID that is also a relationship left included on the entity.  However, in my case, the problem was more sinister and I had to write code to work around the cascading of deletes in the ORM.

[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: OK my Head is FLAT and still have no resolutionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Mar 13 9:16 AM

I found it in the event logs earlier in the day when you posted thanks.. Seems there was an entity save call following the deleteion and if it was the last product it was trying to save a null return..


 


Thanks

[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/8/2025 1:48:58 AM