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?

  • suhailbinshuaib Profile Picture
    35 on at
    RE: report showing multiple rows rather than one row

    done.

  • Jeson Profile Picture
    120 on at
    RE: report showing multiple rows rather than one row

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

  • suhailbinshuaib Profile Picture
    35 on at
    RE: report showing multiple rows rather than one row

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

    thank u for your help

  • Verified answer
    Jeson Profile Picture
    120 on at
    RE: report showing multiple rows rather than one row
    [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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,430 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,043 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans