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 :
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
I have the same question (0)
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,078 Most Valuable Professional on at
    Hi
    Maybe this can help you and give you some hints
    Best regards
    Gerardo
  • Suggested answer
    YUN ZHU Profile Picture
    95,307 Super User 2025 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,672 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

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans