Ticket Q99257
Visible to All Users

Custom login

created 17 years ago

Dear,
For a new project I need to create an employee object that inherits from User. We use complex security.
The employee is related to a company object (it is a multi company solution).
How can we add the company (dropdown) to the login form and validate it?
How can we by default filter all listviews to the company related to the logged on user?

Show previous comments (10)

    Marina
    When can we expect the KB article?
    The solution you attached is not even close in the direction of a solution

    DevExpress Support Team 17 years ago

      Hi Peter,
      We have just released the v8.1.2 version where the bug was fixed, and the knowledge base will be created using the Web part. So, please wait for just a short while. We'll post an article as soon as possible. Also, please note the sample illustrates the approach, and you should encounter no problems implementing your functionality.
      Thanks,
      Marina

      DevExpress Support Team 17 years ago

        Hi Peter,
        The knowledge base is created. Please refer to it: OBSOLETE - How to customize your Logon window?. Also, I've attached a sample that illustrates how to specifically accomplish your task. Instead of the LastLogonParametersReading event, you need to handle the DetailViewCreating in the following manner:

        Visual Basic
        Private Shared Sub application_DetailViewCreating(ByVal sender As Object, ByVal e As DetailViewCreatingEventArgs) If TypeOf e.Obj Is MyLogonParameters Then Dim app As XafApplication = CType(sender, XafApplication) Dim objectSpace As ObjectSpace = app.ObjectSpaceProvider.CreateObjectSpace() CType(e.Obj, MyLogonParameters).ObjectSpace = objectSpace e.View = New DetailView(app.GetViewInfo(e.ViewID), objectSpace, e.Obj, app, e.IsRoot) End If End Sub

        Thanks,
        Marina

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.