cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide Approve and reject radio buttons at item level.

former_member184111
Active Contributor
0 Kudos

Hi All,

On the HOME screen of EBP click Approval link ---> Under Appoval tab under Action Column click the magnifying glass icon ---> a table is displayed with Approve and Reject as two columns which contain radio buttons at item level .

How can we hide these two columns and the radio buttons?

Thanks & Regards,

Anubhav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

you can hide these buttons by modifying the template

bbp sc ui its 120

in the internet service bbpsc01.

do you need more details?

Regards,

Daniel

former_member184111
Active Contributor
0 Kudos

Hi Daniel,

As you said the template bbp sc ui its 120 is to be modified, i also located the code to be changed but when i comment the code for displaying the RBs , i get "Syntax Error in Tempate" dump in IE.

<!--  manager view  -->
                      `if (gt_scr_itmovr_i-DEDUCT_IND[j].disabled)`
                          `if (gt_scr_itmovr_i-DEDUCT_IND[j] != "X")` 
                              `TD(align="center",valign="middle", class=tdcellclass)`
                                 <img src="`mimeURL(~service="bbpglobal",~language="", ~name="images/icon/checkedradio.gif")`"  border="0">
                              `TD(align="center",valign="middle", class=tdcellclass)`
                                 <img src="`mimeURL(~service="bbpglobal",~language="", ~name="images/icon/uncheckedradio.gif")`" border="0">
                          `else`                 
                              `TD(align="center",valign="middle", class=tdcellclass)`
                                 <img src="`mimeURL(~service="bbpglobal",~language="", ~name="images/icon/uncheckedradio.gif")`" border="0">
                              `TD(align="center",valign="middle", class=tdcellclass)`
                                 <img src="`mimeURL(~service="bbpglobal",~language="", ~name="images/icon/checkedradio.gif")`" border="0">
                          `end` 
                      `else`
                          `TD(align="center",valign="middle", class=tdcellclass)`
                             <input type="RADIO" name="gt_scr_itmovr_i-DEDUCT_IND[`j`]" value=""  `if (gt_scr_itmovr_i-DEDUCT_IND[j] != "X")` CHECKED `end;
                             if ( group_hierarchy_position > -1 ); <!-- are we in a hierarchy group ? -->
                               if ( group_hierarchy_position != j ); <!-- are we processing a subitem? -->
                                   `on click="jav asc ript:toggleSu bItemApprovalState(`j`)";`
                                 group_last_subitem_position = j;
                               else; <!-- we are on the top of the group (the hierarchy position) -->
                                 if (GT_SCR_ITMOVR_I-HIER_EXPANDED[j] == "X");
                                   `on click="java scr ipt:setAppro valStateAllSubItems(true, `j`)";`
                                 end;
                                 group_last_subitem_position = j;
                               end;
                             end`>
                          `TD(align="center",valign="middle", class=tdcellclass)`
                             <input type="RADIO" NAME="gt_scr_itmovr_i-DEDUCT_IND[`j`]"  value="X"  `if (gt_scr_itmovr_i-DEDUCT_IND[j] == "X")` CHECKED `end;
                             if ( group_hierarchy_position > -1 ); <!-- are we in a hierarchy group ? -->
                               if ( group_hierarchy_position != j ); <!-- are we processing a subitem? -->
                                 `on click="javas cript:tog gleSubItemApprovalState(`j`)";`
                                 group_last_subitem_position = j;
                               else; <!-- we are on the top of the group (the hierarchy position) -->
                                 if (GT_SCR_ITMOVR_I-HIER_EXPANDED[j] == "X");
                                   `on cli ck="javas cript:setApprovalStateAllSubItems(false, `j`)";`
                                 end;
                                 group_last_subitem_position = j;
                               end;
                             end`>
                      `end;
                   end;
               end`

I guess the above mentioned code has to be modified but how?

Thanks a lot,

Anubhav

Former Member
0 Kudos

Hello

you have to comment out all the lines after

`else`
                          `TD(align="center",valign="middle", class=tdcellclass)`

like this:

`else`
<!--                          `TD(align="center",valign="middle", class=tdcellclass)`

Beware of:

- the end of commented line are marked with -->

Any other commetns should be removed!! 9like this <!-- are we processing a subitem? -->

Otherwise not your closing comment marker will be set as end of the comment...

And do not forget do the same for the header lines, otherwise the table is disrupted!

Best regards

Daniel

former_member184111
Active Contributor
0 Kudos

Hi Daniel,

Its working now , the radio buttons are nto there but the table columns have shifted two places left. I mean how to remove the columns Approved and Rejected from the table?

Thanks a lot,

Anubhav

former_member184111
Active Contributor
0 Kudos

Hi Daniel,

Found the code...

`TD(align="center",nowrap="x", 
                  title=TXT_ITMOVR_I-APPROVED.label)`
                 `TXT_ITMOVR_I-APPROVED.label`
                 `NumOfColumns = NumOfColumns + 1`
              `TD(align="center",nowrap="x", 
                  title=TXT_ITMOVR_I-REJECTED.label)`
                 `TXT_ITMOVR_I-REJECTED.label`
                 `NumOfColumns = NumOfColumns + 1`

This code should be commented to remove the columns from the table.

Thanks,

Anubhav

Former Member
0 Kudos

Hello,

I told you

"And do not forget do the same for the header lines, otherwise the table is disrupted!"

You will find it in the same template, beginning from line 197.

<!--   approval status       -->
      `if (gt_scr_itmovr_i-DEDUCT_IND[gv_itmoverview_ctrl.firstvisible].visible)` 
          `if (gs_scr_itmovr_h-is_approver != "X")` 
              `TD(align="center",nowrap="x", 
                  title=TXT_ITMOVR_I-STATUS.label)`
                 `TXT_ITMOVR_I-STATUS.label`
                 `NumOfColumns = NumOfColumns + 1`
          `else`
              `TD(align="center",nowrap="x", 
                  title=TXT_ITMOVR_I-APPROVED.label)`
                 `TXT_ITMOVR_I-APPROVED.label`
                 `NumOfColumns = NumOfColumns + 1`
              `TD(align="center",nowrap="x", 
                  title=TXT_ITMOVR_I-REJECTED.label)`
                 `TXT_ITMOVR_I-REJECTED.label`
                 `NumOfColumns = NumOfColumns + 1`
          `end`

I hope it will work..

Best regards,

Daniel

Former Member
0 Kudos

you was too fast, faster than me

have a nice day

Daniel

former_member184111
Active Contributor
0 Kudos

Hi,

Thanks a lot..you solved the issue...

Regards,

Anubhav

Answers (1)

Answers (1)

former_member184111
Active Contributor
0 Kudos

Hi Daniel,

There seems to be a new issue..although the radio buttons are hidden but actually the "Approved" radio button is selected by default , so if "Save" button is pressed , the items are approved by default.

The whole purpose of hiding the RBs was to disable approval/rejection in this screen , to acchieve this I need to initialize both radio buttons , ie. no RB is selected .

How to do this.

Thanks a lot,

Anubhav

Former Member
0 Kudos

please open a new thread, since this could hardly edited because of the coding.

I will answer you in the new thread

Daniel

former_member184111
Active Contributor
0 Kudos

Hi Daniel,

Please check [this thread|;

Any suggestions will be of great help.

Thanks,

Anubhav