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

Time consuming in Docker Build Pack

$
0
0
Hi When im building the docker image using Mendix Build Pack, normally it takes about 20 minutes most of the time.  The most time consuming is in the below line . INFO: Selecting Mono Runtime: mono-4.6.2.16 Could you please let me know how to over come this issue. Thank you Dhanushka.     

Some questions concerning PluggableWidget boilerplate

$
0
0
Hi everyone, I tried the new generator of widget according to https://docs.mendix.com/howto/extensibility/create-a-pluggable-widget-one And here are some of my questions ( i run “npm run dev”) If i look at development tool of Chrome, the tsx files show the compiled code instead of typecript code.  So how can I see the original tsx/ts code?    I wonder where is the best place to put function previously in “update” of old way creating widget (is it componentWillReceiveProps or new instance of widget will be created anyway)?    I want to try webpack-bundle-analyser on my build, how to add plugins to webpack config?    If i change some code, the watchTs detect and rebuild stuff, but then file widget.js is deleted and causes errors. (maybe the path to test project is wrong? but i see the widget mpk is in right place)   I intent to create a bug in my component (classname instead of className), but when i run the project, there is no warning/error when open the widget.  Is it correct?     I want to use react development build (more detailed bug report, performance analysis), is it possible now?    Now react 16.6 is used, when will the 16.8  used (people say with react Hooks, we may have more options to write react component)   If you know the answers, please share with me! I think many other people also be interested to know too.   Best regards,

Mendix Drop-Down Datasource

$
0
0
Hello, I’m trying to populate a Drop-Down from a microflow and have spent literal hours on this with no luck. Here’s the step by step: Data View in page has it’s data source set to a microflow. The microflow calls a rest API and receives Json as shown below [ { "id": 2, "timeStamp": "02-May-2019 17:08:56" }, { "id": 22, "timeStamp": "03-May-2019 11:04:03" } ] An import mapping is a applied as seen below. The output type of the ‘Call Rest’ action is a SnapshotList which as can be seen by the above has many sub snapshot objects. This is then returned to the data view. In the data view I have a drop down but when I try to set the attribute, the only thing showing is a Snapshotlist and I cannot select it as shown below.   Any help at all would be really appreciated. Thanks in advance, Adam.

Consume REST Service: Failed to load resource: the server responded with a status of 560 (560)

$
0
0
Hello Everyone, I am trying to use REST service in my app in desktop modeller every time I get the following error. browser console: Failed to load resource: the server responded with a status of 560 (560) mxui.js?636928213687538094:79 Error     at new t (mxui.js?636928213687538094:46)     at mxui.js?636928213687538094:46     at mxui.js?636928213687538094:20     at Object.next (mxui.js?636928213687538094:20)     at a (mxui.js?636928213687538094:20) (anonymous) @ mxui.js?636928213687538094:79     in mendix logs:  An error has occurred while handling the request. [User 'Anonymous_560401c7-4c5b-4cf9-ae47-186d09ce1f21' with session id '43847eaf-XXXX-XXXX-XXXX-XXXXXXXX2c9d' and roles 'Administrator'] and to Investigate further used wikipedia REST services given in the following example https://docs.mendix.com/howto/integration/consume-a-rest-service#1-introduction  For that also i get the same error   screenshot for my app:   wikipedia app:   Can you please tell me what I am doing wrong here? Thanks in advance, Regards, Shaila Khot  

Calendar loading issue run in IE11

$
0
0
Hi Guys, I’ve developed an app which runs fine in Chrome but hangs when ran in IE. The version of IE we use is IE11 (version 11.0.9600.19236). If I remove the Calendar widget from the home page it works for IE11 so I suspect the issue is with the calendar widget: https://appstore.home.mendix.com/link/app/107954/   Looking in the console I see the following 3 errors:   Error #1: Minified React error #130; visit http://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.  Invariant Violation: Minified React error #130; visit http://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.     at e.exports (http://localhost:8080/mxclientsystem/mxui/mxui.js?636928176292204329:46:196680)    at h (http://localhost:8080/mxclientsystem/mxui/mxui.js?636928176292204329:66:251)    at $n (http://localhost:8080/mxclientsystem/mxui/mxui.js?636928176292204329:66:34787)    at Anonymous function (http://localhost:8080/mxclientsystem/mxui/mxui.js?636928176292204329:66:42263)    at l (http://localhost:8080/mxclientsystem/mxui/mxui.js?636928176292204329:66:43070)    at p (http://localhost:8080/mxclientsystem/mxui/mxui.js?636928176292204329:66:43327)    at beginWork (http://localhost:8080/mxclientsystem/mxui/mxui.js?636928176292204329:66:51304)    at i (http://localhost:8080/mxclientsystem/mxui/mxui.js?636928176292204329:66:55238)    at o (http://localhost:8080/mxclientsystem/mxui/mxui.js?636928176292204329:66:55520)    at x (http://localhost:8080/mxclientsystem/mxui/mxui.js?636928176292204329:66:58456)   Error #2: factoryThrew undefined   Error #3: Loading module require*_27 failed! Check script file for syntax errors.     Does anyone know a fix for this please?   Cheers Adrian

Deep link module doesn't start a microflow

$
0
0
I have installed the deep link module this evening, but I cannot get it to work. Specifically, I got it integrated in my app such that I can configure a deep link, but when I go to that deep link (host/link/MyConfiguredLink) I get redirected to the home page. Strangely, when I click the home button, I get correctly redirected to the page I wanted to deeplink to (which I also set as homepage when using the deep link). Anyone got an idea what could be going wrong, and/or what I might have missed during installation and configuration? Further explanation:   @Ian and @Ronald. Thanks for your responses. I think i did the steps you described correctly, although I am not entirely sure that I configured the flow that is called by the DeepLinkConfiguration correctly. I have included the stuff that I did in my module below.   Project -> settings -> server -> after startup triggers microflow MyFirstModule.StartupFlow Microflow MyFirstModule.StartupFlow StartDeeplink (calls microflow Deeplink.StartDeeplink) StartAppCloudServices CreateDeeplinkConfig (variables, Name='Test', Microflow='MyFirstModule.GoToFirstPage', etc)   Microflow MyFirstModule.GoToFirstPage Open FirstPage   Also, in the navigation I set the Home button to microflow MyFirstModule.GotoHomepage Microflow MyFirstModule.GoToHomepage DeepLinkHome (call microflow Deeplink.DeeplinkHome) Exclusive split on UseDeeplink (boolean passed from DeeplinkHome) On true: End Event On false: Show Homepage, then End Event   This is the behaviour I am experiencing in my app: localhost:8080/index.html -> Works as normal. I can open the deeplinkconfiguration in the menu and see that my DeepLinkConfig is created, indicating that the StartUpFlow run successfully. localhost:8080/link/randomstring -> receive an error that the link is not configured. I think this indicates that deeplink is running. localhost:8080/link/test -> I go to the default Homepage (instead of the FirstPage as I would have expected). This indicates that something is wrong with either the microflow MyFirstPage or with the Deeplink configuration. However, when I now click on the home button (executing the microflow GoToHomepage) I correctly arrive at MyFirstPage (GoToHomePage triggered DeepLinkHome which propelled the user to MyFirstPage [as I configured the DeeplinkConfig UseAsHome = true]).   Further thoughts    

Getting sum of values from grid column with pagination.

$
0
0
In my app, I have used datasource type as XPath as I want to show sum of the values in column at the bottom of the grid. This sum is being shown for all the fetched records. i.e. if i am having 50 records in db and I have set the page size as 10 , sum is shown for whole 50 records. How can I configure this so that I will get the sum for only those records which are being displayed on grid at that time ?

How to Checkbox within a template grid

$
0
0
This post was created 7 years ago, was wondering if anyone knows of a workaround or hack?  https://forum.mendixcloud.com/link/questions/2465 I know that there is a Simple Checkbox Set Selector but I’m looking for a solution that flags a boolean of the entity viewed within the template grid. Currently, I’m using a Glyphicon 'check' image on a microflow button with some custom CSS to hide the borders of the button. Hoping for something cleaner.   

How to add QR Code in Document Template

$
0
0
Hello Everyone, can anyone let me know how add QR Code in PDF Document.

Dynamic Series Chart

$
0
0
Guys     I have everything working up to Point 4 https://docs.mendix.com/howto/extensibility/charts-dynamic-series Can someone explain point 4.1.2 (add a data view / microflow) as instructions are somewhat lacking on this step.  Instructions in the link above are as follows: 4 Configuring the Charts Widget 4.1 Adding a Chart Page (Done) Now you need to create a page containing the chart. Create a new page. (Done) Add a data view which uses a microflow to make a context which is the first object of the Value.  (attempted a few occasions but app fails to work so probably done this wrong) -Help needed. Add an Area chart widget inside the data view. (done)

Can`t find export file in the microflow actions

$
0
0
Hello Team,   Where can I find Creating Export file option?  

List View data is not getting loaded

$
0
0
Hello, Data is not getting loaded in random pages which are having list view. I am using Mendix 8.0(beta) desktop modeler. I completed designing the page as per ‘Become a Rapid Developer (Developer)’ course and then I added data to all the lists. When I change something (like adding a Delete button, etc), some random page’s list is not getting loaded. I even tried exporting the app and again imported. Still didn’t solve the problem…  

SimpleDateFormat vs Mendix formatDateTime

$
0
0
Hi I’ve noticed that if get a date member value from IMendixObject using the getValue method, convert to string using something like SimpleDateFormat, then print it, it’s off by one day, but if you use com.mendix.core.Core.evaluateExpression, pass the member into the hashmap, then use the Mendix formatDate function it prints out correctly How exactly does this work? try{ if(obj_Foo!=null){ text= com.mendix.core.Core.evaluateExpression( this.getContext(), { 'date':obj_Foo.getValue(this.getContext(),"SomeDateField") }, "formatDateTime($date, 'YYYY-MM-dd')" ) }else{ text=null; } }catch(e){ text=null; }  

Show Entity-Change-History in Page for the user to review

$
0
0
Hello,  I’m building an App where the user fills a form to create an entity. The created entity has three different statuses: Cached, Sent, Approved. Once the form is filled, the entity is cached. Once it is internally reviewed, it is sent to the customer. Once it is reviewed by the customer, it is approved.  I want to add a button, which (on click) shows a page where the status-history is shown: It should show the username, the time and date, and the status of the associated entity. I have no idea how to implement this. Thank you in advance for your help!

MX8 Multiple Widgets package

$
0
0
Hey there! I am not really a Mendix expert but I am helping my team to create some MX8 React Native widgets. I have followed the widget tutorial and all works fine, however, every scaffold creates an isolated widget, I am wondering if it is possible to group the Widgets under the same structure; only one node_modules and package.json for all of them, so I can easily share code across all components under the same structure. I've tried to have multiple widgets declarations in the package.xml file, but It didn't work. The image below exemplify what I am trying to achieve.   Does Mendix 8 support such structure? Thanks!

Use client certificate for WSDL source when adding Consumed Web Service

$
0
0
We want to import a WSDL from a URL to add a Consumed Web Service. This URL needs a client certificate. From a webbrowser (without using the correct certificate) you get an error offcourse: When trying to open the same URL from Mendix modeler (when adding a Consumed Web Service) you get an error too: Is it possible to specify the certificate needed to import the WSDL from the URL? Offcourse we can manually download the WSDL to a file first and import that file in the modeler, but having the URL as WSDL Source makes it easier to update the operations when webservice is changed later. It also makes it easier to remember where the WSDL came from (instead of a local folder like C:\Users\Someone\SomeFolder\SomeFile.wsdl). The certificate is already added to Project Setting (tab Certificates). This did not solve the error. Custom configuration settings are added too: ClientCertificates, ClientCertificatePasswords and ClientCertificateUsages (see https://docs.mendix.com/refguide6/custom-settings). This did not solve the error either.  

Disabling User Access

$
0
0
Is there a quick way without a build to disable access to an app, all users except 1 specified user? As far as I can see it is only possible for doing it user by user, but with my lack on Mendix knowledge I may be wrong. 

Fiori Templates are not working

$
0
0
Hi, i am trying to create an Application using fiori templates in the desktop modeler  7.18.1. One of the templates called Fiori Launchpad is not working, when i tried to display a page on call of a microflow when clicking the action button. The Action button is not displayed on  the mendix  browser. Even i tried in the latest version 7.23.3. and that is also not working here. I have given below  the app store link to have the SAP-Fiori-UI-package. https://appstore.home.mendix.com/link/app/107625/Mendix/SAP-Fiori-UI-Package Kindly help me to get resolved on this.

Mendix 8 System.owner not stored

$
0
0
Hey guys, how’s it going. Is there a bug with the Mendix 8 BETA 1? I have created Native app, run it with “Make It Native” app, I have a TestData entity and I’ve checked the “Store owner” as well as “Changed By”.    Changed By is saved. Owner is not.     Or am I doing something wrong here? Of course, it’s saved only when I click to “sync” data.

Mendix app on SAP Cloud - Cloud Foundry OData service error

$
0
0
Hi Mendix-community The set-up of the application is as follows: we want not-known-SAP/SCP end-users to access our Mendix application that’s going to need to consume an OData service of an OnPremise system. The documentation is rather contradictionary: use basic authentication, use principal propagation, us the GetDestination-method, use the GetCloudConnectorInfo-method, etc. There’s one constant in our quest, and that’s the HTTP 560 error, checking the logs: the hostname shouldn’t be known. Yet, when we deploy another application on CF (non-Mendix), we can perfectly access the OData service and fetch the data (with that same hostname). So I suppose that the Mendix application should as well be able to access the data, running in CF. Or do we need the proxy-object instead (returning object from the GetCloudConnectorInfo-method)? Anyone encountered this issue? Or know what the best workingway is regarding this issue? Thanks in advance!
Viewing all 83469 articles
Browse latest View live


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