summary
This article is intended for users who will perform customization using Unifinity Studio on applications generated by Unifinity Wizard (hereinafter referred to as "Wizard").
When an application is generated by Wizard, a file with a ".ufpz" extension is also generated. This file contains the complete set of Unifinity Application project files in Zip format. This article describes information about the "process" set up in Wizard for those who are considering customizing it in Unifinity Studio.
Table of Contents
For tables related to processes
Processes related to the process
If you want to be able to input all processes from the beginning
If you want to add more than 9 processes
About the Process
If multiple processes are set in the "Work Process" screen of the Wizard, the input items can be separated for each process in the generated application.
Wizard can register up to 8 processes, but if you want to create more than 9 processes or modify the behavior of a process, you can do so by customizing it based on the information below.
Where to set up the process
For tables related to processes
X_Process" table
This table is used to control the name and status of the process.
At application startup ("0_0000_frame page open" logic), this table is initialized, which sets the process name and other information.
Although up to 8 processes can be set up in Wizard, the field exists up to process 9 because a "completion" process is required at the end.
To change the name of a process, change the "default value" of the "Process Name●" field in this table.
If you want to change the "Edit" and "Delete" icons on the process screen, set the contents in the default values of the "Button Name●" and "Delete Button Name●" fields to the contents registered in the "Resources" of the "Properties" of the project.
If you want to display text, enter text for the default value and then turn off the "Data" tab → "Resource Image" tab → "Resource" checkbox in the properties of each button on the "2. Detail Screen 00_Process Details_Sub Form" screen.
X_Process_Filter" table
This table is used in the "9.31.2. Process List" screen, which is located in the "9.31.1. Process Filter" screen. By registering the process name and selection status in this table, the process filter screen is generated.
Basic Data" table
For apps with "process" set, "process (p_process)" and "process number (p_processNumber)" fields are automatically added to the "Basic Data" table to record the "process" information.
Each is used to indicate which process state each "basic data" is in.
Processes related to the process
0_9310_process_filter_startup(screen_name,control_name,display_name,initial_value)
This process is used to open the "9.31.1. Process Filter" screen and create choices to be displayed on the screen.
*5_4XXX_Process data update (process number,pid)
This is a common process to update "process" and "process number" of "basic data" when "field data" is updated.
+0_2000_Process page open (ID)
By writing the process status to the "X_Process" table when the "Process Details Page" is opened, the availability of edit buttons, etc. is set.
*9_2010_buttons_process●
This is the process when the Edit Process button is pressed. Copy the "field data" into the worktable and go to the edit screen.
*9_2010_buttons_deleted●
Delete "field data" for the relevant process.
+9_4000_button_final
This is the process that occurs when "Confirm" is pressed on the "Field Data" input confirmation screen. The process includes updating the "Basic Data" process.
Customized examples
If you want to be able to enter all processes from the beginning
The application created by Wizard is designed to progress through the process sequentially, with the buttons only enabled before the current process. Skipping a process is not allowed. Button control is achieved by setting 1 (ON) or 0 (OFF) in the "Process Status●" field of the "X_Process" table in "+0_2000_Process Page Open (ID)" when the "Process Details Screen" is opened.
If you change it so that it is always set to 1, the button for the process will always be enabled, allowing the process to be skipped and input.
If you want to add more than 9 processes
Table Preparation
Create three tables for data (L_, T_, and W_) as in other engineering degrees. Also, its fields should be similarly structured (_id, _pid, etc.)
Next, the fields in the "X_Process" table are also added. In the process status and other fields, there is a field for "Process 9" for the completed process as mentioned above, so a new field for "Process 10" will be added.
Adding Screens
Based on the existing screens, create "3. Input Screen 09_Field Information Normal Input", "3. Input Screen 08_Field Information Normal Input_Subform", etc. and link the data to the data table you just created.
Then add buttons for process 9, etc. to "2. Detail Screen 00_Process Details_Subform". Copy the already existing buttons, etc., and change the "Data" tied fields to those of "Process 9".
Adding Processes
First, add "+ Field Information Field List 9" to the global variable and list the physical names of the fields in Process 9.
Create "*9_2010_Button_Process9" and "*9_2010_Button_Delete9" based on the existing process and set them as buttons for the "2. Detail Screen 00_Process Details_Subform" created earlier. Processes for input and confirmation screens are also created with reference to processes in other processes.
Next, in the "Initialize Data" field of "+0_2000_Process Page Open (ID)", process the conditions for "Process 9" and update the database.
Also, add a new deletion process for Process 9, referring to "9_0101_Delete Field Data 8 (Deleted Records, Forced Deletion)", and call it from "9_0100_Delete Basic Data (Deleted Records)".
For each communication process "9_0213_Sending new minutes of field information data8", "9_0223_Receiving field information data8", "9_0233_Sending changed minutes of field information data8" and "9_0243_Sending deleted minutes of field information data8", create processes for Process 9 and call them from each parent process "9_0210_Data 9_0210_Data_New_Sending_Parent_Process, 9_0220_Data_Receiving_Parent_Process, 9_0230_Data_Changed_Sending_Parent_Process, and 9_0240_Data_Deleted_Sending_Parent_Process.
If a filter is set for the list screen, open the "0_9310_Process Filter Activation (Screen Name, Control Name, Display Name, Initial Value)" logic for the filter popup, and the process of acquiring the process name and subsequent addition to the database will also be added for one process.