In a Mendix app, is it possible to reuse or integrate some of our React components?
↧
React Components
↧
Authentication issue calling Jira REST api.
Hi I'm trying to call the Jira REST Api, using basic authentication, but I keep running into 401 (Unauthorized) errors. I'm new to using REST, so here's a brief description of what I've done so far: I created a JSON structure I generated the import mapping And created a microflow which does the REST call using the following settings I've tried both the ‘Use HTTP Authentication’ option as adding a custom (Authorization) token with value ‘Basic ‘ followed by a Base64 encoded username:password String, which also results in a 401. When using ‘Basic’ as key and the encoded string as value a 404 is returned. I'm a bit clueless at the moment, so hopefully someone can point me in the right direction.
↧
↧
System crash after high offset
Is there any reason why a retrieve with an offset higher than 300.000 would crash the system? I have a MF that iterates over 800.000 records in batches of 250. After every 100.000 I perform an EndTransaction. when I reach 300.000 (or about) the application shuts down without any error. Initially I first thought it was because of an error in the MF but when I start the MF with 300.000 offset it goes down immediately
↧
Dynamic Captions for Data Grids
I have a drug study entity where I want to provide the option to give a custom title to a custom attribute of an associated FAQ entity. This enables each drug study to use this custom field for different purposes as needed. Please see my example domain model below: I would like the FAQCustomHeader to appear as the caption for the custom column in the data grid. It would be great if these captions worked similar to the button captions, where I could associate back to the study to pull the FAQCustomHeader. My current workaround is adding a do nothing button on the data grid with different styling to display the FAQCustomHeader, but this isn’t ideal and still leaves “Custom” as the header on the grid. Ideally I would like the data grid to have the same Xpath functionality to allow for searching. Are there any good app store options that work in 7.23.5 that I can use or any other creative ideas to get this working?
↧
npm packages
Instead of building relational database in Mendix, is it possible to utilize our own APIs (in the form of npm packages) to get the data representation through Javascript function calls? In 2.2.6 of this document: https://docs.mendix.com/howto/extensibility/best-practices-javascript-actions, it says "Loading and bundling external libraries are not currently supported. Embedding library code and CSS inside the JavaScript is not ideal. Adding the library JavaScript file and CSS into the theme folder and referencing them in the index.html and the components.json is recommended.” So it seems that currently we can’t have a package.json to add and install external npm packages, but rather we have to include js libraries using script tag.
↧
↧
Automation testing in Mendix native application
We have written the automation script to one of our Mendix native mobile application. Script is written for the page to enter the two fields and two buttons. Currently, XPATH and name to find the unique property of fields and used to pass the values to input field and to perform click button action. Could able to pass the input to the fields but it is not working on click event in automation. Mendix native app does not have automation support? Because we couldn’t able to perform button clickable action in page. We are using Appium framework to do automation. Thanks!!!
↧
Feed the correct ApiKey to the Stories-API
I am trying to consume the stories API to read the sprint and stories, but, allthough $MendixApp/ProjectId does have the correct value, I keep getting the errormessage ‘Unknown API key’ in the latestError: In the doc https://docs.mendix.com/apidocs-mxsdk/apidocs/stories-api it say at every operation:
Parameter Name Parameter Type Description
ApiKey String The API Key the application uses to access the Stories API for this project. I tried at first to add an API key to the project itself: Apps → <ProjectName> → API Keys and then I tried to use the API key from my personal Mendix-account. Both gave the same response. What am I missing here? Which API key should I use?
↧
Cant we have SQLquery in microflow to query domain entity model
Cant we have SQLquery in microflow to query domain entity model like we have database connector which is used query from external database. there I have requirement to retrieve and value from different entities which are related to each. querying multiple times lead to performance issue. Please suggest. Thank You, Arun
↧
Reusing reference selectors.
I am being tasked with converting a python based data entry program into a mendix application. So far so good but I came across a problem. The python application uses a series of nested (or depent) drop downs in order to fill in data on a lower level drop down for example: [Line/fabrication area] controls the dropdowns for [Category] which controls the drop downs for [SubCategory]. There are 8 identical lines and 3 different fabrication areas, in the python program I simply had a script set in the background that allowed the lines to use the same [Category] and [SubCategory] when it read what was in the line in the name selection and change the [Category] and [SubCategory] when it read a fabrication entry. In mendix I have an entity {Line Name} (which I also use to hold the fabrication names as well) and it has a respective {Category} Entity (with a many to one association to line name) and {SubCategory} entity (with a many to one association to Category). All in reference selectors constrained to each other in order for the drop downs to be “nested” in a sense. The only issue is with the current set up I will have to create a new set of {Category} entries and {SubCategory} entries for each {Line Name} entry. I can sort of side step this issue by using the excel importer module and make an excel sheet of all the needed entries but that might not be the most efficient action. Is there a good way to set up the entities or constraints so that I can have the 8 lines use the same Category and SubCategory entities while simultaneously allowing the same reference selectors to change when a fabrication area is selected? Domain model below:
↧
↧
How we can create user (not anonymous user) for Mendix APP created ? ( we are not using mendix cloud) using aws EC2 instance for deployment
a) How we can create a user and store that user-related information in the Mendix data model. b) Any bulk creation of user method is available? How user management is supported by creating a big organization structure? c) if we are running on our own custom EC2 instance for deployment of app do we need to pay for license for created users?
↧
Add attributes to current user
I am trying to deploy a mendix application across multiple sites. Thus is have become necessary to direct users based on the site they are assigned as well as save the site that they are in to any data entry. To accomplish this I have attempted to add a “site” attribute to the [%currentUser%] but it seems I can’t do this without having to change the System.User entity but that doesn’t seem like a good idea. Is there a way I can add user info to current users?
↧
Off set limit while receiving data from SAP to Mendix through web services
Hi Team, I joined the project which is already live. We integrated with SAP and we are exporting and importing the data at regular intervals. While importing the data, we found that some import interfaces are stopped working due to other import interfaces. We have very less data for all import interfaces except one interface. We found that one import interface is receiving large amount of records and it is processing very slow and stopping other import interfaces. I checked in the web services and micro flows to find is there any off set limit set to import data. Unfortunately, I couldn’t found any limit. Is there any limit while receiving the data from SAP (Like it should process x number of records in particular interval). Help me with the off set limitations in Mendix while receiving the data from web services. Thank you. Regards, Venkatesh
↧
How to reduce database calls (associations) on page?
Hi, I have a page with a DataView which has a ListView inside it. Inside this ListView I have GroupBoxes which have a few Reference Selectors each (via Associations & non editable) inside. Once I have around 100 List items, the page loading speed decreases drastically (around 10-30sec). I think this is because of the many associations that are calling the database. Do you have any best practices/tricks on how to reduce the database calls on a page (for the associations)? Thanks a lot. Best, Peter
↧
↧
How to add stuff to shopping cart?
Hi guys i have these entity in my domain model, i want when i click “add to cart” to add something and show it to me how many stuff is in the cart and total price? So how that microflow is supposed to look? Is this domain model good?
↧
Mendix application not working in Mobile Mendix app.
Hi Everyone, I have created a Mendix application which works fine when I am using a responsive browser or a hybrid phone app online. However it’s not loading when I tried using view in the Mendix App option. As given in the instruction I have downloaded the app and scanned the QR-code(used wireless option). It keep on loading in the mobile app and not connecting. Could you please help on this? Thanks Arun
↧
Native mobile: deeplinks? applinks?
Has anyone implemented applinks with native mobile? like we did with phonegap (mycoolapp://<yourdeeplink...>) based on https://github.com/EddyVerbruggen/Custom-URL-scheme I would love to see this working with the new native mobile capability in Mendix, any experiences here?
↧
Local User Incorrect Username Password
Hi – I had added a user ID to my local environment and was able to log in. Then all of a sudden, I get incorrect username/password. I tried resetting the local user's password to no avail. Any advice? Thanks for any tips!
↧
↧
Prefill Form not showing up
I am going through the initial training and the checkbox to form with the enitity elements is not there. Is this a setting or something?
↧
Close native mobile app after user logs out
I have created a native mobile app (for both Android and Apple). This makes use of SSO with SAML. When the user logs out (using a microflow) in the native mobile app , we cancel the session, log out in SAML using the in-app browser, and then we redirect the user to an empty page with only a link to log in again (via SAML). If the user now uses his "back" button from this logged-out page, he will end up in the last page where he was before logging out. After the user does an action, he is redirected to the login page (which redirects to SAML). Can we close the app from a microflow? Or make sure the app closes when the user chooses the "back" button on the phone from the logged-out page?
↧
Pagination Widget Workaround for List View Datasource = Microflow?
Hi – the pagination widget doesn’t work if the list view data source is microflow. Any workaround to this? Can I simulate what the pagination widget does by adding buttons on the listview? Not sure how … Any tips greatly appreciated! Did search and didn’t see any leads yet
↧