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 :
Small and medium business | Business Central, N...
Suggested Answer

Expressions in RDLC Report of BC

(1) ShareShare
ReportReport
Posted on by 160
I am a beginner and learning on my own, While playing around with existing reports. I came across this expression
=Cstr(Choose(12,Split(Cstr(ReportItems!HeaderValue.Value),Chr(177))))
 
I am able to understand the most of the functions but what is 12 in here similarly in following expression 
=Cstr(Choose(26,Split(Cstr(ReportItems!HeaderValue.Value),Chr(177))))
 
is it related to columns of the table, if that is the case how will i know which number is mapping to which column name?
I tried to map the columns value of report to the main table ID, it is not same? What am i missing
  • Suggested answer
    Gerardo Rentería García Profile Picture
    27,623 Super User 2026 Season 2 on at
    Hi
    Maybe this can help you and give you some hints
    Best regards
    Gerardo
  • Suggested answer
    YUN ZHU Profile Picture
    104,090 Super User 2026 Season 2 on at
    Hi, here is a simple explanation that I hope will give you some tips.
     
    For a brief description, the n-th field in the group of defined fields, such as the following example, (8,1) is WhseShptHeader_PostingDate. 
    =Code.SetData(Cstr(Fields!CompanyInfo_Name.Value) + Chr(177) + 
    Cstr(Fields!WhseShptHeader_ShptDate.Value) + Chr(177) + 
    Cstr(Fields!WhseShptHeader_No.Value) + Chr(177) + 
    Cstr(Fields!WhseShptHeader_ShipmentNo.Value) + Chr(177) + 
    Cstr(Fields!WhseShptHeader_LocName.Value) + Chr(177) + 
    Cstr(Fields!SalesHeader_SellToCustName.Value) + Chr(177) + 
    Cstr(Fields!SalesHeader_ShipToAddr.Value) + Chr(177) + 
    Cstr(Fields!WhseShptHeader_PostingDate.Value) + Chr(177) + 
    Cstr(Fields!OutboundType.Value)
    , 1)
     
     
    Thanks.
    ZHU
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    Hi,
     
    The Choose function uses the first parameter as the index of one of the remaining function parameters. The first argument must be an integer. 
    You can refer to the blog about RDLC report functions:
     
    Best Regards,
    Judy
  • Suggested answer
    Steven Renders Profile Picture
    5,698 Moderator on at

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 665 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 418 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans