cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding and showing windows in SAPSCRIPT

Former Member
0 Kudos

Hi everyone.

I'm developing forms, and I'm having some difficulties in SAPSCRIPT:

FIRST PAGE should have 3 windows if there were <b>few items</b> to show:

window: HEADER

window: MAIN (showing items)

window: FOOTER

-


FIRST PAGE should have 2 windows if <b>many items exist</b> :

window: HEADER

window: MAIN (must be bigger - showing more items, and occupying the space where could be the footer window)

NEXT PAGE should have 2 windows if <b>many items exist</b> :

  • window: MAIN (bigger, occupying the space where could be the header window)

  • window: FOOTER

-


What can I do to hide window footer (in first page) when I have many items to show? and show window footer in next page, meanwhile the size of the window MAIN changes.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Define all the 3 windows in FIRST and NEXT pages

but for the footer window Text elements keep the condition

/: If &PAGE& = &SAPSCRIPT-FORMPAGES&.

..print the footer data

/: endif.

Regards

Anji

Former Member
0 Kudos

I apreciate your answer but that doesn´t fit my needs.

Let me try to explain better my problem ...

At the same time that footers disappears, from first page, the Main size should change (getting bigger, occupying the space of footer).

I think that I could resolve this problem if I could process a specific page at the initialization of sapscript, so:

I need to decide which page of sapscript is to be processed at initialization, within a set of pages. is it possible?

Former Member
0 Kudos

Hi,

You can just increase the height of 'Main' window in your first page occupying the footer space. In the Second page, put the 'Main' to a substantial height.

This may solve your problem.

Hope this helps.

Thanks,

Srinivasa

Former Member
0 Kudos

Thank you everyone!

Your suggestions were helpfull, and I really apreciate that.

My problem isn't totally resolved, but I made some progress.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think you can put a condition in your script like the below.

/: If &PAGE& EQ &SAPSCRIPT-FORMPAGES&.

  • print the footer.

/: Endif.

Hope this helps.

Thanks,

Srinivasa