Hi Ryan, I was wondering if you could help me with this. I have an Account tab called AccountISVApplications, I have an Insert Entity page for adding new ISV Applications. From that Insert page I need to be able to add Accreditations associated to that specific ISV Application. Orginally I had the AddEdit page fire up in DialogWorkspace but adding Accreditations (Child Dialog Action) would work at all.
I then created the Insert Entity page which redirects from the AccountISVApplications tab, I have a datagrid and a button above which fires the Child Dialog Action. This all happens fine and after adding the Accreditations they appear in the datagrid, but when saving and redirecting the Account Detail the Accreditations arent saved. I think this is because there is no ISVApplication record at the time of adding the Accreditations.
I used your above code on the Save button of the child form (Accreditations) but I get the following error:
================================
object references an unsaved transient instance - save the transient instance before flushing or set cascade action for the property to something that would make it autosave. Type: NewNamespace.TPISVApplication, Entity: .
Saleslogix Error Id: SLXAB6A2C2A9CF7BCE5
URL: http://localhost:3333/SlxClientDev/InsertISVApplication.aspx?modeid=Insert&accountId=A6UJ9A000FXZ
Exception type: NHibernate.TransientObjectException
Source: NHibernate.Engine.ForeignKeys, NHibernate, Version=3.3.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4
================================
I tried saving the InsertISVApplication just before I click the Add Accreditations button but still nothing. Any ideas? Been stuck on this for a really long time!
|