I have created some java code to build a xpath query using the Core.retrieveXPathQueryEscaped. The xpath returns a list of IMendixObjects. Now I would like to change the reference of an Mendix entity with this list. The problem is that when setting the reference I can not set it to the list of IMendixObjects, I need the specific entity to set the reference. Now I know what kind of entity the IMendixObjects list is. But how do I go from the IMendixObject to the right entity? I tried casting it but I could get this to work. Anybody a clue about how to do this in java? Regards, Ronald
↧
Java: from IMendixObject to specific object
↧
How to make Deeplink respond faster
Hi! I'm using the Deep Link module to navigate users directly to the right page and it works perfectly, functionally. However, it bothers me that it is kind of slow. When adding a debug log on the processing microflow, it just takes 10~70 ms (due to my own logic). However, it takes around ~500ms before my microflow even starts... Are there some optimalisation options to make the deeplink respond faster and increase its performance?
Aug 31 14:52:49.486 - DEBUG - DeepLink: No session found for deeplink: /link/dl, attempting to serve link as guest.
Aug 31 14:52:50.331 - DEBUG - DeepLink: Processing DeepLink took 66 ms. __ Extra information: I found out that there are hundreds of PendingLinks, as UseAsHome is set to true. It shouldn't be that much, right? But yeah: retrieving from database takes some time. I think the main problem is redirecting the browser, as that takes some time to rediscover the server. This is actually unnecessary for anonymous users. Question 1: Would handling the PendingLink client side using cookies instead of database speed up significantly? Question 2: Could the redirect be skipped when the deeplink is available for anonymous users? Maybe using Core.initializeGuestSession() ?
↧
↧
Card IO Scanner issue - App is not triggering scanner
I am trying to use Card IO Scanner for my mobile application. I created a link in the navigation which will call a microflow and micro flow creates a CreditCardDetail_2 object and call the page which contains the cardScanner1 widget. I used PhoneGap build the ASK file for android and provided the plugin as mentioned here (https://github.com/simo101/CardScanner). While running the app in the real device, its not triggering scanner and I am just seeing the blank screen. Can you please let me know if I am missing anything here? Please find the screenshots. New screen shots for button
↧
Mendix Modeler version 7.18.1 download application from Team-server problem
Hi Everyone, Today I have downloaded and installed Mendix Modeler version 7.18.1. The installation happened properly without any error. When I am downloading the previous version of created application from Team server, the moduler is not able to download. The download progress bar is running continuously and not able to download/connecting the app from team server. Have anyone encounter this problem and resolved it. Could you please help me out from this issue. Thanks In advance Cheers, Ravi
↧
Microflow in Mendix
Hi All, I am writing a JMS connector for app2app communication. Consumer is receiving message, but microflow parameter is ignored when invoked in java class.
Map<String,String> map = new LinkedHashMap<>();
map.put("xmlResponse", xmlResponse);
logger.info("message is: "+xmlResponse );
Core.execute(getContext().getSession().createContext(), config.getMicroflowName(), map); I have used execute and executeAsync , both did not work. Also used, getContext() , Core.createSystemContext() to get the IContect object, but that also did not fix. microflow getting invoked but parameter is being ignored. Let me know what I am doing wrong. In the microflow, first checks whether parameter is empty or not, convert to object and commit it.
↧
↧
On click CKEditor viewer run jQuery code
Hi all! Which champ can share a jQuery code that runs when clicked on a CKEditor viewer text box? So I've got the below code functioning on Repl.it It shows Woord1 and Woord2 in a span with an on click action logging the word clicked. I want to do the exact same thing in Mendix. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>repl.it</title> <link href="index.css" rel="stylesheet" type="text/css" /> <style> div.mx-name-textArea2 div label span{ font-size: 30px; } </style> </head> <body> <div class="cKEditorViewerForMendix1"> <div> <label> <span>woord 1</span> <span>woord 2</span> </label> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> jQuery(".cKEditorViewerForMendix1 div label span").on("click", function () { //We extract the text from the element clicked - Works for <p> elements, to be tested on <span> var microflowInputString = jQuery(this).text(); //console.log($(this).attr('class')); console.log(microflowInputString) }); </script> </body> </html> I tried the below code in both the JavaScript snippet as the HTML snippet that is in the same window as the CKEditor viewer: jQuery(".wgt-CKEditorViewerForMendixNode mx-name-cKEditorViewerForMendix1 div label span").on("click", function () { var microflowInputString = jQuery(this).text(); //console.log($(this).attr('class')); console.log(microflowInputString) }); Inspecting the HTML in chrome: Hope somebody knows how to do this! Cheers, Paul
↧
Nexmo SMS Module integration in Mendix is not working
I have downloaded Nexmo SMS Module and integrated it using API key from Nexmo. But in Mendix it is throwing error. Can anyone help me on this?
↧
Date picker returns validation error
I'm using English US as my primary language, but I've set the date and time format in the European fashion (e.g. 20.9.2018 13:45). While all the dialogs with date examples show what I would expect to see (see picture), when I try to enter the time, I get an validation error (see second picture). Can anyone help me with this?
↧
Documentation on error handling (continue, error event, continue) - is it wrong?
Hi all, we have recently discussed an error handling use case and after some discussion we looked at the documentation here: 4-4-continuing-in-the-parent-flow-continuing-in-the-subflow So, this was exactly our use case: an error occurrs, then is catched in a continue, then the error event is triggered and again catched in a continue. Now this part of documentation states, that nothing is rolled back in that case. However, actual testing shows, that this is not true. Instead all changes before the error event are also rolled back, which is also in line with the documentation of the error event: https://docs.mendix.com/refguide/error-event Now I'm wondering if we're misinterpreting the docs on combination 4.4 all together, or is it just plain wrong - anyway I think this section in the documentation really needs some clarification. regards, Fabian
↧
↧
How does one "Enable the Team Server" and where please?
1.4 Open the Application Model "There are two ways to create a new app project with Application model package. Option 1 – Open the package: Click Download and save the Application model. Open the file, named Advanced_course_online.mpk. If you get the version selector, select Modeler version 7.13.1. Choose a directory where the project package will be extracted. Enable Team Server and upload it to a new repository. Looked at every drop down menu and all the sub menus and pages within the Modeler, then used search, can not find anything labeled "Team Server". Search returns "nothing found for Team Server." Where is the "Team Server" and how does one enable it? Click OK. A new app will be created in the Modeler, including the required model and some sample data.
↧
Best methods to learn the UI / UX options of Mendix to work with SAP and Fiori?
What are the best videos AND learning paths to learn the UI / UX options of Mendix to work with SAP and Fiori?
↧
How to put an image to a form (without data view)
Having a welcome screen with custom login, all I want is to put a simple picture there but it seems it is much more complicated than write it in C# :) I tried Image Viewer, but it wants to be placed within a data view - why? On that page, there is no data view and it would be pointless to put it there. I only need to place a simple picture. What am I missing? thanks
↧
Failed to load resource: the server responded with a status of 560 (560)
Hi, I am trying test the SalesOrdersApplication but when i tried to execute the app locally i am getting this error "Failed to load resource: the server responded with a status of 560 (560)". Kindly provide your help to resolve this issue. Regards, Bharanidharan S P M
↧
↧
Setting a dynamic page title
Is there any way to set a dynamic page title in Mendix 5.18? I have tried using the Titler app, but it is not working properly. Is there some other way to set the page title dynamically by using a microflow or a variable? I have an admin panel where the admin can set their UserFeedBack, which are dynamically set in a variable and shown as text on the website. I'd like to do something similar with the page title if that is possible.
↧
How to retrieve the thumbnail from an Image?
We are moving images to external storage but we would like to keep the thumbnails for display purposes. I'd like to extract the thumbnail from an Image object and store it in another Image object (as full-sized image with equal-sized thumbnail). But how to extract the thumbnail image from an Image object? In java, sourceImage.getPublicThumbnailPath() and sourceImage.getPublicThumbnailPath(getContext()) yield null.
↧
Hello everyone, I want to enter the url address on this page, and then get the json string, what should I do?
Hello everyone, I want to enter the url address on this page, and then get the json string, what should I do?
↧
Excel Exporter cannot find input to export
Hi all, I'm trying to get the Excel Exporter running (too many entries to make use of the standard export to excel button), and am encountering some issues with the final steps. What I want to do is export the following table to Excel. It should also be possible to make a selection by using the search fields, and then exporting those particular rows. I already configured the Mx Excel Exporter. The "Export to Excel" button leads to the following Microflow: In the Mendix documentation is specified that you have to use the "Doc" entity (CustomerOverviewExcel) as input parameter, but that object isn't avalaible to me here, as it does not exist yet. Thus I create the object and link it to the MxTemplate. The problem is that I now cannot specify Customer as being the Input Object in the GenerateExcelDoc. I can't add Customer as a parameter (only takes 1 customer), and I also cannot NOT add it as a parameter and leave the Input Object empty, as suggested on https://forum.mendixcloud.com/link/questions/89991. This results in my microflow not downloading anything, as it found no customers to export. Does anyone know how to set up the configuration/microflow for this specific situation? Thanks in advance, Ruben
↧
↧
Change object should not be null
Since a few weeks we see the following error now and than in the log: Sep 20 07:44:00.279 - ERROR - Connector: An error has occurred while handling the request. [User '--------' with session id '9ccd04e2-f9a1-4e75-bb33-a540c43db742' and roles '----------'] Sep 20 07:44:00.279 - ERROR - Connector: (1/67) com.mendix.modules.microflowengine.MicroflowException: requirement failed: Change object '---------' should not be null Sep 20 07:44:00.279 - ERROR - Connector: (2/67) #011at DCMDesign.---------------(Change : 'Change '--------------' (-------------)') Sep 20 07:44:00.279 - ERROR - Connector: (3/67) #011at DCMDesign.---------------------- (SubMicroflow : '--------------') Sep 20 07:44:00.279 - ERROR - Connector: (4/67) Sep 20 07:44:00.279 - ERROR - Connector: (5/67) Advanced stacktrace: Sep 20 07:44:00.279 - ERROR - Connector: (6/67) #011at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143) Sep 20 07:44:00.279 - ERROR - Connector: (7/67) Sep 20 07:44:00.279 - ERROR - Connector: (8/67) Caused by: java.lang.IllegalArgumentException: requirement failed: Change object '------------' should not be null The thing is that, after restoring the database in another environment with the same version of the application, the issue doesn't occur. So we cann't reproduce it. Even stranger is that later on the day the same actions succeed in production. The object is related to a specific case and is not changed or created otherwise. Ofcourse we can avoid the error by adding an exclusive split, but that wil not solve the issue. Any help would be welcome.
↧
Cannot open PDF Document - Android application (.apk)
Hello guys, I want to update my application in Google store since there is a notification that we should update the Android TargetSdkVersion by November 1st. However, I created the .apk using the latest Mendix Hybrid release (phonegap package). During the testing, I've noticed that the application cannot open pdf document. We are using PDFTron and it works properly (changing documents), but if I want to open a document in pdf format, without changing (PDFTron), I am getting the error "Application has stopped", restart the application! The previous version of .apk file works as expected. There is no error within Log file. Does anyone have the same issue? Thank you in advance. David
↧
Autonumber always set to 1 / Autonumber not counting
Hi everyone, Currently I am working on a project on which we use a lot of autonumbers on different persistent entities. This used to work for all entities on which the autonumber is added. However we now see that for one specific entity the autonumber does not seem to work / count anymore. Previously created objects do have a correct and unique autonumber which is always 1 higher than the previously created objects. However now we create and commit a new object we see that the autonumber always starts at 1. The entity on which this occurs is also not used for java actions, such as the clone, which could explain this behavior. It seems as though Mendix has does not recognize at which autonumber to start for this specific entity. Has anyone else experienced similar problems and knows how to solve them? Any help would be appreciated! With regards, Peter Zonneveld
↧