Quantcast
Channel: Mendix Forum Questions
Viewing all 83469 articles
Browse latest View live

Show order list of selected customer

$
0
0
I would like to show the orders of the selected customer in the grid via an action button. For this, I have linked a microflow to this action button. In this microflow the input parameters CustomerList and Customer are automatically added. The CustomerList object contains the selected customer in the grid, but the Customer object still contains the first customer. This means that, when I am trying to retrieve orders and/or pass the Customer object to the page, incorrect data is shown. What is the best practice here? Should I remove the Customer object as input parameter and somehow retrieve it based on the customer list, or is there a way to equal the Customer object to the selected customer (CustomerList)?

AWS data lake connection in MENDIX

$
0
0
Hi, I want to connect AWS data lake API in mendix? Can we do it in Mendix?

How to find length of array inside nested array for REST api using microflow / json structure / import mapping?

$
0
0
Need  to find length of array inside nested array for REST api using microflow / json structure / import mapping

Java run time path varaible

$
0
0
HI, I am embeddeding a third-party application, and having this error   Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: java.security.AccessControlException: access denied ("java.io.FilePermission""C:\Program Files\Java\jdk1.8.0_91\jre\lib\el.properties""read")   Is there a variable for java runtime (or java home) i can use to put into the policy file?   Thanks Shannon

Online/Offline Hybrid app capabilities

$
0
0
We're currently investigating possibilities for offline capable apps in Mendix. As far as I can see from the documentation there are a lot of restrictions for offline enabled apps.  I'd like to find out possibilities for an app which is 90% online, but has a (limited) set of funcitonality that should also be available in offline mode. But if I understand the offline app restrictions correctly, an offline enabled app has all the offline restrictions even when online. Is there a way to combine an offline app with the full features of an online app? regards, Fabian

iWatch app? anyone ever tried making one?

$
0
0
Client asked what the possibilities were with mobile and wearables. I know mobile is supported, but iWatch or AndroidWatch?

Image uploading problems

$
0
0
We've been uploading pictures using the phonegap camera widget and have recently been experiencing some problems.  We keep receiving this error message, its stacktrace is below, I don't believe it is a problem with the phonegap camera widget.  In addition to this error message, we have been seeing another one that says java.lang.RuntimeException: LocalFileSystemStore:: File does not exist for key: 254240 at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.com$mendix$storage$localfilesystem$internal$LocalFileSystemStore$$getFileDocumentAsFile(LocalFileSystemStore.scala:153) If anyone could help me or point me in the right direction to look at.  This is the stacktrace of the first error message I referenced.  Thank you. Message Uploading file failed: null Stack trace java.lang.NullPointerException at com.mendix.webui.requesthandling.FileRequestHandler.doUpload(FileRequestHandler.scala:157) at com.mendix.webui.requesthandling.FileRequestHandler.handleUpload(FileRequestHandler.scala:84) at com.mendix.webui.requesthandling.FileRequestHandler.handleRequest(FileRequestHandler.scala:67) at com.mendix.webui.requesthandling.FileRequestHandler.processRequest(FileRequestHandler.scala:59) at com.mendix.externalinterface.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:69) at com.mendix.externalinterface.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:66) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) at com.mendix.externalinterface.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:72) at com.mendix.core.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:745) at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.handle(RuntimeHandler.java:41) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:748)  

How to unzip a file to process further in a MF?

$
0
0
Hi guys   I am retrieving an xml in a zip file from an endpoint. Zip is in, but need to be unzipped. Find other post with an example java code, but unfortunately this wasnt working for me.   Could anyone correct my java code or give other working solutions to unzip a file pls?   // This file was generated by Mendix Modeler. // // WARNING: Only the following code will be retained when actions are regenerated: // - the import list // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. // Special characters, e.g., é, ö, à, etc. are supported in comments. package ftpconnector.actions; import com.mendix.core.Core; import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.webui.CustomJavaAction; import com.mendix.systemwideinterfaces.core.IMendixObject; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import org.apache.commons.io.IOUtils; public class Unzip_File extends CustomJavaAction { private IMendixObject __zipfile; private ftpconnector.proxies.ImportJob zipfile; private IMendixObject __ImportFile; private ftpconnector.proxies.ImportFileDocument ImportFile; public Unzip_File(IContext context, IMendixObject zipfile, IMendixObject ImportFile) { super(context); this.__zipfile = zipfile; this.__ImportFile = ImportFile; } @Override public java.lang.Boolean executeAction() throws Exception { this.zipfile = __zipfile == null ? null : ftpconnector.proxies.ImportJob.initialize(getContext(), __zipfile); this.ImportFile = __ImportFile == null ? null : ftpconnector.proxies.ImportFileDocument.initialize(getContext(), __ImportFile); // BEGIN USER CODE ZipInputStream zis = new ZipInputStream(Core.getFileDocumentContent(getContext(), zipfile.getMendixObject())); ZipEntry ze = zis.getNextEntry(); while(ze!=null){ String filename = substringAfterLast(ze.getName(), "/"); ImportFile zipEntryDocument = new ImportFile(getContext()); // set attributes zipEntryDocument.setName(filename); // use intermediate memory stream because storeFileDocumentContent will close the zis stream. ByteArrayOutputStream baos = new ByteArrayOutputStream(); IOUtils.copy(zis, baos); Core.storeFileDocumentContent(this.getContext(), zipEntryDocument.getMendixObject(), new ByteArrayInputStream(baos.toByteArray())); zipEntryDocument.commit(); ze = zis.getNextEntry(); } zis.closeEntry(); zis.close(); // END USER CODE } /** * Returns a string representation of this action */ @Override public java.lang.String toString() { return "Unzip_File"; } // BEGIN EXTRA CODE public static String substringAfterLast(String str, String separator) { if (str.isEmpty()) { return str; } if (separator.isEmpty()) { return str; } int pos = str.lastIndexOf(separator); if (pos == -1 || pos == (str.length() - separator.length())) { return str; } return str.substring(pos + separator.length()); } // END EXTRA CODE }  

Error message "Could not build your widgets..." pops up when running project locally (Mendix 6.10.12)

$
0
0
Hi all, When trying to run a Mendix 6.10.12 project locally, the following error message pops up: Could not build your widgets. This may be due to outdated widgets in your project. You can check which widgets failed to build by clicking Tools > Check Widgets. I did what the error message suggested and used the tool Check widgets. This resulted in a list with widgets that failed to build (can't share the list). A message suggested to update them. But all widgets are up to date, because other team members can run the same project fine locally. Didn't know what to next. A Google result suggested to look at the contents of the file project > deployment > log > build_webui_bundle_log.txt Below the contents of this file. I renamed the project name to Projectname and the widgets to Widget1, ... Running "generate:profile" (generate) task \\Mac\Home\Documents\Mendix\Projectname\deployment\widgets.config.json [ 'WidgetName1.widget.Widget1', 'WidgetName1.widget.Widget2', 'WidgetName1.widget.Widget3' ] Running "generate:javascript" (generate) task \\Mac\Home\Documents\Mendix\Project\deployment\widgets.config.json [ 'WidgetName1.widget.Widget1', 'WidgetName1.widget.Widget2', 'WidgetName1.widget.Widget3' ] Running "dojo:dist" (dojo) task Building Dojo... >> Error Warning: Task "dojo:dist" failed. Use --force to continue. Aborted due to warnings. I don't know what to do with the contents of this file. Does anyone know how to fix this? Thnx in advance!

How to change Modeler 7.13.1 Microflow Zoom = 200% Default?

$
0
0
In the modeler 7.13.1 if a create a new MF, then the room % is set to 200% by default. I find it annoying(may be only me) and keep changing it back too 100% in my screen resolution case. Is there a way I can change this default somewhere? I tried to if there is a config in the filesystem(post checking the modeler utilities) Any help would be really appreciated!

Xpath contraint in Many to Many

$
0
0
I use two entities A and B which have a many-to-many association. When I display dataview of an A record I also want to show associated B records. Ofcourse I could  use association but hen I dont have selections fields available in the B datagrid for whatif questions. So I would like to use X-path on the B-Grid but I cant get it working. Can I test the B-grid in its  xpath the  reference to the  '[%CurrentObject%]' from the  enclosing A-object?  

call nanoflow with param different from context

$
0
0
Hi everyone, There is a new api in mx.data to call nanoflow. Supposed i create a new non-persistant mxObject and want to call a nanoflow which accepts the object as param. How could I do this with the new Api? Should I create a new MxContext and set context to it before call the nanoflow?  Suppose I have a list, does the nanoflow support it? Best regards,

List operation equal: More than one value

$
0
0
I would like to perform a list operation to check for objects with a member enumeration value A or B. Is it possible to use the equal list operation and define more than one value to check on? And a related question: Is it possible to perform a 'not equal' list operation?

Mendix Mysql connect?

$
0
0
Can you guide me connecting mysql to mendix I have already installed external database connector  

Pass the Data Grid selection

$
0
0
How I can pass the data grid selected item as a parameter plus the page parameter to microflow  called via button in the bottom of the page, I need to put the button at the button not on the top of the data grid ???

SAML issue with hybrid app (phonegap)

$
0
0
Hi guys,   We have succesfully integrated SAML into our web app. Next we followed this guide to enable SAML login with a PhoneGap app: https://docs.mendix.com/howto/mobile/implement-sso-on-a-hybrid-app-with-mendix-and-saml 1. We build a manual hybrid app package 2. Changed the Entr.js like to this:   var MxApp = require("mendix-hybrid-app-base"); MxApp.onConfigReady(function(config) { // Perform any custom operations on the dojoConfig object here var samlLogin = function() { var samlWindow = cordova.InAppBrowser.open(window.mx.remoteUrl + "SSO/", "_blank", "location=no,toolbar=no"); var exitFn = function(){ navigator.app.exitApp(); }; samlWindow.addEventListener("exit", exitFn); var cb = function(event) { if (event.url.indexOf(window.mx.remoteUrl) == 0 && event.url.indexOf("SSO") == -1) { samlWindow.removeEventListener("loadstop", cb); samlWindow.removeEventListener("exit", exitFn); samlWindow.executeScript({ code: "document.cookie;" }, function(values) { var value = values[0] + ";"; var token = new RegExp('AUTH_TOKEN=([^;]+);', 'g').exec(value)[1]; window.localStorage.setItem("mx-authtoken", token); samlWindow.close(); if (window.mx.afterLoginAction) { window.mx.afterLoginAction(); } }); }; } samlWindow.addEventListener("loadstop", cb); } config.ui.customLoginFn = samlLogin; }); MxApp.onClientReady(function(mx) { // Perform any custom operations on the Mendix client object here }); // Uncomment this function if you would like to control when app updates are performed /* MxApp.onAppUpdateAvailable(function(updateCallback) { // This function is called when a new version of your Mendix app is available. // Invoke the callback to trigger the app update mechanism. }); */ 3. Then I have created a initial build with $ npm install # install dependencies $ npm run package # prepare `build` directory for ARM $ npm run platform:ios # setup for iOS Changed the settings to my app When compiling the app I got these errors; Failed to restore plugin "cordova-build-architecture" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin https://github.com/MBuchalik/cordova-build-architecture.git#v1.0.3 via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: cmd: Command failed with exit code 1 Error output: npm ERR! code ENOGIT npm ERR! No git binary found in $PATH npm ERR! npm ERR! Failed using git. npm ERR! Please check if you have git installed and in your PATH. Failed to restore plugin "cordova-plugin-cookieemperor" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin https://github.com/rtk/cordova-cookie-emperor.git via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: cmd: Command failed with exit code 1 Error output: npm ERR! code ENOGIT npm ERR! No git binary found in $PATH npm ERR! npm ERR! Failed using git. npm ERR! Please check if you have git installed and in your PATH. Failed to restore plugin "cordova-sqlite-storage-pgb" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin https://github.com/mendix/Cordova-sqlite-storage-pgb.git#storage-master via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: cmd: Command failed with exit code 1 Error output: npm ERR! code ENOGIT npm ERR! No git binary found in $PATH npm ERR! npm ERR! Failed using git. npm ERR! Please check if you have git installed and in your PATH. npm ERR! A complete log of this run can be found in: But the build finished and I have tried that.  Now are we at the point that there is no request sent and no response is received. Probably the SAML module is touched but not working correctly due to the guide, compliling, plugins or so. The problem is that we dont see the initial ADFS login screen to fill in the credentials, because of that I think, there could be no request build. So who can help me to get this stuff done?  

How to use the field "Equals" of the List Operation "Filter"?

$
0
0
Hi to all of you! I put a Filter Operation in my microflow (Activity -> List Operation ->"Filter"). Now the "Equals" field can't be empty, of course. But which expressions are accepted in this field?  Just in case someone may have an idea - my goal is to create a general button for several units on a page to filter a list on another page for each of those units. E.g. By clicking on the button of "Marketing" or "Finance" I want to retrieve an already filtered list of this unit on another page. Maybe someone knows whether this is even possible through the "Equals" field and in case it is, how it can be expressed that the clicked Unit is passed to the other page and on that page, that the list of units is immediately filtered by the passed Unit. This is the "equals" field I don't know the expressions for: This is the page containing the units and the button "Open Planning" that should pass you to the "Planning page" and filter the data by the clicked unit, e.g. Finance: And this is the Planning Page, where - after clicking the button on the Units-Page - the list should be filtered by "Finance" (but isn't on the screenshot, "Marketing" is also displayed which shouldn't be the case): Many thanks to all of you who might have an answer for me, especially regarding the filling of the "Equals"-field! Laura

how to swith java version from 1.7 to 1.8 when creating deployment package

$
0
0
We've changed the java version during development from 1.7 to 1.8. now, when we want to deploy, the cloud-generation will end up in error, because the generation part is done in java 1.7 and not in 1.8 as set in the modeler. Is there a way to switch java version in the cloud for use with the "create package from teamserver" button?    

Can't connect to local MySQL database

$
0
0
l want to use a local MySql database to test the behavior of my application but I'm not sure about how I configure It. Haven't found anything about it in the documentation as well. I tried setting the url as jdbc: mysql://127.0.0.1:3306/databasename and setting the databasename in the Database Name property but it throwed the exception "com.mendix.systemwideinterfaces.MendixRuntimeException: Invalid port number in JDBC data store URL: '3306/databasename'". Anybody knows the right way to configure it?

Send Email error

$
0
0
Hi, I downloaded the Email module and tried to test it. Only i get this error. When i run it locally and test it, it works. So when i run it in the cloud i got a error. I tried it with the IMAP configurations of gmail and also my mendix email.
Viewing all 83469 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>