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

Mendix Desktop Modeler stuck on "Downloading App"

$
0
0
I am running the Mendix Desktop Modeler 7.22.2 on Windows 10. When I try to download an app it hangs on the “Downloading App” window. However, everything works fine if I create an app using the desktop modeler and then commit it to Team Server. The issue is only when downloading an app that already exists in Team Server. Please see this screenshot https://ibb.co/HD80MkF      

Can't Commit - SharpSVN Repository Exception

$
0
0
Hello Forum, I'm attempting to commit changes in my branch that resulted from a merge from the mainline, and receive the following error message. Any ideas on what to do? Thank you! Ricky -- SharpSvn.SvnRepositoryIOException: Commit failed (details follow): ---> SharpSvn.SvnRepositoryIOException: At least one property change failed; repository is unchanged ---> SharpSvn.SvnRepositoryIOException:  Attempted DAV:set operation could not be completed due to other errors. ---> SharpSvn.SvnRepositoryIOException: PROPPATCH of '/56273b94-cdaf-4784-a844-f038fe696f51/!svn/txr/2086-1nm/branches/S2branch': 207 Multi-Status    --- End of inner exception stack trace ---    --- End of inner exception stack trace ---    --- End of inner exception stack trace ---    at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets)    at SharpSvn.SvnClient.Commit(ICollection`1 paths, SvnCommitArgs args, SvnCommitResult& result)    at Mendix.Modeler.VersionControl.SvnConnector.PathClientDo(String workingCopyPath, Action`1 action) in C:\jenkins-ci\workspace\AppStudio3.0-Build@2\modeler\Mendix.Modeler.Core\VersionControl\SvnConnector.cs:line 805    at Mendix.Modeler.VersionControl.SvnConnector.Commit(String projectDir, SvnCommitArgs commitArgs) in C:\jenkins-ci\workspace\AppStudio3.0-Build@2\modeler\Mendix.Modeler.Core\VersionControl\SvnConnector.cs:line 757    at Mendix.Modeler.VersionControl.RevCommitter.<>c__DisplayClass35_0.<CommitToRepository>b__0() in C:\jenkins-ci\workspace\AppStudio3.0-Build@2\modeler\Mendix.Modeler.Core\VersionControl\RevCommitter.cs:line 485    at Mendix.Modeler.Utility.ActionUtil.TryNTimes[TException](Action action, Int32 n, Int32 sleepBetweenTries) in C:\jenkins-ci\workspace\AppStudio3.0-Build@2\modeler\Mendix.Modeler.Utility\ActionUtil.cs:line 29    at Mendix.Modeler.VersionControl.RevCommitter.CommitToRepository(IProject project, String message, RevisionMetadata metadata) in C:\jenkins-ci\workspace\AppStudio3.0-Build@2\modeler\Mendix.Modeler.Core\VersionControl\RevCommitter.cs:line 487

Modal Progress Bar - Custom Widget

$
0
0
How would i show the standard mendix modal progress bar in a custom widget when a long running microflow is triggered? I need the blocking progress bar to display with a custom message while the microflow is running.

Sending HTML email error

$
0
0
Hi,  When I am trying to use ‘test’ or send html email using Email Template Module I am getting error:   Failed to use the email server to send the email, correct your configuration. Bad type on operand stack Exception Details: Location: org/apache/commons/codec/binary/Base64InputStream.<init>(Ljava/io/InputStream;Z)V @11: invokespecial Reason: Type 'org/apache/commons/codec/binary/Base64' (current frame, stack[2]) is not assignable to 'org/apache/commons/codec/binary/BaseNCodec' Current Frame: bci: @11 flags: { flagThisUninit } locals: { uninitializedThis, 'java/io/InputStream', integer } stack: { uninitializedThis, 'java/io/InputStream', 'org/apache/commons/codec/binary/Base64', integer } Bytecode: 0x0000000: 2a2b bb00 0259 03b7 0003 1cb7 0004 b1   For text mail there is no problems at all.   I have got newest version of Modeler, MxModelReflection and Encryption. I am using same version of email template and configuration on other project and everything is ok. Any ideas?

Database connection errors

$
0
0
Hi all, I am getting the below errors and warnings in my app logs. Although the runtime allows more database connections, is the database limited? ConnectionPoolingMaxActive is set to 200 ConnectionPoolingMaxIdle is set to 50 (default)     2019-01-27T14:47:07.371022 [APP/PROC/WEB/0]   WARNING - ConnectionBus: Database connections: 53 active, 29 idle. 2019-01-27T14:47:07.371430 [APP/PROC/WEB/0]   ERROR - ConnectionBus: Opening JDBC connection to Some(dbnecb5epp658tvlc.co6tarrr5izg.eu-central-1.rds.amazonaws.com:5432) failed with SQLState: 53300 Error code: 0 Message: FATAL: sorry, too many clients already Retrying...(1/4) 2019-01-27T14:47:07.373625 [APP/PROC/WEB/0]   WARNING - ConnectionBus: Database connections: 53 active, 29 idle. 2019-01-27T14:47:07.373649 [APP/PROC/WEB/0]   ERROR - ConnectionBus: Opening JDBC connection to Some(dbnecb5epp658tvlc.co6tarrr5izg.eu-central-1.rds.amazonaws.com:5432) failed with SQLState: 53300 Error code: 0 Message: FATAL: sorry, too many clients already Retrying...(1/4) 2019-01-27T14:47:07.379929 [APP/PROC/WEB/0]   WARNING - ConnectionBus: Database connections: 54 active, 28 idle. 2019-01-27T14:47:07.379974 [APP/PROC/WEB/0]   ERROR - ConnectionBus: Opening JDBC connection to Some(dbnecb5epp658tvlc.co6tarrr5izg.eu-central-1.rds.amazonaws.com:5432) failed with SQLState: 53300 Error code: 0 Message: FATAL: sorry, too many clients already Retrying...(1/4) 2019-01-27T14:47:07.382331 [APP/PROC/WEB/0]   WARNING - ConnectionBus: Database connections: 52 active, 30 idle. 2019-01-27T14:47:07.382355 [APP/PROC/WEB/0]   ERROR - ConnectionBus: Opening JDBC connection to Some(dbnecb5epp658tvlc.co6tarrr5izg.eu-central-1.rds.amazonaws.com:5432) failed with SQLState: 53300 Error code: 0 Message: FATAL: sorry, too many clients already Retrying...(1/4) 2019-01-27T14:47:07.382668 [APP/PROC/WEB/0]   WARNING - ConnectionBus: Database connections: 53 active, 29 idle. 2019-01-27T14:47:07.382688 [APP/PROC/WEB/0]   ERROR - ConnectionBus: Opening JDBC connection to Some(dbnecb5epp658tvlc.co6tarrr5izg.eu-central-1.rds.amazonaws.com:5432) failed with SQLState: 53300 Error code: 0 Message: FATAL: sorry, too many clients already Retrying...(1/4) 2019-01-27T14:47:07.385250 [APP/PROC/WEB/0]   WARNING - ConnectionBus: Database connections: 53 active, 29 idle. 2019-01-27T14:47:07.385270 [APP/PROC/WEB/0]   ERROR - ConnectionBus: Opening JDBC connection to Some(dbnecb5epp658tvlc.co6tarrr5izg.eu-central-1.rds.amazonaws.com:5432) failed with SQLState: 53300 Error code: 0 Message: FATAL: sorry, too many clients already Retrying...(1/4) 2019-01-27T14:47:07.398458 [APP/PROC/WEB/0]   WARNING - ConnectionBus: Database connections: 50 active, 32 idle. 2019-01-27T14:47:07.398492 [APP/PROC/WEB/0]   ERROR - ConnectionBus: Opening JDBC connection to Some(dbnecb5epp658tvlc.co6tarrr5izg.eu-central-1.rds.amazonaws.com:5432) failed with SQLState: 53300 Error code: 0 Message: FATAL: sorry, too many clients already Retrying...(1/4) 2019-01-27T14:47:07.399738 [APP/PROC/WEB/0]   WARNING - ConnectionBus: Database connections: 49 active, 33 idle. 2019-01-27T14:47:07.399757 [APP/PROC/WEB/0]   ERROR - ConnectionBus: Opening JDBC connection to Some(dbnecb5epp658tvlc.co6tarrr5izg.eu-central-1.rds.amazonaws.com:5432) failed with SQLState: 53300 Error code: 0 Message: FATAL: sorry, too many clients already Retrying...(1/4) 2019-01-27T14:47:07.415369 [APP/PROC/WEB/0]   WARNING - ConnectionBus: Database connections: 49 active, 33 idle. 2019-01-27T14:47:07.415405 [APP/PROC/WEB/0]   ERROR - ConnectionBus: Opening JDBC connection to Some(dbnecb5epp658tvlc.co6tarrr5izg.eu-central-1.rds.amazonaws.com:5432) failed with SQLState: 53300 Error code: 0 Message: FATAL: remaining connection slots are reserved for non-replication superuser connections Retrying...(1/4) 2019-01-27T14:47:07.415423 [APP/PROC/WEB/0]   WARNING - ConnectionBus: Database connections: 49 active, 33 idle. 2019-01-27T14:47:07.415451 [APP/PROC/WEB/0]   ERROR - ConnectionBus: Opening JDBC connection to Some(dbnecb5epp658tvlc.co6tarrr5izg.eu-central-1.rds.amazonaws.com:5432) failed with SQLState: 53300 Error code: 0 Message: FATAL: remaining connection slots are reserved for non-replication superuser connections Retrying...(1/4) 2019-01-27T14:47:07.421245 [APP/PROC/WEB/0]   WARNING - ConnectionBus: Database connections: 48 active, 34 idle. 2019-01-27T14:47:07.421274 [APP/PROC/WEB/0]   ERROR - ConnectionBus: Opening JDBC connection to Some(dbnecb5epp658tvlc.co6tarrr5izg.eu-central-1.rds.amazonaws.com:5432) failed with SQLState: 53300 Error code: 0 Message: FATAL: remaining connection slots are reserved for non-replication superuser connections Retrying...(1/4)   Would this setting help?

Component bundles are not loaded

$
0
0
Hi, has anyone ever had the error "Component bundles are not loaded" when you run the version 5.1.1 of the modeler? If there's a solution to this please help. This happens every second time when I try to run the modeler after making changes to the project. The log node is M2EE and the message is Component bundles are not loaded. Thanks.

Signature verification failed

$
0
0
Hi all,  I am getting ‘signature verification failed’ in my log every few minutes. Does anyone know what it is? I’ve been unable to find similar issues on the forum.  Many thanks,  Garion

[On Premise] Excel Exporter Error - ArrayOutOfBoundsException

$
0
0
Hi All, I have an issue with an on-premise app where the Excel Exporter functionality is throwing an error: 2018-10-22 15:24:17.120 INFO - StouckcountCreate.ACT_ExtractGridData: Grid Count: 4 2018-10-22 15:24:17.446 ERROR - Connector: An error has occurred while handling the request. [User 'store1c_sit2' with session id '97b9a98a-99a4-406a-b2c6-53763122b10a' and roles 'CentralAdmin'] 2018-10-22 15:24:17.446 ERROR - Connector: com.mendix.core.CoreException: com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.A_: 0     at StockcountCreate.ACT_ExtractGridData (JavaAction : 'GenerateExcelDoc') Advanced stacktrace:     at com.mendix.basis.component.InternalCore.execute(InternalCore.java:569) Caused by: com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0     at StockcountCreate.ACT_ExtractGridData (JavaAction : 'GenerateExcelDoc') Advanced stacktrace:     at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:146) Caused by: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0     at com.mendix.basis.component.InternalCore.execute(InternalCore.java:598) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0     at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:195) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) Caused by: java.lang.ArrayIndexOutOfBoundsException: 0     at sun.font.CompositeFont.getSlotFont(CompositeFont.java:351)     at sun.font.CompositeGlyphMapper.initMapper(CompositeGlyphMapper.java:81)     at sun.font.CompositeGlyphMapper.<init>(CompositeGlyphMapper.java:62)     at sun.font.CompositeFont.getMapper(CompositeFont.java:409)     at sun.font.CompositeFont.canDisplay(CompositeFont.java:435)     at java.awt.Font.canDisplayUpTo(Font.java:2063)     at java.awt.font.TextLayout.singleFont(TextLayout.java:470)     at java.awt.font.TextLayout.<init>(TextLayout.java:531)     at org.apache.poi.ss.util.SheetUtil.getDefaultCharWidth(SheetUtil.java:274)     at org.apache.poi.ss.util.SheetUtil.getColumnWidth(SheetUtil.java:249)     at org.apache.poi.ss.util.SheetUtil.getColumnWidth(SheetUtil.java:234)     at org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:2165)     at org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:2147)     at xlsreport.report.export.ExportExcel.processSheetPreferences(ExportExcel.java:220)     at xlsreport.report.export.ExportExcel.buildExportFile(ExportExcel.java:162)     at xlsreport.actions.GenerateExcelDoc.executeAction(GenerateExcelDoc.java:133)     at xlsreport.actions.GenerateExcelDoc.executeAction(GenerateExcelDoc.java:34)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55)     at com.mendix.basis.actionmanagement.ActionManager$1.execute(ActionManager.java:186)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:191)     at com.mendix.basis.component.InternalCore.execute(InternalCore.java:594)     at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:64)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:201)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:157)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55)     at com.mendix.basis.actionmanagement.ActionManager$1.execute(ActionManager.java:186)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:191)     at com.mendix.basis.component.InternalCore.execute(InternalCore.java:563)     at com.mendix.basis.component.InternalCore.execute(InternalCore.java:578)     at com.mendix.webui.actions.client.ExecuteMicroflowAction.$anonfun$executeMicroflow$5(ExecuteMicroflowAction.scala:108)     at scala.Option.getOrElse(Option.scala:121)     at com.mendix.webui.actions.client.ExecuteMicroflowAction.executeMicroflow(ExecuteMicroflowAction.scala:108)     at com.mendix.webui.actions.client.ExecuteMicroflowAction.execute(ExecuteMicroflowAction.scala:63)     at com.mendix.webui.requesthandling.ClientRequestHandler.$anonfun$handleRequest$2(ClientRequestHandler.scala:364)     at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)     at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49)     at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25)     at com.mendix.webui.requesthandling.ClientRequestHandler$ClientMonitoredAction.monitor(ClientRequestHandler.scala:472)     at com.mendix.webui.requesthandling.ClientRequestHandler.handleRequest(ClientRequestHandler.scala:349)     at com.mendix.webui.requesthandling.ClientRequestHandler.handleActionWithSessionRequired(ClientRequestHandler.scala:280)     at com.mendix.webui.requesthandling.ClientRequestHandler.handleAction(ClientRequestHandler.scala:242)     at com.mendix.webui.requesthandling.ClientRequestHandler.liftedTree1$1(ClientRequestHandler.scala:104)     at com.mendix.webui.requesthandling.ClientRequestHandler.processRequest(ClientRequestHandler.scala:96)     at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:40)     at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:71)     at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:68)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:74)     at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:858)     at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.service(RuntimeHandler.java:42)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)     at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)     at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)     at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)     at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)     at org.eclipse.jetty.server.Server.handle(Server.java:561)     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:334)     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:104)     at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)     at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:243)     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)     at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)     at java.lang.Thread.run(Thread.java:748)   We have two environments in fact (both on premise) but this issue only appears to be on one of the environments, the other one is working fine. Comparing the Model Reflections and Excel Exporter configurations they appear to be the same. So I'm wondering if it might be an environmental issue?   Does anyone know what might be causing this to fail or can anyone suggest what I might check for?   Thanks in advance Regards Adrian

Changing default loader

$
0
0
Greetings.   I am struggling with loader. for some time I want to change it. I was not able to find some useful information about this topic. Can anyone give me any guidelines how to change default loader?   Thank you very much in advance.

How to disable the Android back button?

$
0
0
I would like to block the Android back button. I can trap the event and show alerts when the button is pressed, but I have trouble actually stopping the application from navigating back. The default code used for phonegap solutions does not seem to work on a Mendix based application. Does anyone know how to do this?   The following code has been placed in a custom .js file inside the theme folder, which has been added to the components.js file. document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady(){ alert("On Load"); document.addEventListener("backbutton", didPressBackButton, false); } function didPressBackButton(event) { alert("go back!"); // event.preventDefault(); //Does not block the backbutton // event.stopPropagation(); //Does not block the backbutton // return false; //Does not block the backbutton }   p.s: There have been similar questions before on this forum, but they were never conclusively answered. By removing unnecessary info from the question, I am hoping to get an answer that is more to the point. :-) p.p.s: An additional question which I do have: Where do I place and call the javascript code? By placing it in a custom .js file, It is only loaded once. This works if I want the behaviour everywhere. But when I need the behaviour in specific pages, this will not suffice. Using html widgets does not work either, since this results in the 'go back!' alert showing multiple times when entering a page multiple times. The number of alerts shown increases by one every time I press the back button on that page an additional time. Feedback on where to place the code would also be highly appreciated! p.p.p.s: The following code can be found in cordova.js when using remote inspection on an Android device. I suspect Mendix is inserting their own code in between the application and the Cordova event handlers:

multilevel reference selector for attributes in New edit page

$
0
0
I have created a simple domain model with associations as follows….. country-- (one to many)-->State (one to many)-->City (one to many)--->User. Now i have two issues 1- Datagrid source as xpath, and in search i am using reference selector drop downs for each of country, state and city …but the application is not showing value for these drop downs.  2- When I want to add a new user by using new edit page. first i want to select a country, on country selection the relevant states should be available under another drop down, after selecting the state i should be able to select a city related to that state. The New Edit page with is created with dataview under entity User...but for linking reference selectors to the  attributes only the first level of reference selector between user and  city is available. while the 2nd level reference selector  between city and state, and 3rd level reference selector between state and country are not appearing to link. is there any problem..Please provide some examples

How to get Entity ID attribute created by Mendix

$
0
0
Hello Everyone, Can you please let me know how can i retrieve my Entity ID in MicroFlow

Numeric keyboard for mobile devices

$
0
0
Hi there, I would like to have a numeric keyboard for integer fields on mobile devices (mobile browser, not hybrid app). This post describes this: https://forum.mendixcloud.com/link/questions/8780  I believe this answer is no longer valid, since it is sub-optimal and the UX widget does not as exist anymore (as far as I can see). Does anyone have a different solution on how to solve this? Thanks!  Tim

Need help fixing a translation issue.

$
0
0
We were working on a Mendix application that supports two languages (Arabic and English), we already translated all the required text for both languages. But there’s an issue where when we attempt to login(sign-in) using an incorrect username or password the error message that appears only takes the default language selected of the application instead of using the correct translation of the selected language. Please refer to the attached picture below for more insight.

Creating two entities on one page

$
0
0
I have two different entities, which connected throw main entity.  How to create both entities on one page ?  I added a Data View and set the data source to the main entity. When I load the page, I can see the field from both entities but I can not access the text box for it.

ATS Testing Session Timeout

$
0
0
I’m doing some automated testing using ATS. Whenever I try to set the value of a textbox, I always get a timeout message after 1 minute. The name of the box is the correct one (using ATS Helper to get widget name), and the type of data I am inputting is a string.   Here is a screenshot of how I am using it   What other reason could there be for this error?

'System.owner' does not refer to a valid association

$
0
0
An error has occurred while handling the request. [User 'demo_requestor' with session id '17d6cdc6-9c5f-4a71-812a-6edf4c7c1bb6' and roles 'Requestor'] -------- com.mendix.webui.WebUIException: Exception while retrieving data for list widget 'Expenses.Home.listView2' on page 'Expenses.Home' at com.mendix.webui.actions.client.RetrieveByMicroflowAction.$anonfun$apply$2(RetrieveByMicroflowAction.scala:60) Caused by: java.lang.IllegalArgumentException: requirement failed: path 'System.owner' does not refer to a valid association at scala.Predef$.require(Predef.scala:277) at com.mendix.basis.action.user.RetrieveByPathAction.<init>(RetrieveByPathAction.scala:21) at com.mendix.basis.action.ActionFactory.createRetrieveByPathAction(ActionFactory.scala:322) at com.mendix.basis.component.InternalCoreBase.retrieveByPath(InternalCoreBase.java:955) at com.mendix.webui.schemas.FullObjectSchema.$anonfun$apply$1(FullObjectSchema.scala:31) at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:240) at scala.collection.Iterator.foreach(Iterator.scala:937) at scala.collection.Iterator.foreach$(Iterator.scala:937) at scala.collection.AbstractIterator.foreach(Iterator.scala:1425) at scala.collection.IterableLike.foreach(IterableLike.scala:70) at scala.collection.IterableLike.foreach$(IterableLike.scala:69) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at scala.collection.TraversableLike.flatMap(TraversableLike.scala:240) at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:237) at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104) at com.mendix.webui.schemas.FullObjectSchema.withAssociated$1(FullObjectSchema.scala:30) at com.mendix.webui.schemas.FullObjectSchema.apply(FullObjectSchema.scala:36) at com.mendix.webui.actions.client.RetrieveByMicroflowAction.$anonfun$apply$9(RetrieveByMicroflowAction.scala:45) at scala.collection.immutable.List.flatMap(List.scala:334) at com.mendix.webui.actions.client.RetrieveByMicroflowAction.$anonfun$apply$2(RetrieveByMicroflowAction.scala:45) at scala.util.Either.map(Either.scala:349) at com.mendix.webui.actions.client.RetrieveByMicroflowAction.apply(RetrieveByMicroflowAction.scala:28) at com.mendix.webui.actions.client.RetrieveByMicroflowAction.apply(RetrieveByMicroflowAction.scala:16) at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$4(RegularClientAction.scala:46) at com.mendix.webui.requesthandling.helpers.StateHandling.withState(StateHandling.scala:33) at com.mendix.webui.requesthandling.helpers.StateHandling.withState$(StateHandling.scala:22) at com.mendix.webui.actions.client.RegularClientAction.withState(RegularClientAction.scala:21) at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$3(RegularClientAction.scala:44) at scala.util.Try$.apply(Try.scala:209) at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$2(RegularClientAction.scala:44) at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$2$adapted(RegularClientAction.scala:42) at com.mendix.webui.requesthandling.helpers.ContextHandling.$anonfun$inContext$4(ContextHandling.scala:41) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49) at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25) at com.mendix.webui.requesthandling.helpers.ContextHandling$ClientMonitoredAction.monitor(ContextHandling.scala:49) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:41) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:27) at com.mendix.webui.actions.client.RegularClientAction.inContext(RegularClientAction.scala:21) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:24) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:19) at com.mendix.webui.actions.client.RegularClientAction.inContext(RegularClientAction.scala:21) at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$1(RegularClientAction.scala:42) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) at com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest(ProfileHandling.scala:14) at com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest$(ProfileHandling.scala:10) at com.mendix.webui.actions.client.RegularClientAction.profileRequest(RegularClientAction.scala:21) at com.mendix.webui.actions.client.RegularClientAction.execute(RegularClientAction.scala:39) at com.mendix.webui.requesthandling.ClientRequestHandler.handleAction(ClientRequestHandler.scala:124) at com.mendix.webui.requesthandling.ClientRequestHandler.processRequest(ClientRequestHandler.scala:101) at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:40) at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:72) at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:69) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:75) at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:870) at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.service(RuntimeHandler.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:503) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) at java.lang.Thread.run(Thread.java:745) I am a novice at Mendix and doing the learning paths. I am currently doing the “Create an App with Advanced Page Building” path. I have followed everything to the letter. After doing module 4.5.3, and running the app, I am getting the above error when I switch to the requestor and approver users. How can I fix this? I am using Modeler version 7.21.0.

How to pass string / number parameter with Deeplink/Universal link to Microflow

$
0
0
Hi, I am following https://forum.mendixcloud.com/link/questions/91914 to implement the functionality to open the hybrid app. My Requirement: Suppose i have an app with many products and each product has a productID. My deep link url is like <*/link/product?productID=12345asd> and my deeplink Microflow is like MyModule.MyProductMF i have used universal link(https://github.com/sudhansurana/cordova-universal-links-plugin) forked from https://github.com/flipflopapp/cordova-universal-links-plugin with minor fixes. my entry code looks like  var MxApp = require("@mendix/mendix-hybrid-app-base"); MxApp.onConfigReady(function(config) { // Perform any custom operations on the dojoConfig object here // Perform any custom operations on the dojoConfig object here config.afterNavigationFn = function() { console.info("Running Eric's custom afterNavigation function"); //add a listener now for deep links //any time they come in now, we'll be ready to handle them universalLinks.subscribe(null, function(eventData) { // do some work console.log('Did launch application from the link: ' + eventData.url); var oReq = new XMLHttpRequest(); /* use a PUT to get responses from DL without redirects * 200 means it's ready * 401 means you're not logged in * 404 means not found */ oReq.open("put", eventData.url, true); console.log(mx.ui.getContentForm()); console.log(mx); debugger; //detect if iOS for handle deeplink if (device.platform === 'iOS' || device.platform === 'Android') { var pid = mx.ui.showProgress("Loading link..."); oReq.onreadystatechange = function () { if(oReq.readyState === 4) { if(oReq.status === 200) { mx.data.action({ params: { actionname: "MyModule.MyProductMF" }, origin: mx.ui.getContentForm(), callback: function() { mx.ui.hideProgress(pid); }, error: function(error) { mx.ui.hideProgress(pid); mx.ui.error("Unable to load link. Please try again."); } }); } else if (oReq.status === 401) { //we weren't redirected (got a 200) and instead were sent to a login page. Show an error mx.ui.hideProgress(pid); mx.ui.error("Sorry, you need to be logged in to view this link. Please log in and try again"); } else { //something else went wrong mx.ui.hideProgress(pid); mx.ui.error("Sorry, something went wrong with the link."); } } }; } oReq.send(); }); //these lines are from the original afterNavigationFn, which we're overriding /* * If defined, this function is invoked in onNavigation method, * called as the last action during the startup. Lines below handle * removal of the loading nodes. */ var removeSelf = function() { var appNode = document.getElementById("mx-app"); if (appNode) appNode.style.display = "none"; }; removeSelf(); } }); It is failing and showing the productID as null in microflow log sample log 6:50:28 PMAPPERRORClient: Error 6:50:28 PMAPPINFOat https://*.mxapps.io/mxclientsystem/mxui/mxui.js?636839359876716420:31:34254 6:50:28 PMAPPINFOat https://*.mxapps.io/mxclientsystem/mxui/mxui.js?636839359876716420:20:2053 6:50:28 PMAPPINFOat Object.next (https://*.mxapps.io/mxclientsystem/mxui/mxui.js?636839359876716420:20:2158) 6:50:28 PMAPPINFOat a (https://*.mxapps.io/mxclientsystem/mxui/mxui.js?636839359876716420:20:929) 6:51:09 PMAPPINFOClient: Running Eric's custom afterNavigation function 6:58:17 PMAPPERRORClient: No permission to read or write entity *.DeepLinkParam, check security! 6:58:17 PMAPPERRORClient: Could not commit object: 6:58:17 PMAPPINFOCannot read property 'needsReachableState' of undefined TypeError: Cannot read property 'needsReachableState' of undefined 6:58:17 PMAPPINFOat t.<anonymous> (https://*.mxapps.io/mxclientsystem/mxui/mxui.js?636839359876716420:67:112857) 6:58:17 PMAPPINFOat i (file:///android_asset/www/js/bundle.js:1:110486) 6:58:17 PMAPPINFOat Generator._invoke (file:///android_asset/www/js/bundle.js:1:111625) 6:58:17 PMAPPINFOat Generator.t.(anonymous function) [as next] (file:///android_asset/www/js/bundle.js:1:110665) 6:58:17 PMAPPINFOat i (file:///android_asset/www/js/bundle.js:1:110486) 6:58:17 PMAPPINFOat r (file:///android_asset/www/js/bundle.js:1:110721) 6:58:17 PMAPPINFOat file:///android_asset/www/js/bundle.js:1:111066 6:58:17 PMAPPINFOat new Promise (<anonymous>) 6:58:17 PMAPPINFOat e (file:///android_asset/www/js/bundle.js:1:111040) I also tried to create a MendixObject and on creation of it tried to pass it , but it shows security issue. I am logging in by Admin account. I have already tried the following discussions https://forum.mendixcloud.com/link/questions/8924 https://forum.mendixcloud.com/link/questions/8883 https://forum.mendixcloud.com/link/questions/87255 https://forum.mendixcloud.com/link/questions/9692 https://forum.mendixcloud.com/link/questions/92337   Please Help

How to use Cascading Dropdown / Reference Selector for more then 1 Entities

$
0
0
Hello Everyone, i want to ask a question that how can i use a cascading dropdown or a reference selectore for more then 1 entity. Like my entity is as shown below so when i view users data it will show me the city, state and country as well whereas when i want to add use it only showing me a City and if i add new reference selector or a dropdown to select state or a Country its not showing me any attribute for State and Country.  whereas what i want is that whenever a user comes to register a new user firstly he will select a country of new user then the states related to selected country will open in the States Drop down and when a user select State then cities related to that states will appear in the cities dropdown and then finally a user can select a city he want.

How to use the treeview widget for this basic use case

$
0
0
Hi, I have a use case where I have list of records in which every record has “id” and “parent_id”. My grid should represent a heirarchy like this :  Object 1       → Object 2       → Object 3 Object 4 Object 5       → Object 6 Here, all objects are of same type (say “SampleObject”) as mentioned earlier. I have to manually traverse through the records to find children of a specific parent to show the heirarchy. I tried using treeview from the appstore : https://appstore.home.mendix.com/link/app/294/ But I’m not sure how to fit it for this scenario. (I have to achieve this via above approach because Mendix was not able to recognize this heirarchy in my JSON :  {     "id": "1",     "parent_id": "0",     "children": [         {         "id" : "2",         "parent_id": "1",         "children": [             {             "parent_id":"3",             "id": "2",             "children": [{                     }]             }         ]         }     ] } Here there is single object type which has “id”,”parent_id” and “child”. But Mendix creates seperate entities for every object. That’s why I’m now using flat data with just “id”, “parent_id” and leaving the heirarchy to be computed at Mendix side.) Can you please provide a solution for this?
Viewing all 83469 articles
Browse latest View live


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