1. RAFAEL RODRIGUEZ
  2. PowerBuilder
  3. Wednesday, 28 June 2023 15:14 PM UTC

how can i get the group definition and the sort of a group on a datawindow with datawindow.describe()?

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 28 June 2023 17:23 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Rafael;

  The DW Control's "Describe()" command does not give you access to either the Group levels or their current Sort criteria (unfortunately) nor are there applicable GetXxxxx() commands for those either. You can get the Table Sorting criteria but not for a group(s).

   Suggestion: You can read the DWO Source though at runtime ( ie: .Describe("DataWindow.Syntax") ) into a String variable. From there you can parse out this information as follows:

For example:

  • sort="department_dept_name A employee_state A "
  • group(level=1 header.height=92 trailer.height=80 by=("department_dept_name" , "employee_state" )

   What you are asking for though would (IMHO) make a great enhancement suggestions. Please feel free to create enhancement request Support Tickets for these requirements.

HTH

Regards ... Chris

Comment
  1. RAFAEL RODRIGUEZ
  2. Wednesday, 28 June 2023 19:45 PM UTC
Thank you Chris
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.