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

Saving the data through subscreens

Former Member
0 Likes
1,329

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.

8 REPLIES 8
Read only

Former Member
0 Likes
1,308

Hello,

Yes, each of the subscrees wil have their respective PAI modules. U need to write logic at individual PAI.

Regards,

Mansi.

Read only

0 Likes
1,308

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.

Read only

0 Likes
1,308

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

Read only

0 Likes
1,308

Hi,

Subscreen will take the OKCODE of the SAVE button on the main screen.

Regards,

Manish

Read only

Former Member
0 Likes
1,308

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

Read only

0 Likes
1,308

Try to use the property Activetab to get the name of the tab and then you can code your logic

Read only

Former Member
0 Likes
1,308

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

Read only

0 Likes
1,308

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.