‎2006 Feb 13 5:20 PM
I have a common screen which is used on two tabs.
I want to display certain fields boxes and custom controls on the tabs.
Tab 1 requires fields and boxes
Tab 2 requires a custom controls
I can remove the fields and boxes by looping at the screen from Tab 2.
I have an issue with custom controls on Tab 1.
The custom control is created on Tab 2 only and the control is destroyed on Tab 1, when Tab 1 is selected.
If the user clicks on the screen area where the custom control has not been created, an error is generated "invalid sapgui input data:".
Is there any way that the custom control can be hidden, just like the fields can be made in active by looping at the screen
I only wish to create the object on the second tab
I have created a custom control and I wish it not to be displayed on certain tab, is there anyway that I can hide the custom control
‎2006 Feb 13 5:23 PM
‎2006 Feb 13 5:23 PM
‎2006 Feb 13 5:39 PM
Hi Rich,
The class that I'm using is C_TEXTEDIT_CONTROL, sorry I didn't make it very clear.
Is there anyway to get useful documentation on the class as I am finding it very difficult
cheers
J-J
‎2006 Feb 13 5:49 PM
Hi Jim
I repeat, I think you don't need to destroid you custom control if you want hide it when you go to another tab.
I had done a program with many tabs where different GRIDs are displayed and I didn't need to do what you want to do.
Every grid is loaded in own subscreen and every subscreen is triggered when the user push its tab.
In this way the system show'll only the fields of the subscreen is triggered.
You should do what you want to do only if the fields and custom controls are in the same tab.
Max
‎2006 Feb 13 5:59 PM
Max,
Thanks for the info.
I am trying to workout what I need to do with the subscreen in order to set up the data on the tabs
Cheers
J-J
‎2006 Feb 13 6:23 PM
‎2006 Feb 14 10:37 AM
Max
Thanks for your help, I used your solution and it worked a treat
Cheers
J-J
‎2006 Feb 13 5:24 PM
Hi
You should create two subscreen:
- Subscreen 1 is actived for TAB1
- Subscreen 2 is actived for TAB2
In this way you don't need remove anything and so you don't need to destroid your custom control.
Infact in SUBSCREEN 1 you insert your insert the fields boxes and in SUBSCREEN 2 insert the custom control.
Max