Changing the “Visible” property of a Form Part Reference

  • Changing the “Visible” property of a Form Part Reference

    Posted by DSC Communities on March 22, 2017 at 11:29 am
    • Rudy Salcedo

      Member

      March 22, 2017 at 11:29 AM

      To improve client performance, we recently disabled the factboxes, preview panes, related information, etc on several forms.  This was accomplished by changing the Visible property of all form Parts to “No”.

      When the SalesTable form is called from a specific custom form, we want to enable both of the above form Parts whose Visible property is currently set to “No”.  How can I access and change the Visible property to “Yes” using X++ code?    Thanks!

      ——————————
      Rudy Salcedo
      Senior Programmer/Analyst
      LaForce, Inc
      Green Bay WI
      ——————————

    • Lloyd Dehn

      Member

      March 23, 2017 at 9:29 AM

      See link below.

      AX2012 – How to control the visibility of FactBox on form thru X++

      Mindbrations remove preview
      AX2012 – How to control the visibility of FactBox on form thru X++
      Before discussing the code, let me point out that this is not recommended, since the user should have control over the visibility of FactBoxes so your design should always take this into consideration; Having said that, if you for some reason want to control the visibility, here’s how to do it: PartList partList; FormRun formPart; str formName; int counter; //formName is the name of the form that the factbox is referring to.
      View this on Mindbrations >

      ——————————
      Lloyd Dehn
      Dynamics AX Lead Developer
      Braun Intertec
      Bloomington MN
      ——————————
      ——————————————-

    • Rudy Salcedo

      Member

      March 23, 2017 at 9:40 AM

      Thanks Lloyd, I’ll give that a try!

      ——————————
      Rudy Salcedo
      Senior Programmer/Analyst
      LaForce, Inc
      Green Bay WI
      ——————————
      ——————————————-

    DSC Communities replied 9 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Changing the “Visible” property of a Form Part Reference’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!