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

External database and dropdown

$
0
0
Can i create a drop down such that it can populate the external MSSQL server database on the fly? If possible, can anyone suggest how to create a microflow for that entity.

Creating a Sprint in Sprintr across multiple apps

$
0
0
We have a small dev team working on 2 apps (A and B) concurrently.  During one sprint we might need to fix some bugs from App A and work on some stories from App B. Sprintr seems to force us to segregate App A and App B so that we cannot plan a single Sprint, or see a single burndown chart, in one place for everything we're doing in that sprint. Should this be possible or are we just doing it wrong?  Any thoughts appreciated.

Excel import using API instead Database

$
0
0
I am doing ecel import in my application i have imported EcelImporter and MxModelReflection and imlemented now what i want to do is i want to use API istead of using mendix database. so can anyone please help me on this. thanks in advance

Recover deleted association

$
0
0
Hi, I deleted an association from my domain model. One of my team members deleted that association table from sql server database. Now, when I am trying to deploy the application, it is looking for the table in the database to run DROP command. I can see the deleted association in the changelog. Is there a way to recover that deleted association in modeler or if possible that table in sql database? An error occurred while executing action 'Execute DDL commands'. -------- com.mendix.m2ee.api.AdminException: Executing DDL commands for component MyFirstComponent failed. at com.mendix.core.component.internal.LocalComponentImpl.executeDDLCommands(LocalComponentImpl.scala:133) Caused by: com.mendix.systemwideinterfaces.connectionbus.ConnectionBusException: Error (SQL State: S0007, Error Code: 3701) on executing: DROP INDEX [idx_debitcard$debitcard_shorttran_debitcard$shorttran_debitcard$debitcard] ON [debitcard$debitcard_shorttran] All changes are rolled back. at com.mendix.connectionbus.modelsynchronization.DDLCommandExecutor.execute(DDLCommandExecutor.java:90) Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot drop the index 'debitcard$debitcard_shorttran.idx_debitcard$debitcard_shorttran_debitcard$shorttran_debitcard$debitcard', because it does not exist or you do not have permission. at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:216) at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1515) at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:792) at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:689) at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5696) at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1715) at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:180) at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:155) at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(SQLServerStatement.java:662) 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:139) at com.mendix.connectionbus.modelsynchronization.DDLCommandExecutor.execute(DDLCommandExecutor.java:47) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.synchronizeModel(SynchronizationManager.scala:138) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.executeImpl(SynchronizationManager.scala:129) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.execute(SynchronizationManager.scala:79) at com.mendix.connectionbus.ConnectionBusImpl.executeDDLCommands(ConnectionBusImpl.java:324) at com.mendix.core.component.internal.LocalComponentImpl.executeDDLCommands(LocalComponentImpl.scala:130) at com.mendix.core.impl.MxRuntimeImpl.executeDDLCommands(MxRuntimeImpl.java:850) at com.mendix.core.action.admin.ExecuteDDLCommandsAction.call(ExecuteDDLCommandsAction.java:27) at com.mendix.core.action.admin.RuntimeAdminAction$1.execute(RuntimeAdminAction.java:23) at com.mendix.core.action.admin.RuntimeAdminAction$1.execute(RuntimeAdminAction.java:20) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.util.classloading.Runner$1.run(Runner.java:21) at java.security.AccessController.doPrivileged(Native Method) at com.mendix.util.classloading.Runner.runUsingClassLoaderOf(Runner.java:17) at com.mendix.core.action.admin.RuntimeAdminAction.execute(RuntimeAdminAction.java:25) 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(Unknown Source) I tried replacing the .mda file with a previous one, but that didn't help.

How can we change an enumeration according to the condition

$
0
0
Hi all, I have a dropdown which uses and enumeration. i want the dropdown to show the options according to the condition for which i need to make changes to the enumeration. i am unable to change the options in the enumeration. please suggest me a way to work on it.  

Mendix Desktop Modeler Installation failure

$
0
0
I need to install Mendix Desktop Modeler on a VM that doesn't has internet connection. First installer asked me .NET Framework is missing and I installed it . After this it shows downloading prerequisite software as shown below and then it fails. What prerequisite it is trying to download? Do we have any offline Mendix Dektop Modeler installer?

LDAP Sync from Virtual IP address (VIP) is getting failed

$
0
0
Hello, We are moving from the LDAP Synch from single node to Virtual IP address and getting below error message after processing approx. 5 mins. It appears that, this problem is occurring when the request is moving from first connected Active Directory server to another Active Directory. Please share if we need to make Configuration Changes. Currently, We are using LDAP V5.3.1 version for Synchronization. ERROR - Ldap: Failed to synchronize users: [LDAP: error code 12 - 00000057: LdapErr: DSID-0C090831, comment: Error processing control, data 0, v2580\x00]; nested exception is javax.naming.OperationNotSupportedException: [LDAP: error code 12 - 00000057: LdapErr: DSID-0C090831, comment: Error processing control, data 0, v2580\x00]; remaining name 'DC=erieinsurance,DC=com' INFO - org.springframework.ldap.control.AbstractRequestControlDirContextProcessor: No matching response control found - looking for 'class javax.naming.ldap.PagedResultsResponseControl  

How to fix the background image in the mobile

$
0
0
Hello, I add the background image by using this snippet, it works perfectly. But when I run the app in the mobile, the image will be pushed up by the keyboard shown both in IOS and Android? Anyone knows how to fix it, please? Thanks in advance,

Getting latest entry by date

$
0
0
Hi all,  In my app I have property valuations (entity of it's own, shown in a date grid with Valuation Date and Valuation). Doing it this way means that we can see valuation history as well. As it is just a table of all the valuations that have/will be done on the property.  I would like to see the latest valuation on the property information page.  I have set up attribute called "LatestValuation" and used a microflow to calculate its value.  Here's the microflow.  So it Retrieves > Sorts by Date > Takes Maximum value and returns it. This microflow returns the highest valuation regardless of date. the aggregate function does not see the Date attribute (i think this is because the microflow is set to return a decimal.Does anyone know how to make it return the valuation with the latest date?  Another option I have looked at is rather than doing it at the entity level, it commits to the 'LatestValuation' when you click save on the page which adds valuations. My first few attempts have been unsuccsesful.  Does anyone have any suggestions on how best to achieve this? Many thanks,  Garion

Mendix Desktop Modeler not launching and throws error

$
0
0
Mendix Desktop Modeler is throwing below exception while opening. None of the solutions given earlier for same issue worked for me. I tried solutions given below https://forum.mendixcloud.com/link/questions/8110 https://forum.mendixcloud.com/link/questions/12612 https://forum.mendixcloud.com/link/questions/61912 SimpleInjector.ActivationException: The registered delegate for type IMainForm threw an exception. The registered delegate for type IModelerGui threw an exception. This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms. ---> SimpleInjector.ActivationException: The registered delegate for type IModelerGui threw an exception. This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms. ---> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.   at System.Security.Cryptography.SHA256Managed..ctor()   at Mendix.Modeler.Utility.HashUtil.CreateSHA256Hash(String plainText) in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Utility\HashUtil.cs:line 24   at Mendix.Modeler.Storage.Database.Init(HashSet`1 assemblies, Type startType, IEnumerable`1 typeConverters, IEnumerable`1 summaries, String dbProductVersion, String dbBuildVersion) in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Storage\Database.cs:line 47   at Mendix.Modeler.ModelerCore.InitStorage() in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Core\ModelerCore.cs:line 85   at Mendix.Modeler.ModelerCore..ctor(IAssemblySource assemblySource, IProjectManager projectManager, IFileSystem fileSystem) in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Core\ModelerCore.cs:line 61   at Mendix.Modeler.ModelerGui..ctor(IAssemblySource assemblySource, IProjectManager projectManager, IDevSettingsProvider devSettingsProvider, IModelerSettingsManager modelerSettingsManager, ISprintrConnector sprintrConnector, IDocumentControlManager documentControlManager, IGuiThreadExecutor guiThreadExecutor, IStorageUI storageUI, IVersionControlConnectorProvider versionControlConnectorProvider, IApplicationManager applicationManager, IUpdaterUI updaterUI, IDockControlManager dockControlManager, ILocalRunner localRunner, IProblemsChecker problemsChecker, IDocumentManager documentManager, IProjectCloser projectCloser, IFileSystem fileSystem, IProgressDialog progressDialog, IHelpPageOpener helpPageOpener, INewDocumentFormFactory newDocumentFormFactory, IDeployAndRunUtil deployAndRunUtil, IStatusCacheManager statusCacheManager) in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Core\Gui\ModelerGui.cs:line 63   at lambda_method(Closure )   at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonLifestyleRegistrationBase`1.CreateInstanceWithNullCheck()   at System.Lazy`1.CreateValue()   at System.Lazy`1.LazyInitValue()   at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonLifestyleRegistrationBase`1.BuildExpression()   at SimpleInjector.Registration.BuildExpression(InstanceProducer producer)   at SimpleInjector.InstanceProducer.BuildExpressionInternal()   at System.Lazy`1.CreateValue()   at System.Lazy`1.LazyInitValue()   at SimpleInjector.InstanceProducer.BuildExpression()   --- End of inner exception stack trace ---   at SimpleInjector.InstanceProducer.BuildExpression()   at SimpleInjector.ContainerOptions.BuildParameterExpression(ParameterInfo parameter)   at SimpleInjector.Registration.BuildConstructorParameters(ConstructorInfo constructor)   at SimpleInjector.Registration.BuildNewExpression(Type serviceType, Type implementationType)   at SimpleInjector.Registration.BuildTransientExpression[TService,TImplementation]()   at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonLifestyleRegistrationBase`1.CreateInstanceWithNullCheck()   at System.Lazy`1.CreateValue()   at System.Lazy`1.LazyInitValue()   at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonLifestyleRegistrationBase`1.BuildExpression()   at SimpleInjector.Registration.BuildExpression(InstanceProducer producer)   at SimpleInjector.InstanceProducer.BuildExpressionInternal()   at System.Lazy`1.CreateValue()   at System.Lazy`1.LazyInitValue()   at SimpleInjector.InstanceProducer.BuildInstanceCreator()   at SimpleInjector.InstanceProducer.GetInstance()   --- End of inner exception stack trace ---   at SimpleInjector.InstanceProducer.GetInstance()   at SimpleInjector.Container.GetInstance[TService]()   at Mendix.Modeler.WindowsGui.App.InitModeler() in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WindowsGui\App.xaml.cs:line 141

APM in combination with SAML error

$
0
0
Hi guys 'n gals,   We're trying to import and configure the APM tooling into our application. The import went well, however, when starting our application we suddenly get an error in our SAML implementation about a security exception:   Feb 7 09:36:08.785 127.0.0.1 tr10000: ERROR - SAML_SSO: Unable to initialize the Servlet configuration Feb 7 09:36:08.796 127.0.0.1 tr10000: ERROR - SAML_SSO: (1/186) org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration. Followed by Feb 7 09:36:08.813 127.0.0.1 tr10000: ERROR - SAML_SSO: (117/186) Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission""velocity.log""write") This causes the SAML module to not initialize, so we can't use our Single Sign On Any tips?

How to configure correctly Velocity log under Mendix

$
0
0
i try to use velocity in my application, but i get this error : org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration. Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission""velocity.log""write") Nobody can help me to configure correctly the logger...  Thanks a lot  

How to Install Google Authenticator ?

$
0
0
If you set up 2-Step Verification, you can use the Google Authenticator app to receive codes even if you don’t have an Internet connection or mobile service.

Get month of object date

$
0
0
Hi I have a list of objects which have a DateTime as an attribute.  I need to work out the average number of objects per month over the last 12 months. The problem occurs in that there isnt currently 12 months of data so a simple div 12 doesnt work yet.  How can i establish quickly in my microflow how many months in the past 12 have data?

Customizing the look of a Navigation Drawer

$
0
0
Is there a way to customize the look and feel of the navigation drawer? I am trying to achieve something like the image below, with a logo in the place of the red box.   

Apppronto Notification Module

$
0
0
In some cases the alert pops up anytime the page is refreshed instead of just once.  Would think it would be killed after its displayed but thats not happening.  So for example: User does something that causes a legit notification to pop up. User clicks to another page in the app later on and the same notification pops up again. (this continues to happen until....) User refreshes browser, notification doesn't come up anymore. Anyone seen this issue?

How to pass 2 parameters to the next page

$
0
0
Hi, i want to pass 2 parameters to the next page. Does anybody know how to make a workaroud. i have a microflow with a parameter, and in the microflow i created a new object and also want to pass it to the next page.

Change SVG color

$
0
0
I have a nice black svg icon set, which I load in with css .icn-website{ background: url(../../icn/tmp.svg); } Is there a way to change the black lines to white lines?

Using a microflow as homepage

$
0
0
Hi all, my homepage contains a data view so I have set my homepage as a microflow in my navigation. Currently, my microflow is set up to retrieve the object for the data view from the database, then shows the home page, passing the retrieved object to the page. However, when I run the application and use the correct log in details, the mircoflow is not executing properly and ends up refreshing the login screen rather than routing to the homepage. I have also tried adding a 'Close Page' activity at the end of the microflow and this doesn't work either. Can anyone provide some assistance here? Thank you very much!

Listview with XPath search bug

$
0
0
I'm currently having weird behaviour with the search funtionality of a listview when showing attributes in the listview which are over an association with the object shown in the listview. First off the page looks like this in the modeler   And this is one of the fields that is causing an issue upon search.   Here is the data model part related to the field above.   So I will explain the issue in detail with some screenshots. First off the listview is shwn with the expected data present. For the sake of the example we will only look at the Volmacht Sociaal Secretariaat column , since I only posted a screenshot of this field in the modeler. Klant and Ondernemingsnummer stay correct through the entire example i guess since they are fields present directly in the entity and not over association.   When i type in a search value that does not return any results and press the enter key (Pressing the enter key seems to trigger the issue) in the search field I get no results. So this is as expected.   When I delete the search term all the results are shown again, but for some reason the 3 fields who are linked over an association show faulty results. Does anyone have any idea what causes this behaviour and how to possibly solve or work around this?   Ive also tried to use database instead of xpath, but this results in the same behviour. I cannot use microflow or over association since then I lose the search functionality of the listview.
Viewing all 83469 articles
Browse latest View live


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