on 03-24-2009 6:42 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.