Modifying the Login Behavior

This topic will show you how to modify the login behavior for your web application, as well as some of the main areas and concepts of the Studio.

While you are developing and testing your web application, you will probably recompile and run your application quite frequently, and you probably don't want to have to bother with the login dialog for each and every test run (unless you are working on login testing, of course). So, here you will learn how to disable the login dialog.

  1. WebApp.src should still be open in the Studio. If it is not the currently the top tab in the Studio, click on it to make it the open tab.

    If it is not open at all, you can open it from Workspace Explorer. If Workspace Explorer is not open, click on the Workspace Explorer icon on the Studio's toolbar.

Workspace Explorer

The Workspace Explorer is a docking window that lists the current project and components included in the current project by type. Read more about this in the Workspace Explorer topic in the Studio book. By default, it is located on the right side of the Studio.

Current Project

The Current Project is a key concept in the DataFlex Studio that affects almost everything you do in the Studio. The current project is the project that is compiled, run and debugged in the Studio, even if you are working on components that are not part of that project. When creating new components, they are added to the current project by default. Read more about this in the Workspace Explorer topic in the Studio book.

  1. In Workspace Explorer, double-click on WebApp.src to open it in the code editor.

  2. If Code Explorer is not open, or if it is not the top tab in an open Studio docking pane, click on the Code Explorer toolbar button.

  3. In Code Explorer (this window is located on the left by default), you will see an outline of the current source file in a tree. There are nodes that represent other source files that are used in this file, objects, and methods.

  1. Click on the Properties toolbar button to open the Properties window.



    As you click on different objects in the Code Explorer window, notice that the properties of the currently selected object are displayed in the Properties (this window is located on the right by default) window.

    Notice also that, as you select different objects in Code Explorer (WebApp.src currently has 2 objects: oApplication and oWebApp), the same object becomes selected in the Visual Designer (provided that it is an object that can be visually modeled), and vise versa. If you click on a file, the Properties window will show "Nothing to Model".

  2. Select the oWebApp object in Code Explorer and, in the Properties window, change the peLoginMode property to lmLoginNone.

  3. Click the Run toolbar button. The application will compile and run.

    When the application runs, your browser should display the application as before, but without popping up the login dialog.

 

Next Step

Creating Your First Web Service Function