1. Lloyd McBean
  2. PowerBuilder
  3. Tuesday, 28 November 2023 22:59 PM UTC

Hi.

I have a report, where I want to add a group_box or box object which I want to dynamically adjust in height based on the contents which will be in the group_box or box object within a DataWindow in Appeon 2023 R2 Build 2828 (latest).  The purpose of this is to shade alternating rows, or section using a group_box or box which I want to grow in height based on the content/details it will shade.

I have tried using

(a) integer(describe("DataWindow.header.4.height")) and

(b) long(Describe("Evaluate('RowHeight()'," + GetRow() + ")")) -  long(Describe("DataWindow.header.4.height")) 

(c) integer(describe("datawindow.header.4.VerticalScrollMaximum"))

 

In each case its not grabbing the dynamically changing height as needed.

Is there a way to get this to work to dynamically adjust the height as contents of the Band grow dynamically?

Any help would be great.  Right now I am disabling the feature but It would be a nice to have as it will allow the grey-shading of alternate areas that I desire.

Thanks in advance.

 

 

Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 29 November 2023 00:03 AM UTC
  2. PowerBuilder
  3. # 1

Hi Lloyd;

  I believe that you'll need to use the Evaluate() expression wrapper around your Describe() commands. 

https://docs.appeon.com/pb2022/datawindow_reference/XREF_66007_Evaluating.html

HTH

Regards... Chris 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.