Dynamically Returning a Content URL to Be Displayed in a Modal Window
For fluid activity guides only, you can define a method to dynamically return a content URL to display additional information. Typically, this additional content is static text; however, it can include context data values.
Follow these guidelines:
-
The content URL must point to a local, fluid component. Moreover, this component should contain one main fluid page only, with no footer, header, search, or side pages defined in the component.
Therefore, the content URL cannot point to a classic component, a remote fluid component, or external, non-PeopleSoft content.
-
The page can contain read-only content only. It cannot have any editable fields, links, buttons and other controls that will initiate a server trip or take the user out of activity guide context.
-
Set permissions on the component content to be displayed to allow access by all activity guide contributors.
Implement an application class similar to the following. Invoke the GenerateComponentContentURL built-in function to return the URL to the component.
Note:
The following code represents a simple implementation. Use the &oCtxt collection to obtain any of the context data values at runtime to include those values within the additional information displayed.
import PTAI_COLLECTION:Collection:*;
class My_Class
method getContextURL(&oCtxt As PTAI_COLLECTION:Collection) Returns string;
end-class;
method getContextURL
/+ &oCtxt as PTAI_COLLECTION:Collection +/
/+ Returns String +/
Return GenerateComponentContentURL(%Portal, %Node, MenuName.MY_MENU, "GBL", Component.MY_CONTENT, Page.MY_CONTENT, "U");
end-method;