Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tooltip on screen field

Former Member
0 Likes
7,330

Hi All,

I want to add tooltip text to a radiobutton on a selection screen in a report program. The text I provide in selection-texts is also not appearing. Please suggest how this can be achieved.

My source code is

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.

PARAMETERS p_nogen RADIOBUTTON GROUP rad USER-COMMAND fcode DEFAULT 'X' .

PARAMETER p_lowgen RADIOBUTTON GROUP rad.

PARAMETER p_inprd RADIOBUTTON GROUP rad.

PARAMETER p_upgen RADIOBUTTON GROUP rad.

PARAMETER p_outprd RADIOBUTTON GROUP rad.

SELECTION-SCREEN END OF BLOCK b1.

This is really urgent.

Thanks in advance. <REMOVED BY MODERATOR>

Regards,

Anju

Edited by: Alvaro Tejada Galindo on Mar 4, 2008 12:33 PM

Hi All,

I want to add tooltip text to a radiobutton on a selection screen in a report program. The text I provide in selection-texts is also not appearing. Please suggest how this can be achieved.

My source code is

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.

PARAMETERS p_nogen RADIOBUTTON GROUP rad USER-COMMAND fcode DEFAULT 'X' .

PARAMETER p_lowgen RADIOBUTTON GROUP rad.

PARAMETER p_inprd RADIOBUTTON GROUP rad.

PARAMETER p_upgen RADIOBUTTON GROUP rad.

PARAMETER p_outprd RADIOBUTTON GROUP rad.

SELECTION-SCREEN END OF BLOCK b1.

This is really urgent.

Thanks in advance. <REMOVED BY MODERATOR>

Regards,

Anju

Edited by: Alvaro Tejada Galindo on Mar 4, 2008 12:33 PM

14 REPLIES 14
Read only

Former Member
0 Likes
3,753

Hi,

Go to Menu bar--> Text elements --> Selection Texts --> Text column make some change like press space bar --> And save it again.

Probably this time you may get the selection texts.

Thanks,

Sriram Ponna

Read only

Former Member
0 Likes
3,753

Use the below code


SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS p_nogen RADIOBUTTON GROUP rad USER-COMMAND fcode DEFAULT 'X' .
PARAMETER p_lowgen RADIOBUTTON GROUP rad.
PARAMETER p_inprd RADIOBUTTON GROUP rad.
PARAMETER p_upgen RADIOBUTTON GROUP rad.
PARAMETER p_outprd RADIOBUTTON GROUP rad.
SELECTION-SCREEN END OF BLOCK b1.

@5F\Q<info text as per ur wish>@p_nogen
@5F\Q<info text as per ur wish>@p_lowgen
@5F\Q<info text as per ur wish>@p_inprd
@5F\Q<info text as per ur wish>@p_upgen
@5F\Q<info text as per ur wish>@p_outprd

Regards,

Chandru

Read only

0 Likes
3,753

Hi,

Where do I write the statement "@5F\Q<info text as per ur wish>@p_nogen." as it gives me a syntax error as an independent statement. Do I write it in addition to the parameter statement?

Regards,

Anju

Read only

0 Likes
3,753

Hi

in menubar goto->text elements>selection texts-->

der u ll find all ur parameters...........against ur radio buttons write these texts....

Cheers,

jose.

Read only

0 Likes
3,753

Hi Jose,

I am writing the following code in my selection-texts but I do not see the tooltip texts.

P_INPRD @5F\QTEST1@p_inprd

P_LOWGEN @5F\QTEST1@p_lowgen

P_NOGEN @5F\QTEST1@p_nogen

P_OUTPRD @5F\QTEST1@p_outprd

P_UPGEN @5F\QTEST1@p_upgen

Please also tell what does this syntax mean

@5F\Q....

Thanks in advance.

Regards,

Anju

Read only

0 Likes
3,753

Hi,

@5F@ is an icon( space ) so nothing ll appear....@5F\Q tool tip@ provides tool tip for dat icon ( any thing followed by Q/.....).....ok...if u want change it like this @10\Q tool tip@ an icon ll appear and if u keep de cursor above it its tool tip ll come........since we are using @5F@ icon ll not appear but the associated tool tip ll come...........

by the way wats? comming in ur sel-screen against ur radio buttons...........

Cheers,

jose......

Read only

0 Likes
3,753

Hi Jose,

I have tried adding the text in selection texts but its not appearing in my screen. Only radio buttons without any text are displayed on the selection screen.

Thanks & Regards,

Anju

Read only

0 Likes
3,753

Hi,

are u declaring those radiobuttons within Selection-screen Begin of line and Selection-screen End of line sattements???

Read only

0 Likes
3,753

Hi Jose,

I am using begin of line and end of line.

Regards,

Anju

Read only

0 Likes
3,753

Hi,

If u want it only in a line code like below......

SELECTION-SCREEN BEGIN OF line.
PARAMETER p_r1 RADIOBUTTON GROUP rad USER-COMMAND rad.
selection-screen COMMENT  2(22) text1.
PARAMETER p_r2 RADIOBUTTON GROUP rad.
selection-screen COMMENT  27(22) text2.
SELECTION-SCREEN END   OF line.

INITIALIZATION.

text1 = '@5F\Q<info1>@button 1'.
text2 = '@5F\Q<info2>@button 2'.

Cheers,

jose.

Read only

0 Likes
3,753

Hi Jose,

I was able to add a tooltip for the field, but just wanted to know if there is a limit on the length of the text which we can provide as the tooltip. The code functions well if I provide a tooltip of length 5. But beyond that the code is inneffective.

Regards,

Anju

Read only

0 Likes
3,753

No not like dat.....u have to increase the comment's length

SELECTION-SCREEN BEGIN OF line.
PARAMETER p_r1 RADIOBUTTON GROUP rad USER-COMMAND rad.
selection-screen COMMENT  2(32) text1.  "length increased
PARAMETER p_r2 RADIOBUTTON GROUP rad.
selection-screen COMMENT  37(32) text2.
SELECTION-SCREEN END   OF line.
 
INITIALIZATION.
 
text1 = '@5F\Q<info1 hi hello>@button 1'.
text2 = '@5F\Q<info2 welcome>@button 2'.

Cheers,

jose.

Read only

Former Member
0 Likes
3,753

Hi Anju,

Please check if you are saving and ACTIVATING the selection-texts after you create them and

in selection texts of ur radio buttons(say p_nogen and p_lowgen) write the following...

for p_nogen write @5F\Q<First Button Tool Tip>@ p_nogen

for p_lowgen write @5F\Q<Second Button Tool Tip>@ p_lowgen

By doing this whenever the radiobutton p_nogen is pointed at a tool tip saying First Button Tool Tip will appear on the selection screen.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Mar 4, 2008 12:34 PM

Read only

Former Member
0 Likes
3,753

Hi

You can have a tooltip for a Radio Button on Selection screen as follows:

Step 1: Declare the radio buttons as follows:

parameter: p_test1 radiobutton group grp1,
                p_test2 radiobutton group grp1.

Step 2: Click on Goto->Text Elements-> Selection Texts

Step 3: Here do not give the description you want directly. Instead do the following:

For P_TEST1: @5F\Q TEST1 @ RADIO_BUTTON_1

For P_TEST2: @5F\Q TEST2 @ RADIO_BUTTON_2

Note: Here 'TEST1' and 'TEST2' are the tool tips. You can write anything you want here as the tooltip.

RADIO_BUTTON_1 and RADIO_BUTTON_2 are the descriptions (i.e the text which you want it to appear next to radio button...write the description you want.

You will get the tooltip now. But remember, the tooptip would be displayed only for the radio button which is not selected. Place the mouse pointer over the non selected radio button for 2 to 3 seconds, and the tool tip will come.

Thanks

Vijay