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

Email Modules? Error Notifications?

$
0
0
I am still new to Mendix and I’d like to know what people are doing to be able to send generic emails when an issue happens.  As far as I can tell, there is nothing built-in to Mendix. For example, an API I am using returns the number of API calls we have remaining on our account.  When it gets below a certain threshold I’d like to email myself the information.  I am planning on creating a Microflow that has for parameters: Subject, Body, To, From, etc. so that from any microflow I can easily send any kind of email out.  I would also use it when certain errors happen that I want to be notified of. What do you all do to handle this?  Is there a better approach?

Watermark in PDF document

$
0
0
Hello, I want to overlay the PDF with watermark by User Name , uploaded by in Mendix form.  To achieve it i have downloaded an app from app store “ Community  Commons’ . there when i configure the Function ‘Over lay PDF Document’ . my question is can we send  user name for water mark overlay in PDF ? Because its expecting an input as file only. How can we achieve it?  

File storage question of the .svn > pristine folder

$
0
0
I’ve noticed in my companies primary application that this folder’s drive space has grown quite large, over 10gb (on my local machine).  Is this normal?  If not what is the best way to reduce the space it consumes on the drive? I don’t know much about this folder other than apparently this is where the working version is stored. This application was created on an early version of Mendix 7 and is slated to be upgraded to be on 7.22.2 like the rest of our apps so I’m not sure if that has something to do with it or not.

Error calling REST service at MyFirstModule.TC_Login_RESTCALL (CallRest : 'Call REST (POST)')

$
0
0
When I am trying to call a REST API (POST) which is used for login to a system. It gets  User Id Password Server URL    and in response returns a string with “Success” or “Failure” message.  These are the steps I followed JSON Structure Export Mapping    Microflow     But I am getting this error.    com.mendix.core.CoreException: com.mendix.modules.microflowengine.MicroflowException: Error calling REST service     at MyFirstModule.TC_Login_RESTCALL (CallRest : 'Call REST (POST)') Advanced stacktrace:     at com.mendix.basis.component.InternalCoreBase.execute(InternalCoreBase.java:389) Caused by: com.mendix.modules.microflowengine.MicroflowException: Error calling REST service     at MyFirstModule.TC_Login_RESTCALL (CallRest : 'Call REST (POST)') Advanced stacktrace:     at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:57) Caused by: com.mendix.modules.microflowengine.MicroflowException: 415:      at MyFirstModule.TC_Login_RESTCALL (CallRest : 'Call REST (POST)')  

Upload image file by camera

$
0
0
Hello, we have a requirement to upload an image by using camera directly on mobile page. how we can achieve it in Mendix ? Thanks,

Checking file type in JAVA action before or after commit doesn't work in cloud, but does work locally?

$
0
0
The following JAVA code isn't allowed to run in the cloud:   // 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 myModule.actions; import java.io.File; import java.io.IOException; import java.nio.file.Files; import com.mendix.core.Core; import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.webui.CustomJavaAction; public class GetFileExtentionAsString extends CustomJavaAction<java.lang.String> { private java.lang.String fileName; public GetFileExtentionAsString(IContext context, java.lang.String fileName) { super(context); this.fileName = fileName; } @Override public java.lang.String executeAction() throws Exception { // BEGIN USER CODE String fileType = null; File file = new File(fileName); try { fileType = Files.probeContentType(file.toPath()); } catch (IOException ioException) { Core.getLogger("Error file type").info("Unable to determine file type for " + fileName + " due to exception " + ioException); } return fileType; // END USER CODE } /** * Returns a string representation of this action */ @Override public java.lang.String toString() { return "GetFileExtentionAsString"; } // BEGIN EXTRA CODE // END EXTRA CODE } Can anyone give a reason why this might be the case? Sorry I removed some logging from the post because apparently the forum stops showing answers @ 7 answers. Jan 11 13:06:14.958 127.0.0.1 tr10000: INFO - Unable to determine file type for TestImage.png due to exception java.security.AccessControlException: access denied ("java.io.FilePermission" "TestImage.png" "read") The reason why this is not allowed is because of the JAVA line  File file = new File(fileName); Unfortunately I haven't found a workaround yet

Mendix Application in SAP Hana Cloud

$
0
0
Hello  I deployed Mendix application as per the online tutorial “Learn to build SAP App” Module 8. And started the application also. But when I opened the application in browser. I am getting “Cant reach this page error”   Regards Shanmukha Rao banisetti

Exception in Consuming SAP OData

$
0
0
Hello  I am following tutosial “Lear to Build an SAP App”. Till Module 3 in the tutorial the app is succesfully consuming the oData. I followed and I am getting exception fron the microflow that is supposed to give me the list of sales orrders. The only differefnce I can see in my deskto modellor is in the getlist activity I am getting Destination field which I kept blank. Below is the configuration of the getlist activity and I am getting error from this activity. Please look into it  

Google maps controls are not shown - iOS devices

$
0
0
Hello guys,  I have noticed that Google maps controls are not shown anymore in my application (Streetview, Zoom Control). If I run the application via browser, then everything works properly, but the problem occurs when I use the tablet or phone device  (Hybrid application and only iOS, with Android devices the widget works properly).  The map works, but I don't see the map controls which are important for our clients. I can confirm that settings are correct within Google Map widget (enabled). The current version of Google Map the widget we use is 5.5. I have tried with the latest version of widget (6.1.1) but no results.  This is strange since the widget worked properly.  Thank you in advance.  Kind regards, David

Downloaded image not showing in the image viewer

$
0
0
Hello guys, I've noticed something strange regarding image viewer widget.  Our application retrieving the images from clint's ERP. In this case, the images have the resolution 3264x2448.  From the browsers (if you use the app form the browser), images are shown properly, but if we open the Hybrid application, then the viewer won't show the image. If the same image is uploaded from the Hybrid application (cameraPhonGap widget), then the image viewer will show the image properly (Image quality 1024x768).  Browser:  - iOS version: 12.1.1 Is there something I can change in order to fix this or I'm doing something wrong?  Thank you in advance :)

Publishing app

$
0
0
Hi there! I’m trying to publish my first app (LearnNow Training Management) but the publishing is very slow, the message says “retrieving app environment status” but it’s really taking too much time.    is it because it is the first time that I publish it or there’s a problem with the publishing? if I remember correctly there was this problem a few months ago.  (i’m using the Web Modeler) Thanks for help Antonella

Unable to connect debugger to cloud slot

$
0
0
Hi all, I tried to connect my debugger to an app in a mendix cloud slot today and get the following error message: The request was aborted: Could not create SSL/TLS secure channel System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at Mendix.Modeler.Microflows.Debugger.DebuggerClient.DoHttpRequest(String url, String password, String userAgent, String json, Int32 timeout) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Core\Microflows\Debugger\DebuggerClient.cs:line 197 at Mendix.Modeler.Microflows.Debugger.DebuggerClient.PerformRequest(DebuggerRequest request, Int32 timeout) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Core\Microflows\Debugger\DebuggerClient.cs:line 163 at Mendix.Modeler.Microflows.Debugger.DebuggerClient.StartSession(IEnumerable`1 breakpoints) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Core\Microflows\Debugger\DebuggerClient.cs:line 64 at Mendix.Modeler.Microflows.Debugger.DebuggerController.StartDebugging(String url, String password, ConnectionMode mode) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Core\Microflows\Debugger\DebuggerController.cs:line 95 at Mendix.Modeler.Utility.BackgroundUtil.<>c__DisplayClass1_0`1.<Do>b__0(Object s, DoWorkEventArgs e) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Utility\BackgroundUtil.cs:line 28 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) Debugger was working in the past. Has anyone encountered this issue before?? Mendix version is 6.10.10 Licensed cloud slot -Andrej

Using non persistent Entity accross pages

$
0
0
I have a non persistent data retrieved from Rest API using Microflow. Can i use this non persistent data across different pages or should I call the microflow each time to get the data. Please let me know if there is any way to achieve this.

Hiding User role selection for specific Admin

$
0
0
In a simple app i have three user roles “ Developer” , Administrator” and “User” Developer access rights are more than Administrator,  i.e some extra configuration pages which are useless for Administrator or we can say Developer rights=Administrator right+extra right.. As per my knowledge only Administrator can view all the selection list of user roles and in my case Developer also can, But I want to exclude the Developer User role from the list so that Administrator can’t assign, delete or edit it…   

Constraining a Reference Selectors object [using a Select Page] on a Non-Persistable page.

$
0
0
Hello, I have a reference selector on a Non-Persistable page. I want to constrain the selectable objects in [Tab2] using another entity [Tab1]: Domain model: As the attributes used in the reference selectors are numbers, I wish to use a page to help the user select the correct object (here I can show more meaning full information to aid them in their selection). In the widget, I can’t used the “contrain by” option as it’s a NPE, nor can I use the $currentObject in the XPATH. This leaves me with the microflow option but this cannot be used in conjunction with the “select page” option. :(   Is there a way around this, where I can use a NPE object AND use a selectable page?   Best Regards Adrian

conflicts after upgrading from 7.18.1 to 7.21.0

$
0
0
Dear All, I am getting error message 'The following files are conflicted’ after upgrading from Mendix version 7.18 to 7.21.0 The file which is shown is the folder 'Javascriptsource’ from the local project folder. Can you please help me to get rid of this issue ?

DEPRECATED: mxui.widget.declare will be removed in version 8.0. Use dojo/declare instead.

$
0
0
I've updated from 6.10.10 to 7.17.2. Every time a user loads the homepage I'm getting two times the warning message "DEPRECATED: mxui.widget.declare will be removed in version 8.0. Use dojo/declare instead." in production that would be a lot of messages. So I'm trying to fix this before going all the way with production environment. Found out that there 20 widgets in the project. I've removed 8 from the project. The other 12 I've removed one by one, fixed all the errors then run the application to see if the warming is still there. If it's still there, I've restored the one and moved on the the next one. Done that 12 times with no succes, no idea which one is causing the warming message.   How do I fix this message?

Shortcut executes multiple buttons

$
0
0
Hello, i have a shortcut for all the save buttons in my application. For the shortcuts i use the widget “Keyboard Shortcut”. Every save button has his own id but shares the same shortcut “alt+s”. Like in this picture there is a possibility that i have a dialog which also has a save button. If i type “alt+s” it doesnt only execute the save button nr. 1 but also the save button nr. 2. When the dialog is open and i type“alt+s” i only want to execute save button nr. 1. How can i solve this problem without changing the shortcut for the save buttons.

How to Update a different field on a page based on a previous field

$
0
0
I have a textbox in the top section of my page.  In a different section of that page I have a search field.  I want to default my search field with whatever they type in the first textbox.  It seems like it should be really easy but I have not found a simple way of doing it.   One option I see is to add a search attribute to my entity in the domain model and then I can call a nanoflow on leave of the first textbox and in that nanoflow I can set the search field to match the first field, but that does not seem very elegant and seems like there should be a better way. I also tried having the search textbox mapped to the entity field but I want the user to be able to modify the search and I don’t want the original field changed. Any ideas?

db connection log

$
0
0
Which log node do I have to enable to see when a microflow reserves a db connection and when it is released back to the connection pool?
Viewing all 83469 articles
Browse latest View live