Thursday, April 29, 2010

Controlling search

There are many times that we want to control the searchable fields of the full text of a list view. eXpand can take care of that always using a declaritive approach

image

Also there could be for maximizing user input one may choose to search directly in detailview then after setting the same attribute of at least one of detailview items

image

a search action will be activated for you for that view

image

and when you execute it if more than one records found an ordersourceprovider will be assign in order to navigate through records

image

Subscribe to XAF feed
Subscribe to community feed

DiggIt!

Monday, April 19, 2010

Changing your web Model at runtime with Model Editor and no IIS reset

I thought I should write for such a case cause seemed interesting to me, and its already implemented at eXpand.

How you do it?

1. Create a new eXpanded Application Solution

image

2. run both the win and the web client so both model will be created and saved at the database byt the modeldifference module.

image

3. Clone your web model to a role model

image

4.Assign the roles you want to change (you could assign all roles of the system if you want so the model will applied everywhere)

image

5. Make your changes (eg. apply a different navigation menu)

image

image

6. And since that model is going to be loaded every time a user log on to the system so you only have to log on again to your application in order the model to be refreshed and reloaded

Subscribe to XAF feed
Subscribe to community feed

DiggIt!

Tuesday, April 13, 2010

How to support eXpand framework

eXpand is the first open source project based on DeveExpress eXpressApp Framework (XAF). It ships in 43 assemblies containing various tools and XAF modules targeting various business scenarios. Main idea behind is to make as much functionality as possible available to developers through declarative approach.

One of the main request has been the building of developer documentation for eXpand. This is a mammoth task which has not yet been undertaken. For currently available information please explore this blog.

If you have found eXpand really eXpanding your abilities to serve your end-users, and, possibly, are longing for a thorough documentation, please consider donating the amount of your choice by clicking a PayPal button below.









Subscribe to XAF feed
Subscribe to community feed

DiggIt!

Thursday, April 8, 2010

Controlling DevExpress AspxGridControl at runtime

Using the same approach we did for controlling DevExpress XtraGrid at runtime.

image

image

image

Subscribe to XAF feed
Subscribe to community feed

DiggIt!

Tuesday, April 6, 2010

Executing actions declaratively

You have used pivoted property attribute to design custom analysis views like

 

image

and you want to navigate to that view from the navigation menu. You also want to execute automatically the Bind Action fro the view make it editable and hide the toolbar. You can of course use eXpand to make all that happen declaratively

Navigation

Create a read only parameter like

public class CurrentShellSiteOid : ReadOnlyParameter {

    public const string CurrentShellSiteOidParameterName = "CurrentShellSiteOid";

    public CurrentShellSiteOid()

        : base(CurrentShellSiteOidParameterName, typeof (Guid)) {

    }

 

    public override object CurrentValue {

        get {

            if (SecuritySystem.CurrentUser != null)

                return ((ShellSite) ((User) SecuritySystem.CurrentUser).GetMemberValue("ShellSite")).Oid;

            return null;

        }

    }

}

and use model editor like

image

Change View edit mode

Always using the model editor just set the require attribute that will open your view at edit mode

image

Execute Bind Action

Using ModelArtifactState module you can create a rule that will execute BindAction for you

image

and because when BindAction will be executed will enable the UnBindAction you can create a rule that will disable the UnBindAction a well

image

Subscribe to XAF feed
Subscribe to community feed

DiggIt!