I have tried to create a separate administrator user role, such that I can restrict MxAdmin to just user management and leave all other admin functionality to this second admin role. However, it seems that MxAdmin totally disregards my security settings and is able to view pages and objects it's not supposed to (at least when running locally). Anybody any suggestions as to why this is (and more importantly, how I can fix this)? The entities and pages are in the administration module, but I don't think that should matter, should it? Edit: yes, I have specified module roles as well, that is how I differentiate between which pages and entities should be accesible by which user role P.S. the modeler version is 6.10.5, which I somehow can't select down here...
↧
MxAdmin does not respect security settings?
↧
MxAdmin is not associated with correct user role
Hi Everyone, I have 'Administrator' and 'User' user roles who have access to certain pages. In the Project security > Administrator, initially I selected 'Administrator' as user role for MxAdmin. When I run the project locally and log in as MxAdmin, I was able to see correct pages and only had one role associated to MxAdmin account, so far all good! When I go back again to Project security > Administrator and change the user role from 'Administrator' to 'User' and re-run the project locally, I expected the MxAdmin account to be just associated with user role 'User' but it seems like MxAdmin account has now got two user roles (Administrator and User). If I change this project security setting again to select any other new user role (example Finance) then this role also get associated to MxAdmin account and the list of associated user roles will increase by one. When I deploy the change to test environment and log in as MxAdmin then the MxAdmin account is still associated to 'Administrator' role instead of 'User'. I never noticed this behaviour before maybe because I never changed the MxAdmin role from 'Administrator' to any other role. Just wanted to check with community if anyone tried this scenario and faced similar issue? Is this a bug or expected behaviour? Thanks in advance!
↧
↧
Custom Administrator user role not set on cloud
Hi all, I have created a new user role specifically for MxAdmin (conveniently called 'MxAdmin') which I have set as the User Role for the Administrator in the Project Security settings. When I login with MxAdmin, debug my "Show Homepage" microflow and retrieve the userroles, locally I have two user roles: Administrator (which is set by default, according to the documentation) and MxAdmin. Strangely, when I deploy my application to the cloud and debug the same flow I only have one userrole: Administrator. MxAdmin seems to be gone. Am I overlooking a setting on the cloud, misreading the documentation or is this a bug? Edit: After experimenting some more I tried resetting the MxAdmin password on the cloud in the hope this would magically redefine the userroles. Strangely this seemed to work and I now have the correct userrole. Still sounds like a bug to me, but fortunately this situation has been resolved.
↧
XSUAA requires Aministration.Account entity
Hey everyone, recently I am playing around with the XSUAA module and cleaning up my project explorer. So I re-loaded the SAP Authentification module (XSUAA) and got several errors, every of them stating that "The selected entity Administration.Account no longer exists." It seems that accidentally, I deleted this entity when deleting one of the modules of the App Store Modules. The only one I could find having this entity was "AppCloudServices", but I don't think that this module is the one of which the XSUAA module is dependant. I do have the odata connector installed just as in the documentation described. So, do you know how to overcome this? Regards and many thanks, Laura
↧
Are out-of-band popups possible?
I am working on a pet project that would require a client application to execute a web/app service call to the server which would then open a popup dialog on the central console application. I tried using Show Message and Show Page when running locally, but nothing is displayed. Is there a way to do it? Is there another way where we can update visible objects on the server page out-of -band? I was thinking about having a special entity that would trigger a nanoflow On Change, but I still don't know how to affect the running server application UI. Thank you in advance for all replies! (modeler used is 7.18.0)
↧
↧
Scheduled deployment to production
We are looking for an method to schedule deployment to production. In order to minimize the unavailability we want to deploy the upcoming releases during the night. I know the deploy API can be used for this, but I'm looking for the easiest solution where to trigger this. Has somebody experience doing this? Do you have some code or module that can be shared? I'm thinking about a scheduled event, which runs every night only on the Test-environment and deploys only the version which is selected manually on an administration page.
↧
Using an import mapping parameter to find existing mendix object
Hello, I am trying to use a parameter in an import mapping. I can use it to set as a parent object, but I also need to be able to set it as a microflow argument to lookup an existing mendix object (as I need a composite key of operating company and registration number and I cannot only set direct attributes as keys), see screenshot. So far I worked around by copying web service results in non-persistent entities first and then manually find existing items and then simply copy all attributes in a custom microflow. However this seems to slow things down with huge datasets (even leading to out of memory errors). Could you add the possibility to set the parameter in the lookup microflow or allow also associations to be selected as a key?
↧
Return Enum in java action
I have created a java action and I've set the return type to enum. When I edit this action I see that executeAction() returns a string, but I expected it to return an enum. I have tried to import the enum with 'import modulename.proxies.Enum_Colors;' and than change the method return type for executeAction() to Enum_Colors, but this doesn't seem to work (error: The return type is incompatible with UserAction<String>.executeAction()). Does anyone know how to return an enum value? Cheers!
↧
Menu List items
Hello i want to know how to add list items as drop down to menu bar could anyone suggest me how to take it.
↧
↧
How to letting customers create their own questionnairea and sending this to the people who are examined
I want to ensure that the client can draw up a questionnaire himself, and then send it to patients who have participated in a certain study. What kind of grid is useful to ensure that customers can put together a questionnaire themselves (different kinds of questions, open questions, closed questions etc) And what does a entity look like? I myself thought of an entity questionnaire with an attribute in the questionnaire name and no longer.
↧
pass param fail with client call a microflow
I have a Microflow , it accpet a Object of Domain Model as a param , this microflow only log param and show it; when I use client api call this microflow, it action with success, but message of param with null , why ?
mx.data.action({
params: {
applyTo: 'selection',
actionname: 'Application.Log',
guids: ['7318349394477258']
},
callback: function () {
// it will be successed
console.log('success info');
}
}); I'am sure this GUID's object is in existence, I can find in the db, or find it use 'mx.data.get', but Mendix Modeler Console log it null;
↧
Card IO Scanner - Not able to use it
I created a data view and called widget by following the instructions mentioned here https://appstore.home.mendix.com/link/app/72319/. Tried accessing the application using browser and mendix developer app but scanner is not displaying. Can you please let me know what I am missing? Also, I am not able to find the config.xml in my project to add this plugin. Can you please let me know to locate it and add below plugin? In order to use this widget you need to include the following plugin in your config.xml <plugin spec="https://github.com/card-io/card.io-Cordova-Plugin.git" source="git"/>
↧
Registration option for new users
Hello, I am trying to make a login page with a option for new users to be able to register. In Mendix I did not find a way to get that, maybe somebody can help me out?
↧
↧
Logging Database Changes in Mendix
I'm probably kicking in an open door here, but how do you enable logging all database changes in your application? I am facing a really perculiar issue where user-objects get deleted during logging in. I have no delete behaviour whatsoever, nor do I have java actions running where deletes can occur. I was hoping with a complete logging of all DB changes I can find out more about this problem. Thanks!
↧
Force page template refresh?
Hi all I have an HTMLSnippet running some jquery to add an attribute to some elements on the page. It is situated in each of the three page templates in my projects as the intention is for it to run each time you go to a new page. However I have discovered that the code does not run again when moving between pages with the same template. Is there a way of forcing a refresh of the page template or do i need to just add this snippet manually to each page? Edit: i have tried the refresh on context change and context update in HTMLSnippet, but this does not work
↧
Importmapping: converting two attributes into one
Mapping an incoming object's attributes I need to compose one receiving attribute from two incoming attributes. In this example Huisletter and Huisnummertoevoeging need to get concatenated into the one receiving attribute HousenumberExtension. First option, and this looks to me the only correct place for it, would be to add a microflow for conversion of two values into one field. But this microflow only accepts one attribute. Not two, alas. The simple solution is to not convert the attributes, import the each attribute to its own attribute counterpart and have the importmapping get followed by a microflow that concatenates the two attributes into attribute HousenumberExtension. But I am wondering if there is a better way. Is there?
↧
Make each word in text-box clickable by surrounding them with
Hi fellow Mendixers! In my app, users will read Chinese articles to study the language. For the greatest convenience, each word of the article should be clickable, triggering a microflow that provides a translation for the word. I used Repl.it to successfully test a HTML/Jquery script doing this by manually putting <span> around each word (see below). Then I copied the Jquery part into an HTML snippet. Then I made a microflow that parses an article strings and puts <span> around each word (see example below). What I think should be the final step is to put the spanned text in a textbox. However, a regular textbox will display <span> as text (see picture below), rather than reading it as an HTML element. What would be a good approach to display the textbox as intended with clickable words function working? Do I need a custom widget for that and is such a widget available? Big thumps up for the lady or gent with the magic solution. Cheers, Paul Picture of result with regular text-box Example of working microflow Original article text: 担心自己的东西在安检时候被偷?一女子跟着自己的包进了安检机。 Article text after microflow: <span>担心</span> <span>自己</span> <span>的</span> <span>东西</span> <span>在</span> <span>安检</span> <span>时候</span> <span>被</span> <span>偷</span> ?<span>一</span> <span>女子</span> <span>跟着</span> <span>自己</span> <span>的</span> <span>包</span> <span>进</span> <span>了</span> <span>安检</span> <span>机</span> 。 Repl.it code <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>repl.it</title> <link href="index.css" rel="stylesheet" type="text/css" /> <style> div.mx-name-textArea2 div label span{ font-size: 30px; } </style> </head> <body> <div class="mx-name-textArea2"> <div> <label> <span>word 1</span> <span>word 2</span> </label> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> jQuery(".mx-name-textArea2 div label span").on("click", function () { //We extract the text from the element clicked - Works for <p> elements, to be tested on <span> var microflowInputString = jQuery(this).text(); //console.log($(this).attr('class')); console.log(microflowInputString) }); </script> </body> </html>
↧
↧
Hello everyone, when I import the wsdl file, this kind of problem occurs. What is the reason?
Hello everyone, when I import the wsdl file, this kind of problem occurs. What is the reason?
↧
com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: File does not exist for key: c9c27deb-2cc1-4d33-be16-6debf52ee7f8
Hi all, I have one microflow which is using JavaAction(Export To Excel) to generate excel file. I am exporting the data using JavaAction to Excel file. In my local instance, it is working fine and generating an excel file. But in live system, when the user tries to generate the excel file, it is giving the error. The error is as follows. com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: File does not exist for key: c9c27deb-2cc1-4d33-be16-6debf52ee7f8 How to resolve this error. Please let me know as soon as possible. Thanks in advance. Thanks, Venkat Hi all, I have one microflow which is using JavaAction(Export To Excel) to generate excel file. I am exporting the data using JavaAction to Excel file. In my local instance, it is working fine and generating an excel file. But in live system, when the user tries to generate the excel file, it is giving the error. The error is as follows. com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: File does not exist for key: c9c27deb-2cc1-4d33-be16-6debf52ee7f8 How to resolve this error. Please let me know as soon as possible. Thanks in advance. Thanks, Venkat
↧
DateTime functions not available in nanoflows?
Hi community, I'm trying to put some dateTime functions in a nanoflow for use in a offline app, but functions like addHours and parseDateTime don't seem to be available in a nanoflow. 'Unknown function' is the feedback I get from the modeler. Am I doing something wrong or is there an explanation for this?
↧