Hi, Is there a way to add a css class to a container based on an enumeration ? Cheers
↧
Add a class based on enumeration
↧
Right Align Numbers in standard Textbox?
I would like to right align numbers in a standard Textbox, any pointers for the css that will accomplish this? Thanks, Mike
↧
↧
Total order amount per customer
In my domain model the entity Customer is associated to Order (1 to many). The requirement is to show the sum of the order amount of open orders per customer. My idea was to add a data view with a microflow as data source to determine the total order value per customer. Then I wanted to show this total order value per customer combined with some customer attributes (1 row per customer) in a nested data grid. However, I cannot get the app working. What would be the best way to achieve this? Your input is highly appreciated.
↧
Memory leak in async microflows
Hi all, Recently I started a small side-project to explicitly test the performance of Mendix database/query behavior in different scenarios. The first step was to create some simple logic to populate my test database with a large amount of data. My setup for this was quite straightforward. I created a manual invoke action that would start a number of Asynchronous Microflows through the CommunityCommons java action 'RunAsyncInQueue' . Each ASYNC_CreateAll flow would create a list for each database entity, fill these lists with objects until the batch size was reached, and commit the batches, like so: (picture 1: part of main Async flow) (picture 2: Batch create flow) (Picture 3: part of random data/object creation flow) Now all of the above is nothing that I haven't done many times before, in some form or another. Though not in Mendix 7. The idea of the setup was that I could, for example, have the system run 1000 batches of a 1000 creates each, go for lunch, come back, and have a database with 1 million of each record. This is where things got interesting. I'd given the system 2GB heap space, but despite this I rapidly ran into a 'GC Overhead Exceeded' error. I figured I'd tone it down a bit and try for 100 batches of a 100 creates each. This time the logic ran without error. I manually ran a few more batches to at least build a bit of a database. On the fourth manual invoke, I ran into GC overhead error again. I decided to try and see what was going on, so I connected my Mendix environment to VisualVM to track memory and GC behavior: (Picture 4: VisualVM output) As you can see, the amount of Used Heap rises steadily, and while the Garbage Collector is doing something, the Major GC events never bring the heap back to base levels. In effect, the entities created in memory in the Async microflows don't seem to be released to the JVM GC. After the entire batch ends (all 100 Async flows) we still don't see any drop in Used Heap (time between batches are the 'plateaus' in the memory graph). (Picture 5: Part of the heap dump) The Heap Dump predictably shows a lot of objects retained in memory. Note also the char[] (String) at the top. As part of the test-data, I create a 'long string' of 20.000 characters to simulate the use of 'Unlimited' text fields. All these are clearly retained in memory and are taking up the largest percentage of the heap (71%). Since I tend to use async flows quite often in projects (though usually not quite so data-heavy), this behavior was cause for concern. I checked if I could find any obvious reason why objects would be maintained in memory, but the flow does little more than create --> add to list --> commit list. Objects are not referenced to System.Session or System.User, and only a few are referenced to each other. I tried adding the 'Start Transaction' and 'End Transaction' to the start and end of each Async flow, but this changed nothing. Finally, I tried to explicitly terminate each session at the end of the microflows, through a custom java action using this.getContext().getSession().destroy(). (Picture 6: Mendix console output) As you can see, the sessions appear to be destroyed, and each Async flow runs under a different session. Again, this did nothing to change the observed behavior. As far as I can find, Mendix 7 doesn't offer any way to explicitly release an object to the GC anymore (ISession.release(IMendixObject) no longer exists), so I don't really see any way to resolve the issue. This is only a test-project, so I'm not so much looking for a solution as I'm looking for a cause; - Have I overlooked something that could / should cause this behavior? - Is the issue caused by the way the CommunityCommons action works on Mendix 7? - Is it a bug in the Mendix GC behavior for server-side memory usage? So for those who bothered to read through the whole thing; have you experienced anything similar in Mendix 7? And have you managed to find a cause and/or resolution? /** UPDATE **/ I've filed a support ticket and received the following from Mendix: Hi Christiaan, This issue is already being worked on by our R&D Runtime team as part of a larger set of improvements in the way the platforms handles state. The current estimate is that a fix for this particular issue will be released as part of 7.14.0 (currently scheduled for end of this month). This set of improvements is currently the top priority of this particular R&D team. Guess we sit and wait, for the moment :) /** UPDATE 2 **/ Received the following after submitting my project for testing: Thanks, R&D will take a look at it to determine whether this is a new case or part of the issue they are currently working on. One caveat, if it is confirmed to be the same issue it looks like the full fix will not make it into 7.14.0 but 7.15.0 instead (again, current estimate). More information if and when I get it.
↧
Support of other type of apps and widgets in ATS
Hey, What widgets are supported by ATS? and is ATS limited to Mendix applications? Kathy
↧
↧
Could not synchronize with server. Make sure your app has an offline profile enabled when running in offline mode
Hi all, I'm currently running into this message when trying to test a hybrid app on an iPad the first time. I made a xcode project using the phonegap build process and pushed the app to the tablet. The app has a 'Hybrid tablet app online' and a 'Hybrid tablet app offline' profile. I also tried with the Mendix developer app, where I can open the online profile pages. Any ideas what I could be doing wrong? Edit: Offline capabilities are enabled
↧
Monitoring Mendix Runtime
Hi All, So I was going through this document https://docs.mendix.com/refguide/monitoring-mendix-runtime and having difficulty in understanding how and where to pass the sample request and what does the below line infer. "If you are running the application from the Desktop Modeler, the M2EE password is set automatically by Mendix, and you can retrieve it from the enviornment variables of your application process." Any help is appreciated. Thanks, AD
↧
how can use autocomplete widget.
I have downloaded autocomplete widget from app store but how we can use that widget. Please help me out if any reference is here.
↧
Unable to create module using SAP odata model creator
Hi all, We are trying to create SAP odata model for consumption using SAP OData model creator . We are able to create Modules for SEGW frameworked OData service but the service we tried now is of different framework. Kindly let me know if modeler doesn't support any other framework other than SEGW Thanks Venkatesh
↧
↧
Mendix7 on-premise deployment issue
Hi All, I just tried to release our first updated MX6 to MX7 (7.13.1) application to our on-premise Acceptance (windows server 2008 R2, IIS 7.5, ARR 3.0, Mendix Service console 4.5) environment. Unfortunatly, I cannot get it to work. It works locally on the server (http://localhost:8011), but it does not work externally (so when it is accessed trough IIS). When loading the page, the browsers network trace shows an 404 NOT FOUND error on the request URL/metamodel.json?636590401638089927. What have I tried so far: -Reinstalled Mendix Service Console and Reinstalled APP. -Deleted IIS website profile and set it up again using the appropriate documentation (https://docs.mendix.com/deployment/on-premises/deploy-mendix-on-microsoft-windows). -Created new deployment packages in the modeler. Unfortunatly, always the same error. In the end, I re-deployed the last 6.10.10 package of the application again (with a restored database). That works correctly again direct out of the box (so no change in IIS settings!). So it seems that IIS needs some extra settings for Mendix7 apps, but I can't find any documentation about it. Anyone has an idea to get me in the right direction?
↧
Style AutoComplete for Mendix same as standard Text Box
I have a Mendix app in 7.12 with an Atlas based UI. In this app, I am using the AutoComplete for Mendix from AuraQ. As you can see in the screenshot below, the AutoComplete widget is shorter than a standard text box (AutoComplete is highlighted in yellow, Textbox is outlined in red). I have tried a number of different css methods to get the AutoComplete box to be the same height as the standard Textbox, without success. Any pointers greatly appreciated!
↧
Search on Interger values in mendix Auto Complete widget
Hi I have used The mendix Auto Complete widget number of times in my projects. But now I am developing a project that needs to search on a Product Code. This product code is an Interger Value stored in an Entity along with the product details. But when I try to put the mendix Auto Complete widget on it, I found out that this widget only let's you search on string values.. Is there any way I can use my product code in an auto complete? So that when a user types halfway, it gives you suggestions and complete the code in the search box? Please help Dylan
↧
SCP deployment - requesting Odata service from SAP On Premise - 560 error - part 2
Hello Mendix Experts, My simple Mendix app using a SAP OnPremise Odata service works nicely when I run it locally. I have used the complete URL of the system and the service now. But when I deploy it to the SCP I get a 560 http error. This is probably caused by the fact that the SCP only knows my OnPremise SAP system as a so called "Destination", that I defined there. But where do I configure this Destination name as a source for my Mendix app? (I have setup the Cloud Connector. And the connection test in the Cloud Cockpit to the OnPremise system succeeds.) Thanks in advance, Niels
↧
↧
Creating an objects through OData
Hello everyone, I have one simple question, is it possible to create object through Published OData Service or end user just can read (Get) the data from App? For example: I have sync excel with OData from my application so right now when I change something in Runtime I can see the changes in excel (By refreshing the data), on the other side if I change something in excel I can't see the changes in Ruintime, so is this possible at all? I read the documentation about OData and I've impression that this is not possible, but I'm not sure for 100%. Thank you in advance, Kind regards, Aleksandar Alempic
↧
Method to Import PST to Office 365 Account
I was going through the web and I need to know the method to import PST to Office 365 easily as on web there are very long and difficult process.
↧
Seeking Freelance Developer- Our App needs some help!
Hi, Our current developer is unable to finish our App in Mendix. It functions most of the way but we now need someone competent to work on the UI/UX as well as some of the logic. It also doesn't work when I scan the QR code, but will work on the desktop version. It keeps asking for login details for some reason. Seeking someone to Freelance- pay fixed price (will consider per hour with a cap). Prefer someone located in the USA, NL, Australia, NZ or Singapore. Email me at michael [at] creativeandlateral [dot] com Thanks very much. Michael
↧
Integration with Google Docs as DMS
Who has experience on integrating with Google Docs as a DMS solution? For a customer I'm checking different DMS solutions. 1 of the options is the usage of Google Docs. In basic it is about storage, searching editing and versioning documents. The Mendix app is managing the DMS by uploading the documents and we want to have the best UX for the enduser. There are some specific requirements: Adding documents with metadata and search through document based on the metadata and content. Users must be able to alter document and save them with a new version. In the perfect situation is the google docs location a black box for endusers but by checking the Mendix app the authorization on viewing and altering the documents is managed. I know that Google has 'recently' change the API from REST to a for example Java implementation. Do you have experience with that kind of implementation? We're also checking SharePoint as a solution and security wise it's quit a challenge due the fact editing the document directly but Mendix is authorizing the enduser. Thanks in advance!
↧
↧
Sending Email configurations
Hi, i used the email module and want to send Emails. To test if it works i get this error
↧
Bulk change glyphicon in groupbox
Hi there! I'm wondering if there's any way to change the 'plus' and 'minus' glyphicons that groupboxes use by default to expand or collapse. I'd like to change it into any other glyphicon for all groupboxes in my entire project, so it would be nice to have a solution that bulk-replaces it. I hope you can help out, thanks! Marieke
↧
Homepage with nested data grid
This must be a beginner question, but I cannot find the answer on the forum. I would like to have a page with a nested data grid as home page. However, when I try to add this homepage in the navigation I receive the message 'The selected page * expects an object of type * and cannot be used as a home page'. When I use a microflow in the navigation and add the object as parameter, I receive the message 'Microflows used in navigation should have no parameters'. What is the best practice here?
↧