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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Unable to fetch single/relevant record from PSACONTRACTLINEITEMS

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

I am having below problem for the last one week :

I need to get data from four tables :
1.PSACONTRACTLINEITEMS

2.PROJTABLE

3.SL_ProjDepartAllocation

4.dimattributeomdepartmen

currently upon input of '889' my ssrs query is showing irrelevant data , is the displaying the amount of sub-project 889-01 also may be due to same PSACONTRACTLINEITEMS.ProjInvoiceProjId 

i need to show the relevant data of  my project '889' via parameter projid (please see the image)

.report-details.JPG

query :

<private void insertData()


{

    PSAContractLineItems psaContractLineItems ;
    SL_ProjDepartAllocation sl_ProjDepartAllocation ;
    DimAttributeOMDepartment    dimattributeomdepartment ;
PSAContractLineItemsSetup psaContractLineItemsSetup ;
    EA_PMDReportContract contract = this.parmDataContract();
  //  EA_PMDReportT ea_PMDReportT ;

    while select * from psaContractLineItems

 join projtable where  psacontractlineitems.ProjInvoiceProjId==projtable.ProjInvoiceProjId

     //   && projTable.Type == contract.parmProjType()


 join SL_ProjDepartAllocation where SL_ProjDepartAllocation.projid==projtable.projid

 join dimattributeomdepartment where  dimattributeomdepartment.recid==SL_ProjDepartAllocation.DepartmentId

  && projTable.ProjId==contract.parmProjID()
   //&& projTable.Type ==contract.parmProjType()

       // && psaContractLineItems.ProjInvoiceProjId == projTable.ProjInvoiceProjId
                  //       && psaContractLineItems.LineType == PSAContractLineType::TAndM
                  // && PSAContractLineItems.ContractLineNum == PSAContractLineItemsSetup.ContractLineNum
    
        

//inner join PSAContractLineItemsSetup on PSAContractLineItems.ContractLineNum = PSAContractLineItemsSetup.ContractLineNum

//&& psacontractlineitems.linetype==@type

//and  projtable.projid=@projname

    {
        ea_PMDReportT.clear();

        ea_PMDReportT.ProjId = projTable.ProjId;
        ea_PMDReportT.EA_Percentage = sl_ProjDepartAllocation.EA_Percentage ;
        ea_PMDReportT.SL_EngineeringEstimates = psaContractLineItems.SL_EngineeringEstimates ;

    ea_PMDReportT.Type= projTable.Type ;  
        ea_PMDReportT.insert();

    }






















}/>
i can further explain.

thank you

*This post is locked for comments

I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans