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)

Access to formrun object of workspace/area page

(0) ShareShare
ReportReport
Posted on by

Hi guys

I'm working on some sort of coloring per environment so that our users do not confuse our PRD environment with a TST environment.

I've made some code that changes the color of the statusbar (in SysSetupFormRun.run()) and works well (see screenshot).

I used this method to do the actual coloring: msdn.microsoft.com/.../formrun.setstatusbarbackgroundcolor.aspx

Final thing i'm struggling with is getting access to the FormRun object of the AreaPage (workspace). I cant get info in the debugger's stacktrace and code profiler didnt give me any hints either.

It is working for ListPages but not the initial homepage/area page.

Any ideas?

Im on R3 btw.

4760.example.png

6735.example2.png

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    Hi Tim De Lobelle,

    It's probably not an answer on your question but you are inventing a bicycle:

    www.agermark.com/.../color-code-forms-in-ax-2012-depending.html

    blogs.msdn.microsoft.com/.../changing-the-background-color-on-ax-forms-in-ax-2012

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Hi,

    why don't you think to change top heading, where license names also appears

  • Community Member Profile Picture
    on at

    Hi Sohaib

    We need something in-your-face not just some text in the bar.

    You know how smart end-users can be :')

    @ievgen: yes i know, i started from their code :-)

    But it doesnt work for area pages. Only forms and list pages.

  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Hi Tim De Lobelle,

    As far as I know there is no easy way to do this, that's why guys from those post did not do this :)  

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