Programming, technology, and CRM – from a Belgian programmer exiled to Missouri
  • rss
  • Home
  • Soft Gallery
    • autosvnbackup.sh
    • VBScript Snippets
  • Contact Me
  • Welcome

Slx 7.2 Web does not save (all) state between postbacks

Nicolas Galler | December 3, 2007

Reminder for me to post on this in the morning… The “EntityStateService” will not save changes to objects that are more than 1 level deep in a relationship. For example: if you have an opportunity, the opportunity has quotes, the quote has line items. You are on an insert form for an opportunity and you let the user add some quotes. Fine. Now you try adding line items to the quotes. Remember the form is bound to an opportunity (a transient object). The changes to the opp are saved. The changes to the quotes are saved. The changes to the line items are not saved. I am not talking about saving to DB – I am talking about saving the state to the session between postbacks.

The code (EntityStateGraphVisitor) uses a “shallow” visitor pattern to persist the changes to the session (I suppose, to avoid ending up saving the entire DB in the session), so this fails to save the changes 2 levels deep.

Update on this: SLX is preparing a system in the next update to allow for saving deeper entities – no details yet on how it will work but hopefully it will help alleviate the above problem.

Categories
Saleslogix
Comments rss
Comments rss
Trackback
Trackback

« Unit Testing SLX SLX EntityBoundSmartPart lifecycle »

Leave a Reply

Click here to cancel reply.

Categories

  • Experiments (4)
  • Interesting (1)
  • MSCRM (1)
  • Programming (60)
  • Rant (3)
  • Saleslogix (34)
  • Tricks (8)
  • Uncategorized (30)

Post History

  • 2010
    • January (3)
    • March (3)
    • April (2)
    • August (2)
  • 2009
    • March (2)
    • April (1)
    • May (3)
    • June (3)
    • July (1)
    • September (3)
    • October (2)
    • December (5)
  • 2008
    • January (9)
    • February (4)
    • March (9)
    • April (1)
    • May (5)
    • June (8)
    • July (1)
    • August (2)
    • September (1)
    • November (1)
    • December (3)
  • 2007
    • January (3)
    • February (7)
    • March (1)
    • April (3)
    • May (6)
    • June (2)
    • July (1)
    • August (2)
    • September (5)
    • October (3)
    • November (5)
    • December (4)
  • 2006
    • January (2)
    • September (1)
    • November (3)
    • December (4)
  • 2005
    • April (1)

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox