Translate

Tuesday, October 1, 2019

Folder Function and Create a prompt block with the items similar to the datablock in Oracle Forms

Folder Function in Oracle Forms



Folder function in forms
  1. Copy TEMPLATE.fmb and rename it.
  2. Open the APPSTAND.fmb and copy the STANDARD_FOLDER object group to the custom form


  1. Attach library APPFLDR.pll

  1. Create data block and subclass the items as text items

  1. Create a prompt block with the items similar to the datablock.

  1. Subclass the items of the prompt as FOLDER_PROMPT_MULTIROW

  1. Create a content Canvas XX_FOLDER and a Stacked canvas XX_FOLDER_STA.

  1. Arrange the items and the corresponding prompt items in the in the stacked and content canvas
  1. Create a window and associate the window and its primary canvas(Content)

  1. 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


  1. Add the below code in FOLDER_ACTION trigger
app_folder.event(:global.folder_action);
  1. WHEN-NEW_BLOCK-INSTANCE
app_folder.event('WHEN-NEW-BLOCK-INSTANCE');
  1. Create a parameter XX_FLDR_COUNT of type char
KEY-PREV-ITEM
IF (:parameter.xx_fldr_count = 1)
THEN
PREVIOUS_ITEM;
ELSE
app_folder.event ('KEY-PREV-ITEM');
END IF;
  1. KEY-NEXT-ITEM
IF (:parameter.xx_fldr_count = 1)
THEN
NEXT_ITEM;
ELSE
app_folder.event ('KEY-NEXT-ITEM');
END IF;
  1. PRE-BLOCK
app_folder.event('PRE-BLOCK');
  1. POST-BLOCK
app_folder.event('POST-BLOCK');
  1. PRE-QUERY
app_folder.event('PRE-QUERY');
  1. KEY-EXEQRY
app_folder.event('KEY-EXEQRY');
  1. POST-QUERY
app_folder.event('POST-QUERY');
  1. Compile the form

No comments:

Post a Comment

Text Message

Accounts Receivable-AR setups in Oracle EBS Functional Financials - Apps R12

   1. Oracle Receivables -> Setup -> System ->System Options     a. Receivable GL related setup    b. Transaction and Customer rela...