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 :
Microsoft Dynamics AX (Archived)

Disable checkbox -- true status in form load

(0) ShareShare
ReportReport
Posted on by 155

Friends 

if i have checkbox in my form in grid view binded  to data source

i would like to disable all  true status checked box  in grid  for the specified field  when opening form  ??? 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Zain Bokhari Profile Picture
    3,208 Moderator on at

    Hi,

    if you want that all rows that have checked value should disable this field and all rows that have unchecked value should enable this field, well it does not work that way. You cannot have some records enabled and some records disabled in the same grid.

    What you can do is enable or disable the field when record selection is changed. Although it will affect the whole column but it will not allow anyone to change the specified field in the selected record if checked value exists in it.

  • Mohamed Moustafa Profile Picture
    155 on at

    exactly  i write this code in  data source selection change  event but nothing affected please advise

    super();

    if(VendInvoiceJour.paid==NoYes::Yes)

       {

       VendInvoiceJour_Paid.enabled(false);

       }

       else

       {

      VendInvoiceJour_Paid.enabled(true);

  • Community Member Profile Picture
    on at

    Dear Zain,

    i have a trouble in Price Job (N-1040) its becoming a huge packet like 1.15 GB. is this any possibility to overcome it ??? Or reduce the size of this job ??

    Note : we are using Microsoft Dynamics AX 2012 R2.

    Regards

    Tahir Khan

  • Zain Bokhari Profile Picture
    3,208 Moderator on at

    Hi Tahir,

    Your question is not related to the topic being discussed in this post.

    Please post a new question in the community, so all experts can see and help resolve your issue.

  • Mohamed Moustafa Profile Picture
    155 on at

    he can go to check box then unchecked it   without changing selection so he can  skip this validation step

  • Community Member Profile Picture
    on at

    ok

  • Mohamed Moustafa Profile Picture
    155 on at

    do you suggest another outsource event  to skip this point  

  • Community Member Profile Picture
    on at

    Hi Mohamed Moustafa,

         Is your form is ListPage or Normal form? And can you please explain your question bit more if possible with screenshots.

    Thanks

    Suresh

  • Suggested answer
    Zain Bokhari Profile Picture
    3,208 Moderator on at

    [quote user="Mohamed Moustafa"]

    exactly  i write this code in  data source selection change  event but nothing affected please advise

    super();

    if(VendInvoiceJour.paid==NoYes::Yes)

       {

       VendInvoiceJour_Paid.enabled(false);

       }

       else

       {

      VendInvoiceJour_Paid.enabled(true);

    }

    [/quote]

    The code you wrote above should work fine it will enable/disable the Paid field on the grid for the selected record. I just tested it on a simple list. It should work. If not, can you show me a screen shot? Maybe I understood your problem incorrectly. 

  • Suggested answer
    Zain Bokhari Profile Picture
    3,208 Moderator on at

    Try to add this line at the end of your code.

    element.redraw();

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans