cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Hyperlink in color changed row

former_member267851
Participant
0 Kudos

Hi Experts,

I did change in row color of result view of oppt.

But after color change it become hyperlink , I want to remove those hyperlink and Gaps.

Please suggest me some solution

Regards

Alok

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member211707
Active Participant
0 Kudos

Hello Alok,

Please give your code that is added by you to change background colour. It will be helpful for me to find solution.

Thanks,

Amit

former_member267851
Participant
0 Kudos

Thanks Amit.

Please check the code.

Regards

Alok

devashish_bhattacharya
Active Participant
0 Kudos

Hello Alok,

Please have a look at below thread :

Possibility is by following this code, you wont get the hyperlinks.

Regards,

Devashish

former_member267851
Participant
0 Kudos

Thanks Devashish.

I remove the hyperlink .

but it is not coming like normal row , Check Below

Can u suggest me some solution

devashish_bhattacharya
Active Participant
0 Kudos

Hello Alok,

Could you please explain bit more or send your code for the same?

Regards,

Devashish

former_member267851
Participant
0 Kudos

Hi,

Check the code. My requirement is to change the color of row into red

where the status is Approved.

CASE P_ROW_INDEX.

WHEN P_ROW_INDEX.

READTABLE me->iv_data INTO ls_data INDEX p_row_index.
IF sy-subrc NE0.
EXIT.
ENDIF.


ASSIGNCOMPONENT p_column_key OFSTRUCTURE ls_data TO <col>.
IF sy-subrc = 0.
wf_text = <col>.
ENDIF.

IF ls_data-STATUS eq'E0002'.

iv_flag = ABAP_TRUE.

Endif.
if iv_flag = ABAP_TRUE.
*      CONCATENATE '<span style="background-color:YELLOW">'  wf_text '</span>'
*                 INTO html_str.
CONCATENATE'<font color="RED">' wf_text '</font>'into  html_str.

ELSE. EXIT.
*     CONCATENATE '<font color="GREEN">' wf_text '</font>' into  html_str.

ENDIF.
 

CREATE OBJECT html_bee.

                    html_bee->add( html = html_str ).

                    p_replacement_bee = html_bee.

Regards

Alok

devashish_bhattacharya
Active Participant
0 Kudos

Hi Alok,

Seems like your iterator is focusing on the row in which you have changed your color.

You need to remove focus from this row.

Regards,

Devashish

former_member267851
Participant
0 Kudos

Hi Devashish,

Well , Could u please explain me how i remove focus  it??

Plz share the code for same......

Regards

Alok

Former Member
0 Kudos

HI Alok,

          Please check in get P method of the attribute.

can you share the code for color ,Did you write in get P or Get V method

If you sahre the code , I may help you.

regrds

RR Pradhan