Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Answered

Change checkbox value on a page after action is clicked

Posted on by 2,576

Hi,

I have created a checkbox named 'Planning' which I have created in a table and put it in the respective page. Initially the checkbox on the page is unchecked. But when I click on Planning action on the page and the planning gets created, I want the checkbox value present on the page to be Checked.

I added this code on the function that gets called when the user clicks on the action:

PlanningScheduleTable.Planning := TRUE;
MESSAGE('Planning checkbox value : %1',PlanningScheduleTable.Planning);

This message shows that the value has become True but it does not change the value of the checkbox on the page.

How to solve this?

  • manish.yadav Profile Picture
    manish.yadav 1,833 on at
    RE: Change checkbox value on a page after action is clicked

    Is there any possibility we can perform the check and unchecked operation with same action button. Please suggest me.

  • Tina Menezes Profile Picture
    Tina Menezes 2,576 on at
    RE: Change checkbox value on a page after action is clicked

    Sorry

    My problem is solved.

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 50,394 Super User on at
    RE: Change checkbox value on a page after action is clicked

    add PlanningScheduleTable.MODIFY; at the end.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,914 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,549 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans