How to Zoom or Create Master-Details Relationship Using Forms Personalization
-
Upload
infosource-sa -
Category
Documents
-
view
219 -
download
0
Transcript of How to Zoom or Create Master-Details Relationship Using Forms Personalization
7/22/2019 How to Zoom or Create Master-Details Relationship Using Forms Personalization
http://slidepdf.com/reader/full/how-to-zoom-or-create-master-details-relationship-using-forms-personalization 1/4
Junaid Iftikhar Ahmed | Sr.Oracle Solution Architect & PM| BCS-SE, MBA-FIN, SCM-EXP 1
How to Zoom or Create Master-Details relationship Using Forms Personalization
MODULE:
Oracle Application Object Library - Version 11.5.10.0 to 12.2 [Release 11.5 to 12.2]Information in this document applies to any platform.
PROBLEM STATEMENT
This note describes the approach to implement the Zoom functionality using Forms Personalization. Thisapproach could be implemented to built a master-details relationship between two forms at the runtime.For example Purchase Order summary and purchase order details. When user clicks on the purchaseorder number or id in the Purchase Order summary form, it will invoke the purchase order details formwith data for that purchase order number or id.
The same approach be implemented in any other form across all the functional products.
Again the details form could be invoked using special menu or based on the user activity like click event.
Here the following example is demonstrating to built the master child relationship between User define
and the responsibility define form. when query for any user name in the user define form and click onany responsibility attached with this user the Responsibility define form will invoke with the data for thatparticular responsibility.
The following example is to invoke the details form based on the user activity, to use special menu please
refer the Note 420522.1 - How to use Forms Personalization to invoke special menu.
SOLUTION
A. In the master form==============
1.Navigate to the master form (System Administrator > Security > User > Define)
2.Open the Personalization form from the pull down menu Help => Diagnostics => Custom Code =>Personalize.
3. Implement the following personalization rule :
Seq: 10Description: Zoom - Initialize Global Variable
Condition:Trigger Event: WHEN-NEW-FORM-INSTANCETrigger Object:
Condition:Processing Mode: Not In Enter-Query ModeContext:
7/22/2019 How to Zoom or Create Master-Details Relationship Using Forms Personalization
http://slidepdf.com/reader/full/how-to-zoom-or-create-master-details-relationship-using-forms-personalization 2/4
Junaid Iftikhar Ahmed | Sr.Oracle Solution Architect & PM| BCS-SE, MBA-FIN, SCM-EXP 2
Level: Site
Value:
Action:Seq: 10Type: Property
Description: Initialize GlobalLanguage: AllObject Type: Global VariableTarget Object: RESP_ID <Global Variable name>Property Name: INITIAL VALUE Value: =NULL
-------------------------------------------------------------
Seq: 20Description: Zoom - Assign value to the Global VariableCondition:Trigger Event: WHEN-NEW-RECORD-INSTANCETrigger Object: USER_RESPCondition: :USER_RESP.RESPONSIBILITY_NAME Is Not NULLProcessing Mode: Not In Enter-Query Mode
Context:Level: Site Value:
Action:Seq: 10Type: PropertyDescription: Assign value to Global
Language: All
Object Type: Global VariableTarget Object: RESP_ID <Global Variable name>Property Name: VALUE Value: =:USER_RESP.RESPONSIBILITY_NAME
Seq: 20Type: BuiltinDescription: Launch the Function for detailsLanguage: AllBuiltin Type: Launch a Function
Function Code: FND_FNDSCRSP <function code for the details form>Function Name: Responsibilities <function name for the details form>Parameters:
4.Save the personalization rule.
B. In the details form==============
7/22/2019 How to Zoom or Create Master-Details Relationship Using Forms Personalization
http://slidepdf.com/reader/full/how-to-zoom-or-create-master-details-relationship-using-forms-personalization 3/4
Junaid Iftikhar Ahmed | Sr.Oracle Solution Architect & PM| BCS-SE, MBA-FIN, SCM-EXP 3
1.Navigate to the details form (System Administrator > Security > Responsibility > Define)
2.Open the Personalization form from the pull down menu Help => Diagnostics => Custom Code =>
Personalize.
3. Implement the following personalization rule :
Seq: 10Description: Zoom - Initialize Global VariableCondition:Trigger Event: WHEN-NEW-FORM-INSTANCETrigger Object:Condition:Processing Mode: Not In Enter-Query ModeContext:Level: Site Value:
Action:Seq: 10Type: PropertyDescription: Initialize Global
Language: AllObject Type: Global VariableTarget Object: RESP_ID <Global Variable name>
Property Name: INITIAL VALUE Value: =NULL
-------------------------------------------------------------
Seq: 20
Description: Zoom - Enter QueryCondition:Trigger Event: WHEN-NEW-FORM-INSTANCETrigger Object:Condition: :GLOBAL.RESP_ID Is Not NULLProcessing Mode: Not In Enter-Query ModeContext:Level: Site Value:
Action:Seq: 10Type: Builtin
Description: Enter Query ModeLanguage: All
Builtin Type: DO_KEY Argument: ENTER_QUERY
-------------------------------------------------------------
Seq: 30
7/22/2019 How to Zoom or Create Master-Details Relationship Using Forms Personalization
http://slidepdf.com/reader/full/how-to-zoom-or-create-master-details-relationship-using-forms-personalization 4/4
Junaid Iftikhar Ahmed | Sr.Oracle Solution Architect & PM| BCS-SE, MBA-FIN, SCM-EXP 4
Description: Zoom - Query with RESP_ID
Condition:Trigger Event: WHEN-NEW-RECORD-INSTANCE
Trigger Object: RESPONSIBILITYCondition: :GLOBAL.RESP_ID Is Not NULLProcessing Mode: Both
Context:Level: Site Value:
Action:Seq: 10Type: PropertyDescription: Assign Query Key ValueLanguage: AllObject Type: ItemTarget Object: RESPONSIBILITY.RESPONSIBILITY_NAMEProperty Name: VALUE Value: =:GLOBAL.RESP_ID
Seq: 20Type: Property
Description: Clear Global VariableLanguage: AllObject Type: Global Variable
Target Object: RESP_ID <Global Variable name>Property Name: VALUE Value: =NULL
Seq: 30
Type: Builtin
Description: Populate dataLanguage: AllBuiltin Type: DO_KEY Argument: EXECUTE_QUERY
4. Save the personalization rule.
5. Close all the open windows and test the Zoom functionality.