Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The code given below for each of the customization has to be placed in the path mentioned. 

1) PeopleTools 8.55 and below 

This will avoid the errors caused by the special characters in field values while updating the value into the target component.

Class Name: EOCF_CLF_DL:Runtime:Results:ResultsScalar

Method Name: getResultValue

Before Customization:


Adjust the logic as below:


2) 8.58 and above

  1. Corrects search category display issue seen while using the Keyword Search.

    Path:PTS_NUI:SearchResultGrid

    Method:  RefreshList

    /* SmartERP 8.58 Fix for %3 Substitutions , swap %3 and %2 substitutions */
    &sTitle4Val = Substitute(&sTitle4Val, "%3", &srchRslt.Title);
    &sTitle4Val = Substitute(&sTitle4Val, "%2", &sNewUrl);
    /* SmartERP 8.58 Fix End */


 2. Correct transaction results images not displaying in Keyword Search

Path:PTS_NUI:SearchResultGrid

Method:  RefreshList 

/*---SmartERP Customization Starts ----*/
            If Find("sm_font_icon=", &imgUrl) > 0 Then
               Local string &l_iconClasses = Split(&imgUrl, "sm_font_icon=")[2];
               &fldImg.HtmlAttributes = &fldImg.HtmlAttributes | " sm_font_icon='" |
               Unencode(&l_iconClasses) | "'";
               End-If;
/*---SmartERP Customization Ends ----*/



3) To get action related menu in Keyword Search

Record: PTS_RSLT_LIST
Field:  PTS_RELACTIONS
Event: FieldChange

Code1:

/*---- SmartERP Customization starts ------*/
import SM_ES:RelatedAction;

/*---- SmartERP Customization ends ------*/

Code2:

/*---- SmartERP Customization starts ------*/
Component integer &smRLCurrentrow;
/*---- SmartERP Customization ends ------*/

Code3:

/*---- SmartERP Customization starts ------*/
&smRLCurrentrow = GetRow().RowNumber;
/*---- SmartERP Customization ends ------*/

Code4:

/*---- SmartERP Customization starts ------*/
   rem &sRelActions = GetRelatedActions("S", &sUrl, &sActionFieldID);
   Local SM_ES:RelatedAction &action = create SM_ES:RelatedAction();
&sRelActions = &action.getHtml(&sActionFieldID, &sUrl);
   /*---- SmartERP Customization ends ------*/


4) To append images for Category links in Keyword Search

Path: PTSF_ES.ESIMPL.Result

Method: GetImageUrl

Code1:

/*----SmartERP Customization starts------*/
import SM_ES:*;

/*----SmartERP Customization ends------*/


Code2:

/*----SmartERP Customization starts------*/
    Local SM_ES:SearchResultHandler &l_objSMSrchResultHandler = (create SM_ES:ObjectFactory()).getSearchResultHandler(%This.GetCategoryNames()[1]);
&sModifiedImageUrl = &l_objSMSrchResultHandler.appendIconToImageURL(&sModifiedImageUrl);
 /*----SmartERP Customization ends------*/


5) To replace local host with Organization specific host in keyword Search results

Path: PTSF_ES.ESIMPL.Result

Method: GetUrlLink

Code: 

   /*----SmartERP Customization starts------*/
   Local SM_ES:SearchResultHandler &l_objSMSrchResultHandler = (create SM_ES:ObjectFactory()).getSearchResultHandler(%This.GetCategoryNames()[1]);
&sModifiedUrl = &l_objSMSrchResultHandler.getOrgSpecificURL(&sModifiedUrl);
   /*----SmartERP Customization end------*/


3) 8.60 and above

1. To avoid the issue during Organization activation due to Copy User profile CI change.


Path: SM_CD_ORG_ACTIONS.Activate

Method: generateSwitchUser

Code: 

   /*----SmartERP Customization starts------*/
        rem &oCopyUserProfileCi.OPERPSWD = &m_sSwitchUserPassword;
&oCopyUserProfileCi.PTPSWDCLEARTXTINPT = &m_sSwitchUserPassword;
/*----SmartERP Customization end------*/
&oCopyUserProfileCi.OPRDEFNDESC = "Switch User for Org:" | &m_objOrganization.OrganizationID;
/*----SmartERP Customization starts------*/
      rem &oCopyUserProfileCi.OPERPSWDCONF = &m_sSwitchUserPassword;
&oCopyUserProfileCi.PTPSWDCLEARTXTconf = &m_sSwitchUserPassword;
   /*----SmartERP Customization end------*/