Hi, Is there a way to create mock session for unit tests? I test a microflow with an API call. Best regards, Daniil.
↧
Mock session
↧
SSO in React Native app
Hi guys, I would like to use SSO in our Mendix React Native apps, like we did with the hybrid apps in the past. Does anyone has experience with SSO and a React Native app?
↧
↧
native mobile app QR code doesnt work
Hi Mendix team, I downloaded Mendix 8 and trying to create native app using your description / paper. I have issue with scanning QR code. I have: Created ny native app, Run it locallly, Creating defult db, and now i just whant to scan QR code But i cant it doent work, message i get is “The URL provider doesnt not point to valid Mendix app” . My pc and my phone running on the same network. My colleague has the same issue. Is there something we havent check? Best regards Agnese
↧
OQL retrieve throws SecurityRuntimeException
Hi, I have a Java Action for dynamic data retrieve using OQL. The Microflow which executes the Java Action applies Entity Access. A regular SELECT works just fine, but the following query throws an exception:
SELECT r.State, COUNT(r.id) AS c
FROM RequestFulfilment.Request AS r
GROUP BY r.State The exception thrown:
An error occurred: com.mendix.core.objectmanagement.SecurityRuntimeException
Message: Read access denied for DataRow column 'State' (0)
Stacktrace: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.objectmanagement.SecurityRuntimeException: Read access denied for DataRow column 'State' (0)
at com.mendix.basis.component.InternalCoreBase.execute(InternalCoreBase.java:383)
Caused by:
com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.objectmanagement.SecurityRuntimeException: Read access denied for DataRow column 'State' (0)
at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156)
Caused by:
com.mendix.core.objectmanagement.SecurityRuntimeException: Read access denied for DataRow column 'State' (0)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
Caused by:
Read access denied for DataRow column 'State' (0)
at com.mendix.connectionbus.data.InternalDataRow.getValue(InternalDataRow.java:176)
at com.mendix.connectionbus.data.InternalDataRow.getValue(InternalDataRow.java:137)
at dashboard.JsonSerializer.lambda$serialize$1(JsonSerializer.java:56)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at dashboard.JsonSerializer.lambda$serialize$2(JsonSerializer.java:56)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at dashboard.JsonSerializer.serialize(JsonSerializer.java:52)
at dashboard.actions.RetrieveByOQL.executeAction(RetrieveByOQL.java:51)
at dashboard.actions.RetrieveByOQL.executeAction(RetrieveByOQL.java:1)
at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)
at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)
at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)
at com.mendix.basis.component.InternalCoreBase.execute(InternalCoreBase.java:379)
If I disable the Entity Access I get the desired result:
[{"c":3,"State":"Initiated"}] I assume this is because “c” (the count column) is ‘generated’ dynamically and theirfor has no access rules defined. How can I do this? Am I missing something? Thanks for your help! (Working with Mendix version 8.3.0) Edit 2019-11-20T1547 Funny thing, if I remove the `r.State` portion from the SELECT statement it works:
SELECT COUNT(r.id) AS c
FROM RequestFulfilment.Request AS r
GROUP BY r.State
yields
[{"c":3}] .. but this doesn’t help, I need the `r.State` column to be retrieved. Also, giving the `r.State` column an alias doesn’t help either.
↧
Use Mendix user to Authenticate SAP Odata service
Hi everybody, As a start: we do not have SAP Cloud Connector or Cloud Platform. I'm struggling with authentication to SAP. We currently call Odata service in the SAP Backend and we have to pass a user + password for authentication). I'd like to use the current username + password to authenticate against this backend. Is that possible? We are also trying to authenticate using SAML but that is for logging in only I think, not to the backend. Any help would be great! Kind regards and all the best Laurens
↧
↧
Show control bar below a datagrid
Hello Mendix Community, I'm working on a Datagrid right now. In particular, I'm working with a "Select Button" in the Control Bar and I would like to display this Control Bar under the Datagrid.In particular, I'm working with a "Select Button" in the Control Bar and I would like to display this Control Bar under the Datagrid. Is this possible? Many thanks in advance. Marvin
↧
Access rules if object is new
Hi all, I swear i’ve done this before but can’t seem to remember, but I would like there to be a different access rule on an entity when the object is new. Do I do this through the xpath constraint? I can’t seem to get the isNew function to work right there, my minds gone blank! Thanks, Garion
↧
Filter user roles selection.
I have a custom user add screen. When the user clicks to select one or more roles, the reference selector shows a popup with a DataGrid. I have a working MF that filters the list, but doing so removes my ability to use the “Select” button, which was also set as the default for double click. I need the MF in order to filter items based on user role (I don’t want “super users” to be able to select the Administrator role, except other Administrators). I’m not sure why a simple thing like this is so complicated to figure out. I have no choice it seems but to “roll my own” buttons for this simple task, but how do I select, close, and return the selected item? As well, I would need to close the popup without selecting anything (cancel), thanks. Things I already tried: Create a non-persisted object for the popup. A MF pulls and filters the roles. Does not work, as the same issue occurs over associations (cannot use built-in buttons). Filter the list using XPath on the current user role (I’m very surprised this is not possible – or at least, I haven’t found anything anywhere that works). I could create a new “MyUserRole” entity that inherits from UserRole, perhaps, then add a calculated (MF) attribute to filter on, but I don’t want to assign custom entities for this if possible.
↧
Using new line inside a string
Hi guys, I am trying to connect to an Email API which has an email status filter that can accept multiple filtering values but only with each status on a new line. Example: Unread Draft Failed I am now trying to create this string in the API call inside the microflow, but nothing will work. I tried with ‘\n’ and ‘<br>’ and also wrote them on new lines. Nothing worked. Does anyone have any idea how this can be done? Thanks, Razvan
↧
↧
How do I get a deeplink working together with SSO on SAP Cloud platform
Hello fellow Mendix specialists/enthusiasts/etc, For one of our customer solutions I am struggling with the following scenario. Mendix is running on the SAP Cloud platform Users are registered in SAP SSO has been implemented Role based Homepage microflows (deeplink home mf + open specific page) guest/anonymous users not allowed (project/deeplink) A registered user receives an email with a deeplink url in it (https://appname...hana.ondemand.com/link/request?id=<id>&type=<value>). Required outcome when clicking on the link the user should be directed to a specific record Actual outcome: When the user is not yet logged in, the user gets redirected to the role-based homepage. When the user is logged in, the user gets directed to the actual record. For the deeplink login location I tried empty, ../sso/login?f=true&cont= and ../xsauaalogin?f=true&cont= all leading to a page not found error. https://appname...hana.ondemand.com/p/login?f=true&cont= leads to the behaviour described above. Can anyone help me with this? Thank you very much Regards, Micha Friede
↧
Custom SASS files
Hi, I’m working in Mendix 8 and looking at making some cusotm UI changes. I’m following the guide and it’s fine until Step four where the folders being referred are different from the project folders. The guide says to open custom.scss from {project name} > theme > styles > web > sass, However, my project has the strutre of theme > styles > web > sass > app. It is in side this ‘app’ folder where I find the custom.scss files. Is this where I should be adding my custom scss files? If I need to change things like helpers, do I copy them from the Core folder into the App folder and work in there? Cheers
↧
Creating aTree Structure that looks like and BOM
I want to create a tree structure that looks like and BOM any tips or any idea how to achive it
↧
Mendix cloud - is multiple apps with single node possible ?
I recently migrated my app from free cloud (sandbox) to Mendix cloud. I got one node where I already deployed one app. Is it possible to deploy one more app on the same node ? Or I need to purchase one more node if i want to keep both apps running ?
↧
↧
Get list of all registered Request Handlers
Is a list of all registered request handlers available? From within a request handler, I want to redirect to a “SSO/logout” if it exists, if not, to “index.html”.
↧
Hover popup page
Hi guys, Is this possible to show a popup page while mouse hover? If yes can u guide me.
↧
Error "Select a default home page for this profile in the navigation document."
Hi All, I am doing the Mendix University Program- Become a rapid developer and I am getting an error that reads "Select a default home page for this profile in the navigation document." If any one has done this program it is at the end of the 9th module. The error element says “Homepage for user role ‘Trainee’ of navigation profile ‘Responsive’”. I put a default homepage but it still does not work. Thank you to all who look at this.
↧
Custom Input Mask Widget
Hi, I am using Custom input mask widget for my phone number attribute masking. I gave validation microflow for phone number masking with Validation Feedback activity. During validation it should show only validation message for field only but for me it showing validation message for field as well as message box also. Below are the screenshots: I need only red highlighted validation not other message box. I used custom widget as given in below screenshots: How should I show validation correctly?
↧
↧
Excel Importer Key and Case sensitive
Hello colleagues, As far as I know, in Excel Importer Module, when creating a template with Import action as “Synchronize objects” at least one attribute must be defined as a Key. I think that this prevents from duplicate current data in the App, am I right? However, I want to update some others attributes preventing unique IDs to be duplicated. What should I do? Also, could any please explain which is the difference when set Case Sensitive as “yes” for those with Key as “yes” too Many thanks in advance
↧
Commit Errors
Project saying files acre conflicting. please use SVN to correct changes. how do i fix this?
↧
Input Mask on text box not working
Hi, I am using Input Mask for the phone number text box. During running it is working as expected in Google Chrome browser only. In other browsers like Microsoft Edge, Mozila FireFox, Internet Explorer etc. is not working proper. It is not deleting entered values after applying input mask on text box field for phone number. Below are the screenshots: In browser after running I am not able to delete or edit field:
↧