Hi All,
I have Created a Table Object with Few Columns as follows:

Second Column is having an Image Field Object, If I set the Layout of this field as Expand to Fit, For Big Images The table Overflows onto Footer and even sometimes Image is not shown either, Which I believe is because the Image is not fitting into one Page.

If I set the Fix Height as 4 Cm without Expand to Fit, the Image is shown correctly but for the Rows which are not having any Image, empty 4 cms are shown.
I tried some scripts to give the Max Height of the Image field but nothing worked.
Any Possibility? How could I achieve to Show the Images with 4 cm Height and if there is no Image, the Empty place should not be Shown.
Best regards
Ketan
Request clarification before answering.
Following Constellation seems to work for me. Through Scripting I have set the height of the Image field as 5 cm.
The Image Field in the Table is set with Height 1 cm and Expand to fit set.

Following two Scripts:
data.DETAILS.GT_PRUFPROTO.DATA.IMAG.CHARIMAGE::initialize - (JavaScript, client)
if(this.rawValue == null) {
this.presence = "hidden";
}
else
{
this.h = "5.0cm";
}
data.DETAILS.GT_PRUFPROTO.DATA.IMAG.CHARIMAGE::ready:layout - (JavaScript, client)
if(this.rawValue == null) {
this.presence = "hidden";
}
else
{
this.h = "5.0cm";
}
The result as follows:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ketan,
A simple JavaScript script at the layout:ready or form:ready for the image field should allow you to hide the space if nothing is bound.
if(this.rawValue == null) {
this.presence = "hidden";
}Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ryan,
Is it possible to set the Max Height through scripting for the Image Field ?
What I am trying to achieve with this is , in case there is an Image, the maximum Height of the field should be set as 4 cm and if there is no Image the minimum Image field Height what is given in the design is used.
But not working for me.
Br
Ketan
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.