Javascript in the HTML Markup Task flow only runs once
(Doc ID 1559545.1)
Last updated on AUGUST 01, 2024
Applies to:
Oracle WebCenter Portal - Version 11.1.1.6.5 and laterOracle WebCenter Portal for OCI - Version 12.2.1.4_24.2 and later
Information in this document applies to any platform.
Goal
Provide steps to run inline Javascript in the out of box 'HTML Markup Task flow' so that it will run whenever you view HTML Markup's Page.
Sample steps that displays the issue that is not desired:
- Create a new Portal Group Space (for this test use "Documents Exchange" template), lets call it myGroupSpace.
- As a Moderator, Edit "myGroupSpace".
- Navigate to Pages, Create two empty Pages (i.e. Page1, Page2)
- Navigate to Group Space Settings, Resources, Navigations.
- Create a New Navigation. Call it "myGroupSpaceNav".
- HighLight/select "myGroupSpaceNav". Under Edit (menu), select 'Show'.
- Highlight/select "myGroupSpaceNav". Under Edit, select Edit.
- Choose to add a Link. Input as follows:
ID = LinkPage1
Name = LinkPage1
Path = (click the magnifying glass to search for Page1 in "myGroupSpace". - Save the Link.
- Repeat the same, create a Link "LinkPage2" for Page2 in "myGroupSpace"..
- Back in the Group Space Settings, General (tab), select the newly created navigation "myGroupSpaceNav" for the "Navigation" property under "Display Settings" section.
- Save the changes.
- Return to Group Space "myGroupSpace". Notice Links LinkPage1 and LinkPage2 are displayed. Test navigation by clicking on each link. Pages are blank since no content exists.
- Navigate to "Page2" and choose to edit the Page.
- Add the 'HTML Markup" task flow to the Page.
- Edit the task flow by clicking the little wrench.
- Copy/Paste the snippet of code below:
Above code is expected to display an alert every time Page2 is accessed.
18. Navigate between Page1 and Page2 by clicking on the links. Notice, the alert is only displayed when Page2 is accessed the first time.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |