Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
We will now learn about how to use App Designer to create screens of Order application.
There are the various screens for Order Request
Create Order Request screen.
Create Order Item screen.
Order Request Screen for BackOffice
Order Item Screen for BackOffice
Order Request Screen for Approval
Order Item Screen for Approval
Order Request Screen for Admin PO
Learn about step to create entity for administrator who will add possible supplier.
1. From the App space screen, click Form and then popup dialog will opens.
2. Enter name in field Component Name and click Start Design.
3. From Tools > Tabs drag 2-Layer Tab to the silver box under entity name. The dialog of Add Tab data opens. Put "Order Request Item" to Title and then click Add.
4. From Tools > Module drag 1-1 to the box under the Order Request Item tab.
Click icon pencil. The dialog of Module Configuration opens.
Change Module Name to "Order Item".
Change Table Name to "wf_order_req_item (T)"
Click OK.
Click icon Configuration Layout and the dialog opens.
Select 2 Column and then click Accept. The table that has 2 columns will show.
5. From Tools > Field drag Dynamic List to the first cell of the table (From step 4.6) The dropdownLabel shows.
Click icon pencil. The dialog of Dynamic List Box Configuration opens.
Change Table Name to "wf_ms_hardware".
Change Column Show to "HARDWARE_NAME".
Change Column Value to "HARDWARE_ID".
Change FIELD_ID to "HARDWAREID".
Change ShowFieldName to "Hardware Id".
Switch viewFlag to "Y".
Click OK.
6. From Tools > Field drag Textarea to the second cell of the table. (From step 4.6) The textareaLabel shows.
Click icon pencil. The dialog of Text Area Configuration opens.
Change FIELD_ID to "SPEC".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Spec".
Switch viewFlag to "Y".
Click OK.
7. From Order Item Module click icon append row. The system will append new row to the table.
8. From Tools > Field drag Text Box to the first cell of new row. (From step 7) The textLabel shows.
Click icon pencil. The dialog of Text box Configuration opens.
Select "Integer" at Number Formatter.
Change FIELD_ID to "UNIT".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Unit".
Switch viewFlag to "Y".
Click OK.
9. From Tools > Field drag Textarea to the second cell of new row (From step 7) The textareaLabel shows.
Click icon pencil. The dialog of Text Area Configuration opens.
Change FIELD_ID to "REMARK".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Remark".
Switch viewFlag to "Y".
Click OK.
10. From Order Item Module click icon append row. The system will append new row to the table.
11. From Tools > Field drag Hidden to the first cell of new row. (From step 10) The hiddenLabel shows.
Click icon pencil. The dialog of Hidden Field Configuration opens.
Put "id = 'ORDER_ITEM_ID'" to Source tag (for link with parent entity).
Change FIELD_ID to "ORDER_ITEM_ID".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Order Item Id".
Click OK.
12. From Tools > Field drag Hidden to the first cell of new row. (From step 10) The hiddenLabel shows.
Click icon pencil. The dialog of Hidden Field Configuration opens.
Put "id = 'REQUEST_ID'" to Source tag (for link with parent entity).
Change FIELD_ID to "REQUEST_ID".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Request Id".
Click OK.
13. From Tools > Button drag Entity Button to space under the Module Order Request. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "SAVE".
Change Page Action to "ENTITY_INSERT".
At Button Action select first radio and change button action to "saveEntity()".
Click OK.
14. From Tools > Button drag Entity Button to space under the Module Order Request. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "SAVE".
Change Page Action to "ENTITY_UPDATE".
At Button Action select first radio and change button action to "saveEntity()".
Click OK.
15. From Tools > Button drag Entity Button to space under the Module Order Request. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "CANCEL".
Change Page Action to "ENTITY_INSERT".
At Button Action select first radio and change button action to "cancelEntity()".
Click OK.
16. From Tools > Button drag Entity Button to space under the Module Order Request. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "CANCEL".
Change Page Action to "ENTITY_UPDATE".
At Button Action select first radio and change button action to "cancelEntity()".
Click OK.
17. From Tools > Tabs drag Normal Tab to the silver box under the table. The dialog of Add Tab data opens. Put "Supplier List" to Title, select 1 column and then click Add. The Order Item tab show.
18. From Tools > Module drag 1-Many to the box under the Order Item tab.
Click icon pencil. The dialog of Module Configuration opens.
Change Module Name to "Supplier".
Change Table Name to "wf_order_req_item_supplier (T)".
Click OK.
19. From Tools > Field drag Hidden to Module Supplier. The hiddenLabel shows.
Click icon pencil. The dialog of Hidden Field Configuration opens.
Change FIELD_ID to "ORDER_ITEM_SUPPLIER_ID".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Order Item Supplier Id".
Click OK.
20. From Tools > Field drag Hidden to Module Supplier. The hiddenLabel shows.
Click icon pencil. The dialog of Hidden Field Configuration opens.
Change FIELD_ID to "ORDER_ITEM_ID".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Order Item Id"
Click OK.
21. From Tools > Field drag Text Box to Module Supplier. The textLabel shows.
Click icon pencil. The dialog of Text box Configuration opens.
Change FIELD_ID to "SUPPLIER_NAME".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Supplier Name".
Change FieldGroup to "1" and change Seq to "1".
Switch ShowSearch to "Y".
Change showSearchSeq to "1".
Select "CHECK_NULL" at Validate Code and click icon plus. The new record of Validate Code show.
Click OK.
22. From Tools > Field drag Text Box to Module Supplier. The textLabel shows.
Click icon pencil. The dialog of Text box Configuration opens.
Select "Integer" at Number Formatter.
Change FIELD_ID to "IN_STOC
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "In Stock".
Change FieldGroup to "1" and change Seq to "2".
Switch ShowSearch to "Y".
Change showSearchSeq to "2".
Select "CHECK_NULL" at Validate Code and click icon plus. The new record of Validate Code show.
Click OK.
23. From Tools > Field drag Text Box to Module Supplier. The textLabel shows.
Click icon pencil. The dialog of Text box Configuration opens.
Select "Currency" at Number Formatter
Change FIELD_ID to "UNIT_PRICE".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Unit Price".
Change FieldGroup to "2" and change Seq to "1".
Switch ShowSearch to "Y".
Change showSearchSeq to "3".
Select "CHECK_NULL" at Validate Code and click icon plus. The new record of Validate Code show.
Click OK.
24. From Tools > Field drag Textarea to Module Supplier. The textareaLabel shows.
Click icon pencil. The dialog of Text Area Configuration opens.
Change FIELD_ID to "REMARK".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Remark".
Change FieldGroup to "2" and change Seq to "2".
Click OK.
25. From Tools > Button drag Module Button to space under the Module Supplier. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "ADD".
Change Page Action to "SUB_SEARCH".
At Button Action select first radio and change button action to "popupActionFlow('[MODULE_ID]')".
Click OK.
27. From Tools > Button drag Module Button to space under the Module Supplier. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "SAVE".
Change Page Action to "INSERT".
At Button Action select first radio and change button action to "actionFormSubmit('insertMany','Y')".
Click OK.
28. From Tools > Button drag Module Button to space under the Module Supplier. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "SAVE".
Change Page Action to "UPDATE".
At Button Action select first radio and change button action to "actionFormSubmit('insertMany','Y')".
Click OK.
29. From Tools > Button drag Module Button to space under the Module Supplier. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "CANCEL".
Change Page Action to "INSERT".
At Button Action select first radio and change button action to "$('#many_[MODULE_ID]_dialog').dialog('close');".
Click OK.
30. From Tools > Button drag Module Button to space under the Module Supplier. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "CANCEL".
Change Page Action to "UPDATE".
At Button Action select first radio and change button action to "$('#many_[MODULE_ID]_dialog').dialog('close');".
Click OK.
31. Configure Order Item module key.
From module Order Item click icon pencil. The dialog of Module Configuration opens.
Select "ORDER_ITEM_ID at Module Key.
Put "IT" to Prefix.
Put "18" to KeyLen.
Put "ORDER_ITEM_ID_SEQ" to Sequence.
Click icon plus. The new record of Module Key show.
Click OK.
32. Configure Supplier module key.
From module Supplier click icon pencil. The dialog of Module Configuration opens.
Select "ORDER_ITEM_SUPPLIER_ID" at Module Key.
Put "SP" to Prefix.
Put "18" to KeyLen.
Put "ORDER_ITEM_SUPPLIER_ID_SEQ" to Sequence.
Click icon plus. The new record of Module Key show.
Select "ORDER_ITEM_ID" at Module Key.
Select "ORDER_ITEM_ID" at Parent Key.
Click icon plus. The new record of Module Key show.
Click OK.
33. Click button Save this Entity.
The completed entity looks as shown below
Learn about step to link parent entity (Order Request Entity for Admin) with child entity (Order Request Item)
1. From ONEWEB App Designer screen, click Utilities > Parent Child Entity and then click icon plus on the popup dialog. Parent Child Entity Configuration opens.
2. Select Parent Entity to "Doc Order Request - Admin"
3. Select Child Entity to "Doc Order Request Item - Admin"
4. Select Parent Tab to "Order Item"
5. Select Child Tab to "Supplier List"
6. Select Parent Module to "Order Request Item"
7. Put "REQUEST_ID" to Parent's Fields.
8. Put "REQUEST_ID" to Interface Parameters.
9. Put "REQUEST_ID" to Child's Fields.
10. Put "ADD" to Display Value.
11. Click Save. The new record that PARENT ENTITY start with "Doc Order Request - Admin show and the system will automatic add module button name "ADD" to the parent entity (Doc Order Request Item - Admin).
12. Go back to edit entity Doc Order Request Item - Admin.
Edit module button "ADD" by click icon pencil.
Change Page Action to -- Please select -- for hide button from this entity.
Click OK and save entity
Learn about step to clone entity for role Admin who will add supplier lists.
1. From ONEWEB App Designer screen, click Entities > Clone Entity. The dialog of Clone Entity opens.
2. Select existing entity to " Requester" at Select Existing Entity, put new entity name to "Doc Order Request Item - Admin" at Name of Clone Entity and click Clone. Wait until message "Entity has been imported successfully" and button name "Open Cloned Entity" show.
3. Click Open Cloned Entity. (The popup dialog of Search Entities shows all entities. Now click on icon pencil to edit.)
4. From module Order Request, edit Project by click icon pencil and switch viewFlag to "Y" and click OK.
5. From module Order Request, edit Phase by click icon pencil and switch viewFlag to "Y" and click OK.
6. From module Order Request, edit Description by click icon pencil and switch viewFlag to "Y" and click OK.
7. From Order Request Module click icon append row. The system will append new row to the table.
8. From Tools > Field drag Dynamic List to the first cell of new row (From step 7) the dropdownLabel shows.
Click icon pencil. The dialog of Dynamic List Box Configuration opens.
Change Table Name to "wf_ms_list_box".
Change Column Show to "DISPLAY_NAME".
Change Column Value to "DISPLAY_CODE".
Put "category_code = 'ADMIN_DECISION'" to Condition Value.
Change FIELD_ID to "DECISION".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Decision".
Click OK.
9. From Tools > Field drag Textarea to the second cell of new row (From step 7) the textareaLabel shows.
Click icon pencil. The dialog of Text Area Configuration opens.
Change FIELD_ID to "DECISION_REMARK".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Decision Remark".
Click OK.
10. From entity button, remove button SAVE that Page Action is "ENTITY_INSERT" and click OK.
11. From entity button, remove button CANCEL that Page Action is "ENTITY_INSERT" and click OK.
12. From entity button, remove button CREATE.
13. From module Order Request Item, edit Hardwareid by click icon pencil and switch viewFlag to "Y" and click OK.
14. From module Order Request Item, edit Spec by click icon pencil and switch viewFlag to "Y" and click OK.
15. From module Order Request Item, edit Unit by click icon pencil and switch viewFlag to "Y" and click OK.
16. From module Order Request Item, edit Remark by click icon pencil and switch viewFlag to "Y" and click OK.
17. From module button, delete button "ADD" and "DELETE".
18. Click Save this Entity.
The completed entity looks as shown below
Learn about step to create menu for requester who need to make order request.
From ONEWEB App Designer screen, click Utilities > Menu Configuration. The Menu Configuration screen opens.
Move cursor to icon plus under Menu Configuration title and click. The dialog of Menu Properties opens.
Put "DOC Order Request" at Description.
Select Mapping to "Doc Order Request - Requester" and "SEARCH".
Click button Generate, system will auto generate Action URL.
Select type to "PAGE".
Click OK.
Click Save Menu.
Next login new menu name "DOC Order Request" will appear.
Learn about step to clone entity for role Back Office who will select supplier from supplier lists.
1. From ONEWEB App Designer screen, click Entities > Clone Entity. The dialog of Clone Entity opens.
2. Select existing entity to "Doc Order Request - Admin" at Select Existing Entity, put new entity name to "Doc Order Request - Back Office" at Name of Clone Entity and click Clone. Wait until message "Entity has been imported successfully" and button name "Open Cloned Entity" show.
3. Click open the cloned Entity. (The popup dialog of Search Entities shows all entities. Now click on icon pencil to edit.)
4. From module Order Request, move Project Name to the right cell.
5. From Tools > Field drag Text Box to in front of Project Name. The textLabel shows.
Click icon pencil. The dialog of Text box Configuration opens.
Select "Currency" at Number Formatter.
Change FIELD_ID to "TOTAL_AMT".
Put "Total Amount" to ShowFieldName.
Switch viewFlag to "Y".
Click OK.
6. From module Order Request, edit Decision by click icon pencil, change Condition Value to "category_code = 'BACK_OFFICE_DECISION'" and click OK.
7. From Tools > Field drag Text Box to Module Order Item. The textLabel shows.
Click icon pencil. The dialog of Text box Configuration opens.
Select "Currency" at Number Formatter.
Change FIELD_ID to "SUMMARY_PRICE".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Summary Price".
Change FieldGroup to "3" and change Seq to "1".
Switch ShowSearch to "Y".
Change showSearchSeq to "4".
Click OK.
8. From module button, delete button "ADD".
9. Click Save this Entity.
The completed entity will look as shown below
Learn about step to clone entity for role Back Office who will select supplier from supplier lists.
1. From ONEWEB App Designer screen, click Entities > Clone Entity. The dialog of Clone Entity opens.
2. Select existing entity to "Doc Order Request Item - Admin" at Select Existing Entity, put new entity name to "Doc Order Request Item - Back Office" at Name of Clone Entity and click Clone. Wait until message "Entity has been imported successfully" and button name "Open Cloned Entity" show.
3. Click Open Cloned Entity. (The popup dialog of Search Entities shows all entities. Now click on icon pencil to edit.)
4. From module Order Request Item, click icon append row. The system will append new row to the table.
5. From Tools > Field drag Text Box to the first cell of new row (from step 4). The textLabel shows.
Click icon pencil. The dialog of Text box Configuration opens.
Put "readonly" to Source tag.
Select "Currency" at Number Formatter.
Change FIELD_ID to "SUMMARY_PRICE".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Summary Price".
Click OK.
6. From module Supplier, edit Supplier Name by click icon pencil.
Switch viewFlag to "Y".
Click OK.
7. From module Supplier, edit In Stock by click icon pencil.
Switch viewFlag to "Y".
Click OK.
8. From module Supplier, edit Unit Price by click icon pencil.
Switch viewFlag to "Y".
Click OK.
9. From module Supplier, edit Remark by click icon pencil.
Switch viewFlag to "Y".
Click OK.
10. From Tools > Field drag Text Box to Module Supplier. The noLabel shows.
Click icon pencil. The dialog of Text Box Configuration opens.
Select "Integer" at Number Formatter.
Change FIELD_ID to "REMAIN_ORDER_UNIT".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Remain Order Unit".
Change FieldGroup to "3" and change Seq to "1".
Switch onlyGuiFlag to "Y".
Switch viewFlag to "Y".
Click OK.
11. From Tools > Field drag Text Box to Module Supplier. The textLabel shows.
Click icon pencil. The dialog of Text box Configuration opens.
Select "Integer" at Number Formatter.
Change FIELD_ID to "UNIT_BY_BACK_OFFICE".
Put "Order Unit" to ShowFieldName.
Change FieldGroup to "4" and change Seq to "1".
Switch ShowSearch to "Y".
Put "4" to showSearchSeq.
Click OK.
12. From Tools > Field drag Text Box to Module Supplier. The textLabel shows.
Click icon pencil. The dialog of Text box Configuration opens.
Put "readonly" to Source tag.
Select "Currency" at Number Formatter.
Change FIELD_ID to "TOTAL_PRICE".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Total Price".
Change FieldGroup to "4" and change Seq to "2".
Switch ShowSearch to "Y".
Put "5" to showSearchSeq.
Click OK.
13. From Tools > Field drag Textarea to Module Supplier. The textareaLabel shows.
Click icon pencil. The dialog of Text Area Configuration opens.
Change FIELD_ID to "BACK_OFFICE_REMARK".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Back Office Remark".
Change FieldGroup to "5" and change Seq to "1".
Click OK.
14. From module button, delete button "ADD" and "DELETE".
15. Click Save this Entity.
The completed entity looks as shown below
Learn about the steps to create an entity for the requester who needs to make an order request.
1. From the App space screen, click Form and then popup dialog will opens.
2. Enter name in field Component Name and click Start Design.
3. From Tools > Tabs drag the 2-Layer Tab to the silver box under the entity name. The dialog of Add Tab data opens. Put "Order Request" to Title and then click Add.
4. From Tools > Module drag 1-1 to the box under the Order Request tab
Click icon pencil. The dialog of Module Configuration opens.
Change Module Name to "Order Request".
Change Table Name to "wf_service_request (T)".
Put "select wf_service_request.request_id, wf_service_request.requester, wf_service_request.project, wf_ms_project.project_name, wf_service_request.phase, wf_service_request.description, to_char(wf_service_request.create_date, 'DD/MM/YYYY HH24:MI:SS') as create_date from wf_service_request join wf_ms_project on wf_service_request.project = wf_ms_project.project_id" to SQL Work Queue.
Click OK.
Click icon Configuration Layout. The dialog opens.
Select 2 Column and then click Accept. The table that has 2 columns will show.
5. From Tools > Field drag Text Box to the first cell of the table. (From step 4.6) The textLabel shows.
Click icon pencil. The dialog of Text box Configuration opens
Put "readonly" to Soruce tag.
Change FIELD_ID to "REQUEST_ID".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Request Id".
Switch ShowSearch to "Y".
Change showSearchSeq to "1".
Click OK.
6. From Tools > Field drag Text Box to the second cell of the table. (From step 4.6) The textLabel shows.
Click icon pencil. The dialog of Text box Configuration opens.
Put "readonly" to Soruce tag.
Change FIELD_ID to "REQUESTER".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Requester".
Switch ShowSearch to "Y".
Change showSearchSeq to "2".
Click OK.
7. From Order Request Module click icon append row. The system will append new row to the table.
8. From Tools > Field drag Dynamic List to the first cell of new row (From step 7) The dropdownLabel shows.
Click icon pencil. The dialog of Dynamic List Box Configuration opens.
Change Table Name to "wf_ms_project".
Change Column Show to "PROJECT_NAME".
Change Column Value to "PROJECT_ID".
Change FIELD_ID to "PROJECT".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Project".
Switch SearchCriteria to "Y".
Change searchFieldGroup and searchCriteriaSeq to "1".
Select "CHECK_NULL" at Validate Code and click icon plus. The new record of Validate Code show.
Click OK.
9. From Tools > Field drag Dynamic List to the second cell of new row (From step 7) The dropdownLabel shows.
Click icon pencil. The dialog of Dynamic List Box Configuration opens.
Change Table Name to "wf_ms_phase".
Change Column Show to "PHASE_NAME".
Change Column Value to "PHASE_ID".
Change FIELD_ID to "PHASE".
Click icon Populate from FIELD_ID. The system will auto generate
Click OK.
10. From Order Request Module click icon append row. The system will append new row to the table.
11. From Tools > Field drag Textarea to the first cell of new row (From step 10) The textareaLabel shows.
Click icon pencil. The dialog of Text Area Configuration opens.
Change FIELD_ID to "DESCRIPTION".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Description".
Switch SearchCriteria, ShowSearch and searchLike to "Y".
Change searchFieldGroup to "1", searchCriteriaSeq to "2" and showSearchSeq to "4".
Click OK.
12. From Tools > Field drag NO Object to the second cell of new row. (From step 10) The no Label shows.
Click icon pencil. The dialog of No Object Field Configuration opens.
Change FIELD_ID to "CREATE_DATE".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Create Date".
Switch ShowSearch to "Y".
Change showSearchSeq to "5".
Switch onlyGuiFlag to "Y".
Click OK.
13. From Order Request Module click icon append row. The system will append new row to the table.
14. From Tools > Field drag NO Object to the first cell of new row. (From step 13) The noLabel shows.
Click icon pencil. The dialog of No Object Field Configuration opens.
Change FIELD_ID to "PROJECT_NAME".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Project Name".
Switch ShowSearch to "Y".
Change showSearchSeq to "2".
Switch onlyGuiFlag to "Y".
Click OK.
15. From Tools > Field drag Hidden to the second cell of new row. (From step 13) The hiddenLabel shows.
Click icon pencil. The dialog of Hidden Field Configuration opens.
Put "03" to Default value.
Change FIELD_ID to "REQUEST_TYPE".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Request Type"
Click OK.
16. From Tools > Button drag Entity Button to space under the Module Order Request. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "SEARCH".
Change Page Action to "ENTITY_SEARCH".
At Button Action select first radio and change button action to "searchResult()".
Click OK.
17. From Tools > Button drag Entity Button to space under the Module Order Request. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "CREATE".
Change Page Action to "ENTITY_SEARCH".
At Button Action select first radio and change button action to "addEntity()".
Click OK.
18. From Tools > Button drag Entity Button to space under the Module Order Request. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "SAVE".
Change Page Action to "ENTITY_INSERT".
At Button Action select first radio and change button action to "saveEntity()".
Click OK.
19. From Tools > Button drag Entity Button to space under the Module Order Request. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "SAVE".
Change Page Action to "ENTITY_UPDATE".
At Button Action select first radio and change button action to "saveEntity()".
Click OK.
20. From Tools > Button drag Entity Button to space under the Module Order Request. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "CANCEL".
Change Page Action to "ENTITY_INSERT".
At Button Action select first radio and change button action to "cancelEntity()".
Click OK.
21. From Tools > Button drag Entity Button to space under the Module Order Request. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "CANCEL".
Change Page Action to "ENTITY_UPDATE".
At Button Action select first radio and change button action to "cancelEntity()".
Click OK.
22. From Tools > Tabs drag Normal Tab to the silver box under the table. The dialog of Add Tab data opens. Put "Order Item" to Title, select 1 column and then click Add. The Order Item tab show.
23. From Tools > Module drag 1-Many to the box under the Order Item tab.
Click icon pencil. The dialog of Module Configuration opens.
Change Module Name to "Order Request Item".
Change Table Name to "wf_order_request_item (T)".
Click OK.
24. From Tools > Field drag Hidden to Module Order Item. The hiddenLabel shows.
Click icon pencil. The dialog of Hidden Field Configuration opens.
Change FIELD_ID to "REQUEST_ID".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Request Id".
Click OK.
25. From Tools > Field drag Hidden to Module Order Item. The hiddenLabel shows.
Click icon pencil. The dialog of Hidden Field Configuration opens.
Change FIELD_ID to "ORDER_ITEM_ID".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Order Item I
Click OK.
26. From Tools > Field drag Dynamic List to Module Order Item. The dropdownLabel shows.
Click icon pencil. The dialog of Dynamic List Box Configuration opens.
Change Table Name to "wf_ms_hardware".
Change Column Show to "HARDWARE_NAME".
Change Column Value to "HARDWARE_ID".
Change FIELD_ID to "HARDWAREID".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Hardwareid".
Change FieldGroup to "1" and change Seq to "1".
Switch ShowSearch to "
Change showSearchSeq to "1".
Select "CHECK_NULL" at Validate Code and click icon plus. The new record of Validate Code show.
Click OK.
27. From Tools > Field drag Textarea to Module Order Item. The textareaLabel shows.
Click icon pencil. The dialog of Text Area Configuration opens.
Change FIELD_ID to "SPEC".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Spec".
Change FieldGroup to "1" and change Seq to "2".
Select "CHECK_NULL" at Validate Code and click icon plus. The new record of Validate Code show.
Click OK.
28. From Tools > Field drag Text Box to Module Order Item. The textLabel shows. Click icon pencil. The dialog of Text box Configuration opens.
Select "Integer" at Number Formatter.
Change FIELD_ID to "UNIT".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Unit".
Change FieldGroup to "2" and change Seq to "1".
Switch ShowSearch to "Y".
Change showSearchSeq to "2".
Select "CHECK_NULL" at Validate Code and click icon plus. The new record of Validate Code show.
Click OK.
29. From Tools > Field drag Textarea to Module Order Item. The textareaLabel shows.
Click icon pencil. The dialog of Text Area Configuration opens.
Change FIELD_ID to "REMARK".
Click icon Populate from FIELD_ID. The system will auto generate ShowFieldName to "Remark".
Change FieldGroup to "2" and change Seq to "2".
Click OK.
30. From Tools > Button drag Module Button to space under the Module Order Request Item. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "ADD".
Change Page Action to "SUB_SEARCH".
At Button Action select first radio and change button action to "popupActionFlow('[MODULE_ID]')".
Click OK.
31. From Tools > Button drag Module Button to space under the Module Order Request Item. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "DELETE".
Change Page Action to "SUB_SEARCH".
At Button Action select first radio and change button action to "[MODULE_ID]Delete()".
Click OK.
32. From Tools > Button drag Module Button to space under the Module Order Request Item. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "SAVE".
Change Page Action to "INSERT".
At Button Action select first radio and change button action to "actionFormSubmit('insertMany','Y')".
Click OK.
33. From Tools > Button drag Module Button to space under the Module Order Request Item. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "SAVE".
Change Page Action to "UPDATE".
At Button Action select first radio and change button action to "actionFormSubmit('insertMany','Y')".
Click OK.
34. From Tools > Button drag Module Button to space under the Module Order Request Item. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "CANCEL". Change Page Action to "INSERT".
At Button Action select first radio and change button action to "$('#many_[MODULE_ID]_dialog').dialog('close');".
Click OK.
35. From Tools > Button drag Module Button to space under the Module Order Request Item. The SUBMIT_VALUE show.
Click icon pencil. The dialog of Button Configuration opens.
Change buttonName to "CANCEL".
Change Page Action to "UPDATE".
At Button Action select first radio and change button action to "$('#many_[MODULE_ID]_dialog').dialog('close');".
Click OK.
36. Configure Order Request module key.
From module Order Request click icon pencil. The dialog of Module Configuration opens.
Put "REQUEST_ID to Modul
Put "OD" to Prefix.
Put "8" to KeyLen.
Put "REQUEST_ID_SEQ" to Sequence.
Click icon plus. The new record of Module Key show.
Click OK.
37. Configure Order Request Item module key.
From module Order Request Item click icon pencil. The dialog of Module Configuration opens.
Put "ORDER_ITEM_ID" to Module Key.
Put "IT" to Prefix.
Put "18" to KeyLen.
Put "ORDER_ITEM_ID_SEQ" to Sequence.
Click icon plus. The new record of Module Key show.
Put "REQUEST_ID" to Module Key.
Put "REQUEST_ID" to Parent Key.
Click icon plus. The new record of Module Key show.
Click OK.
The completed entity looks as shown in below diagram
Learn about step to link parent entity (Order Request Entity for Back Office) with child entity (Order Request Item for Back Office)
1. From ONEWEB App Designer screen, click Utilities > Parent Child Entity and then click icon plus on the popup dialog. Parent Child Entity Configuration opens.
2. Select Parent Entity to "Doc Order Request - Back Office"
3. Select Child Entity to "Doc Order Request Item - Back Office"
4. Select Parent Tab to "Order Item"
5. Select Child Tab to "Supplier List"
6. Select Parent Module to "Order Request Item"
7. Put "REQUEST_ID" to Parent's Fields.
8. Put "REQUEST_ID" to Interface Parameters.
9. Put "REQUEST_ID" to Child's Fields.
10. Put "ADD_CHILD" to Display Value.
11. Click Save. The new record that PARENT ENTITY start with "Doc Order Request - Back Office show and the system will automatic add module button name "ADD_CHILD" to the parent entity (Doc Order Request - Back Office).
12. Go back to edit entity Doc Order Request Item - Back Office.
Edit module button "ADD_CHILD" by click icon pencil.
Change Page Action to -- Please select -- for hide button from this entity.
Click OK and save entity.
Learn about step to clone entity for role Authorize who will find information to make final decision.
1. From ONEWEB App Designer screen, click Entities > Clone Entity. The dialog of Clone Entity opens.
2. Select existing entity to "Doc Order Request Item - Back Office" at Select Existing Entity, put new entity name to "Doc Order Request Item - Authorize" at Name of Clone Entity and click Clone. Wait until message "Entity has been imported successfully" and button name "Open Cloned Entity" show.
3. Click Open Cloned Entity.
4. From module Supplier, remove Remain Order Unit.
5. From module Supplier, edit Order Unit by click icon pencil.
Switch viewFlag to "Y".
Click OK.
6. From module Supplier, edit Back Office Remark by click icon pencil.
Switch viewFlag to "Y".
Click OK.
7. From module button, delete both of the "SAVE" buttons.
8.From entity button, delete both of the "SAVE" buttons.
9. Click Save this Entity.
The completed entity looks as shown below.
Learn about step to link parent entity (Order Request Entity for Authorize) with child entity (Order Request Item for Authorize)
1. From ONEWEB App Designer screen, click Utilities > Parent Child Entity and then click icon plus on the popup dialog. Parent Child Entity Configuration opens.
2. Select Parent Entity to "Doc Order Request - Authorize"
3. Select Child Entity to "Doc Order Request Item - Authorize"
4. Select Parent Tab to "Order Item"
5. Select Child Tab to "Supplier List"
6. Select Parent Module to "Order Request Item"
7. Put "REQUEST_ID" to Parent's Fields.
8. Put "REQUEST_ID" to Interface Parameters.
9. Put "REQUEST_ID" to Child's Fields.
10. Put "ADD_CHILD" to Display Value.
11. Click Save. The new record that PARENT ENTITY start with "Doc Order Request - Authorize show and the system will automatic add module button name "ADD_CHILD" to the parent entity (Doc Order Request - Authorize).
12. Go back to edit entity Doc Order Request Item - Authorize.
Edit module button "ADD_CHILD" by click icon pencil.
Change Page Action to -- Please select -- for hide button from this entity.
Click OK and save entity.
Learn about step to clone entity for role Authorize who will make decision in case of total amount more than parameter max cap.
1. From ONEWEB App Designer screen, click Entities > Clone Entity. The dialog of Clone Entity opens.
2. Select existing entity to "Doc Order Request - Back Office" at Select Existing Entity, put new entity name to "Doc Order Request - Authorize" at Name of Clone Entity and click Clone. Wait until message "Entity has been imported successfully" and button name "Open Cloned Entity" show.
3. Click Open Cloned Entity.
4. From module Order Request, edit Decision by click icon pencil, change Condition Value to "category_code = 'AUTHORIZE_DECISION'" and click OK.
5. From module button, delete button "ADD_CHILD" and button "SAVE".
6. Click Save this Entity.
The completed entity looks as shown below
Learn about step to clone entity for role Admin who will find order information and make purchase order.
1. From ONEWEB App Designer screen, click Entities > Clone Entity. The dialog of Clone Entity opens.
2. Select existing entity to "Doc Order Request - Authorize" at Select Existing Entity, put new entity name to "Doc Order Request - Admin PO" at Name of Clone Entity and click Clone. Wait until message "Entity has been imported successfully" and button name "Open Cloned Entity" show.
3. Click Open Cloned Entity.
4. From module Order Request, delete field Decision and Decision Remark.
5. From entity button, delete both of the "SAVE" buttons.
6. Click Save this Entity.
The completed entity looks as shown below
Learn about step to use process button link with process flow from Process Designer.
Pre-Condition Create process flow from Process Designer.
Submit button for start flow at entity "Doc Order Request - Requester".
1. From App Designer, search entity "Doc Order Request - Requester" and click edit it.
2. From Button, drag Process Button to entity button's area. The button name "SUBMIT_VALUE" will appear then click icon pencil to edit it.
3. At tab Process
Select Process Type to "Process".
Select Project to "DOC Order Request".
Select Process to "DOC Order Request".
Select Process Action to "Start".
Move cursor to icon "Load from AD" and click. The system will populate list of business object to mapping with screen.
Click icon minus in front of "Order Request Item" to hide attribute list.
Move cursor to "Request Id" under "Order Request" drag it and move to link with "RequestId" under "DOCOrderRequestBO".
Move cursor to "Requester" under "Order Request" drag it and move to link with "Requester" under "DOCOrderRequestBO".
4. At tab Pre Action
Click first radio and select method saveEntity().
5. At tab Other Settings.
Change buttonName to "SUBMIT".
Select Page Action to "ENTITY_INSERT"
6. Click OK.
7. Do step 2 to 6 again by change value at step 5.2 from "ENTITY_INSERT" to "ENTITY_UPDATE".
We will have two SUBMIT buttons from mode insert and mode update.
8. Click Save this Entity.
Submit button for complete flow at entity "Doc Order Request - Admin".
1. From App Designer, search entity "Doc Order Request - Admin" and click edit it.
2. From Button, drag Process Button to entity button's area. The button name "SUBMIT_VALUE" will appear then click icon pencil to edit it.
3. At tab Process.
Select Process Type to "Process".
Select Project to "DOC Order Request".
Select Process to "DOC Order Request".
Select Process Action to "Complete".
Move cursor to icon "Load from AD" and click. The system will populate list of business object to mapping with screen.
Click icon minus in front of "Order Request Item" to hide attribute list.
Move cursor to "Request Id" under "Order Request" drag it and move to link with "RequestId" under "DOCOrderRequestBO".
Move cursor to "Requester" under "Order Request" drag it and move to link with "Requester" under "DOCOrderRequestBO".
Move cursor to "Decision" under "Order Request" drag it and move to link with "Decision" under "DOCOrderRequestBO".
4. At tab Pre Action.
Click first radio and select method saveEntity().
5. At tab Other Settings.
Change buttonName to "SUBMIT".
Select Page Action to "ENTITY_UPDATE"
6. Click OK.
7. Click Save this Entity.
Submit button for complete flow at entity "Doc Order Request - Back Office".
1. From App Designer, search entity "Doc Order Request - Back Office" and click edit it.
2. From Button, drag Process Button to entity button's area. The button name "SUBMIT_VALUE" will appear then click icon pencil to edit it.
3. At tab Process.
Select Process Type to "Process".
Select Project to "DOC Order Request".
Select Process to "DOC Order Request".
Select Process Action to "Complete".
Move cursor to icon "Load from AD" and click. The system will populate list of business object to mapping with screen.
Click icon minus in front of "Order Request Item" to hide attribute list.
Move cursor to "Request Id" under "Order Request" drag it and move to link with "RequestId" under "DOCOrderRequestBO".
Move cursor to "Requester" under "Order Request" drag it and move to link with "Requester" under "DOCOrderRequestBO".
Move cursor to "Decision" under "Order Request" drag it and move to link with "Decision" under "DOCOrderRequestBO".
Move cursor to "Total Amt" under "Order Request" drag it and move to link with "TotalAmt" under "DOCOrderRequestBO".
4. At tab Pre Action.
Click first radio and select method saveEntity().
5. At tab Other Settings.
Change buttonName to "SUBMIT".
Select Page Action to "ENTITY_UPDATE"
6. Click OK.
7. Click Save this Entity.
Submit button for complete flow at entity "Doc Order Request - Authorize".
1. From App Designer, search entity "Doc Order Request - Authorize" and click edit it.
2. Do the same steps for [Submit button for complete flow at entity "Doc Order Request - Admin".] from 2 - 7
Submit button for complete flow at entity "Doc Order Request - Admin PO".
1. From App Designer, search entity "Doc Order Request - Admin PO" and click edit it.
2. From Button, drag Process Button to entity button's area. The button name "SUBMIT_VALUE" will appear then click icon pencil to edit it.
3. At tab Process.
Select Process Type to "Process".
Select Project to "DOC Order Request".
Select Process to "DOC Order Request".
Select Process Action to "Complete".
Move cursor to icon "Load from AD" and click. The system will populate list of business object to mapping with screen.
Click icon minus in front of "Order Request Item" to hide attribute list.
Move cursor to "Request Id" under "Order Request" drag it and move to link with "RequestId" under "DOCOrderRequestBO".
Move cursor to "Requester" under "Order Request" drag it and move to link with "Requester" under "DOCOrderRequestBO".
4. At tab Other Settings.
Change buttonName to "SUBMIT".
Select Page Action to "ENTITY_UPDATE"
5. Click OK.
6. Click Save this Entity.