web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

No dropdown search page in request page

(0) ShareShare
ReportReport
Posted on by 24
Hi all,

I have created a report which works fine and have developed some Requestfilter field for the Sales Header.No and the Sales Line.Line No.
With the syntax below, I have two problems, 1) on the request page both fields do not facilitate a dropdown page from where the choice can be made and 2) I am not able to filter the Sales Line.Line No field based on the value selected in the Sales Header.No filter. 
 
report 60128 riemetiket
{
    ApplicationArea = All;
    Caption = 'Riemetiketten';
    UsageCategory = Documents;
    DefaultRenderingLayout = riemetiketsmal;
    PreviewMode = PrintLayout;
 
    dataset
    {
        dataitem(CopyLoop; Integer)
        {
            DataItemTableView = sorting(Number);
            column(Number; Number)
            {
 
            }
            dataitem(/Sales Header/; /Sales Header/)
            {
                DataItemTableView = sorting(/Document Type/, /No./) where(/Document Type/ = const(Order));
                RequestFilterFields = /No./;
                column(No_SalesHeader; /No./)
                {
                    IncludeCaption = true;
                }
                column(ExternalDocumentNo; /Sales Header/./External Document No./) { }
 
                dataitem(SalesLine; /Sales Line/)
                {
                    DataItemLink = /Document Type/ = field(/Document Type/), /Document No./ = field(/No./);
                    DataItemTableView = sorting(/Document Type/, /Document No./, /Line No./) where(type = const(Item));
                    RequestFilterFields = /Line No./;
                    RequestFilterHeading = 'Verkoopregel';
 
                    column(Line_No_; /Line No./)
                    {
                    }
                    column(Description; Description)
                    {
                    }
                    column(Description2; /Description 2/)
                    {
                    }
                    column(No; /No./)
                    {
                    }
                    column(DocumentNo; /Document No./)
                    {
                    }
                    column(DocumentType; /Document Type/)
                    {
                    }
                    dataitem(Item; Item)
                    {
                        DataItemLink = /No./ = field(/No./);
                        DataItemLinkReference = SalesLine;
                        column(Common_Item_No; /Common Item No./)
                        { }
                        column(Barcode; EncodedText)
                        { }
                        trigger OnAfterGetRecord()
                        begin
                            GenerateBarcode();
                        end;
                    }
 
                }
            }
 
            trigger OnPreDataItem()
            begin
                SetRange(Number, 1, NoOfCopies + 1);
            end;
        }
    }
    requestpage
    {
        SaveValues = true;
        layout
        {
            area(content)
            {
                group(Opties)
                {
                    field(/Aantal Exemplaren/; NoOfCopies)
                    {
                        ApplicationArea = All;
                        Caption = 'Aantal kopies';
                        ToolTip = 'Hoeveel kopies van een exemplaar er afgedrukt worden';
                    }
 
                }
            }
        }
        actions
        {
            area(processing)
            {
            }
        }
    }


See request page:

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    94,070 Super User 2025 Season 2 on at
    No dropdown search page in request page
    What are your Nr. and Reqelnr. field definitions? Can you provide a screenshot of the table definition?
    This is standard behavior, for example, Document Type and Sell-to Customer No. can be selected, but No. cannot be selected. This is related to the definition on the table. You can refer to the fields in the standard table.
     
    Hope this helps.
    Thanks.
    ZHU
  • ND-30081126-0 Profile Picture
    24 on at
    No dropdown search page in request page
    Hi Yun Zhu, the definition of No = Sales Header.No and the definition of Regelnr = Sales Line.Line No. 
    I see that is normaal behaviour, but I was hoping this could be fixed. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,351

#2
Sumit Singh Profile Picture

Sumit Singh 2,072

#3
YUN ZHU Profile Picture

YUN ZHU 1,807 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans