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

Condition in set item value in change item requires ELSE?

$
0
0
Am I right in thinking that an IF requires a corresponding ELSE in a microflow action? I have if $Account/Blocked != $Account_2/Blocked then if $Account/Blocked = true then $Account/BlockedSince = [%CurrentDateTime%] else $Account/BlockedSince = empty The error is “Mismatched input ‘’ expecting ELSE If I must have a corresponding ELSE then is there a ELSE do nothing?

Best practices for Sessiontimeout for the PWA (Phone) profile?

$
0
0
We are migrating our hybrid PhoneGap app to a PWA. In the PhoneGap app users basically never had to sign in again. When I install the PWA on my phone I do have a much smaller SessionTimeout (I suppose the default 10 minutes) which would result in a lot of annoyed users. In the documentation I see there is a special LongLivedSessionTimeout setting, but this is only applicable for Offline first PWA’s. Is there a way to raise the timeout for the PWA (online profile) without raising the SessionTimeout setting for the whole application?

com.mendix.m2ee.api.AdminException: Executing DDL commands for failed.

$
0
0
Hello Everyone, I am upgrading my project from mendix 6 to 7, i updated all app store modules and widgets, everything is running successfull…. But when i am deploying the project it is throwing some error like Executing DDL Commands.. Can you people please help me with this problem? com.mendix.m2ee.api.AdminException: Executing DDL commands for component MyFirstComponent failed. at com.mendix.basis.component.internal.LocalComponentImpl.executeDDLCommands(LocalComponentImpl.scala:115) Caused by: com.mendix.basis.connectionbus.ConnectionBusException: Error (SQL State: 42504, Error Code: -5504) on executing: CREATE TABLE "mendixsystem$unique_constraint" ( "name" VARCHAR_IGNORECASE(255) NOT NULL, "table_id" VARCHAR_IGNORECASE(36) NOT NULL, "column_id" VARCHAR_IGNORECASE(36) NOT NULL, PRIMARY KEY("name","column_id")) All changes are rolled back. at com.mendix.connectionbus.modelsynchronization.DdlCommandExecutor.execute(DdlCommandExecutor.java:77) Caused by: java.sql.SQLSyntaxErrorException: object name already exists: mendixsystem$unique_constraint in statement [CREATE TABLE "mendixsystem$unique_constraint" ( "name" VARCHAR_IGNORECASE(255) NOT NULL, "table_id" VARCHAR_IGNORECASE(36) NOT NULL, "column_id" VARCHAR_IGNORECASE(36) NOT NULL, PRIMARY KEY("name","column_id"))] at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source) at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source) at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source) at org.hsqldb.jdbc.JDBCStatement.execute(Unknown Source) at org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291) at org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291) at com.mendix.connectionbus.modelsynchronization.DdlCommandExecutor.executeDdlCommands(DdlCommandExecutor.java:134) at com.mendix.connectionbus.modelsynchronization.DdlCommandExecutor.execute(DdlCommandExecutor.java:41) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.synchronizeModel(SynchronizationManager.scala:151) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.executeImpl(SynchronizationManager.scala:142) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.execute(SynchronizationManager.scala:90) at com.mendix.connectionbus.ConnectionBusImpl.executeDDLCommands(ConnectionBusImpl.java:402) at com.mendix.basis.component.internal.LocalComponentImpl.executeDDLCommands(LocalComponentImpl.scala:112) at com.mendix.basis.impl.MxRuntimeImpl.executeDDLCommands(MxRuntimeImpl.java:999) at com.mendix.basis.action.admin.ExecuteDDLCommandsAction.call(ExecuteDDLCommandsAction.java:27) at com.mendix.basis.action.admin.RuntimeAdminAction.execute(RuntimeAdminAction.java:18) at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandler.handle(HttpAdminHandler.java:122) 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.headerComplete(AbstractHttpConnection.java:942) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:647) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) 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) Caused by: org.hsqldb.HsqlException: object name already exists: mendixsystem$unique_constraint at org.hsqldb.error.Error.error(Unknown Source) at org.hsqldb.error.Error.error(Unknown Source) at org.hsqldb.SchemaObjectSet.checkAdd(Unknown Source) at org.hsqldb.SchemaManager.checkSchemaObjectNotExists(Unknown Source) at org.hsqldb.StatementSchema.setOrCheckObjectName(Unknown Source) at org.hsqldb.StatementSchema.getResult(Unknown Source) at org.hsqldb.StatementSchema.execute(Unknown Source) at org.hsqldb.Session.executeCompiledStatement(Unknown Source) at org.hsqldb.Session.executeDirectStatement(Unknown Source) at org.hsqldb.Session.execute(Unknown Source) at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source) at org.hsqldb.jdbc.JDBCStatement.execute(Unknown Source) at org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291) at org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291) at com.mendix.connectionbus.modelsynchronization.DdlCommandExecutor.executeDdlCommands(DdlCommandExecutor.java:134) at com.mendix.connectionbus.modelsynchronization.DdlCommandExecutor.execute(DdlCommandExecutor.java:41) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.synchronizeModel(SynchronizationManager.scala:151) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.executeImpl(SynchronizationManager.scala:142) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.execute(SynchronizationManager.scala:90) at com.mendix.connectionbus.ConnectionBusImpl.executeDDLCommands(ConnectionBusImpl.java:402) at com.mendix.basis.component.internal.LocalComponentImpl.executeDDLCommands(LocalComponentImpl.scala:112) at com.mendix.basis.impl.MxRuntimeImpl.executeDDLCommands(MxRuntimeImpl.java:999) at com.mendix.basis.action.admin.ExecuteDDLCommandsAction.call(ExecuteDDLCommandsAction.java:27) at com.mendix.basis.action.admin.RuntimeAdminAction.execute(RuntimeAdminAction.java:18) at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandler.handle(HttpAdminHandler.java:122) 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.headerComplete(AbstractHttpConnection.java:942) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:647) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) 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)

Upgrade Mx 6.10.20 to 7.23.17 - DB synchronization error

$
0
0
Hi I am trying to upgrade an app from Mendix 6.10.20 to 7.23.17 version. After solving the deprecation/java actions among others I am finally ready to hit the ‘Run’ button. But sadly the database is not willing to upgrade as well… The database we use now is MS SQL 2017 ==This is the SQL trying to be executed == CREATE TABLE [mendixsystem$unique_constraint] ( [name] nvarchar(255) NOT NULL, [table_id] nvarchar(36) NOT NULL, [column_id] nvarchar(36) NOT NULL, PRIMARY KEY([name],[column_id])); GO UPDATE [mendixsystem$version] SET [preanalysismigrationversionnumber] = '3.0.0'; GO == The error message == io4.0-Build\modeler\Mendix.Modeler.M2EEConnector\M2EEResponse.cs:line 57 at Mendix.Modeler.M2EEConnector.StartupManager.StartRuntime(IM2EEClient client, StartupInfo info) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.M2EEConnector\StartupManager.cs:line 105 at Mendix.Modeler.M2EEConnector.StartupManager.PerformStartup(StartupInfo info, IM2EEClient client) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.M2EEConnector\StartupManager.cs:line 48 at Mendix.Modeler.M2EEConnector.RuntimeController.Start(StartupInfo info, LogLevel autoSubscribeLogLevel) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.M2EEConnector\RuntimeController.cs:line 133 at Mendix.Modeler.Utility.BackgroundUtil.<>c__DisplayClass1_0`1.b__0(Object s, DoWorkEventArgs e) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility\BackgroundUtil.cs:line 28 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Error while running app in version 9.11.1

$
0
0
We recently upgraded mendix studio pro from version 9.4.0 to 9.11.1. Since then, getting the below error while running and the server isn’t starting. 2022-03-16 06:03:42.245 INFO - M2EE: Added admin request handler '/prometheus' with servlet class 'com.mendix.metrics.prometheus.PrometheusServlet' [rtlauncher:container$] INFO Container start took 2105. Ready to accept admin requests. Tried creating a new app in version 9.11 and running that gives the same error as above.

How to add NPM dependency to native app

$
0
0
Hi, I am trying to get a background location tracking app working. First, I tried to get the app from the ‘Build a fitness tracker’ webinar working (https://www.mendix.com/live/build-a-fitness-tracking-app/). Unfortunately, the webinar does not show how the actual linking of the modules has to be done. That’s when I decided to follow the manual https://docs.mendix.com/howto/extensibility/create-native-javascript-action/ but two problems occurred when using the NFC scanner: The app crashes when I run it in the Make It Native app upon loading the app. I cannot run the ‘Build in the cloud’ command after executing step ‘3.3.3 Using the Modules’. Can you help me out with this? The end goal is to implement one of these packages: - @react-native-community/geolocation - @mauron85/react-native-background-geolocation P.s. I believe the ‘Ho- to’ document ‘Build JavaScript Actions for Native Mobile’ can be updated, since Mendix 9.11.1 provides the ‘App capabilities’ page in the ‘Build Native App v.1.0.114’ . With this functionality, is it still required to give the permissions manually in the code and in XCode?

Convert String to Enumeration

$
0
0
Is there any way in mendix to convert a string to a enumeration as i’m trying to that it gives me this error

Running Webinterface Crashcours MockHrService

$
0
0
Just tryed to open the Webinterface as descriped here: https://academy.mendix.com/link/modules/313/lectures/2368/4.2.1-Create-JSON-Import Sadly i get this feedback in the browser: i already reinstalled, checked the port, no other mendix application is running...

How to update app when Consuming a REST Service and their JSON changes

$
0
0
I’m currently consuming a REST service and their JSON has changed to provide more information. Do I only need to update the JSON and refresh or do I also need to run the automatic mapping again to make the new data reflect in the entity?

Web Modal Popup that 'blocks' the flow

$
0
0
Hello All I’m trying to code a simple modal popup which collects an answer from the client and do the further process after that. It’s important that such process depends on the aswer given by the client. My naive attempt so solve this simple problem was just call a page with the popup contents (layout type modal pop-up) and then use a decision to process the answer. Unfortunately this doesn’t work ‘cause, despite the fact the popup is modal, the microflow continues to execute the activity after the calling of “Show Page Modal” Simply put, I’d like to find a way to block the flow until we have an answer from the client, so that I could log this and print it. Converting this code to Nanoflows gives the same result: the flow is not blocked and the log is printed without the answer collected in the modal popup Any hints on how to solve this problem?

need help with microflows

$
0
0
Start•Button on the sales order NewEdit with the name “Calculate Sales Order”Start data•The sales order must be passed to the MFActions•Retrieve all sales order lines from the sales order•Add all sales order line prices together enoPut this in the Sales order price-excl VAT• field• Calculate the VAT amount (21% on the Sales order price-excl. VAT) enoPut this in the field VAT amount•Calculate the sales order price-incl VAT enoPut this in the Sales order price-incl VAT field)•Show the fields Sales order price-excl VAT, VAT -amount and Sales order price-incl VAT also on the most Sales OrderNewEdit and on SalesOrder_Overview •Set the Sales order status to Calculated

Chatbot Solution for Client queries and complaints

$
0
0
Is it possible to build chatbot application in mendix and integrate it with other social media platforms.

get Image from one module to another module in data view from association

$
0
0
Hello Members, I am using 2 modules for my application. So basically, In my first module, there is an entity named “Tasks” and it is also storing images using the ‘System.Image’ feature. In another module, I have another entity named “TaskFlow”. Both the entity has association. So when I am using the data view over the association, I want to display the image(in second module) as well which is stored in entity Task(in first module) but it not showing and display just a blank. I have also tried to get that in Microflow as well but didn't work. Can anyone please resolve my issue as I am stuck in that? See the screenshots respectively. Entity First Entity Second Data view over association Blank View of image

SweetAlert2 implementation.

$
0
0
Did anybody try to implement toastr from this marketplace module? I struggle with that, and I need a more detailed explanation of how to. Just to add. What I need is: When an anonymous customer fills the registration form and clicks “save button”, it goes to the homepage and there will appear a toastr (not a popup) that will say “account registration was created succesfully”.

"The data grid drop-down filter must be placed inside the header of the Data Grid 2.0 widget"

$
0
0
Hello, I hope you are having a great day :) I have the following issue. I have a Data Grid 2.0 widget which has as datasource an Pacient Entity which has an attribute named Gender which is an enum of 2 elements, Male and Female. On one column of this grid I display the gender. The column item has the following properties: Also, on the header of the column I have a drop-down filter widget The problem I have is that the following error message gets displayed in that grid.

the parameter in $currentObject is always Null in XPath of List view

$
0
0
I have one main page with data view PaymentTran which is through microflow to get, and one button to show the bank search page. in the main page the $currentObject/CountryCode can work in XPath in List view, but when show the bank search page which contains List view. the $currentObject/CountryCode is always is NULL in the XPath, $currentObject is the context of the page of PaymentTran (in main page) but I can see the value of $PaymentTran/CountryCode in the bank search page for input text. is the Mendix limit or something wrong of my design?

How to minimize a mobile native app programmatically?

$
0
0
Hello experts I have an offline-first native mobile app that uses a lot of data (the client is a company in which the uses must use the app on the countryside with no or poor internet connection). In order to avoid the full sync when lauching the app, it’s recommended to not proceed with the logout. Also, my idea is to use the AppEvents On Resume to require the biometric authentication,avoiding in this way access to private data. My question is: is there a way to minimize the app programmatically? That is, in my app there will be two options to “close” the app: Close (minimize the app) and Exit Session (doing the logout and wiping the local database)

Disable language in app.

$
0
0
Hi, Working on a multilingual app and we want to disable one of the languages (temporarily). As far as I know, we can only delete the complete language in the app, but that is one step too far. Is there a way to (temporarily) disable a app language? (no problem to re-deploy for this). Or should I copy the language files (translations.properties.xxx), then delete the language. When we want the language to be active again, paste the old language files (and add the missing “new” translations)? Sven.

Audit History - Changed by column is not visible to roles other than Admin.

$
0
0
Hi, I have Audit History to track the changes made in the application and the Changed By Column to save the person name who made changes. But unfortunately some of the roles in the system can't see the values in the 'Changed By' column. If I login as admin I can see the names in the 'Changed By' column but if I login as other role then 'Changed By' column shows me nothing in there. It wasn't happening before just a recent issue. Please advise. I have attached the example screen shot below.

Dynamic Cell Class in Datagrid 2 not working properly

$
0
0
I have a datagrid 2 table and I am having a hard time figuring out how to place a condition on an attribute (decimal). When this value under Total = $0.00 then apply specific CSS to change the BG color. if $currentObject/Total = 0.00 then 'alert-bg-color' else '' is what I believe should work, but there is no change at all to the element, and I am not getting any errors. I have tried parseDecimal, and “toString” Seems like this should be pretty simple but no success.
Viewing all 83469 articles
Browse latest View live


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