in
Forums
Blogs
Files
Devexpress.Com
ClientCenter
Support Center
DevExpress Channel

create an interface without creating tables in database

Last post 9/2/2008 7:59 PM by Alex Hoffman. 8 replies.
Page 1 of 1 (9 items)
Sort Posts:
Previous Next
  • 8/27/2008 4:35 AM

    create an interface without creating tables in database

    Hi all,

    with eXrepressApp Framework can we create an interface that have some controls without creating tables in database? in this interface we have some process to do.

    If it's possible how to do that?

    Thanks a lot. 

  • 8/28/2008 9:56 AM In reply to

    Re: create an interface without creating tables in database

     There is no way to do that? Please I'm waiting for an answer from you because I didn't find a solution.

    What I want is to create a custum interface that have no data to store in database.

  • 8/28/2008 10:57 AM In reply to

    Re: create an interface without creating tables in database

     

    just create the winform with the special interface, and activate by an action in a controller.

     

    regards

  • 8/28/2008 1:30 PM In reply to

    Re: create an interface without creating tables in database

    You can do it. Create a class that is marked as non-persistent. You can then create an instance in code and then show it in a detail view in the normal way in a controller (examples exist for this - you basically request the application to create a detail view for your object and then ask the ShowViewStrategy to display the view). AFAIK, you cannot show this object via a navigation item since it asumes that the data should be loaded from the database - I haven't checked that is still the case lately.
     
    HTH,
     
    Jascha
    "Souheïl Ben Ghorbal" wrote in message news:232797@community.devexpress.com...

     There is no way to do that? Please I'm waiting for an answer from you because I didn't find a solution.

    What I want is to create a custum interface that have no data to store in database.



    http://community.devexpress.com//forums/p/68376/232797.aspx#232797

  • 8/28/2008 2:19 PM In reply to

    Re: create an interface without creating tables in database

    Hi,

    Yes, it's possible. But what is the reason for the decision to use XAF for a not-data-aware application? It seems it is better to create a reqular Windows Forms application with our controls, and you will get the same UI, and without fighting against the default XAF behavior. Of course, if you provide more information on your scenario, we could provide more feedback.

     

    Souheïl Ben Ghorbal:

    Hi all,

    with eXrepressApp Framework can we create an interface that have some controls without creating tables in database? in this interface we have some process to do.

    If it's possible how to do that?

    Thanks a lot. 

     

     

    Thanks,
    Dennis

    Developer Express Support
  • 9/1/2008 10:24 AM In reply to

    Re: create an interface without creating tables in database

     Hi all,

    the purpose of creating an interface without creating tables in DB, is that I have a project created with XAF and I want to call an interface to manage license that store data with registry base.

    I want to call this interface from the navigation bar. with the view controller and the action, I can add the action to the tool bar but I want to call this interface from the navigation bar.

    regards, Souheïl.

  • 9/2/2008 7:41 AM In reply to

    Re: create an interface without creating tables in database

    Souheïl Ben Ghorbal:

    I want to call this interface from the navigation bar. with the view controller and the action, I can add the action to the tool bar but I want to call this interface from the navigation bar.

    The following might work, although I haven't tried it myself (I do use the CustomProcessShortcut event for other purposes, though).

    Create a new navigation item manually in the application model. You probably only need to set the caption, but some of the other parameters might be necessary as well. Then create a window controller (NOT a view controller) that handles the Application.CustomProcessShortcut event. Set the window controller properties so that it is attached to the main window. In the CustomeProcessShortcut event handler, create a view and assign it to e.View. Set e.Handled to true to let the application know that the view has been created, and hopefully your custom view should appear.

    Andrew

     

  • 9/2/2008 4:09 PM In reply to

    Re: create an interface without creating tables in database

    The following might work, although I haven't tried it myself (I do use the CustomProcessShortcut event for other purposes, though).

    Create a new navigation item manually in the application model. You probably only need to set the caption, but some of the other parameters might be necessary as well. Then create a window controller (NOT a view controller) that handles the Application.CustomProcessShortcut event. Set the window controller properties so that it is attached to the main window. In the CustomeProcessShortcut event handler, create a view and assign it to e.View. Set e.Handled to true to let the application know that the view has been created, and hopefully your custom view should appear.

    Isn't this a little too costly?
    Why not just create a persistent dummy class and let XAF do all the work?
    I do this all the time to be able to create reports, because the XAF architects in their boundless wisdom are forcing me to do this ;-)
     
    regards, Robert
     
  • 9/2/2008 7:59 PM In reply to

    Re: create an interface without creating tables in database

    To display a custom Form from a Navigation item consider using the
    CustomShowNavigationItem event of the ShowNavigationItemController.

    -- Alex Hoffman
    expressapp.blogspot.com


    On Tue, 2 Sep 2008 11:41:21 +0000 (UTC), "Andrew Klopper" <> wrote:

    >Souheïl Ben Ghorbal:
    >
    >I want to call this interface from the navigation bar. with the view controller and the action, I can add the action to the tool bar but I want to call this interface from the navigation bar.
    >
    >
    >
    >The following might work, although I haven't tried it myself (I do use the CustomProcessShortcut event for other purposes, though).
    >
    >Create a new navigation item manually in the application model. You probably only need to set the caption, but some of the other parameters might be necessary as well. Then create a window controller (NOT a view controller) that handles the Application.CustomProcessShortcut event. Set the window controller properties so that it is attached to the main window. In the CustomeProcessShortcut event handler, create a view and assign it to e.View. Set e.Handled to true to let the application know that the view has been created, and hopefully your custom view should appear.
    >
    >Andrew
Page 1 of 1 (9 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED