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

How to Implement Boolean Field in Non-Boolean Worksheet Column - AL Development Business Central

(1) ShareShare
ReportReport
Posted on by 8
Hi,
I'm developing a custom "Vendor Quote Comparison Worksheet" in Dynamics 365 Business Central using AL. This worksheet is to compare vendor quotes side-by-side. I have also attached the layout that we want to use. We need to include a Boolean-like "Approve Vendor" option for each vendor column, but we're facing challenges with the worksheet's column data types.
Key details:
1. The worksheet uses vendors as columns.
2. Each vendor column needs an "Approve Vendor" checkbox.
3. The checkboxes should be mutually exclusive across vendor columns.
4. Standard worksheet columns would typically be non-Boolean data types (e.g., Decimal, Integer, Text).
 
What's the recommended approach in AL to implement a Boolean field (checkbox) in a worksheet column that doesn't inherently support Boolean data types?
Are there any Worksheet controls in AL that could facilitate this functionality?
How can we ensure the mutual exclusivity of selections across different columns in an AL worksheet context?
We're open to solutions involving worksheet design modifications, underlying table structure changes, or custom AL controls that align with Business Central's architecture and best practices.
 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 77,925 Super User 2025 Season 1 on at
    How to Implement Boolean Field in Non-Boolean Worksheet Column - AL Development Business Central
    I think this is not possible. As shown in the picture you provided, there are multiple data types in one column.
    But If you only need to display it, you can make it into a report, which is barely possible, but if you need to modify it on the UI, I don't think it can be done.
    I hope other experts can give you better suggestions.
     
    Thanks.
    ZHU

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans