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

table control

Former Member
0 Likes
1,010

Here I want to keep preview button in invisible mode .Requirement is Whenever I select multiple records manually in table control at that time the preview button will be invisible. How to do this?

4 REPLIES 4
Read only

loyd_enochs3
Participant
0 Likes
942

Assuming Classic Dynpro:

1. In the PAI, interrogate the table control data ITab for multiple check marks = ABAP_TRUE.

2. If found, set flag in PAI to indicate "turn off the button".

3. Set navigation back to the PBO of the screen.

4. In PBO,interrogate the flag set in PAI.

5. If flag is set to "turn off the button", change the attributes of the button to "invisible".

Read only

Former Member
0 Likes
942

I didn't get your point . Can you please help me in code?

Read only

0 Likes
942

Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area: "Before answering You should only submit an answer when you are proposing a solution to the poster's problem"

Read only

Sandra_Rossi
Active Contributor
0 Likes
942

If you want to make the button "preview" invisible first, and if the user selects one line in the table control make immediately the button "preview" visible, you can't do that because the manual selection or deselection of a line in a table control doesn't trigger a "PAI-PBO roundtrip".

So the only solution is to let the button "preview" always visible.

Or you use another technology (UI5).