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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

report showing multiple rows rather than one row

(0) ShareShare
ReportReport
Posted on by 35

hi all..2043.Capture1.JPG

52432.Capture.JPG

DP CLASS
[SRSReportParameterAttribute(classStr(InventQuarantineAnnouncmentContract))]

class InventQuarantineAnnouncmentDP Extends SRSReportDataProviderBase
{
     date fromDate, toDate;

    InventQuarantineAnnouncmentContract contract;

    InventQuarantineAnnouncement               inventQuarantineAnnouncementTmp;




}

 [SRSReportDataSetAttribute(tableStr(InventQuarantineAnnouncement))]
public InventQuarantineAnnouncement getInventQuarantineAnnouncement()
{
    select * from inventQuarantineAnnouncementTmp;
    return inventQuarantineAnnouncementTmp;
}

public void populateTmpTable(date _fromDate, date _toDate)
{
    InventQuarantineOrder   inventQuarantineOrder;

    //CompanyInfo companyInfo = CompanyInfo::find();

    select * from inventQuarantineOrder
    where (inventQuarantineOrder.QuarantineDate >= _fromDate)
    &&    (inventQuarantineOrder.QuarantineDate <= _toDate);
    inventQuarantineAnnouncementTmp.clear();
    inventQuarantineAnnouncementTmp.ItemId = inventQuarantineOrder.ItemId;
    inventQuarantineAnnouncementTmp.Name = inventQuarantineOrder.Name;
    inventQuarantineAnnouncementTmp.QuarantineId = inventQuarantineOrder.QuarantineId;
    inventQuarantineAnnouncementTmp.QuarantineDate = inventQuarantineOrder.QuarantineDate;
    inventQuarantineAnnouncementTmp.Qty = inventQuarantineOrder.Qty;
   // inventQuarantineAnnouncementTmp.Status = inventQuarantineOrder.Status;

    //inventQuarantineAnnouncementTmp.CompanyLogo = CompanyImage::findByRecord(companyInfo).Image;

    inventQuarantineAnnouncementTmp.insert();


}

public void processReport()
{
   contract = this.parmDataContract() ;

   fromDate = contract.parmfromDate();
   ToDate   = contract.parmtoDate();

   this.populateTmpTable(fromDate, toDate);


}
i have a one row in a table of invent quarantine and when i display a report it shows multiple rows rather than one ..where is the problem?

I have the same question (0)
  • Verified answer
    Jeson Profile Picture
    120 on at
    [quote user="suhailbinshuaib"]

    hi all..2043.Capture1.JPG

    52432.Capture.JPG

    Fullscreen
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    InventQuarantineAnnouncmentContract contract;
    InventQuarantineAnnouncement inventQuarantineAnnouncementTmp;
    }
    [SRSReportDataSetAttribute(tableStr(InventQuarantineAnnouncement))]
    public InventQuarantineAnnouncement getInventQuarantineAnnouncement()
    {
    select * from inventQuarantineAnnouncementTmp;
    return inventQuarantineAnnouncementTmp;
    }
    public void populateTmpTable(date _fromDate, date _toDate)
    {
    InventQuarantineOrder inventQuarantineOrder;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    i have a one row in a table of invent quarantine and when i display a report it shows multiple rows rather than one ..where is the problem?

    [/quote]

    Check the temporary table if it is set to temporary or regular.

  • suhailbinshuaib Profile Picture
    35 on at

    Thank You..the problem was i forgot make the table as a temp table

    thank u for your help

  • Jeson Profile Picture
    120 on at

    Your welcome. Please mark it as answered so that it can help other

  • suhailbinshuaib Profile Picture
    35 on at

    done.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans