# Project Properties via code

**URL:** <https://forum.inductiveautomation.com/t/project-properties-via-code/31991>\
**Category:** Ignition\
**Created:** [February 6, 2020, 1:18pm UTC](https://forum.inductiveautomation.com/t/project-properties-via-code/31991 "2020-02-06T13:18:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leversole](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@leversole](https://forum.inductiveautomation.com/u/leversole)\
**Post date:** [February 6, 2020, 1:18pm UTC](https://forum.inductiveautomation.com/t/project-properties-via-code/31991/1 "2020-02-06T13:18:17Z")

</div>

I have some apps that do double duty as view only full screens, and the need to have some reports and lookup table maintenance, etc…

I would like to programmatically turn of the menus based on the machine name.

Thanks

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 7, 2020, 4:35pm UTC](https://forum.inductiveautomation.com/t/project-properties-via-code/31991/2 "2020-02-07T16:35:32Z")

</div>

This isn’t directly possible - you can theoretically retrieve project properties in the runtime, but modifying them wouldn’t actually do anything to your running client.

If you just need to toggle the menu bars, then that’s the approach to take. Theoeretically, something like this _might_ work:

```python
from javax.swing import SwingUtilities
from com.inductiveautomation.factorypmi.application import FPMIApp

fpmiapp = SwingUtilities.getAncestorOfClass(FPMIApp, <some component reference>)
if fpmiapp is not None:
    # to hide
    fpmiapp.clientPanel.menu = None
    # to show
    fpmiapp.clientPanel.rebuildMenu()

```

---

<div class="post-metadata">

**Author:** ![leversole](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@leversole](https://forum.inductiveautomation.com/u/leversole)\
**Post date:** [February 7, 2020, 8:12pm UTC](https://forum.inductiveautomation.com/t/project-properties-via-code/31991/3 "2020-02-07T20:12:05Z")

</div>

Thanks! Now that I think of it, I would almost have to tell Ignition the machine name before it is even running…
