This discussion is archived
1 Reply Latest reply: Oct 8, 2012 3:31 AM by Nicolas.Gasparotto RSS

Disable PeopleSoft Type-Ahead / AutoComplete Feature

user101431 Newbie
Currently Being Moderated
Sometimes PeopleSoft type ahead / auto complete feature takes considerable amount of time to bring back results. Most of the times this is because of huge data present in database.

It is possible to completely or partially disable this feature globally by applying small fix as shown below.

*1) Disable Type Ahead Feature Completely.*

PeopleSoft HTML Object :PT_PAGESCRIPT

Commenting following piece of code disables PeopleSoft type ahead feature completely across PeopleSoft application.

ptTAObj_%FormName.GiveOptions(evt);

*2) Disable Type Ahead Feature Partially.*

It is also possible that u can turn on/off PeopleSoft type ahead feature for certain fields.

PeopleSoft HTML Object :PT_PAGESCRIPT

Following piece of code turn on PeopleSoft type ahead feature only for EMPLID field. For rest of the fields this feature is disabled.

if (mycurrObj.name.search(/_EMPLID$/) >= 0)
{
ptTAObj_%FormName.GiveOptions(evt);
}

We can also turn on/off this feature only after user enter certain number of characters or numbers. Following piece of code turn on type ahead feature only after user enters 4 or more than 4 digits in EMPLID search field.

if (mycurrObj.name.search(/_EMPLID$/) >= 0)
{
if (mycurrObj.value.length >= 4)
{
ptTAObj_%FormName.GiveOptions(evt);
}
}
  • 1. Re: Disable PeopleSoft Type-Ahead / AutoComplete Feature
    Nicolas.Gasparotto Oracle ACE
    Currently Being Moderated
    I'm not sure why you are posting this (this is not a question, right ?), but type ahead can be enable/disable without code change, and I would strongly advice do not make it through code change.
    To enable/disable type ahead feature :
    Navigate to PeopleTools - Personalization - Personalization Options.
    a) Search for 'PPTL'.
    b) Once found, choose the 'Format' tab.
    c) In the 'Define Personalization' grid, click on the 'View All' link.
    d) For the 'TYPEAHD' setting, click the 'Set Option Default Value' link.
    e) Set the value = No (or yes) and click Ok.
    f) Save the record.
    I think you don't need to bounce appserv nor webserv.

    As for the performance issue you may observe, it could be much better to investigate on database side rather than doing changes Peoplecode strandard, unless very necessary and no other way found. But I would do it in the very last option.

    Cheers,

    Nicolas.

    Edited by: N Gasparotto on Oct 8, 2012 12:30 PM