6.PCF Editor Conventions
6.PCF Editor Conventions
In this lab, you will first explore the tools available for investigating the architecture of the user
interface. Then, you will use the PCF Editor in Guidewire Studio to modify the order of widgets in a
PCF file. Finally, you will deploy and verify your changes.
Prerequisites
For this exercise, use TrainingApp, Guidewire Studio, and a supported web browser.
http://localhost:8880/ab/ContactManager.do is the default URL for TrainingApp. To view,
edit, and delete various contacts, log in to TrainingApp as Alice Applegate. The login/password for Alice
Applegate is aapplegate/gw.
As a configuration developer, you need to understand how to explore the PCF structure, so you can
easily find and navigate to the widgets you need to modify.
In this exercise, you will explore the page structure of the summary page using the internal tools and the
PCF Editor.
1. Question: Review the file structure in the dialog. What is the parent PCF of the
FlagEntriesLV.pcf?
3. Question: Review the Page Widget Structure. Compare the id and renderId values of the
Screen widget. How does the renderId value differ from the id value?
4. Question: Review the ABContactSummaryPage.pcf structure in the Structure tab. What is the
parent widget of the Toolbar widget?
Keyboard shortcut
Open Location Information
If you are running an application project with internal tools enabled, you can view the location information
with ALT + SHIFT + I in a separate browser window. The window details the file structure and details
the hierarchy of the location, screen, and any child container widgets. For each location and container
widget, the name of the file in which it is referenced is listed. Location Info is also useful when Studio is
not running.
Keyboard shortcut
Open Widget Inspector
If you are running an application project with internal tools enabled, you can view the widget information
with ALT + SHIFT + W in a separate browser window. The Widget Inspector shows all the PCF files
and widgets referenced in the active application browser window except for the workspace area. The
Widget Inspector also shows the available variables and their current values.
Keyboard shortcut
Open a PCF file in Studio from the Browser
If you are running an open application project in Guidewire Studio and if internal tools are
enabled, you can automatically open the location being viewed in the application. Use the ALT + SHIFT
+ E keystroke in the browser.
As a configuration developer, you want to be able to open and modify existing PCF files.
In this exercise, you will modify the ABContactSummaryDV.pcf file that you have already open in the
PCF Editor in Guidewire Studio.
From the Toolbox, add an input divider between Assigned User and Public ID.
Activity
Verify the work you have done
Keyboard shortcut
Reload PCF changes without restarting the Server
If you are running an open application project in Guidewire Studio and if internal tools are enabled, you
can reload all the page configuration files and display keys for the server.
Important: If you reload PCF files while in edit mode, you may experience unpredictable results. For the
current location, where there is a data modification in progress, the new PCFs may not be reloaded.
Therefore, Guidewire recommends reloading PCF files while in read-only mode as it provides for more
predictable results.
Stop
Solution
Exact details on how to complete the exercise
2. Question: Review the file structure in the dialog. What is the parent PCF of the
FlagEntriesLV.pcf?
4. Question: Review the Page Include Structure. What is the value of anABContact variable?
"William Andy"
5. Question: Review the Page Widget Structure. Compare the id and renderId values of the
Screen widget. How does the renderId value differ from the id value?
renderId includes the id of the page in which to render the screen, whereas id simply gives
the id of the screen
Generally speaking the id simply gives the id of the widget, whereas renderId includes the id
of the widget and the concatenation of all the parent ids.
6. Question: Review the ABContactSummaryPage.pcf structure in the Structure tab. What is the
parent widget of the Toolbar widget?
ABContactSummaryScreen
8. Question: Review the ABContactSummaryDV.pcf in the canvas. How are you able to
distinguish included sections from the widgets specified in the file itself?
Included sections are colored purple (the color varies depending on how deep the files are
nested), whereas widgets that are in the file have a gray background.
1. Move Created On widget below Assigned User widget. You can drag the Created On to its new
position.
Remember: Dark green lines are places where the widget could be placed; and the light green line is
where the widget will be placed.
From the Toolbox, add an input divider between Assigned User and Public ID