Is it possible to define parameters in my application?

1
Hi! Is it possible to define a set of parameters in my application, which makes it possible to make configurable serveral parts of the application (centrally or per user)? (in other words, I'd like to have a (de)central control panel...) A concrete thing is that our customer wants to have an overview refreshed every x seconds. This can be configured per datagrid (fixed in Mendix). I'd like to have a control-panel for the administrator of the application, or to make this configurable per user. I can imagine a lot more parameters for my application. What are the possibilities? Thanks in forward for the answers!
asked
4 answers
2

Some custom widget magic might be able to help you out. Depending on what you want to be configurable exactly, you should be able to model some settings in a domain model and then read them from the client via a custom widget. Once you have the settings there, you can do a lot of funky stuff (refresh at will, change the background color to green etc)

Do note that building sophisticated custom widgets such as this is not for the faint of heart, I hope you have a good javascripter :)

answered
1

Javascript is a dynamic language with no notion of things like private or final members and such (although things can be hidden if you really want). This means that an experienced JS programmer can almost modify anything in any web application with some scripting (even existing functions can be modified on the fly).

Although dynamically changing stuff might influence stability and performance. Furthermore it dramatically decreases maintainability (for example it is hard to say whether something in a new version of the client has changed in such a way that it breaks your widget)

So in the end the question is often not, can it be done, but, is it worth the effort. (and do I have a spare JS programmer ;))

answered
0

The parameters in the modeler can't be changed. You have to use full development platforms (Visual Studio etc) instead of Mendix if you really want this.... You can create an entity with settings, in your microflows you can test on values of the settings and open special forms, execute different microflows.

answered
0

Thanks for the reactions. @Chris: Yes your option is a possibility, but not what i'm looking for :-) (thanks anyway!). Reason: it is not as flexible as having real parameters (and maintenance is (a lot) more (more forms, microflows etc).

Visual studio... No, I like the concept of Model Driven Development. I wonder if I'm the only one who feels the need for defining parameters?

@ Achiel: Can you explain this a bit more? Do you mean that it is (theoretically) possible to program a widget for this?

answered