Home | Sign in | English UK
  • This lesson will teach you the following concepts
  • Overview
  • Modifying a project parameter
  • Modifying a project page
  • Modifying the checked-out element
  • Checking the checked-out element back in
  • Synchronizing the project
  • Off-line mode (or mobile mode)
  • SCM administrator
  • Disconnecting from SCM
Lesson 12.3. Using a project in SCM
This lesson will teach you the following concepts
  • Modifying a project parameter.
  • Modifying a project page.
  • Synchronizing the project.
  • Offline mode.
  • SCM administrator.

Estimated time: 30 mn
Previous LessonTable of contentsNext Lesson
We are now going to work with SCM in real conditions by performing the following operations:
  • Modify a project parameter.
  • Modify a project page.
Modifying a project parameter
  • We are going to modify the project by asking to display the skin on the dialog boxes:
    1. Display the project description: in the ribbon, on the "Project" pane, in the "Project" group, click "Description".
    2. Click the "Skin/Styles" tab.
    3. Select "Apply the skin to the dialog boxes".
    4. Validate the description window of project.
  • Several SCM windows appear:
    1. First of all, the window for automatic project check-out is displayed. Indeed, we want to modify a project characteristic therefore the project must be checked out.
    2. The option "Automatically check the project back in at the end of operation" is used to automatically check the project back in at the end of modification. Keep this option.
    3. Validate this window.
    4. WEBDEV proposes to add elements into the SCM database. Accept (green button).
    5. The description window of project is closed and the project is automatically checked back into the SCM database.
Modifying a project page
We are now going to modify the "PAGE_Product_form" page. We are going to move the "Cancel" and "Validate" buttons.
To modify a project element, this element must be checked out.
  • To modify the "PAGE_Product_form" page:
    1. Select the "PAGE_Product_form" page in the project explorer and double-click the element in order to open it in the page editor.
    2. The automatic check-out is enabled during the first modification: all you have to do is move a control to check the element out.
    3. You also have the ability to click the "Check out" icon found in the ribbon of SCM pane ( ).
    4. The check-out window is displayed:
    5. The SCM proposes three check-out modes:
      • Exclusive (recommended mode): nobody can check out this element until it is checked back in. The element can be checked out for test only.
      • For test: the element can be modified but the modifications will not be checked back in.
      • Multiple: the element can also be checked out by other users. In this case, the differences between the different element versions can be viewed when the element is checked back in. This mode is reserved to specific cases and to experienced developers.
    6. The page will be checked out in exclusive mode. Keep the "Exclusive" option checked.
    7. Type a comment ("Modifying the buttons" for example). This comment will be useful for the other developers.
    8. Validate the check-out.
      The page is checked out.

Modifying the checked-out element

The method for modifying a checked-out element (GUI, code, ...) is the same as the method for modifying an element in a project not managed by SCM.
However, the modifications performed on a checked-out element are not visible to the other developers.
If another developer runs the checked-out element, the element that is currently found in the SCM database will be used.
This allows you to make an application evolve by keeping a steady version in the SCM database.
  • Modify the checked-out page:
    1. Select the "Cancel" and "Validate" buttons.
    2. Move the buttons to the right (below the download control).
    3. Save your page (Ctrl + S).
  • Test your modifications.

Checking the checked-out element back in

Now that the modifications have been made, we are going to check the page back into SCM. Then, your modifications will be made accessible to the other developers.
  • On the "SCM" pane, in the "Current element" group, click the "Check in" button. The following screen is displayed:
    This screen is used to:
    • find out the modifications performed by comparing the element found in the SCM database with the checked-out element ("My Modif" button).


      Merging code
      You have the ability to compare an element to one of its earlier versions. This allows you to compare the code in order to retrieve a code section that was "lost" or accidentally deleted by another developer.
    • access the history of the element found in the SCM database ("Properties" button).
    • type a comment about the modifications performed. By default, WEBDEV proposes the comment that was typed during the check-out.
    • send a message to the other developers.
    • check in the modifications made to the element while keeping the element checked out ("Keep the element checked out").


If you are using the Control Centers, the current task can be ended when the element is checked back into the Source Code Manager. This feature is useful to follow the monitoring of tasks, the corrections of bugs, ...
  • Validate the check-in.
Synchronizing the project
Several options can be used to configure a project handled by SCM. These options are grouped in the "SCM" tab of project description (to display it, click "Description" on the "Project" pane).
These options are as follows:
  • Propose to get the latest version of elements when opening the project.
    When opening a project found in the SCM database, this option proposes to get the latest version of project elements.
  • Propose to check the elements back in when closing the project.
    When the project is closed, this option is used to display the list of elements that are currently checked out in order for some of them (or all of them) to be checked back in.
    By default, the checked-out elements are not checked back in when the project is closed.
  • Check out/Check in the project automatically.
    This option allows you to automatically check out or check in the project when using an element.
    This option is selected by default.
Off-line mode (or mobile mode)
The SCM allows you to work in off-line mode (or mobile mode).
This mode allows a developer who is using a laptop computer to continue to work on a project found in the SCM database while being disconnected from the SCM database.
The principle is straightforward:
  • before the disconnection, on the "SCM" pane, in the "Other actions" group, expand "Remote work" and select "Disconnect for a mobile use".
  • during the reconnection, on the "SCM" pane, in the "Other actions" group, expand "Remote work" and select "Reconnect and synchronize". Then, all you have to do is check the modified elements back in.
In mobile mode, two solutions are available for checking out elements:
  • No element is checked out from the SCM. The other developers will be able to work on the same elements as you while you are working in off-line mode. When you reconnect to the SCM, the modifications made by yourself to the element will have to be merged with the modifications made by the other developers.
  • The elements that you want to modify are checked out in exclusive mode. No one else can use the element while you are working in off-line mode.
SCM administrator
The SCM administrator is used to directly handle the different projects included in the source code manager.
It is used to:
  • manage the SCM databases (creation, connection to an SCM database).
  • manage the files and directories found in a project of SCM database (add, delete, rename, ... files and directories).
  • manage the different files found in the SCM database (check-in, check-out, share, ...).
  • start some tools (options, maintenance, ...).
  • show the history of an element.
  • show the status of elements.
  • perform backups.
  • grant rights to the different SCM users.
  • list the projects in which you are taking part in order to dissociate from them (if necessary).
  • Start the SCM administrator: on the "SCM" pane, in the "SCM database" group, click the "Manage" button. All project elements are listed in the administrator.
    See the WEBDEV online help for more details (keyword: "SCM").
Disconnecting from SCM
To stop using SCM on a project:
  1. Display the description window of project: on the "Project" pane, in the "Project" group, click "Description".
  2. In the "SCM" tab, select "No developer groupware and no SCM".
  3. Validate the description window of project.
Previous LessonTable of contentsNext Lesson
Minimum version required
  • Version 23
Click [Add] to post a comment