×

Notice

The forum is in read only mode.
×
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 Error in SequenceGenerator

  • gawdenitish36
  • gawdenitish36's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 years 6 months ago #10283 by gawdenitish36
Error in SequenceGenerator was created by gawdenitish36
using System;
using DevExpress.Xpo;
using DevExpress.Persistent.Base;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Validation;
using Xpand.Persistent.Base.General.CustomAttributes;
using Xpand.Persistent.Base.General;
using System.Collections.Generic;

namespace webXsoft.BusinessObjects.PersonsObject
{
[NavigationItem(true, GroupName = "Masters")]
[ImageName("BO_Customer")]
[XafDisplayName("Customer")]
public class XCustomer : Person,ISupportSequenceObject
{


public XCustomer(Session session) : base(session)
{ }

public override void AfterConstruction()
{
base.AfterConstruction();

}
private long _sequence;
[SequenceProperty]
public long Sequence
{
get
{
return _sequence;
}
set
{
SetPropertyValue("Sequence", ref _sequence, value);

}
}


string ISupportSequenceObject.Prefix
{
get { return "CS-"; }
}

[RuleUniqueValue("" , DefaultContexts.Save,CriteriaEvaluationBehavior = CriteriaEvaluationBehavior.BeforeTransaction)]
public override string FullName
{
get
{
return base.FullName;
}
}



protected override void OnDeleting()
{
base.OnDeleting();
SequenceGenerator.ReleaseSequence(this);
}

public void OnSaving()
{
base.OnSaving();
if (Session.IsNewObject(this))
SequenceGenerator.GenerateSequence(this);
}




}

}
Attachments:
More
2 years 6 months ago #10287 by Tolis
Replied by Tolis on topic Error in SequenceGenerator
your class declaration has a mistake, you missed to override the OnSaving method. I tested your class in SystemTesterSolution but works fine. I need a sample to reproduce the issue. Also note that the SequenceGenerator is demoed/EasyTested from github.com/expand/eXpand/blob/16.1/Demos...equenceGenerator.ets

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
The following user(s) said Thank You: gawdenitish36
  • gawdenitish36
  • gawdenitish36's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 years 6 months ago #10291 by gawdenitish36
Replied by gawdenitish36 on topic Error in SequenceGenerator
Ya true, i was also tried in SystemTester it was work fine.
but don't work on newly created module.

please find attachment for Sample project Module.

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

More
2 years 6 months ago #10295 by Tolis
Replied by Tolis on topic Error in SequenceGenerator
thanks but this is one platform agnostic module which uses a few platform agnostic Xpand modules. To review I need a working pltaform specific solution where you will use the Xpand platform specific version modules as well. It is wrong to use only the platform agnostic Xpand modules when Win,Web modules for them exists

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
The following user(s) said Thank You: gawdenitish36
  • gawdenitish36
  • gawdenitish36's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 years 6 months ago - 2 years 6 months ago #10299 by gawdenitish36
Replied by gawdenitish36 on topic Error in SequenceGenerator
this is full project,

please tall me what am i doing wrong.

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

Last edit: 2 years 6 months ago by gawdenitish36.
More
2 years 6 months ago #10301 by Tolis
Replied by Tolis on topic Error in SequenceGenerator
again your configuration is wrong and my previous answer applies as it is. Your WebSoftX module use Xpand.ExpressApp,Xpand.ExpressApp.Security and Xpand.ExpressApp.ModelDifference which they all have platform specific version Xpand.ExpressApp.Win,Xpand.ExpressApp.Security.Win and Xpand.ExpressApp.ModelDifference.WIn

you need to install them

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
The following user(s) said Thank You: gawdenitish36
Moderators: expand
Time to create page: 0.208 seconds