04-13-2007 9:52 PM
Hi there,
I have put the "hotspot on" for only one field in my write stmt. Hide also consists only one field.
In the basic list i can see the hand icon only on that field but it is allowing me to double click any where on the row and secondary list.
I am thinking it should take me to secondary list only when I click on the hotspot fields.......plz correct me if i am wrong. what is the possible reason for the whole row to function?
Thanks
04-13-2007 10:00 PM
Maybe this snippet can give you a hint...
INCLUDE <LIST>.
START-OF-SELECTION.
WRITE 'Now comes a'.
FORMAT HOTSPOT ON COLOR 5 INVERSE ON.
WRITE 'HOTSPOT'.
FORMAT HOTSPOT OFF COLOR OFF.
AT LINE-SELECTION.
WRITE / 'New list AT-LINE-SELECTION'.
SKIP.
WRITE 'This is also a hotspot:'.
WRITE ICON_LIST AS ICON HOTSPOT.
It's not mine....I copied some time ago -:)
Greetings,
Blag.
04-13-2007 9:54 PM
Double-click work with the whole line, hotspot only insure that one click is sufficient.
If you want to restrict usage of double-click use GET CURSOR FIELD = field and check the field on which user has clicked.
Regards
04-13-2007 10:00 PM
Maybe this snippet can give you a hint...
INCLUDE <LIST>.
START-OF-SELECTION.
WRITE 'Now comes a'.
FORMAT HOTSPOT ON COLOR 5 INVERSE ON.
WRITE 'HOTSPOT'.
FORMAT HOTSPOT OFF COLOR OFF.
AT LINE-SELECTION.
WRITE / 'New list AT-LINE-SELECTION'.
SKIP.
WRITE 'This is also a hotspot:'.
WRITE ICON_LIST AS ICON HOTSPOT.
It's not mine....I copied some time ago -:)
Greetings,
Blag.
04-13-2007 10:02 PM
BTW...Change your name....Using just <b>Alchemi </b> is not allowed -:)
Greetings,
Blag.
04-13-2007 10:03 PM
Hi,
No, if you turn "hotspot on" for one field, then you can only click on that field.
Pleae paste your code so i can check.
Regards,
RS
04-14-2007 12:10 AM
if sy-subrc = 0.
loop at itab.
write:/ itab-ebeln HOTSPOT ON, itab-ebelp, itab-loekz, itab-matnr,
itab-bukrs.
HIDE: ITAB-EBELN.
endloop.
endif.
04-14-2007 12:48 AM
Hi,
There is nothing wrong with the code. I should display "hotspot" on field value of itab-ebeln.
You should only click where the hotspot is. If you double-click, it can be done on whole line. So, if you double click then, AT LINE-SELECTION event will triggers from any line, any field.
I hope i clarify your doubt.
Regards,
RS