페이지 트리
메타 데이터의 끝으로 건너뛰기
메타 데이터의 시작으로 이동



Target Screen

Template Report Information

This practice session utilizes a pre-configured template.

  • How to Use the Template:

    1. Launch the report from the portal.

      Template Path : [PPDM] > [Templates] > [2. Data Entry] > [Basic Input] >"Template_HR Management"
    2. Click the Save As button in the top right and save it to your working folder.
    3. Run the saved report.
    4. Click the Edit Report button in the top right to launch the Designer.


Step 1. Establish Data Connections

1.1 Create Inquiry Controls

Generate the necessary components for data filtering.

1. Date Range (Join Date)

  1. Navigate to UI Bot > Label to create the title.

  2. Set the control's property to "Period".
    • Text : Period
  3. Navigate to UI Bot > Calendar > D From To to create the date range picker.

  4. Set the control's properties.
    • Name : VS_FROM_DATE
    • Name2 : VS_TO_DATE
    • InitDate : DATE(-10,F,F);NOW()

2. Division

  1. Create via UI Bot > Label to create Division control's title.

  2. Set the control's property.
    • Text : Division

  3. Navigate to UI Bot > ComboBox > MultiCombo to use a combo box as a filter condition.

  4. Set the control's properties.
    • Name : VS_DIVISION
    • DataSource : Division
    • CaptionField : DIVISION
    • ValueField : DIVISION
    • Enable UseSelectText
    • Enable AutoRefresh


1.2 Bind List-Grid Data Source

Connect the "Grid" data source to the grid control and execute the report to verify the data stream.


Reference : Grid Data Source Query Statement

Grid
SELECT T1.DIVISION
    , 'U0' AS IMG
    , T1.EMP_NO
	, T1.EMP_NM
    , T1.EMP_RANK
    , T1.GENDER
	, T1.ENTER_DATE
	, T1.BIRTH_DATE
    , T1.EMAIL
    , T1.PHONE_NO
    , T1.LEAVE_YN
    , T1.ETC
    , T1.C_USER
    , T1.C_DATE
    , T1.U_USER
    , T1.U_DATE
 FROM EDU_DEV_EMPLOYEE_EN T1
WHERE 1=1
  AND T1.ENTER_DATE BETWEEN @:VS_FROM_DATE AND @:VS_TO_DATE
  AND T1.DIVISION IN (@:VS_DIVISION)
ORDER BY  T1.EMP_NO, T1.DIVISION



Step 2. Configure List-Grid Properties


Description

Define the List-Grid's field types for optimized data entry.


Field NameCaptionField TypeDataAlignment > Data Alignment
1DIVISIONDivisionComboBoxDatasource : DivisionCenter
2IMGIMGImage
Center
3ENP_NOID

Center
4EMP_NMName

Center
5EMP_RANKRankComboBoxDatasource : RankCenter
6GENDERGenderComboBoxDatasource : GenderCenter
7ENTER_DATEJoin DateDateTimeFormat > {0:yyyy-MM-dd}Center
8BIRTH_DATEDOBDateTimeFormat > {0:yyyy-MM-dd}Center
9EMAILEmail

Left
10PHONE_NOContactMaskEditFormat > 000-0000-0000Center
11LEAVE_YNResignedCheckBoxCheckedValue : Y, UnCheckedValue : NCenter
12ETCNotes

Left


Right-click the List-Grid and select [Design] to launch the configuration window.


  1. Update the Caption for each field.


  2. Select and deactivate Show property to hide unused fields.
    • C_USER, C_DATE, U_USER, U_DATE - Deactivate "Show"

  3. Set Data Align for all relevant fields.

    • Alignment - Data Alignment : Center



  4. Configure field types to enable intuitive data entry.

    Field NamesField Type
    Division / Rank / Gender
     ComboBox

    Field Type & Data Source Configuration

    IMG
     Image

    Field Type Configuration

    DOB / Join Date
     DateTime

    Field Type & Format Configuration

    Contact
     MaskEdit

    Field Type & Format Configuration

    (Enter formats in the Format window.)

    Resigned
     CheckBox

    Field Type, CheckedValue, and UnCheckedValue Configuration

  5. Deactivate the "Editable" property for IMG and EMP_NO(ID).

  6. Access right-click the List-Grid > Validation menu to set the default initial value for the [LEAVE_YN](Resigned) field when records are modified.


Run the report to verify that the design configurations have been successfully applied.


Step 3. Utilizing the Formula Editor

Calculate employee metrics such as "Years of Service" and "Headcount" using Formula Editor.


3.1 Add Calculated Fields

  1. To add a new calculated field, click [Design] menu and open the Design window.


  2. Add  button to insert a new field.

  3. Move the field between DOB and Join Date fields and set the default settings.
    • Caption : Years of Service
    • Deactivate Editable
    • Deactivate Mergeable

  4. Navigate to Data > Formula and click  button to open Formula Editor window.

  5. Use YEAR function and [Join Date] field on the left to calculate "Years of Service" and click Apply button to finish writing.


     Expand Formula Used

    YEAR(TODAY()) - YEAR([Join Date]) + 1

  6. Click the Format  button and enter "{0:N0] Years" in the Numeric format field.

  7. Set its data alignment.
    • Alignment - Data Alignment : Center


Run the report to confirm the "Years of Service" field has been successfully added.


3.2 Apply Label Formula

Use Formula property of a Label to display aggregated employee statistics.


  1. Select [Label2] at the top of the List-Grid and click the Formula  button to open the Formula Editor window.

    Description

    (전구) How to Locate Controls

    Click the "[Form Name]'s Controls" in the top right of the Designer.

    View the list of controls in the popup to modify visibility states or focus on specific components to edit their properties.

  2. Combine static text and COUNTIF function using the + operator to display total, female, and male headcounts.

     Expand Formula Used

    "▶ Total : " + COUNTIF(:DataGrid, "EMP_NO", "")
    +
    " Woman : " + COUNTIF(:DataGrid, "EMP_NO", "[GENDER]='female'")
    +
    " Man : " + COUNTIF(:DataGrid, "EMP_NO", "[GENDER]='male'")

  3. Click the [Apply] button to verify that the employee headcount is calculated correctly according to the formula.


Step 4. CRUD Configuration

Enable data creation, inquiry, updates, and deletions using Create Input Form and DB Upload features.


4.1 Create Input Form

Link input controls to the List-Grid using the "CreateInputForm" feature.


  1. In [Edit Mode], right-click the List-Grid and select [CreateInputForm] menu.

  2. Labels and input controls will be auto-generated based on the grid's field types.

  3. Rearrange and style these controls to match the target layout.

    Description

    (전구) Controls generated via "CreateInputForm" can be resized or repositioned,

    and unused components can be deleted.

    Additionally the text and design properties of these controls can be fully customized.


4.2 Execution Plan Design

  1. Open the DB Bot - DB Upload menu to configure the execution plan.


    Description

    (전구) Since this is a template, the core logic is pre-defined.

  2. Connect Data control to verify that the DataGrid is correctly mapped to the database columns.

    • Data control : DataGrid


Step 5. Process Bot Configuration

Configure data CRUD and navigate actions using Process Bot.



Click the Process Bot() button to launch the configuration window.


5.1 Data Persistence Module

Configure CRUD operations using functional modules.

  1. Click Process Bot icon( ) to launch the window and double-click the Report object.

  2. From the Activities tab, navigate to Modules > Save Data and double-click the 'DataGrid CRUD Template' module.

  3. Click the module icon( ) to configure detailed options:
    • Select options according to the module configuration.
    • Click [Save] button to complete the module setup.

5.2 Form Navigation Modules

Configure navigation to different forms upon button clicks within the report.


  1. Configure the action to navigate to the Log form when the BTN_LOG button is clicked.
  2. Double-click the BTN_LOG button.


  3. From the Activities tab, navigate to Modules and double-click the 'Activate Form(Move to other form + Refresh)' module.

  4.  Click the module icon( ) to configure detailed options:
    • Select options according to the module configuration.
    • Configure navigation to the LOG form and inquiry for DataGrid1 upon clicking BTN_LOG button.
    • Click [Save] button to complete the module setup.

  5. Link this module to the BTN_LOG > OnClick event.

  6. Configure the action to navigate to the MAIN form when the BTN_MAIN button is clicked.
  7. Double-click the BTN_MAIN.

  8. From the Activities tab, navigate to Modules and double-click the 'Activate Form(Move to other form + Refresh)' module.

  9. Click the module icon( ) to configure detailed options:
    • Select options according to the module configuration.
    • Configure navigation to the MAIN form and inquiry DataGrid upon clicking BTN_MAIN button.
    • Click [Save] button to complete the module setup.

  10. Link this module to the BTN_MAIN > OnClick event.

  11. Verify that the Process Bot is configured as shown below and save.


Verify that the report is functioning correctly.




  • 레이블 없음