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

Microflow Debugger broken

$
0
0
When following these steps: 1. Run the project 2. Set a breakpoint on a microflow action 3. Run the microflow The microflow is not run, instead I get the following error in my console: Log level: Error Log Node: MicroflowDebugger The stack trace is: java.lang.NullPointerException: null at com.mendix.modules.debugger.internal.DebuggerJSONGenerator$.addMxObjectProperties(DebuggerJSONGenerator.scala:127) at com.mendix.modules.debugger.internal.DebuggerJSONGenerator$.$anonfun$createMicroflowVariables$1(DebuggerJSONGenerator.scala:89) at scala.collection.immutable.HashMap.foreach(HashMap.scala:1058) at com.mendix.modules.debugger.internal.DebuggerJSONGenerator$.createMicroflowVariables(DebuggerJSONGenerator.scala:81) at com.mendix.modules.debugger.internal.DebuggerJSONGenerator$.createPausedMicroflowObject(DebuggerJSONGenerator.scala:64) at com.mendix.modules.debugger.internal.DebuggerJSONGenerator$.createEventObject(DebuggerJSONGenerator.scala:38) at com.mendix.modules.debugger.internal.DebuggerHandler.$anonfun$processJsonRequest$8(DebuggerHandler.scala:129) at scala.collection.Iterator$$anon$9.next(Iterator.scala:575) at scala.collection.mutable.Growable.addAll(Growable.scala:62) at scala.collection.mutable.Growable.addAll$(Growable.scala:59) at scala.collection.mutable.ArrayBuffer.addAll(ArrayBuffer.scala:147) at scala.collection.mutable.ArrayBuffer.addAll(ArrayBuffer.scala:40) at scala.collection.mutable.ArrayBuffer$.from(ArrayBuffer.scala:265) at scala.collection.mutable.ArrayBuffer$.from(ArrayBuffer.scala:253) at scala.collection.IterableOps.map(Iterable.scala:671) at scala.collection.IterableOps.map$(Iterable.scala:671) at scala.collection.AbstractIterable.map(Iterable.scala:920) at com.mendix.modules.debugger.internal.DebuggerHandler.processJsonRequest(DebuggerHandler.scala:129) at com.mendix.modules.debugger.internal.DebuggerHandler.processRequest(DebuggerHandler.scala:50) at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:46) at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:76) at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:73) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:79) at com.mendix.basis.impl.MxRuntimeImplBase.processRequest(MxRuntimeImplBase.java:953) at com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service(RuntimeServlet.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1631) at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1369) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:489) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1284) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:501) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:272) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) at java.base/java.lang.Thread.run(Thread.java:834) I've uninstalled Mendix (8.14), deleted the project folder from my disk and restarted my computer. After that I installed Mendix (8.14) again, opened the project and used the local database of a colleague of mine. This did not solve the problem. I'm not sure what to do next, but as for now I cannot debug anything. Does anyone have any suggestions?

Can we snapshot incoming API data on mendix cloud?

$
0
0
My local app takes data from external API and same data I want to display when app runs on Mendix Cloud (Sandbox). Is their any way to display API data on cloud (hybrid mobile Online App) ?

How to read the associated objects from a dataview object in a Widget?

$
0
0
Hi   We are playing with a dojo widget to retrieve some data from associated objects so we can use it in javascript. Can some help us with an example how to do that? Can we do it in javascript or should we use a datasource nanoflow in the widget for this?

Advanced Developer Exam

$
0
0
Hi everybody. Can someone tell me, if the advanced developer exam can be done remotely.

Showing complete content of bottom sheet

$
0
0
Hi all,  I have a custom modal bottom sheet which pops up when all tasks are checked. My problem is that it is only showing the top part of the content. With a scroll container, the rest of the content can be viewed but I want that it opens showing the complete image and button. Does somebody know how to fix this? Thanks! Kolien   

Entity Access Rule -XPATH ISSUE : Need Solution

$
0
0
Hi, I have the domain model entity structure like this:  For every user, There is an entity account and one account object is associated with multiple APL objects. Those APL objects are getting associated with different location objects and each APL object have attribute’s (FromDate and ToDate). In the application level there are thousands of case records which are associated with different locations, Now I want to filter out those case records (by restricting the entity case access rule XPATH) which are associated with those locations, User account APL object is associated with. And also those fromDate and toDates range defined for each APL. So the problem which i am facing is listed below:   I have 2 User’s like, Ms1 and Ms2 and one location like london. Ms1 user APL object has fromDate mentioned as 9/1/2020 and Ms2 user APL object has date mentioned as 8/28/2020. So before adding the Ms2 user rules, If i login to Ms1 user, it’s filtering out cases properly on the basis of date range’s for london location. Now, If i add Ms2 User Rule for same location (london) with different date range’s, The Ms1 user filtered out results are getting overriding with the Ms2 user date range rules.   Please help me by checking the entity rule xpath issue shown below: [     Deactivated = 'false' and MasterData.CPL_Case/MasterData.CPL[Deactivated = 'false']      [              (MasterData.CPL_Location/MasterData.Location/Portal.APL_Location/Portal.APL/fromDate = empty                         or createdDate >= MasterData.CPL_Location/MasterData.Location/Portal.APL_Location/Portal.APL/fromDate)                  and                 ( MasterData.CPL_Location/MasterData.Location/Portal.APL_Location/Portal.APL/toDate = empty                         or createdDate <= MasterData.CPL_Location/MasterData.Location/Portal.APL_Location/Portal.APL/toDate)                 and MasterData.CPL_Location/MasterData.Location/Portal.APL_Location/Portal.APL[LocOnly='true']                      [                     Portal.APL_Account='[%CurrentUser%]'                 ]                 ]                                ] Here, CPL = Case Details object APL = APL object Account = Account object Location = Master Data Location object        

Issue with Multi-Tenant Administration module. Can't save new TenantUser when logged in with TenantAdmin role.

$
0
0
I have an issue where I have configured a Tenant and created a user with role ‘TenantAdmin’. When logged in as TenantAdmin, I attempt to create a new TenantUser from the MyTenantUsers page. Mendix runtime throws an error and the app freezes when trying to select a Language or TimeZone from the TenantUser_New popup page. Has anyone encountered this issue ?       Stack Trace: com.mendix.webui.WebUIException: Applying change for 'System.User_Language' of object with id '26458647810804265' (MultiTenantAdministration.TenantUser) failed for security reasons. No read access for changed member.     at com.mendix.webui.requesthandling.helpers.StateHandling.$anonfun$addChangesToState$4(StateHandling.scala:126)

How to generating a Android APK

$
0
0
Hi All, I need to generate an Android APK, How to generate it.  and APK generation is there any restrictions we need to bey an Enterprise addition?

Apk generated using Android studio is not initializing?

$
0
0
Hi everyone, I need to generate an apk file of my hybrid mobile app mendix project and have done so using the following instructions: https://docs.mendix.com/developerportal/deploy/mobileapp#doing-it-yourself  (Since Adobe PhoneGap is no longer available i have used the Doing it Yourself documentation) As given in the instructions I have followed all the steps and the apk has been generated successfully but im getting this error:       I have tried building and rebuilding multiple times but the above problem persists. For a detailed view of what I did: https://writer.zohopublic.com/writer/published/cpuhw960c9247657841f1b88fc46a56ccf7c8 Thanks in advance for any help that can be given :) Regards, Anirudh

Native Builder "prepare" command fails at creating the github repo

$
0
0
  Hi Gurus,   i’m trying to build a native mobile package for the first time, but the creation of the github repo fails. i’ve tried many combination for the mendix version argument : 8.13 / 8.13.1 etc… i’ve removed the names in the code below, but it’s just one word, lower case, no space, no special char…   Any ideay about this error ?  422 Unprocessable Entity Updating ref heads/master for repository NicolasBRUNAUD/... [github] Unable to update ref heads/master for repository NicolasBRUNAUD/      _ _ _ _ ____ _ _ _ | \ | | __ _| |_(_)_ _____ | __ ) _ _(_) | __| | ___ _ __ | \| |/ _` | __| \ \ / / _ \ | _ \| | | | | |/ _` |/ _ \ '__| | |\ | (_| | |_| |\ V / __/ | |_) | |_| | | | (_| | __/ | |_| \_|\__,_|\__|_| \_/ \___| |____/ \__,_|_|_|\__,_|\___|_| [github] Verifying access token... [github] Access token valid for NicolasBRUNAUD [github] Retrieving repository NicolasBRUNAUD/... [github] Repository NicolasBRUNAUD/ could not be found... [github] Retrieving Native Template version for 8.13 [github] Retrieving contents of file mendix_version.json... [github] Creating new repository from template mendix/native-template... [github] Downloading archived repository ref tags/v5.0.2 from mendix/native-template... [github] Creating new repository, for NicolasBRUNAUD... [github] Creating git tree items for new repository... [github] Creating new tree... [github] Creating new commit on NicolasBRUNAUD/ with sha ee619cfc9896bb3ea8fd7918b7625b74d913a2d7... [github] Updating ref heads/master for repository NicolasBRUNAUD/... [github] Unable to update ref heads/master for repository NicolasBRUNAUD/ [github] Unable to create new repository from template repository [github] Please delete your repo manually and try again [github] Repo url: https://github.com/NicolasBRUNAUD//settings { HttpError: Reference does not exist at fetch.then.response.text.then.message (X:\snapshot\native-oven\node_modules\@octokit\request\dist-node\index.js:66:23) at process._tickCallback (internal/process/next_tick.js:68:7) name: 'HttpError', status: 422, headers: { 'access-control-allow-origin': '*', 'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset', connection: 'close', 'content-length': '122', 'content-security-policy': 'default-src \'none\'', 'content-type': 'application/json; charset=utf-8', date: 'Fri, 02 Oct 2020 07:47:50 GMT', 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', server: 'GitHub.com', status: '422 Unprocessable Entity', 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', vary: 'Accept-Encoding, Accept, X-Requested-With', 'x-accepted-oauth-scopes': 'repo', 'x-content-type-options': 'nosniff', 'x-frame-options': 'deny', 'x-github-media-type': 'github.v3; format=json', 'x-github-request-id': 'C79E:E401:1FA63FA1:25BEE874:5F76DB26', 'x-oauth-scopes': 'repo', 'x-ratelimit-limit': '5000', 'x-ratelimit-remaining': '3815', 'x-ratelimit-reset': '1601625255', 'x-ratelimit-used': '1185', 'x-xss-protection': '1; mode=block' }, request: { method: 'PATCH', url: 'https://api.github.com/repos/NicolasBRUNAUD//git/refs/heads/master', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'octokit.js/16.28.7 Node.js/10.15.3 (Windows 10; x64)', authorization: 'token [REDACTED]', 'content-type': 'application/json; charset=utf-8' }, body: '{"sha":"3375282247e25158c6bd26b4720a7552cb5b2dec","force":true}', request: { hook: [Function: bound bound register], validate: [Object] } }, documentation_url: 'https://docs.github.com/rest/reference/git#update-a-reference' } set native_builder_path=%~dp0.\Native Builder\native-builder-v3.2.0 set JAVA_HOME=C:\Program Files\AdoptOpenJDK\jdk-11.0.3.7-hotspot set mxbuildpath=C:\Program Files\Mendix\8.13.1.5182\modeler\mxbuild.exe set githubaccesstoken= set appcenterapitoken= set appcenterorganization=NicolasBrunaudDemo set mendixversion=8.13 set projectname= set projectpath=D:\_MendixProjects\-main\.mpr set runtimeurl=https://-sandbox.mxapps.io set appname= set appidentifier=com.mendix. cd /d "%native_builder_path%" set prepare_full_command=native-builder.exe prepare --verbose --project-name "%projectname%" --java-home "%JAVA_HOME%" --project-path "%projectpath%" --mxbuild-path "%mxbuildpath%" --github-access-token %githubaccesstoken% --appcenter-api-token %appcenterapitoken% --appcenter-organization "%appcenterorganization%" --runtime-url "%runtimeurl%" --app-name "%appname%" --app-identifier "%appidentifier%" --mendix-version %mendixversion% echo %prepare_full_command% echo. %prepare_full_command%  

How to increase upload speed for Mendix cloud?

$
0
0
We have built a simple application uploading big files (up to 300 MB) to Mendix with the standard upload control. When testing we see that the upload speed is limited to 50 Mbps. Is there a way to increase this limit?   We now use Azure blob storage as storage layer, but the limit does not seems to be dependent on the storage layer. 

Differense between "New local user" and "New web service user"?

$
0
0
What is the difference between "New local user" and "New web service user" on the account overview page?

Accessing Page parameter inside data grid

$
0
0
Hi all, I am trying to access the data of page parameter inside data grid, I have a dataview which has page parameter with entity A and inside that I have a datagrid with entity B. Now I want to use the page parameter to fetch data from database, but I am not able to use the page parameter in data grid. I also tried to do it with %CurrentObject%, but it is not giving anything. Please help me out.    

Getting error in sandbox when creating file -  The AWS Access Key Id you provided does not exist in our records

$
0
0
Full error message:  The AWS Access Key Id you provided does not exist in our records. (Service: Amazon S3; Status Code: 403; Error Code: InvalidAccessKeyId; Request ID: The app is on sandbox running fine for a few months then suddenly stopped working.   Any clues as to what is going on and what I can do about it? Things I tried: * redeploy      

How get AD User for Login and how to pass Authentification Cookie for Basic Auth (REST Call)

$
0
0
Hello, Wer are using Basic Authentification for REST Calls in our COMOS Software. Therefore, bevor a Call to our REST API, we have to call a login function which needs username and passwort 1. How can I get the Windows Active Directory Username and Passwort and pass it to the REST Call? The browser can somehow retrieve it In Mendix, can it be only hardcoded? Or can I get the information somewhere from a variable?   2. How can I pass data from the authentification cookie to the actual REST API function? It has to be in the HTTP Header as “Authentification” It was set in the Login function but I do not know how I can get the header which was returned.   In Postman it would look like follows (Key ‚Authorization‘):

Pushnotifications module, scheduled event hanging

$
0
0
We are on Mx 7.23.7 and using pushnotifications connector version 3.0.1 Several times per week we send about 7000 pushnotifications to Android and iOS devices. For Android FCM has been configured, for iOS we configured APNS as messaging service. Until recently we haven’t had issues for a long time. We didn’t make changes to the pushnotification module or the way it has been called by our application for a long time. Only recently did we refresh the Apple pushnotification certificate, although the issue might have occurred before that. The issue is that scheduled event FlushMessageQueue (MF SendMessages) seems to hang at Java action SendAPNSMessage_Impl.  As soon as we notice this we kill the microflow and then the next execution of the scheduled event tries again. Eventually we manage to get all the pushnotifications sent. Anyone an idea what might be the issue ? The log doesn’t give clues.  

No option to select the modules in Mx Model Reflection module

$
0
0
Hi, When I add the Mx Model Reflection, I cannot select the Module on the left pane. I am using 8.9 modeler. Am I missing any setting ? Somehow the checkboxes are not visible for the selection.  Please help.

Native Template 5.0.2 - maps widget not working on Android

$
0
0
Hey Community,  on a native mobile app for android, the “Maps” widget seems to be dysfunctional: Native Template Version: 5.0.2 Studio Pro Version: 8.13.1   When running the app on the phone, it just shows an empty space instead of the map:   The Logcat from Android studio shows the following: 2020-09-19 14:01:07.247 28894-28894/com.mycompany.myapp I/Google Maps Android API: Google Play services client version: 12451000 2020-09-19 14:01:07.260 28894-28894/com.mycompany.myapp I/Google Maps Android API: Google Play services package version: 203315028 ...skipping some lines here... 2020-09-19 14:01:08.237 28894-29572/com.mycompany.myapp E/Google Maps Android API: Authorization failure. Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map. 2020-09-19 14:01:08.241 28894-29572/com.mycompany.myapp E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com) Ensure that the "Google Maps Android API v2" is enabled. Ensure that the following Android Key exists: API Key: Android Application (;): xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx;com.mycompany.myapp The map widget complains about a wrong API version and a missing API key. But neither you can enter a API-key for the native widget nor you can select a “Google Maps Android API V2”. There are no such input fields for the parameters available in the native maps widget. The very same app running in “Make it Native” looks like it should:   Smells like a bug to me – has anyone experienced the same problem and knows a workaround for this?   Thx,  Franz

Error while running a application

$
0
0
I have changed the application name then when I am trying to run the app now its showing an error message saying that  "another operation is initiated by your team member please try again later".  then it shows "Failed to commit" So how can I solve this problem, no one else is using the application.     

Widget.xml not found

$
0
0
Hi! I’m doing the crash course. I’m done up to ‘Setting Up Your Development Environment’ (11.4). After this, I couldn’t find the ‘widget.xml’ file. Is that something I should create from scratch? However, the tutorial says changing some code as if there should be an existing file. I’m using Studio Pro 8.10.3. Please help me where I can find the ‘widget.xml’ file or why I’m unable to see one. TIA! Vertika
Viewing all 83469 articles
Browse latest View live


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