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

AWS IoT Connector - Java Compile Errors

$
0
0
Hi all, using a blank project, the AWS IoT Connector and single MF to call ListThings I get compile errors: - actions\ListThingsToEntities.java:67: error: package org.json does not exist - actions\ListThingsToEntities.java:67: error: cannot access JSONObject Tried adding JSON-java to userlib, but I ran into runtime error: - Error in execution of monitored action 'RegularClientAction' (execution id: 1595511205778-4, execution type: CLIENT).  NoClassDefFoundError occurred for class 'org/apache/commons/logging/LogFactory'. Please make sure the userlib folder of  your project includes the correct library which contains this class. Mendix Modeler v7.23.0 Any thoughts would be highly appreciated. =)

Display popup in the navigation bar

$
0
0
Hello,  I want to display a popup as you can see in the page. I would like to click on an icon of navigation and a popup will appear.  I would like to know what is the best option to buid it? May you help me? Thank you

Trying to show the output list of a microflow on a new page with list view

$
0
0
I have a page named “Location” from which I select a particular location, on click action for the location is it calls a microflow, taking location object as a parameter. In the microflow, I retrieve another entity “Office” as a list and put an Xpath constraint that limits the offices that are in the selected location only. The XPath constraint is : [contains(OfficeID, $Location/LocationID)] The microflow then shows a page “OfficeFiltered” which has a list view of entity “Office” and the microflow end event returns “OfficeList” from the retrieve action of the microflow with the XPath constraint. The data source of the page “Office Filtered” is set as this microflow. But all of this, when run, gives me an error ”CE1573 – Parameter “Location” of the selected microflow/nanoflow does not match available arguments. No arguments available to ‘listView1’.” (listView1 is on the page “OfficeFiltered”)   Here is the same microflow

text field right alignment - mission impossible?

$
0
0
Hello,  I would like to align the text in multiple text fields to the right. Seems like that with Mendix it’s absurdly impossible. Any magicians here? First attempt: Failed I tried using css: aligning the text to the right (text-align:right)  text direction Understanding the component: Failed After changing the background to some radical red color, I understood that I might be dealing with a components which includes the text field (see below).  Normally, background-color:red; would change the background of the text field. However, it doesn’t seem to be the case.  Following documentation: Failed I found this article: https://docs.mendix.com/howto/front-end/styles  Following the instructions didn’t help: putting “text-right” in class under the properties didn’t change anything.   How should I align the text to the right? any ideas?

oracle connection from Mendix Service Console

$
0
0
Hi, We are trying to connect to Oracle DB while importing application to Mendix Service console. The connection fails during the service startup at ConnectionBus node with error  com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: Either.right.get on Left     at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:351) Caused by: java.util.NoSuchElementException: Either.right.get on Left     at scala.util.Either$RightProjection.get(Either.scala:640)     at com.mendix.connectionbus.connections.jdbc.implementations.oracle.OracleDataStoreConfigurator.createDataSource(OracleDataStoreConfigurator.java:64) eDataStoreConfigurator.java:64)     at com.mendix.connectionbus.connections.jdbc.JdbcDataStoreConfigurator.initialize(JdbcDataStoreConfigurator.java:64)     at com.mendix.connectionbus.connections.jdbc.ConnectionManager.(ConnectionManager.java:29)     at com.mendix.connectionbus.ConnectionBusImpl.initialize(ConnectionBusImpl.java:341)     at com.mendix.basis.impl.MxRuntimeImplBase.initializeConnectionBus(MxRuntimeImplBase.java:503)     at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:317)     at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.java:48)     at com.mendix.m2ee.appcontainer.actions.StartAction.execute(StartAction.java:30)     at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandler.handle(HttpAdminHandler.java:129)     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)     at org.eclipse.jetty.server.Server.handle(Server.java:500)     at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)     at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)     at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)     at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)     at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)     at java.base/java.lang.Thread.run(Thread.java:834) The Oracle database server and DB itself is fine since the connection works fine from the server to DB server with SQL dev tools,etc.  

Is there any way to change the colour of an active tab?

$
0
0
Hi everyone, I have a page the has a tab container. On each of these tabs the background is a different colour, I was wondering if there is any possible way to make the active tab the same colour as the background for that particular tab. I’ve attached a screenshot below to show example of what I’m trying to do. I want to make the background of the tab “Test 1” the same colour as the background below it (#E6E6FA).

Styling a listview in React Native

$
0
0
I'm trying to apply styling on a listview in React Native. My goal is to make the listview items take the full width of the screen and space evenly. I accomplished this in the react developer inspector tool by applying {justifyContent:'space-evenly', flex: 1,} on the  (blue arrow). Now I want to put the styling in the custom.js file but I dont know how to target it.  In the attached picture, "container" refers to and "listItem" refers to listview items like "listView@item0". Does anyone know how to target (blue arrow) to apply styling on it? Thank you!

SSL certificate configuration in yaml file

$
0
0
our mendix application is running on linux server we want to secure our URL to https is there any way to configure the SSL certificate in the yaml file.

Select dropdown 'selected' attribute not showing on selected option

$
0
0
It appears that the ‘selected’ attribute is not displaying in the dom when an item is selected from a dropdown menu…. This is what I should expect with the ‘selected’ attribute on the item selected: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_option_selected   This does not appear to work in Mendix 8.6.4 Does anyone know of a workaround for this or know why its not working?   Thank you!

Data Migration

$
0
0
Hi, I'm new to mendix. I want to do a bulk data migration to the SAP cloud. Currently I am doing it via the Excel importer but it does not support a large amount of volume. Is there a standard tool? Thank you

Connect Mendix with MySQL

$
0
0
Hi all! I want to make an application in Mendix Studio Pro that is connected to a MySQL database. I want to display the data in Mendix widgets and be able to modify it and insert new data in the MySQL database through Mendix. I want to use templateGrid, reference selector, etc ... The database is very simple, it consists of several tables associated with a main table. My question is how should I do it? I have connected Mendix with MySQL through the JDBC DataBaseConnector and created MySQL tables in Domain Model twice: persistent and non-persistent.     And I have created a microflow composed of several microflows to load all the data of all the entities through the DataBaseConnector as explained in this video: Become a Rapid Developer Mendix Studio Pro With External Database(SQL Server) Tutorial Part2 Am I doing the right thing? Is there another way to connect Mendix to an external database and save changes and inserts to the database from Mendix? I have an application that does this in Microsoft Access and I want to switch to Mendix if possible. Thank you! PS: In the learning classes I did not find the solution to this question

Login Java Action - Custom Login

$
0
0
Hello Guys, Does anyone have working Login Java Action code ? If so please help me out.  Problem Statement:  1. I have a Mendix app for some enterprise application(lets say XYZ app).  2. I created a custom login page for users(anonymous) to enter their XYZ app credentials.  3. Once I receive the credentials, a REST call will be triggered to XYZ app and check If user is existed in the system.  4. If User exists in XYZ, with the same credentials Iam creating Mendix user account.  5. After creation, User should be logged in to Mendix application through Java action automatically.    Can anyone please suggest me how I can complete the step-5. [Mendix Version – 8.10.0]

Database connections being maxed out.

$
0
0
Hello In my project, I’m having a problem with finding the culprit widget/microflow responsible for causing database connections to hit maximum 50 connections.   How can i narrow down to which widget/microflow is potentially causing problems?

Http Response Interceptor

$
0
0
Our application is using a token for authorization for an API. Right now, upon receiving the token we save its expiration date time. Once that time is up, we request another one. We’d like to start requesting a new token once we get a response back from the API that says our token is expired. Ideally after receiving the 401 response, we’d refresh the token and then resend the original request. Does anyone know how we could do this by using an http request interceptor? Is there a way to cancel the request from within the interceptor? I haven’t seen an http response interceptor, otherwise I’d just use that. I understand that we accomplish this using a microflow but we don’t want the developers in our company to have to code a loop every time they make a rest call to this API.

Have Nanoflow run when there are validation errors

$
0
0
Is there a way to allow a nanoflow to run when a button is clicked when there are validation errors within the form on the page?  Currently there is a way to set “Abort on validation errors” to “No” for when a microflow is called but there doesn’t seem to be the same mechanism for nanoflows.   We’re trying to have a button that calls a nanoflow to cancel out of form editing and are needing a nanoflow because we are trying to display interactive loading icons immediately upon the button being pressed but when having a validation error (for example using the file manager widget and choosing an incorrect file type) and the user clicks the button, nothing happens.   Any help here would be appreciated!

Did not expect an argument to be undefined Error

$
0
0
Hi everyone, I am currently trying to add a feature to my app that allows an automated export of data to excel using the ExcelExporter. However, when I make the final call to export a file to excel, I get the below error in my console.     Does anyone know what could be causing this?  Thanks, Jon

Loss of

Loss of Completion Percentage

$
0
0
Hi, I am just starting to get involved in Mendix after a pause of some months. When I got into Learning Path page, I can see that several of my Modules were not 100% anymore. I wonder if this is because the Training module was updated, and all user that have done the module now are required to re-do the module again?   Thanks in advance, Raymond.

Conditional Background Color of a Data Grid and export to excel with same style

$
0
0
Hi, We have a requirement where we are displaying the data into a data grid and based on some condition we need to highlight the Background color for that row. i.e. We have a field in Data Grid Name "Amount (Decimal Type)" if Amount field value is 0 that mean we need to show Amount's column background as Green if amount is more 1-4 then Yellow if amount is more than 4 means we need to show background color as Red, and same style should be apply pull data into Excel by using  export to excel functionality Pls Advice. Regards, Aman

App Preview

$
0
0
I’m undergoing the rapid developer course, to preview my app. mendix studio is requesting I enable cookies which I have done. But it doesn’t take me anywhere.  What could be the issue?
Viewing all 83469 articles
Browse latest View live


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