how to completely refresh Project Name and Project Manager special fields by PL/SQL procedure

Hi All,

Using PPM 24.1, I developed a PL/SQL procedure for Massive Update for Projects. PL/SQL is needed since the requirement is to update some fields also in a closed projects.

The procedure is working quite fine, updating fields in Oracle database (as required to support massive data extraction) and in the gui.

I have issues with 2 special fields only.

1. Project Name

updating fields PROJECT_NAME and PRJ_PROJECT_NAME of KCRT_FG_PFM_PROJECT table, the project name is updated on the OOTB "Project Name" field in the Detail page of the project, but it is not updated on top at the page

2. Project Manager

updating fields PRJ_PROJECT_MANAGER_USER_ID and PRJ_PROJECT_MANAGER_USERNAME of the same KCRT_FG_PFM_PROJECT table, project managers are updated on the OOTB "Project Manager" field in the Detail page of the project, but it is not updated on top at the page and in the Configure Participant page. Further, if you save without changes from the Configure Participant page, the old value will override in the database the new value 

Please see screenshot below 

Since I modified only the KCRT_FG_PFM_PROJECT table, I ask any guideline and/or if I miss additional actions, in order to have a full refresh for this #2 special fields

My comment: the table kcrt_fg_pfm_project has not a last_update_date field, this can generate cache issue ?

Ciao, Silvio

  • Verified Answer

    +1  

    Hi Silvio,

    The table you're looking for is pm_projects, and the column is project_name.

    select project_id, pfm_request_id as project_number, project_name from pm_projects;

  • 0 in reply to   

    Hi Etienne,

    thank you, with your guideline I fixed the special field 1. Project Name.

    The special field 2. Project Manager is always not fixed. I noticed pm_projects.project:manager field is always NULL. So please clarify what is the expected table/field for project manager in previous screenshot; if the pm_projects.project_manager should be forced, I should insert a list of user_id or username or fullname (separators are the OOTB characters '#@#') ? 

    Ciao, Silvio

  • 0   in reply to 

    Hi Silvio,

    Did you check in table ITG_TRUSTEE by any chance? 

    My advice would be to change project manager in the UI with debug mode enabled, and see which tables get updated/inserted into. That should point you in the right direction.

  • 0 in reply to   

    Hi Etienne,

    your clarification was very useful as usual, and now I have the target PPM report.

    For PPMmers experienced with pl/sql code, see also the OOTB PM_UTILS.get_project_managers function cointating the cursor "manager_cur" to be replicated in order to implement the target PPM report as per Etienne clarification.

    Ciao, Silvio