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

Upload files to the Mendix cloud (push)

$
0
0
Hi, I was wondering if it is possible to upload files to the Mendix cloud. This files should be processed by our Mendix application installed in the Mendix cloud. We would like to automate the proces of uploading. At this moment it not possible to use Mendix to pull the files from our location. We have to push the files to a location on the Mendix server. In the app we will then have a MF which should process these files. If it is possible, can you explain how to do this?

FilePermission exception in custom Java action

$
0
0
Hi all, I am writing a custom CSV download in which the user has more flexibility than in Mendix. I want to make sure that the CSV is UTF-8 'signed' so it opens in Excel with special characters showing properly. This is a common problem in Java CSV exporting and importing in Excel. I found a solution on stackoverflow to add some characters in the outputstream before the stringwriter adds the content. So, the first line below creates the stacktrace after it:   FileOutputStream os = new FileOutputStream(fileName); os.write(0xef); os.write(0xbb); os.write(0xbf);   In this Java code, Mendix blocks me from writing to an already created file (fed as inputparameter to Java action) and throws an exception with stacktrace: com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.security.AccessControlException: access denied ("java.io.FilePermission""Custom CSV with sorted subset of columns.csv""write")    at OQL_modeler.IVK_parseCSV_FromList (JavaAction : 'JA_parseCSV_FromList') Advanced stacktrace:    at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143) Caused by: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.security.AccessControlException: access denied ("java.io.FilePermission""Custom CSV with sorted subset of columns.csv""write")    at com.mendix.basis.component.InternalCore.execute(InternalCore.java:535) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.security.AccessControlException: access denied ("java.io.FilePermission""Custom CSV with sorted subset of columns.csv""write")    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:178) Entity access is configured and the user has all CRUD priviliges on that entity. Does anybody know how to fix this? Another workaround would also be appreciated ;).

Inside a microflow how to find whether the runtime is SAP cloud or not? Same question for Mendix cloud. Trying to avoid using custom constants.

$
0
0
Inside a microflow how to find whether the runtime is SAP cloud or not? Same question for Mendix cloud. Trying to avoid using custom constants.

Ganttchart error

$
0
0
why is it that when i run my app, and i feed in data into the various fields of the gantt chart, it shows in red that COULD NOT CREATE WIDGET GOOGLEGANTT.WIDGET.GOOGLEGANTT?  

Set Dynamic CSS value by Object Attribute string value?

$
0
0
I was pretty sure you could set CSS attribute values by the attribute value of an entity object, but I can't find again how to set this up. Let's say you have a Status object with the attribute 'Hex (string)' that contains '#f08245', then that value should be applied to the sibling/specified DOM element as 'color'. So my DOM element get's the CSS values 'Color: #f08245'. Note: I want to use string values, not enum's. I thought this could be done with CSS selector helper widget or EnumClass, but I haven't been able to. Am I missing something or does anyone have an idea how to make this happen?

Where to use REST in accordance to Appservices

$
0
0
For what purposes is REST most usefull. When I see the release demo it can do everything. In the documentation it is statet that appservices should be the first choice. Where does REST come into play? I thought it was mostly used to retrieve information in a simple way.  

Stackoverflow error when synching offline app

$
0
0
We have an offline tablet app in which users can fill out forms & add extra objects to these forms. When 1 of the users tried to sync data from the offline tablet app we saw the following in the logs: 2018-07-04T23:39:12.69+0000 [APP/PROC/WEB/0]   CRITICAL - ActionManager: Error in execution of monitored action 'commit' (execution id: 1530747545453-331, execution type: CLIENT) 2018-07-04T23:39:12.69+0000 [APP/PROC/WEB/0]   CRITICAL - ActionManager: java.lang.StackOverflowError: null What could be a cause for this? Where should I start looking? Just before this error, there's the following: 2018-07-04T23:39:11.68+0000 [APP/PROC/WEB/0]   WARNING - RequestStatistics: Request state size of 348 objects exceeds the threshold of 100 objects. Request details: type 'commit' in session 'e06be9a2-35c1-48b5-ae60-69ddc52f87bc'. State consists of:  2018-07-04T23:39:11.68+0000 [APP/PROC/WEB/0]    * ConfinedSpaces.AtmosphereTesting: 14 objects 2018-07-04T23:39:11.68+0000 [APP/PROC/WEB/0]    * ConfinedSpaces.ConfinedSpaces: 2 objects 2018-07-04T23:39:11.68+0000 [APP/PROC/WEB/0]    * ConfinedSpaces.ConfinedSpacesAccess: 57 objects 2018-07-04T23:39:11.68+0000 [APP/PROC/WEB/0]    * ConfinedSpaces.ConfinedSpacesForm: 58 objects 2018-07-04T23:39:11.68+0000 [APP/PROC/WEB/0]    * ConfinedSpaces.PreworkAssessment: 57 objects 2018-07-04T23:39:11.68+0000 [APP/PROC/WEB/0]    * ConfinedSpaces.RescueConsiderations: 57 objects 2018-07-04T23:39:11.68+0000 [APP/PROC/WEB/0]    * OfflineTablet.OfflineActivity: 2 objects 2018-07-04T23:39:11.68+0000 [APP/PROC/WEB/0]    * OfflineTablet.OfflineLocation: 2 objects 2018-07-04T23:39:11.68+0000 [APP/PROC/WEB/0]    * SiraFieldToolkit.ActivityPhoto: 99 objects Could this be related?

User is not found in a subpath of a path in LDAP

$
0
0
Hi guys   One of our app is using the old LDAP module whereby we specified a (main)path ( OU=Users,OU=Company,DC=ad,DC=local ) where we want to authenticate the user against. Now certain user isn't found in this path and can not login with LDAP. When looking to the AD groups where the user is allocated in, i see a lot as a sub path of this main path configured in LDAP like CN=GroupName,OU=RES,OU=Groups,OU=Company,... When using the newer LDAP module and using sync from groups, I can find him in the subpath. So, I am wondering: 1 - Do I make a wrong assumption by expecting all the users from sub paths of the main path when syncing in the old module? 2- When including manually the specific subpath in the old LDAP, there are no user founds when syncing..how is this possible? 3 -Any other idea's?

Sap Authentication XSUAA module, - error in its startup microflow

$
0
0
When using Sap Authentication XSUAA module, and setting its startup microflow in app in SAP cloud, the app crashes on startup. The module's latest version was taken. The logs: CRITICAL - M2EE: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.decodeBase64(Ljava/lang/String;)[B at com.auth0.jwt.JWTDecoder.(JWTDecoder.java:32) at sapauthentication.actions.StartXsuaaIntegration.retrieveClaimsFromAuthorityAccessToken(StartXsuaaIntegration.java:195)

Blank page after logging in via XSUAA

$
0
0
Hi again to all of you! I've got the following problem:  I've deployed my app without any security turned on to the cloud which was no problem. After turning on security and adding the Odata connector and the XSUAA Module to my app, I get redirected to a blank page by logging in with my SAP credentials. I simply click on "Login via XSUAA", insert my credentials and get redirected to a blank page! Locally, it goes well. As well, when e.g. I insert the wrong password, it is recognized and it won't direct me anywhere (so the synchronisation with SAP obviously is fine). I already did the mapping of the roles within my Sap cloud account, but I've also tried it without changing anything in my cloud account. The problem is, a colleague of mine can accomplish the login via XSUAA module without any mapping, so this doesn't seem to be the problem (as far as I see). The log data to the app is the following: I guess the yellow lines are problematic here, but I am not sure how to solve it - did anyone of you already had this and knows how to solve it?   I am grateful for any tips! Thanks in advance, Laura   Edit: This is the list of all objects in my userlib folder:   Edit 2 SOLUTION: I took the userlib content of another app and just copied it into the folder of my inital app (of course, before that, I deleted the content of it). After that, the error doesn't occur anymore! Mendix runtime starts succesfully! The question now is:  Why did the content of the original userlib folder produce such an error (respectively, why did it grow so big?) The content of the userlib folder with which the error didn't occur anymore was the following: Edit 3 : When importing the Mx reflection / excel importer / exporter module, the userlib changes so that no XSUAA is possible anymore...

mx-scrollcontainer-right delete inline width

$
0
0
I have a scroll container with a main section and a sidebar. Is it possible to style the width with CSS? I can only choose from percentage or pixel?  

Fingerprint authentication

$
0
0
Hi, I'm trying to get the authentication from our hybrid app working with fingerprint next to pincode. I found the git from the hybrid-app-base (with the fingerprintView.js) but i'm stuck on getting it to work. If I'm right the only thing I need to do is compile with node.js and apply my own settings and styling. Except now the hybrid app isn't asking for any pincode after succesfully passing the username and password. Am I missing something? Or is there any other way to get fingerprint authenitcation working on hybrid apps? Thanks!

Session Timeout doesnt Redirect to Login Page

$
0
0
Hi, I have used the following settings for a session timeout. SessionTimeout                - 1800000 ClusterManagerActionInterval   - 900000 EnableKeepAlive               - false   However, the functionality works, but the page wont get refreshed and redirect to the login page automatically. Only if i do some actiivity(like, switching between tabs or moving the mouse), is when the page gets refreshed. Any help would be highly appreciated.   Thanks, Karthik SM

Amazon S3 as file StorageService with custom ObjectKeys

$
0
0
Hi everyone! I've configured Mendix app to store files on Amazon S3 cloud by putting configuration "setting com.mendix.core.StorageService" = "com.mendix.storage.s3" Everything works fine, but the problem is that files are stored in amazon bucket's root folder with names like "123e4567-e89b-12d3-a456-426655440000". It's because when file is saving to the cloud System.FileDocument internal attribute "__UUID__" is used as ObjectKey (filepath) of amazon file. Question: is it possible to use custom string as ObjectKey of files when using com.mendix.storage.s3 as StorageService? P.S. I've tried Amazon S3 Connector from app store, it works fine and custom ObjectKeys can be used, like "folder1/folder2/somefile.txt". But right now using previously mentioned implementation by setting StorageService is the only option.

Access rule violation detection

$
0
0
Hey guys,  I've just applied Access Rules to my project to limit what Tasks a user can see. If someone emails a link to a Task that another user shouldn't have access to, the system takes them straight to the homepage. Is there any way to handle this access violation more gracefully? Ideally I'd like to have a screen that says "You do not have permission to access this item." I've noticed the below network call in Chrome, and I guess I could find some way to interact with that, but I'm hoping I don't need to do any black magic for this. 

Model SDK: Error: Invalid container ID: undefined

$
0
0
When loading large units with the Mendix model SDK, I regularly receive the following error: C:\app\node_modules\mendixmodelsdk\dist\sdk\internal\abstract-model.js:274 throw new Error("Invalid container ID: " + containerId); ^ Error: Invalid container ID: undefined at Model.AbstractModel._resolveContainer (C:\app\node_modules\mendixmodelsdk\dist\sdk\internal\abstract-model.js:274:19) at C:\app\node_modules\mendixmodelsdk\dist\sdk\internal\abstract-model.js:213:23 at executeAction (C:\app\node_modules\mobx\lib\mobx.js:915:19) at Object.runInAction (C:\app\node_modules\mobx\lib\mobx.js:1161:12) at Object.callback (C:\app\node_modules\mendixmodelsdk\dist\sdk\internal\abstract-model.js:211:20) at C:\app\node_modules\mendixmodelsdk\dist\sdk\internal\model-server-client.js:248:30 at Request._callback (C:\app\node_modules\mendixmodelsdk\dist\sdk\internal\transportation.js:148:17) at Request.self.callback (C:\app\node_modules\request\request.js:186:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) The promise I use to load the domain model is not rejected, and when I add a try/catch block, the error is not caught. So currently I am not able to handle this error and my application basically hangs.   I'd like to know what causes this error, how to prevent it, and how to handle it (catch it, reject the load promise) so that my application does not crash.   I am using mendixmodelsdk version 4.8.0 and mendixplatformsdk version 4.0.0. I test this with a mendix 6.2.1 application, and I try to load a single domain model with 389 entities and 764 associations. The error does not always occur. It occurs more often when I try to load more than 1 domain model in the application.   import { MendixSdkClient, Project, loadAsPromise } from "mendixplatformsdk"; const client = new MendixSdkClient(process.env.mendixUsername, process.env.mendixApiKey); const project = new Project(client, "id", "name"); project.createWorkingCopy().then(workingCopy => { console.log("Working copy Mendix version: " + workingCopy.model().mxVersionForModel.toString()); return loadAsPromise(workingCopy.model().allDomainModels().filter(dm => dm.containerAsModule.name == "module name")[0]); }).then(dm => { console.log("Loaded domain model"); }).catch(err => { console.log(err); });  

Retrieving an entity from DB by model reflection module.entityName + Xpath string through JAVA

$
0
0
I'm trying to retrieve an entity by it's name, provided through Model reflection and an additional XPath constraint inside a JAVA action. The problems I'm having is that the type of object needs to be provided through the input parameters. As it uses that to define what the resulting object list should be, for example you define the type parameter "AnyObject", which is used in the returned list. Unfortunately Mendix generates a bunch of errors if you try to circumvent the definition of "AnyObject" as an input parameter for the java action. Can anyone think of a solution to work around this?

Feedback button behind scrollbar

$
0
0
Just like the Feedback widget on this forum page, i have one for my app.  But somehow, some people find their feedback button behind the scrollbar when a page is large (and scrollable). I can not find a reason, some people have this issue, some don't. It is not a monitor issue or resolution issue. Maybe someone has a solution..  

'Grey out' specific rows in a list view based on an attribute value?

$
0
0
Hi guys,  I am using a list view to display lines from a code of conduct, where each row in the list view also contains a few action buttons (such as 'Complete Control Assessment'). I would like to 'grey out' certain lines of the list view based on an attribute value ('business type') so that the user is still able to read the line but it is clear that the specific line is not applicable to their business and no action is needed. I understand it is possible to hide certain lines based on an attribute value, but what about 'greying out'?  Further from this, I would also like there to be a button in the greyed out row which you can select in order to 'override' the pre-populated applicability of the line, add some text to justify why you want to override the applicability of the line, and then have the line formatting change back to 'white' so that you are able to access the action buttons.  If you are able to help with one or both of these questions that would be great! Thank you in advance. 

Fix WKWebView doesn't layout properly at launch on iPhone X

$
0
0
Hi, today I learned that the hybrid app by default uses the WKWebView plugin via cordova-plugin-wkwebview-engine-nextgen, instead of the Cordova plugin available here: cordova-plugin-wkwebview-engine I would like to know the difference  between the two plugins. The reason I'm asking is because when rotating my app on iphone x, then the content gets obscured. And the Cordova plugin has a fix for this. Do you have more info on the WKWebView plugin?
Viewing all 83469 articles
Browse latest View live


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