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 7783807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:56:55+00:00 2026-06-01T19:56:55+00:00

I am trying to make this question sound as clear as possible. Basically, I

  • 0

I am trying to make this question sound as clear as possible.

Basically, I have created a report, and it now exists as a menuitem button so that the report can run off the form.

What I would like to do, is be able to multi-select records, then when I click on my button to run my report, the current selected records are passed into the dialog form (filter screen) that appears.

I have tried to do this using the same methods as with the SaleLinesEdit form, but had no success.

If anyone could point me in the right direction I would greatly appreciate it.

  • 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-01T19:56:56+00:00Added an answer on June 1, 2026 at 7:56 pm

    Here is the resolution I used for this issue;

    Two methods on the report so that when fields are multi-selected on forms, the values are passed to the filter dialog;

    private void setQueryRange(Common _common)
        {
        FormDataSource              fds;
    
        LogisticsControlTable       logisticsTable;
    
        QueryBuildDataSource        qbdsLogisticsTable;
        QueryBuildRange             qbrLogisticsId;
        str                         rangeLogId;
    
        set                         logIdSet    = new Set(Types::String);
    
        str addRange(str _range, str _value, QueryBuildDataSource _qbds, int _fieldNum, Set _set    =       null)
        {
            str             ret = _range;
            QueryBuildRange qbr;
            ;
    
            if(_set && _set.in(_Value))
            {
                return ret;
            }
    
            if(strLen(ret) + strLen(_value) + 1 > 255)
            {
                qbr = _qbds.addRange(_fieldNum);
                qbr.value(ret);
                ret = '';
            }
    
            if(ret)
            {
                ret += ',';
            }
    
            if(_set)
            {
                _set.add(_value);
            }
    
            ret += _value;
            return ret;
        }
        ;
    
        switch(_common.TableId)
        {
            case tableNum(LogisticsControlTable):
    
                qbdsLogisticsTable = element.query().dataSourceTable(tableNum(LogisticsControlTable));
                qbrLogisticsId     = qbdsLogisticsTable.addRange(fieldNum(LogisticsControlTable, LogisticsId));
    
                fds = _common.dataSource();
    
                for(logisticsTable = fds.getFirst(true) ? fds.getFirst(true) : _common;
                    logisticsTable;
                    logisticsTable = fds.getNext())
                {
                    rangeLogId = addrange(rangeLogId, logisticsTable.LogisticsId, qbdsLogisticsTable, fieldNum(LogisticsControlTable, LogisticsId),logIdSet);
                }
    
                qbrLogisticsId.value(rangeLogId);
                break;
        }
    }
    

    // This set the query and gets the values passing them to the range i.e. “SO0001, SO0002, SO000£…

    The second methods is as follows;

    private void setQueryEnableDS()
    {
        Query           queryLocal = element.query();
        ;
    }
    

    Also on the init method this is required;

    public void init()
    {
        ;
        super();
    
        if(element.args() && element.args().dataset())
        {
            this.setQueryRange(element.args().record());
        }
    }
    

    Hope this helps in the future for anyone else who has the issue I had.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first question to this forum. I am trying to make this
I have been trying to make this to be a little jQuery plugin that
I have been pulling my hair out trying to make this work. I have
Now this might sound simple, but I'm a bit mixed up. I am trying
This may sound as a simple question for many, I am trying to understand
I have searched through google and SO for possible answers to this question, but
After wasting two days with this question (and trying to make it work), I've
Very similar to this question (and also this answer ), I'm trying to make
I know this might sound as really dummy question, but I'm trying to ensure
Update & Summary I feel obligated to make this question clearer, now that there

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.