2005 Nov 15 3:47 PM
Hi
Can anyone please help with my two questions?
I have a main window, in which there is a dynamic table.
My problem is the content of table will spread to next serveral page if the height of main window set too short or the main window is too big there are too much empty place left.Can anyone please tell me how to make the size of main window determinded by the lenght of the table.
The other question is although I have shaded my table in the table painter but the shading doesn't appear when display the form.
Thanks
Heather
2005 Nov 15 3:52 PM
Hi Heather,
Regarding your first question, I don't think the height of the window can be determined dynamically based on the length of the table(Data). These are one time settings and has to be done at the design time itself.
Coming to your second question, what do you mean shading?
Regards,
Ravi.
2005 Nov 15 3:51 PM
Hi,
Keep your main window short. If there is huge data, anyways, content will extend to the next page.
Regards,
Sailaja.
2005 Nov 15 4:03 PM
Hi Sailaja,
When I set the main window short,there is too much empty space left in the second page (fit to the main window size),and the content extends also to the third page.
Regards
Heather
2005 Nov 15 4:05 PM
NO OTHER CHANCE HEATH,
AS ALL OUR FLOKS SAID WE NEED TO SET THE DIMENSIONS OF THE MAIN WINDOW WHILE DESIGNING THE PAGE. WE CANNOT CHANGE IT DYNAMICALLY.
SAP HASN'T YET PROVIDED THAT FACILITY HOPE SOMEONE OF US WILL SURELY FIND IT ONE DAY.
REGARDS,
VINOD.
2005 Nov 15 3:52 PM
Hi Heather,
Regarding your first question, I don't think the height of the window can be determined dynamically based on the length of the table(Data). These are one time settings and has to be done at the design time itself.
Coming to your second question, what do you mean shading?
Regards,
Ravi.
2005 Nov 15 3:56 PM
Hi Ravi,
I mean I shaded table in gray in table painter,however when execute the form, the table is still displayed without shading.
Thank you for your help.
Heather
2005 Nov 15 3:59 PM
First Point - It is not possible to change the size of the main window dynamically
Second point - Go to the tab Output Conditions of the window and enter the percentage in the shading box, Make sure that this is filled.
2005 Nov 15 4:17 PM
Hi Nagarani,
I enter the percentage,but it doesn't work.
Actually I can shade my template properly however it doesn't work for my table.
Thanks Heather
2005 Nov 15 4:04 PM
Hi,
You can shade a table with varying intensive in the syntax.
/: BOX [Xpos] [Ypos] [Width] [Height] [Frame] [Intensive]
Ex., /: BOX WIDTH '20' CM HEIGHT 1 IN
FRAME 10 TW INTENSIFY 15.
Regards,
Sailaja.
Message was edited by: Sailaja N.L.
2005 Nov 15 6:07 PM
Try giving the width/vertical/horizontal spacing for LINE, enter percentage for Shading
Also check the check box for ALWAYS DRAW BOX AND SHADING
2005 Nov 15 6:16 PM
Hi Chen,
I have got exactly ther same problems and I have solved
them using some tricks.
First the bad news:
No chance to salve your problems using standard smartforms routines.
But
Good news:
1.) Solving Main Window-Problem.
You must check, whether the table fits into your main window or not by counting the lines during initialization.
If it fits, ok otherwise create an internal table with the same number of lines, but empty-entries + 1 Record.
Insert this table into your internal Data table at index 1.
Use this table to fill the main window.
That means all your data will be allways on one page!
Additionally you can define all your other windows overlapping the main window. Use these windows in case your Table is too large.
2.) If You want to shade the table header, you must define a separate overlapping window. This can be tricky, but this is the only way.
Hope I could help You
BR
Michael