Have you came across this question while doing Open UI customization?
Some of the associates attending Open UI training conducted by me will ask this question.
Here is the conversation between one of the Siebelian.
 |
Conversation - Mapping multiple PR files |
After this conversation, we tried some quick stuff.
Step # 1: Create PR files
- We always refer Duncan’s PM/PR Template Generator for creating new PM/PR/PW template.
- We created 3 Desktop Form Applet PR files: (1) FirstPR.js , (2) SecondPR.js, (3) ThirdPR.js
- Then we kept these JavaScript files in custom folder.
Step # 2: Manifest Administration
- We added file ThirdPR.js in Manifest Files view.
- In Manifest Administration view, we added a new entry for one of the applet. Let's say 'Service Request Detail Applet'
 |
Manifest Entry |
Step # 3: Modifying Dependencies in PR files
- We have added new dependencies to load other PR files.
 |
ThirdPR.js should load file SecondPR.js |
 |
SecondPR.js should load file FirstPR.js |
Step # 4: Verification
- Restart the application and navigate to the View containing the test applet.
- Console statements will give indication of loading of all (3) PR files.
 |
Console log |
Step # 5: Summary
- We can map and load multiple PR files.
- The sequence of file loading and cause is depicted below.
 |
PR file loading sequence |
- Sample files can be downloaded from here.