Σεπτέμβριος 2010 - Δημοσιεύσεις

Calculated properties at runtime—TIMES 4
28 Σεπτεμβρίου 10 11:12 πμ | tolisss | 0 σχόλια   
In this post you are going to see how you can use on more of eXpand powerfull features. 4 different ways for creating calculated runtime properties are avaliable. XPO way –>Using Code Take a note at the CreateCalculabeMember extension method at the code bellow     public class CreateRuntimeCalculatedFieldController : ViewController {         public override void CustomizeTypesInfo ( DevExpress . ExpressApp . DC . ITypesInfo typesInfo) {             base . CustomizeTypesInfo (typesInfo);             var classInfo = XafTypesInfo . XpoTypeInfoSource . XPDictionary . GetClassInfo ( typeof ( Customer ));

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: ,
Model Distribution with IO Engine
22 Σεπτεμβρίου 10 02:28 μμ | tolisss | 0 σχόλια   
ModelDifference module is one of the powerfull modules of eXpand . It really helps in managing your application models. Scenario Your application has been already distributed to your client and you no longer have access to the production database. Your client admin is responsible for that. But since development never stops as you know, you client asked for some model modification and some new application models (lets say 10) have been developed by your team and you want to sent them to the admin to update the application. eXpand IO module is the right one for the job Step1—Create a serialization graph to configure which objects/values you are going to export In order to create a serialization graph for an object type you have 1st to create a Serialization Configuration

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: ,
Make your navigation behave
20 Σεπτεμβρίου 10 01:03 μμ | tolisss | 0 σχόλια   
Xaf provides a very easy to configure navigation system and in this post i will speak about expand approach to make Xaf’s navigation system behave better than the one provided by default. To enable eXpand extended navigation behaviour one can use the ViewShortcutProccesor attribute either at BO level or at View level as shown in the next image Now what this ViewShortcutProccesor can do to speed up your development? Navigate to a detailview using a ReadOnlyParameter the above readonly parameter taken from eXpand feature center and is defined as     public class ExternalApplicationKeyParameter : ReadOnlyParameter     {         public ExternalApplicationKeyParameter () : base ( "ExternalApplicationKey"

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: ,
Conditional Member Level Security
15 Σεπτεμβρίου 10 11:31 πμ | tolisss | 0 σχόλια   
DevExpress has the best support center I have ever seen, their Code Central really rocks and its fill with hundredths' of samples. One of them is is How to implement the MemberLevel security manually (for example, to deny the 'Read' access for declared properties of some business class, and allow access for the inherited properties eXpand has the above example as a module since its version 9 and you can use it by using the Xpand.ExpressApp.MemberLevelSecurity.dll assembly following the standard procedure for registering a xaf module. But in v10 we have boost it a little bit and we have make it conditional so now you can apply multiple Member Access Permissions to a member and by using the criteria member you can force the permission to be applied only to objects

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία:
Non constant attributes parameters?
13 Σεπτεμβρίου 10 03:44 μμ | tolisss | 0 σχόλια   
Given my previous post Simple maths can boost your app performance did some more thoughts over it in this post  .Net compiler says no!! An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type    public class CustomAttribute : Attribute {     public CriteriaOperator CriteriaOperator { get ; set ; }       public CustomAttribute( CriteriaOperator criteriaOperator) {         CriteriaOperator = criteriaOperator;     } } [ CustomAttribute ( CriteriaOperator .Parse( "Name=?" , "eXpand" ))] public class Class1 {   } the above cannot be compiled BUT XAF SAYS YES Why?

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία:
ERP to XAF connection on the fly part1
08 Σεπτεμβρίου 10 08:57 πμ | tolisss | 0 σχόλια   
Some years ago (before Xaf was born) you have bought an ERP for your company and you are not satisfied with its Analysis,Reporting,PIvoting,Sceduling etv capabilities and you wish the creator of your ERP to have use Xaf instead. If you are looking for the most painful way to map your ERP database into a Xaf application expand framework has the solution for you its called WorldCreator SqlDBMapper module. That module can map any Sql server database into a Xaf application. Bellow I demo how you can use it. Create an empty eXpand solution or use an existing one and navigate to the persistent assembly listview create a new persistent assembly info object, for the sake of the demo i will map NorthWind database, Use the Tools/Map Database action to connect to a database

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: ,
Simple maths can boost your app performance
06 Σεπτεμβρίου 10 04:41 μμ | tolisss | 0 σχόλια   
Xaf provides methods in your controllers to enable you to customize the types that is using. I am speaking about the CustomizeTypesInfo method internal class MyClass : ViewController {     public override void CustomizeTypesInfo(DevExpress.ExpressApp.DC. ITypesInfo typesInfo)     {         base .CustomizeTypesInfo(typesInfo);     } } The thing is that using such decoupled approach can be very dangerous and resource consuming. Take the following example . Say you have 10 classes and you want to customize 2 of them . You also want to decouple the customization logic. Then you probably write one controller like internal class MyController1 : ViewController {     public

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία:
Custom controls everywhere
01 Σεπτεμβρίου 10 03:22 μμ | tolisss | 0 σχόλια   
eXpand have AdditionalViewControlsProvider module that has been design to allow you to add custom controls on a predefined position (Bottom,Top) using its logic architecture ruling system We wanted to add some power to it so in eXpand v10 one is able to position its custom controls any where in the view by setting the rule position to DetailViewItem Then use the Model editor to create an additionalviewcontrol detailview item Associate them with a rule like and finally use the Layout Designer to place them at any position in the View!!! so when you go to the specified view since your rules can be activated uppon any logic your controls visibility will be setup accordingly

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία:

Search

Go

Το Ιστολόγιο

Ιστορικό Δημοσιεύσεων

Συνδρομές