RDLC Report SetData GetData Issue
Amolkbhad23
Member Posts: 46
Hi expert,
I am New in RDLC Report in Navision 2009 R2,
I am facing issue in RDLC Report. In RDLC report there is One text box its value is =Code.SetData(ReportItems!SalesHdrInfo.Value,4) , And In Body another text box its Value is
Like below
Fields!Sales_Invoice_Header___Bill_to_Customer_No__Caption.Value + Chr(177) +
Fields!Sales_Invoice_Header___Bill_to_Customer_No__.Value + Chr(177) +
Fields!VATNoText.Value + Chr(177) +
Fields!Sales_Invoice_Header___VAT_Registration_No__.Value + Chr(177) +
Fields!ReferenceText.Value + Chr(177) +
Fields!Sales_Invoice_Header___Your_Reference_.Value + Chr(177) +
Fields!Invoice_No_Caption.Value + Chr(177) +
Fields!Sales_Invoice_Header___No__.Value + Chr(177) +
Fields!OrderNoText.Value + Chr(177) +
Fields!Sales_Invoice_Header___Order_No__.Value + Chr(177) +
Fields!Sales_Invoice_Header___Posting_Date_Caption.Value + Chr(177) +
Fields!Sales_Invoice_Header___Posting_Date_.Value + Chr(177) +
Fields!Sales_Invoice_Header___Due_Date_Caption.Value + Chr(177) +
Fields!Sales_Invoice_Header___Due_Date_.Value + Chr(177) +
Fields!Sales_Invoice_Header___Prices_Including_VAT_Caption.Value + Chr(177) +
Cstr(Fields!PricesInclVAT_YesNo.Value) + Chr(177) +
First(Fields!FORMAT__Sales_Invoice_Header___Document_Date__0_4_.Value) + Chr(177) +
First(Fields!STRSUBSTNO_DocumentCaption_CopyText_.Value) + Chr(177) +
Fields!SalesPersonText.Value + Chr(177) +
Fields!SalesPurchPerson_Name.Value + Chr(177) +
Fields!PageCaption.Value
Now in text box value =Code.GetData(20,4) is written, Till now I understand that this is user for multiple array
And ‘ 4 ‘ stand for Set Data of Report Items SalesHdrInfo Value so my question for what ‘ 20 ‘ stand for
And if I want to add Fields!Sales_Invoice_Header___Salesperson_Code_.Value then how can I add. I need your help.
:-k
I am New in RDLC Report in Navision 2009 R2,
I am facing issue in RDLC Report. In RDLC report there is One text box its value is =Code.SetData(ReportItems!SalesHdrInfo.Value,4) , And In Body another text box its Value is
Like below
Fields!Sales_Invoice_Header___Bill_to_Customer_No__Caption.Value + Chr(177) +
Fields!Sales_Invoice_Header___Bill_to_Customer_No__.Value + Chr(177) +
Fields!VATNoText.Value + Chr(177) +
Fields!Sales_Invoice_Header___VAT_Registration_No__.Value + Chr(177) +
Fields!ReferenceText.Value + Chr(177) +
Fields!Sales_Invoice_Header___Your_Reference_.Value + Chr(177) +
Fields!Invoice_No_Caption.Value + Chr(177) +
Fields!Sales_Invoice_Header___No__.Value + Chr(177) +
Fields!OrderNoText.Value + Chr(177) +
Fields!Sales_Invoice_Header___Order_No__.Value + Chr(177) +
Fields!Sales_Invoice_Header___Posting_Date_Caption.Value + Chr(177) +
Fields!Sales_Invoice_Header___Posting_Date_.Value + Chr(177) +
Fields!Sales_Invoice_Header___Due_Date_Caption.Value + Chr(177) +
Fields!Sales_Invoice_Header___Due_Date_.Value + Chr(177) +
Fields!Sales_Invoice_Header___Prices_Including_VAT_Caption.Value + Chr(177) +
Cstr(Fields!PricesInclVAT_YesNo.Value) + Chr(177) +
First(Fields!FORMAT__Sales_Invoice_Header___Document_Date__0_4_.Value) + Chr(177) +
First(Fields!STRSUBSTNO_DocumentCaption_CopyText_.Value) + Chr(177) +
Fields!SalesPersonText.Value + Chr(177) +
Fields!SalesPurchPerson_Name.Value + Chr(177) +
Fields!PageCaption.Value
Now in text box value =Code.GetData(20,4) is written, Till now I understand that this is user for multiple array
And ‘ 4 ‘ stand for Set Data of Report Items SalesHdrInfo Value so my question for what ‘ 20 ‘ stand for
And if I want to add Fields!Sales_Invoice_Header___Salesperson_Code_.Value then how can I add. I need your help.
:-k
0
Comments
-
Welcome to Mibuso
20 is the field no. in the list..
as I can see Fields!SalesPurchPerson_Name.Value is the 20th field in list..
if you want to add sales person field..
simply add at end as 22nd field
and write.=Code.GetData(22,4)
0 -
thanks for reply.
New New textbox value i write
=Code.GetData(22,4)
and i also add value of textbox which is in Body.
Fields!SalesPurchPerson_Name.Value + Chr(177) +
Fields!PageCaption.Value + Chr(177) +
Fields!Sales_Invoice_Header__Salesperson_Code.value
(In Red mark)
but still i am getting error
Microsoft Dynamics NAV Classic
Error while validating RDL content:
The Value expression for the textbox ‘SalesHdrInfo’ refers to the field ‘Sales_Invoice_Header__Salesperson_Code’. Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope.
OK
](*,) i need help. [-o<0 -
Did you add the field in classic sections?
Can you see Sales Person Code in Dataset?0 -
Thanks for your Reply.
No. i am not add this filed in classic and
while manual writing in Fields!Sales_Invoice_Header__Salesperson_Code_
it is not there.
](*,)0 -
You need to add it in classic sections first..then set DataSetFieldName to Sales_Invoice_Header__Salesperson_Code_ or it will create automatically when you open layout.
then enter the value in rdlc..0 -
Thanks for reply.
=D> its working thanks once again.
is it possible without adding field in classic report, i can use in RDLC data set ?
if yes, how and if no, then why..?0 -
Welcome
Yes, it is possible from NAV2013
No, till NAV2009R2 we have to create the data model in classic sections only..0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
