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

Import Excel into Mendix App

$
0
0
Hello Everyone,  I am trying to import excel file into Mendix application. I am following the instructions provided on the page:  https://docs.mendix.com/howto/integration/importing-excel-documents However I am stuck at the below step as I am not able to understand what to do after I download  Download the Excel Importer and Mx Model Reflection modules from the appstore. Create menu items for the ExcelImportOverview and the MxObjects_Overview pages. Those pages already exist within the _USE_ME folders of the downloaded modules. I copied these patchs into at C:\Program Files\Mendix\7.18.1.40272\modeler but when I execute these nothing happens. I am not sure If I am doing anything wrong.  Please suggest, thanks in advance. Regards, Puneet

Create microflow with input as datasource

$
0
0
Hi everyone, I am trying to define a microflow with an input String, and use it as a data source of a data grid. when I try to this I have one error in the micro flow settings of the data grid and  title is : "No applicable value available"   Can I pass null or empty to the microflow or make the input optional?

Concatenating symbols with integers values

$
0
0
In a data-grid a column is calculated trough a equation by event handler (attribute type is integer) . the result is an integer for example 25, is there any way to show a % or symbol with integer value by Concatenation or any microflow?

Zip/Download files

$
0
0
Hi, I tried to add a button that download multiple files (1 excel report and some photos) in the same time. In order to do that, I tried to zip these files, with differents solutions that I found, but for the moment nothing works. I first tried to download the module "Create Zip" on the app Store, and call the Java action "ZipDocuments" in my microflow. It takes 2 parameters, a file document previously created that will contain the files zipped and a List of file documents that contains my 3 files. I created these 2 objects, I added the files to the list and I put the right parameters in the Java action. But when I test it, nothing is downloaded.  I tried to see with breakpoints if the file document that should contain the zip was empty, but no, after the java action call it has contents and a size that seems to be well.   Afterwards, I tried a second way, that I found over here : https://forum.mendixcloud.com/link/questions/6444, (code here : https://pastebin.com/PkJJCxZE). This link gave a code that was similar but not exactly the same, this time there is a return object that is the zip file. I created the java action with the right parameters, I called the it, then when I try to download the returned file, nothing is downloaded again. And I have no errors. Did someone manage to make it work ?  I put a picture of my microflow in order that it is clearer. Thank you in advance.  

Resizing Data View Contents Area, Resizing layout grids

$
0
0
I am using a horizontal data view with two  layout grids, the first layout grid contains an drop down button while the second container consists of a data grid form with 20 lines. after app run the half page is showing the button with a large empty area while only three lines of data grid are displaying in second data container, which should be 20 lines. How i can fix the display size of layout grids? 

Ldap test connection error

$
0
0
When configuring ldap in one of my apps I'm getting the following error when I click "Test Connection": Cannot decrypt the text because it was either NOT encrypted with a key of length 16 or they key is different Can anyone tell me what this means or what it's referring to? I've checked the Encryption key and it is 16 characters long. I've used this module in several apps so far and not had this error. Thanks, Tracy

Mendix 7 blank page

$
0
0
We run on on-premise servers. I'm upgrading an application from Mendix 6 to Mendix 7.6.0.  I can run locally fine and deployed and ran on the QA on premise server is successful. But when I deploy to our production server I'm getting a blank page. The login page is not displayed. Inspecting shows the below. I'm running the same build on QA and production. Any suggestions? Thanks.   mxui.js:29 No permission to read or write entity undefined, check security! (anonymous) @ mxui.js:29 mxui.js:29 mendix.lib.MxObject.create: Invalid Mendix object. Check entity access. (anonymous) @ mxui.js:29 mxui.js:29 No permission to read or write entity undefined, check security! (anonymous) @ mxui.js:29 mxui.js:29 mendix.lib.MxObject.create: Invalid Mendix object. Check entity access. (anonymous) @ mxui.js:29 mxui.js:21 TypeError: Cannot read property 'replace' of undefined     at _11fb (mxui.js:29)     at UI.startup (mxui.js:29)     at _1170 (mxui.js:29)     at _44 (mxui.js:29)     at Object._28.sequence (mxui.js:29)     at Object.yes (mxui.js:29)     at onLoad (mxui.js:29)     at Object.error (mxui.js:29)     at mxui.js:21     at _2d3 (mxui.js:21)     at _2d1 (mxui.js:21)     at dojo.Deferred.reject.errback (mxui.js:21)     at _2d3 (mxui.js:21)     at _2d1 (mxui.js:21)     at dojo.Deferred.resolve.callback (mxui.js:21)     at _2d3 (mxui.js:21)

Need help locating Prefill Page contents based on the entity" as indicated in Rapid Developer Module 4.5.2

$
0
0
Hi, I am currently following the Rapid Developer Learning Track and I am on Module 4.  I am trying to create a "detail" for when the Add button is activated by the user.  In 4.5.2 he instructions state to select the option "Prefill page contests based on the Course entity".  I can't locate this option.  Therefore, when I created the form, generic attributes were generated on the detail form.  I don't know how tie these attributes to the course data source.  Question 1: Is there a Prefill page option that I missed?  How can I tie the generic attribute to the correct data source?

Can't compile rest services Wikipedia example

$
0
0
I'm trying to do a local compile the following Rest services example at the following link : https://docs.mendix.com/howto/integration/consume-a-rest-service  I did import the latest Atlas_ui_framework version 1.2.0 (which required me to remove the admin email, hybrid_phone_templates), Rest services  version 5.1.0 and community Commons packages from the app store.   When i run it and view , i get the following error:  Buildfile: C:\Users\kuop\OneDrive\mendix_training\WikipediaApi-main\deployment\build_core.xml compile:     [javac] Compiling 199 source files to C:\Users\kuop\OneDrive\mendix_training\WikipediaApi-main\deployment\run\bin     [javac] C:\Users\kuop\OneDrive - ConocoPhillips\mendix_training\WikipediaApi-main\javasource\restservices\util\Utils.java:15: error: package org.apache.commons.codec.digest does not exist     [javac] import org.apache.commons.codec.digest.DigestUtils;     [javac]                                       ^     [javac] C:\Users\kuop\OneDrive\mendix_training\WikipediaApi-main\javasource\restservices\util\Utils.java:94: error: cannot find symbol     [javac]         return DigestUtils.md5Hex(jsonString.getBytes(RestServices.UTF8));     [javac]                ^     [javac]   symbol:   variable DigestUtils     [javac]   location: class Utils     [javac] Note: Some input files use or override a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] 2 errors BUILD FAILED C:\Users\kuop\OneDrive\mendix_training\WikipediaApi-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 5 seconds  

Pass list as argument to the rest URL from mendix application

$
0
0
I am new to mendix. I have a mendix application that syncronizes its few tables from another database. One of the tables has some employees information (say salary info). The employee table is not synced.  Now the requirement is not to list the inactive employees from a page showing the employee salary. I want to remove the salaries from this page where the employee is inactive. I am trying to add a workflow to pass the list of this salary details table to a java application where I will filter out the inactive employees and give back the list as response. But It seems while calling the rest url, I can not pass the list.  Please tell me what is the correct way to do this.  Thanks,

Email Setup

$
0
0
Hello Everyone, I am trying to setup email in Mendix and following the instruction provided at the page: https://docs.mendix.com/howto/extensibility/install-and-configure-the-smtp-module I checked on the forum and found in some post that you need to install the latest version, could anyone please suggest?   Best Regards, Puneet

Adding Select All or Deselect All option in drop down list button

$
0
0
I am using a drop down button for Enumeration list. Is there any way to add select all and deselect all option for selection? I know multi selection option is available but I need select all and deselect all. any clue?

How to add the Demo User Switcher to tablet view?

$
0
0
In my app the responsive pages nicely show the demo_user switcher. In the tablet (with layout Atlas_UI_Resources.Tablet_Default) pages i do not get the demo user switcher. Any suggestions?   Edit: It's only about the switcher. The feedback widget works when i add it. 

Adjusting the display area width for long page titles

$
0
0
  How to display complete page title of the page. I checked when I use a long page title the output shows a sub small part of the title.. How I can adjust the display area width for page title?

Change language by clicking a link

$
0
0
So I want to change the language of the whole app by clicking a link. With a simple microflow I change the System Language for the current user, but I might refresh the client? How to do this in the microflow?  Thanks in advance!

Setting .focus on first input field

$
0
0
I sometimes run into situations where Mendix will not set autofocus to the first input field automatically.  This happens mainly in full-page forms (pop-ups are usually fine) and may be due to styling.   Regardless; I figured I should be able to resolve it quite easily with a bit of javascript, so I threw a couple of code snippets at it through the browser console by way of test, but to no avail.  $(".FirstFocus").focus(); or  $(".FirstFocus:first").focus();  where FirstFocus is the class of the input field, both yield an output in the console: [div#mxui_widget_TextInput_16.mx-name-textBox1.FirstFocus, prevObject: jQuery.fn.init(1), context: document, selector: ".FirstFocus:first"]  and TextInput_16 is indeed the ID of the field I'm trying to set focus on. However, no focus is set.   My guess is I'm overlooking something dead obvious, but I rarely mess around much with the Mx frontend in this way. Anyone with a push in the right direction? 

Getting out of memory error after upgrading to mendix version 7.18

$
0
0
Hi There   I upgraded to mendix 7.18 on Monday  and i am now getting out of memory errors on my long running microflows that run in the background of my application.   I have tried on different machines and reloaded the postgresql data base and increased the maximum of lock per record size to no prevail. I made the mistake of pushing this to production as we didn't pick up the errors as we normally run these microflows a number of times a day to minimise the record list size. I had to go back in history and rerun the information for a complete day and this is when the errors happened. Nothing has changed in the portion of the system except the mendix upgrade. I can opsimize the microflows so they commit less or break the jobs up, but that will take time as all the functionality will have to be tested end to end again. And im not sure that will solve the problem.   Are you guys aware of this problem or is there a setting i need to change?       Stacktrace:   om.mendix.modules.microflowengine.MicroflowException: Failed to commit     at SalesAndCashup.OF_Sales_GetAutomatedUpdates_ForScheduledTask.nested.f94d4b81-62d6-431c-a098-2626adba402c [879 of 959] (Change : 'Change 'Transaction' (Net, VAT, Gross, TransactionQuantity)')     at SalesAndCashup.OF_Sales_GetAutomatedUpdates_ForScheduledTask (NestedLoopedMicroflow : '')     at RestServices_Custom.Update_Tills (SubMicroflow : 'OF_Sales_GetAutomatedUpdates_ForScheduledTask')     at RestServices_Custom.IVK_Cashup_Queue.nested.9da78cdf-595b-4e56-9192-d252d541467b.nested.87617301-85b1-4b83-805d-56bec64df607 [0 of 1] (SubMicroflow : 'Update_Tills')     at RestServices_Custom.IVK_Cashup_Queue.nested.9da78cdf-595b-4e56-9192-d252d541467b [0 of 1] (NestedLoopedMicroflow : '')     at RestServices_Custom.IVK_Cashup_Queue (NestedLoopedMicroflow : '') Advanced stacktrace:     at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:146) Caused by: com.mendix.core.CoreRuntimeException: Failed to commit     at com.mendix.basis.component.CommitHandler.commit(CommitHandler.scala:155) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.basis.connectionbus.ConnectionBusException: Exception occurred while updating data. (SQL State: 53200, Error Code: 0)     at com.mendix.basis.actionmanagement.ActionManagerBase.executeInTransactionSync(ActionManagerBase.java:125) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.basis.connectionbus.ConnectionBusException: Exception occurred while updating data. (SQL State: 53200, Error Code: 0)     at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:159) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.basis.connectionbus.ConnectionBusException: Exception occurred while updating data. (SQL State: 53200, Error Code: 0)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) Caused by: com.mendix.basis.connectionbus.ConnectionBusException: Exception occurred while updating data. (SQL State: 53200, Error Code: 0)     at com.mendix.connectionbus.connections.jdbc.JdbcDataStore.getCorrectException(JdbcDataStore.java:736) Caused by: org.postgresql.util.PSQLException: ERROR: out of shared memory   Hint: You might need to increase max_locks_per_transaction.    Regards, Patrick

QR Scanner without native app deployment

$
0
0
Hi all!   Is it possible to use a QR/Barcode scanner widget without having to publish the app to mobile app stores (i.e. have it natively installed)? I want to scan QR-codes with my app and store the information to which the QR code refers in my database. However, I have no experience with creating native apps, so I want to try it in a webapp first.   Kind regards and thanks in advance!  Steve Jonk

Project members in a company

$
0
0
We have a lot of projects, and new members (employees or stagairs) that come and go. Everytime I make a new project I need to choose every person individually to give access to the project. When a person leaves I need to remove this user in every project. This results in a lot of clicking, I tried to automate it with the Mendix api but it seems there are no services for this. I do see something about security groups that I don't see on on sprint/cloud/developer portal. Do we really need to add and remove a users on project level? Or can this be accomplished on a company level?   

Document Template - PDF keeps creating empty page at end

$
0
0
Hi, I've been working on a pretty simple document template, the basic structure is > Header > Data View >> Template Grid >>> Formatted tables Whenever i generate and download as a PDF, i see all the expected rows, but it will consistently append an extra page (With the header still) as a last page of the document, with no rows returned. Even if the rows from the template grid stop cleanly halfway through the previous page. Does anyone know what might be causing this additional blank page to be included, and how to stop it? Cheers
Viewing all 83469 articles
Browse latest View live