2009 Apr 27 11:42 AM
Hi,
I have created a dialog program in which there is a tabstrip with 3 tabs in it.On the main screen I have the school name.In the first subscreen of the tabstrip there is school details,in the second tab there is teacher deails and in the third tab there is students detail.I am writing the code in the PAI module of the main screen for saving the data.
when 'SAVE'.
ztable-school_name= it_school-school.
and so on.
But when I am pressing the save button on the main screen the data is not getting saved.Do I need to write the code in the PAI module of the subscreens.Please suggest some solution.
Hi,
I have created a dialog program in which there is a tabstrip with 3 tabs in it.On the main screen I have the school name.In the first subscreen of the tabstrip there is school details,in the second tab there is teacher deails and in the third tab there is students detail.I am writing the code in the PAI module of the main screen for saving the data.
when 'SAVE'.
ztable-school_name= it_school-school.
and so on.
But when I am pressing the save button on the main screen the data is not getting saved.Do I need to write the code in the PAI module of the subscreens.Please suggest some solution.
2009 Apr 27 11:46 AM
Hello,
Yes, each of the subscrees wil have their respective PAI modules. U need to write logic at individual PAI.
Regards,
Mansi.
2009 Apr 27 11:50 AM
Hi,
But the subscreens dont have any buttons.The only button I have is on the main screen only.How can I write the in the PAI module of the subscreen in that case.
2009 Apr 27 11:52 AM
hi shashi,
since u r displaying values in all the three tabs, the functionality of save should be given in PAI of main screen. If u do it in PAI of subscreens, it will not be triggered as u r not inputing any there..
Rgds.,
subash
2009 Apr 27 11:52 AM
Hi,
Subscreen will take the OKCODE of the SAVE button on the main screen.
Regards,
Manish
2009 Apr 27 11:56 AM
yes individually u need to write code for all three screen
moreover you are not appending the values of itab to any table
cheers
s.janagar
2009 Apr 27 12:17 PM
Try to use the property Activetab to get the name of the tab and then you can code your logic
2009 Apr 27 12:19 PM
Create an internal table(s) to hold all data entered on all 3 subscreens.
Write code to transfer data from each tabstrip to global internal table. (you may also use chain-endchain and field statements)
Regards,
Mohaiyuddin
2009 Apr 27 12:32 PM
Hi Mohaiyuddin,
I have 3 tabstrips in which the second one contains the table control.Do I need to create 3 internal tables to capture the data on all the 3 subscreens. can you please elaborate.If you could provide me some code then it will be really usefull.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |