Wednesday, May 29, 2019

Action Menu Items

The 'View All' notifications page (PTPN_VIEWALL_GRID) has a good example of this.

It is embedded with a Custom Grid Header group box type. Inside this group box is another one (and in this case labelled Actions via PTPN_WRK.PTPN_GBOX1), and has a group box type of Popup and a style class of 'psc_button-simple'.

Then there is another group box with a style class of 'ps_menusection', and a group box type of Menu. Then within this is a group box for each link or menu item. This group box has a type of Menu Item and a style class of 'ps_menuitem'. The hyperlink fields within this group box have no special fluid attributes.


Order Field Type Style Record/Field Label
First Group Box Custom Grid Header psc_button
Second Group Box Popup psc_button PTPN_WRK.PTPN_GBOX1 Actions
Third Group Box Menu ps_menusection
Fourth Group Box Menu Item ps_menuitem
Fifth Hyperlink PTPN_WRK.PTPN_READ Mark as Read

What is also interesting is that in PeopleTools 8.56 the Group Box Types "Menu" and "Menu Item" do not exist. Instead they are using "Layout Only" with the HTML Tag of UL and LI respectively.

But the effect seems to be the same.

There is also PeopleCode hiding and displaying by making use of the following:
 If &bAtleastOneSelected Then
    PTPN_WRK.PTPN_GBOX1.FreeFormStyleName = "";
 Else
    PTPN_WRK.PTPN_GBOX1.FreeFormStyleName = "psc_force-hidden";
 End-If;


No comments:

Post a Comment