Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8217931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:36:51+00:00 2026-06-07T12:36:51+00:00

Short question: I’ve a group that could change grouping condition in runtime (see details

  • 0

Short question:

I’ve a group that could change grouping condition in runtime (see details in long question below). Could I show in the group header/footer current value of the group (e.g. group by branch – show branch name, group by client – client name etc.)?

Long question:

I would like to allow my users to change grouping conditions on the fly. I could relatively easy achieve this in two ways:

  1. Via BIRT design time API (pass to group appropriate row/dataset column value).
  2. Via report parameters. Pass dataset column name as param value and in group condition use it like

    eval(params[“groupColumnName”].value)

My problem is that I must show value of current group in group header (and nice to repeat it in the group footer too).

I have no idea how to accomplish that for option 1. (design time API).

For option 2. I could repeat Java script from 2. in group header/footer, but it’s not what I would like to achieve. I don’t wish to repeat that cumbersome java script 2-3 times. Could I somehow define that value at group level (something like named query for the group) and later reuse it in group condition, header and footer?

Possible BIRT allows by group name show current value of grouping?

Any thoughts are welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:36:53+00:00Added an answer on June 7, 2026 at 12:36 pm

    What I did – change group header/footer via API for DataItem and TextItem.

    Just in case if somebody would like to now my workaround:

        private static void processRowHandle(SlotHandle pSlotHandle, ReportGroup pGroupInfo) throws SemanticException {
        if (pSlotHandle == null) return;
        for(Object obj : pSlotHandle.getContents()){
            if (obj instanceof RowHandle){
                SlotHandle cells = ((RowHandle)obj).getCells();
                if (cells == null) continue;
                for(Object item : cells.getContents()){
                    if (item instanceof CellHandle){
                        SlotHandle content = ((CellHandle)item).getContent();
                        if (content == null) continue;
                        for(Object cell : content.getContents()){
                            if (cell instanceof DesignElementHandle) processGroupLabels((DesignElementHandle) cell, pGroupInfo);
                        }
                    }
                }
            }
        }
    }
    
    private static void processGroupLabels(DesignElementHandle pElementHandle, ReportGroup pGroupInfo) throws SemanticException {
        if (pElementHandle instanceof DataItemHandle){
            DataItemHandle dataItemHandle = (DataItemHandle)pElementHandle;
            if (pGroupInfo.getOldBindingName().equals(dataItemHandle.getResultSetColumn())){
                dataItemHandle.setResultSetColumn(pGroupInfo.getNewColumn().getBindingNameText());
            }
        }
        if (pElementHandle instanceof TextItemHandle){
            String newColumnBindingText = ExpressionUtil.createRowExpression(pGroupInfo.getNewColumn().getBindingNameText());
            String content = ((TextItemHandle)pElementHandle).getContent().replace(pGroupInfo.getOriginalExpression(), newColumnBindingText);
            ((TextItemHandle)pElementHandle).setContent(content);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short question: Is the parent of an entity group included in that entity group
Short question: Do any of MS's built in Data Objects support INotifyPropertyChanged? Long explination:
Short question: I'm trying to make that in a given page (uses tabs) back
Short Question I have a loop that runs 180,000 times. At the end of
Short question: If I have class that impelemnts FactoryBean interface, how can I get
Short Question: What's the best date format to use in SQL Server? Long Explanation:
Short Question: Given Clojure's concurrency model, how do I ensure that all LWJGL OpenGL
Short Question Is there a library that is supposed to replace mswinsoc.osx used to
Short question: Can I change the DOCTYPE of my existing XHTML 1.0 website to
Short question: How should product categories that appear under multiple categories be managed? Is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.