(RPG)a label above a table

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

(RPG)a label above a table

Post by MegumiSawada »

Hi,
IMG_0099Z.jpg
IMG_0099Z.jpg (33.59 KiB) Viewed 5666 times
I've created a formview which has a label above a table.
However there's a gap between the label and table but I don't want to have a gap between them.
Is there anyway to delete this gap?

I've created a table without any border but I put a border around every items.
The label is defined 1 row upper than the table.
Table has no header.

I appreciate your advice...

Best Regards,
Megumi Sawada
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RPG)a label above a table

Post by MarkDuignan »

By default all the cells on a form are spaced out.

The label is in one cell, the table in another - so try LRNG_SetNumProperty('/Form.Grid.Cellspacing' : 0 );

If you still have space you could try setting the padding on the label and table to zero.
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: (RPG)a label above a table

Post by MegumiSawada »

Thank you,Mark.

It's better, but still it has a gap.
And when I re-load the formview,the gap become bigger...I don't know why.I'll find out.

If you have any other idea, could you please let me know?
Otherwise I'll tell the customer this.

Best Regards,
Megumi
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RPG)a label above a table

Post by MarkDuignan »

Can you send me your RPG code?
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: (RPG)a label above a table

Post by MegumiSawada »

Hi Mark,

These are my sample code.

Thank you,
Megumi
Attachments
DDSSRC.txt
(3.58 KiB) Downloaded 304 times
RPGSRC.txt
(5.88 KiB) Downloaded 317 times
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RPG)a label above a table

Post by MarkDuignan »

Try making the table do this:

Code: Select all

     A                                       PADDING: 0
     A                                       INNERPADDING:0         
and make the program do this:

Code: Select all

           LRNG_SetNumProperty('/Form.Padding' : 0 );
           LRNG_SetNumProperty('/Form.Grid.Cellspacing' : 0 );
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: (RPG)a label above a table

Post by MegumiSawada »

Thank you,Mark!

I was able to have an expected result with making the table with padding and innerpadding zero, and making RPG code to use LRNG_SetNumProperty('/Form.Grid.Cellspacing' : 0 );

Perfect.

Thank you again!
Megumi
Post Reply