cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

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

View Entire Topic
Ryan-Crosby
Active Contributor

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

k_sood
Active Participant
0 Likes

Hi Ryan,

I already Tried that, It does not work. The row with No Image shows the 4 cm Empty height. Any other way ?

Best regards

Ketan

Ryan-Crosby
Active Contributor
0 Likes

k_sood did you perhaps set the height on a subform or some higher level item in the hierarchy? If so, the script would have to change the height of that item based off the image field.

k_sood
Active Participant
0 Likes

Hi Ryan,

Only the Image Element has a fixed height, The Element before that does not. Any Further Idea ?

Best Regards

Ketan

Ryan-Crosby
Active Contributor
0 Likes

k_sood you should be able to hide the field with the script so you will need to experiment I suppose. I've done such things many, many times without issue... never with an image field, but that really should not pose a problem.

k_sood
Active Participant
0 Likes

I think, It is not working here because its under the Table Object. In other forms, I have also implemented such Scripts and it works.

k_sood
Active Participant
0 Likes

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