cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Form Table Object: Image Field Height Issue

05-01-2023 4:09 PM
k_sood Active Participant
2097 views 8 comments Go to solution
SAP Managed Tags
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

Accepted Solutions (1)

Accepted Solutions (1)

k_sood
Active Participant

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:

Answers (1)

Answers (1)

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