Tuesday, June 27, 2017

Fluid Global Search - Setting Focus on the Search Box

Dan Iverson from psadmin.io created a new Idea on MOSC:

Fluid global search box should default the cursor:
https://community.oracle.com/ideas/18507

Workaround:

If the current behavior is causing issues and you would like to set the focus on the search box, then it can be achieved by adding one line of custom code to the following delivered objects (depending on your tools release):

PeopleTools 8.55+:

HTML Object: PT_SEARCH_FMODE
Function: toggleGBLSearchTray
Custom Code:
    /* CSK Customization - Start */
    document.getElementById("PTS_KEYWORDS_GLB").focus();
    /* CSK Customization - End */


PeopleTools 8.54:

If you are using PeopleTools 8.54, then you will not find this function toggleGBLSearchTray in PT_SEARCH_FMODE (since that object does not exist). Look for the same function in PT_PAGE_SCRIPT_FMODE.

HTML Object:  PT_PAGE_SCRIPT_FMODE
Function: toggleGBLSearchTray
Custom Code:
    /* CSK Customization - Start */
    document.getElementById("PTS_KEYWORDS_GLB").focus();
    /* CSK Customization - End */
 

5 comments:

  1. Hi Sasank,

    Very helpful Blog. Thanks for sharing.

    Just one more thing. Is there a way to add the menu on classic home. As we click on classic home from fluid homepage. We do not see any menu on classic home. So Is there any workaround to add the menu on the classic home page?

    ReplyDelete
    Replies
    1. I am assuming you are talking about adding Tiles to the Classic Homepage?

      The Classic Homepage continues to work exactly like it did before. So, if we want content on the Classic Homepage, then we can create pagelets and add them to the Classic Homepage.

      You may want to check out this blog post where I found some differences in how Campus Solutions Classic Homepage works in comparison to other applications.
      https://pe0ples0ft.blogspot.com/2017/04/portal-general-settings-navigation.html

      Delete
  2. Thank you sasank.

    ReplyDelete
  3. Hey Sasank - I was wondering if you could help me with debugging an issue.

    I have an external URL with some customizations made to the signin.html page.

    The signin.html page has something like this:
    p class="pslogintextsmalllabel" align="center" style="font-weight:normal"><%=9001%>

    Do you know where this bind variable(%9001%) is being defined?

    Any pointers will be very helpful.
    - Mani

    ReplyDelete
    Replies
    1. Hi Mani! :) Yes. Most likely should be in the text.properties or error.properties file located on the web server WEB-INF/psftdocs/(YOUR_DOMAIN_NAME)/ folder:

      E.g.:
      /home/psadm2/psft/pt/8.55/webserv/peoplesoft/applications/peoplesoft/PORTAL.war/WEB-INF/psftdocs/ps/

      Let me know if you are able to locate that property.

      Delete