×
Getting new Releases

To get notified on new releases you may follow us on twitter @expandframework or subscribe in our main RSS feed.

Topic-icon runtime model members

More
1 month 1 week ago #11590 by melih.yilman
melih.yilman created the topic: runtime model members
Type: AggregateException
Message: Runtime members creation failed
Data: 0 entries
Stack trace:

at: Xpand.Persistent.Base.RuntimeMembers.RuntimeMemberBuilder.CreateRuntimeMembers(IModelApplication model)
at: Xpand.ExpressApp.ModelDifference.ModelDifferenceBaseModule.LoadModels()
at: Xpand.ExpressApp.ModelDifference.ModelDifferenceBaseModule.OnUserDifferencesLoaded(Object sender, EventArgs eventArgs)
at: System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at: DevExpress.ExpressApp.XafApplication.LoadUserDifferences()
at: DevExpress.ExpressApp.XafApplication.Logon(PopupWindowShowActionExecuteEventArgs logonWindowArgs)
at: DevExpress.ExpressApp.Win.WinApplication.Logon(PopupWindowShowActionExecuteEventArgs logonWindowArgs)
InnerException:

Type: Exception
Message: Failed to create photo on ManageMind.Module.Personnel
Data: 0 entries
Stack trace:


InnerException:

Type: InvalidCastException
Message: The object 'ModelBOModelClassMembers' could not be dismissed with the object 'DevExpress.ExpressApp.Model.IModelClass'.
Data: 0 entries
Stack trace:

at: Xpand.Persistent.Base.RuntimeMembers.RuntimeMemberBuilder.CreateXpandCustomMemberInfo(IModelMemberEx modelMemberEx, XPObjectSpace objectSpace)
at: Xpand.Persistent.Base.RuntimeMembers.RuntimeMemberBuilder.CreateRuntimeMembers(IModelApplication model)
InnerException is null

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #11591 by Tolis
Tolis replied the topic: runtime model members
sorry this stack does not help much, how about a sample?

To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand

Please Log in or Create an account to join the conversation.

More
3 weeks 2 days ago #11617 by jacobdeboer
jacobdeboer replied the topic: runtime model members
Hi Tolis

Try this sample. I was just going to create a ticket myself ;)

On DomainObject2 add a runtime member of type domainobject1.

Thanks,
Jacob

This message has an attachment file.
Please log in or register to see it.

Please Log in or Create an account to join the conversation.

More
3 weeks 1 day ago #11619 by Tolis
Tolis replied the topic: runtime model members
Hi Jacob,

Using the ME I created a new Persistent Member, the modified Model.DesignedDiffs.Xafml looked like
<BOModel>
    <Class Name="Solution4.Module.BusinessObjects.DomainObject1">
      <OwnMembers>
        <RuntimeMember Name="d2" IsCustom="True" Type="Solution4.Module.BusinessObjects.DomainObject2" CreatedAtDesignTime="True" IsNewNode="True" />
      </OwnMembers>
    </Class>
  </BOModel>

No exceptions however, everything worked as the Related EasyTests , care to post more details on what exactly I have to do?

To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand

Please Log in or Create an account to join the conversation.

More
2 weeks 6 days ago #11623 by jacobdeboer
jacobdeboer replied the topic: runtime model members
Hi Tolis

I am doing the following steps:
- Start application
- In menu go to Default->Application Settings
- Open up the Applicaiton Model
- Under BOModel go to DomainObject2 and expand it and expand own members
- Right click on on own members and choose Add->Persistent
- Change Id to DC1
- Change Type DomainObject1
- Save and close model -> Exception

I will make a screencast if you can't reproduce this, but screencasts are a hasstle to me... What are you using for screencasts?

Thanks,
Jacob

Please Log in or Create an account to join the conversation.

Time to create page: 0.200 seconds