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

Getting Inputs from Several fields

$
0
0

Hi All,

I Developing application in that

1,I need to get input from Several field of different data type

2,After gettting inputs i need to manipulate them  and display the result value in table, in which each cell i have to calculate different formula based on inputs from previous page


Cannot read property 'async' of undefined

$
0
0

Hello,

I am getting the below error after upgrading our project to 7.7.1. Please advise.

Uncaught (in promise) TypeError: Cannot read property 'async' of undefined
    at mxui.js?636263688744647348:29
    at new Promise (<anonymous>)
    at mxui.js?636263688744647348:29
    at Array.map (<anonymous>)
    at u (mxui.js?636263688744647348:29)
    at r.update (mxui.js?636263688744647348:29)
    at mxui.js?636263688744647348:29
    at new Promise (<anonymous>)
    at r._update (mxui.js?636263688744647348:29)
    at mxui.js?636263688744647348:29

 

Thanks in advace

Excel Importer - new download problem

$
0
0

I have just downloaded the latest version of the Excel Importer (5.14.0) in response to the security notice and got errors when I tried to compile. I notice that others have had the same problem and have overcome it by deleting old POI files. Please can you tell me what POI files are and how to locate them.

AutoComplete Plugin

$
0
0

Selected Template/Result Template...any examples of what goes here?

Retrieve data from an entity within a year on a quarterly basis. (3 months to 3 months)

$
0
0

Hello,

 

I am developing an application which sells Products. And when invoicing there is a place in the form to add Tax amount. The Tax amount gets saved in an entity named "TAXES".

Now my client needs a way to calculate the total taxes within one year but in a quarterly basis. Meaning, from January to March, April to June, July to September and so on.

I have tried it with a Retrieve Microflow on the Entity "Taxes" with Xpath restriction on the date value. Here is where the trouble comes:

When Retrieving I need to do this automatically without user intervention via a form for setting the specific date range. Means I need to hard code it in the retrieve action.

But How to do this? I know if we use a form to capture the user inputs for a date range we can easily apply that to the microflow retrieve. But in my case I need to do this for each year and per three months automatically. I assume that I can hard code the months, but not the year because this has to be done automatically each year. Not just one year. If I hard code the whole date with the year, then it will be useless. So the current Year has to be loaded Automatically and the dates can be fixed.

What is the Xpath code for getting the current year and fixed date range for a retrieval like this?

Please help

Dylan

Retrieve the current object to associate with the pre-committed object.

$
0
0

Hi,

I have 3 entities, let say company, employee and department. While user is trying to create the company object, he should be able to add employee objects to company. After creating and committing the company object with associated employees, the user should create a department object and while creating this department object, he should be  to see all the companies to select any of the company. When user clicks on a particular company, the employees associated to this should pop up. Then we need to assign the current department object to a particular employee. The problem is i'm unable to retrieve the current department object to assign it to the employee object. Could some one help me out with this.

PDF Document viewer not working in Mx7.7.1???

$
0
0

Hello,

I have developed an application which has several PDF documents created as invoices and reports. The project was created in Mx 6.10 and the document viewer worked fine in that version, but since converting to 7.7.1 whenever you view the document it simply displays a message : invalid PDF structure. And sometimes displays an error saying to contact the system adminstrator. When run locally I checked the console for any errors, but there is no error there also.

Does anyone know what causes this? or does the widget not work in 7.7.1 perhaps?

Please Help

Images has no content

$
0
0

Hi,

I have a wizard with 4 mobile screens where I add an Photo object (inherited from system.image) in each screen to a Car object (one-to-many relationship). I want an overview of the 4 photo's in a template grid on the 5th screen but I only see the photo I added in the 4th screen. I did a check and there is a list of 4 photo's related to the Car but only the last one has content (the actual picture). I use the standard Mendix image uploader and I do not commit along the way. 

Does anyone know why my photo's are not showing op? 

Thanks! 


PhoneGap Build app template shows missing script: package

$
0
0

Hi, I'm using the Mendix PhoneGap Build app template to create a phonegap package for PGB. When running the command line npm run package, I get the error: missing script: package.

This error appears when trying the run the script commands configured in the package.json. I think this means one or more scripts fail to run. Then I'm not sure if it's one of the scripts, or the installation failed. Using version 1.2.0 of the template.

Any suggestions?

Edit: You need to run "npm run pgpackage" instead (pg for PhoneGap) 

white-space: pre-line

$
0
0

In a feedback portal, I want to trim the description to max 2 lines of text. This works perfectly with my CSS, but Mendix applies a "white-space: pre-line;" to every text object. My CSS:

A screenshot of the unwanted white-space:

 

As you can see, I've tried to overwrite the white-space property to normal, but it will still overwrite to pre-line. 

Any ideas? :-)

Error after updating to mx 7.5.1: Exception in thread "main" java.nio.file.NoSuchFileException: /srv/mendix/customera/data/tmp/platform-public___7329799196645687857

$
0
0

After updating our app on premises to mx 7.5.1 we get the following error when starting the app.

Exception in thread "main" java.nio.file.NoSuchFileException: /srv/mendix/customera/data/tmp/platform-public___7329799196645687857
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
        at java.nio.file.Files.createDirectory(Files.java:674)
        at java.nio.file.TempFileHelper.create(TempFileHelper.java:136)
        at java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:173)
        at java.nio.file.Files.createTempDirectory(Files.java:991)
        at com.mendix.container.deployment.internal.Interpreters$ClassLoaders$$anon$1.<init>(Interpreters.scala:89)
        at com.mendix.container.deployment.internal.Interpreters$ClassLoaders$.createClassloader(Interpreters.scala:85)
        at com.mendix.container.deployment.internal.Interpreters$ClassLoaders$$anonfun$newDependency$1.apply(Interpreters.scala:149)
        at com.mendix.container.deployment.internal.Interpreters$ClassLoaders$$anonfun$newDependency$1.apply(Interpreters.scala:147)
        at cats.data.StateFunctions$$anonfun$modify$2.apply(StateT.scala:179)
        at cats.data.StateFunctions$$anonfun$modify$2.apply(StateT.scala:179)

What could be the reason that these folders are not created? 

I already check the rights but they seem in order.

customera@......:/srv/mendix/customer/data$ ls -ltr
total 20
drwxrwxr-x   2 customera customera 4096 Apr 24 08:22 logs
drwxr-xr-x   2 customera customera 4096 Sep 28 16:09 database
drwxr-xr-x   3 customera customera 4096 Sep 28 16:50 model-upload
drwxr-xr-x 215 customera customera 4096 Sep 28 16:54 files
drwxr-xr-x   4 customera customera 4096 Sep 28 16:54 tmp

m2ee version is:

Using m2ee-tools version 7.0.1

Java version is:

customera@PVB-T-MX3:/srv/mendix/customer/data$ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

 

The only reason i could imagine is that the disk space would be insufficient, (we currently have about 500 mb left) However our app is not that big.

Error when using a java action

$
0
0

I get the following error when trying to pass a .xlsx file through a string extract java action.

java.lang.NoSuchMethodError: org.apache.poi.util.POILogger.log(ILjava/lang/Object;Ljava/lang/Throwable;)V
	at org.apache.poi.util.DocumentHelper.trySetXercesSecurityManager(DocumentHelper.java:125)
	at org.apache.poi.util.DocumentHelper.<clinit>(DocumentHelper.java:98)
	at org.apache.poi.openxml4j.opc.internal.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:374)
	at org.apache.poi.openxml4j.opc.internal.ContentTypeManager.<init>(ContentTypeManager.java:100)
	at org.apache.poi.openxml4j.opc.internal.ZipContentTypeManager.<init>(ZipContentTypeManager.java:54)
	at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:257)
	at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:774)
	at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:268)
	at org.apache.tika.parser.pkg.ZipContainerDetector.detectOPCBased(ZipContainerDetector.java:211)
	at org.apache.tika.parser.pkg.ZipContainerDetector.detectZipFormat(ZipContainerDetector.java:148)
	at org.apache.tika.parser.pkg.ZipContainerDetector.detect(ZipContainerDetector.java:91)
	at org.apache.tika.detect.CompositeDetector.detect(CompositeDetector.java:77)
	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:112)

I have read that the more recent version of POI doesn't use the above class, but then when trying to implement an older version (using eclipse) of POI and its dependencies i get the same error.

I think I am doing something wrong but am unsure how to proceed.

Any help would be brilliant.

Reference (https://stackoverflow.com/questions/10330593/apache-poi-exception-in-reading-xlsx-files

Drools integration

$
0
0

How can i integrate drools in my application?Is there any way other than java action?

Passing a two entities to a microflow to create an association.

$
0
0

Hello,

I have a domain model with exam entity and question entity where many questions can associate with one exam. I have a way of creating questions in an exam, but what I hoped to do next was create a question pool, where I can multi-select unassociated questions in a data grid to associate with an existing exam.

So I imagined a drop down choice of an exam to select and then a multi-select of questions on the page, and then being able to press a button to pass the selected exam and list of selected questions to a microflow to associate the questions with the exam.

I think the microflow will have to accept two input paramaters (the exam and the list of questions) but I can't see a way of passing both an exam and list of questions from a page. I can only see how to pass one parameter.

Please does anyone know a way of achieving this, if it is possible in Mendix?

Thanks,

Alex

Prevent double click on listview item?

$
0
0

When you have a click action on a listview (for example opening a page or calling microflow). It executes twice when double click. Is there a way to prevent this?


Project API, what TemplateUUID can I use with Create App call?

$
0
0

https://docs.mendix.com/apidocs-mxsdk/apidocs/projects-api#createnewapp

 

It has a parameter TemplateUUID. My asumption  was that I can use a exisiting projectID but the result of the call is failed and has the following error without any clue:

Jobstatus error: com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.integration.WebserviceException: Unable to create CICD2 app because of an internal error.
	at PCP_ProjectsAPI.CreateNewApp (JavaAction : 'ThrowWebserviceException')

Advanced stacktrace:

 

How can  I create a project based on a template(project)?

Show percentage in Pie Chart Widget

$
0
0

Hi,

could you please help me with showing the numbering/percentage in the pie chart itself?

 

 

Thanks,

Prem

Passing a microflow as a parameter

$
0
0

Hi everybody,

I'm new to Mendix and I hope you can help me.

I'd like to pass as a  to a microflow another microflow as a parameter. This because I want to execute the same logic before and after the execution of a set of predefined microflows Is it possible?

Thai you

Alessandro

Login Workflow

$
0
0

I'm trying to make a workflow for a login page. The user enters their username and their password, then clicks the login button. I need to create a workflow for the login button so that the button checks that the username and password entered matches with the username and password stored in the domain model. How can I go about doing this?

Forgot Password feature

$
0
0

How do I add the "forgot password" widget from the app story if my Menxid modeler version is 7.7.1 but the error message in the app store states that this specific widget only works with versions 6.0.0-6.10.10. I upgraded to the latest Mendix version and updated all of my widgets within the app already. If this widget isn't available for the newest version of Mendix, is creating a microflow the next logical step? If so, how is that done?

Viewing all 83469 articles
Browse latest View live


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