Folder Function in Oracle Forms
Folder function in forms
- Copy TEMPLATE.fmb and rename it.
- Open the APPSTAND.fmb and copy the STANDARD_FOLDER object group to the custom form
- Attach library APPFLDR.pll
- Create data block and subclass the items as text items
- Create a prompt block with the items similar to the datablock.
- Subclass the items of the prompt as FOLDER_PROMPT_MULTIROW
- Create a content Canvas XX_FOLDER and a Stacked canvas XX_FOLDER_STA.
- Arrange the items and the corresponding prompt items in the in the stacked and content canvas
- Create a window and associate the window and its primary canvas(Content)
- Add the following objects in the XXPO_PWB_LINES_PROMPT Prompt block and assign it to the respective Canvas
Item Name
|
Item Type
|
Subclass
|
Canvas
|
FOLDER_OPEN
|
Push Button
|
Dynamic Title
|
XX_FOLDER
|
FOLDER_TITLE
|
Display Item
|
Dynamic Title
|
XX_FOLDER
|
FOLDER_DUMMY
|
Text Item
|
Folder Dummy
|
Toolbar
|
ORDER_BY1
|
Push Button
|
XX_FOLDER
| |
ORDER_BY2
|
Push Button
|
XX_FOLDER
| |
ORDER_BY3
|
Push Button
|
XX_FOLDER
| |
Folder_Switcher
|
Text Item
|
Switcher
|
XX_FOLDER
|
- Add the below code in FOLDER_ACTION trigger
app_folder.event(:global.folder_action);
- WHEN-NEW_BLOCK-INSTANCE
app_folder.event('WHEN-NEW-BLOCK-INSTANCE');
- Create a parameter XX_FLDR_COUNT of type char
IF (:parameter.xx_fldr_count = 1)
THEN
PREVIOUS_ITEM;
ELSE
app_folder.event ('KEY-PREV-ITEM');
END IF;
- KEY-NEXT-ITEM
IF (:parameter.xx_fldr_count = 1)
THEN
NEXT_ITEM;
ELSE
app_folder.event ('KEY-NEXT-ITEM');
END IF;
- PRE-BLOCK
app_folder.event('PRE-BLOCK');
- POST-BLOCK
app_folder.event('POST-BLOCK');
- PRE-QUERY
app_folder.event('PRE-QUERY');
- KEY-EXEQRY
app_folder.event('KEY-EXEQRY');
- POST-QUERY
app_folder.event('POST-QUERY');
- Compile the form
No comments:
Post a Comment
Text Message