Hi Whats the most stable way of close the page/popup a widget resides in via js? Thanks
↧
Close page/popup from widget via js
↧
Size of the m2ee_log.txt
This file growns rapidly. Why is it not using the RollOver-mechanisme? What causes this rapid growth?
↧
↧
Change Action not functioning
Hi Community, I have a page which uses radio buttons and enumerations, enabling the user to pick between four options. I have then created a microflow which changes the values of attributes in the "score" entity, depending on the selection. However, the values are not changing when I run the microflow - they stay at the default value of 0. The exlusive splits for the "EmailScore" repeat for each of the different questions. I then have exlusive splits which add up the individual scores and based on the amount, will change the "comment" attribute. I would then like to display this comment on the page, so I have a show page action at the end of the microflow which passes GeneralScore. Any help will be much appreciated!! Many thanks Austin
↧
AutoComplete On Change event
We are using the Autocomplete widget in a list view. When changed, the on change event triggers multiple times (anywhere from 2-10+) When using the widget in a data view triggering the same event only occurs once. Has anyone else experienced an issue like this?
↧
403 error calling OData service from Mendix 'CSRF token validation failed'
Hello everyone, I am trying to call an OData service with a method POST, but I am getting a 403 error. First here are the other resources I found which helped a lot understanding the issue, but it's still not solved: https://docs.mendix.com/refguide/call-rest-action https://docs.mendix.com/howto/integration/consume-a-rest-service https://forum.mendixcloud.com/link/questions/62212 https://forum.mendixcloud.com/link/questions/82512 https://github.com/mendix/RestServices#rest-functions-overview https://www.mendix.com/blog/consuming-first-rest-service/ http://www.auraq.com/2017/01/09/an-example-of-using-restful-services-in-mendix-with-the-dropbox-api/ So to be able to use POST, I need to use a GET method first adding the header parameter "X-CSRF-Token = Fetch" to retrieve the token and pass it back to the following POST method. This is working great in Postman. However, when I try to do the same in Mendix, I am getting an error 403 on the POST Method. I tried using the Mendix "standard" Call REST activity, which works great but does not let me retrieve my the token from the header in the response of the GET call. I understand there is a session CSRF Token in the Mendix runtime variable "$currentSession/CSRFToken" but it does not seem to be the one from my Service, I tried to use it, but I got the same error. So as recommended in another forum discussion, I tried to use the Module RestServices from the App store, using it I am able to retrieve the token from the REST response header. I tried to pass the parameter "X-CSRF-Token" in the request header of the POST message, as I do in Postman, but the token I got from both method explained above was still getting me an error 403. FYI, when I use RestServices to get the token in the response header, the value of that token in different from the value of the runtime parameter "$currentSession/CSRFToken". For the Post method, I also tried both the Mendix "standard" Call REST activity and the java action "postWithResult" from the Module RestServices, passing the custom header parameter "X-CSRF-Token". In both cases I get the 403 errors, the log is a little different, I can actually get the following detailed message when I use RestServices: "Response status: 403 Forbidden, ETag: null, body: 'CSRF token validation failed'". Last but not least I checked my parameter syntax many times to be sure it was not the issue. So anyone here would have an idea where to look next? Thanks in advance, Seb
↧
↧
Mendix SDK unable to download Working Copy with DB snapshot: Broken pipe (Write failed) or 413 Request Entity Too Large error
I'm no longer able to download a working copy of 1 project after a certain revision using the Mendix SDK:
Creating new online working copy for project 9273b39b-0329-4797-a2ba-46e9ae36850b : XXXXX
Error3: com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: communitycommons.UserThrownException: ab2e4583-6181-49ab-9d49-fae1bf297828: Failed to expose Team Server app revision as Online Working Copy: 9273b39b-0329-4797-a2ba-46e9ae36850b Details: com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: Unable to parse HTTP response: Broken pipe (Write failed)
at ModelApiClient.CreateModelApiWorkingCopy (JavaAction : 'CreateModelApiWorkingCopy_Java')
at MpkUploadService.TransferTeamServerMpkToModelServer_WrappedWithWorkingDir (SubMicroflow : 'CreateModelApiWorkingCopy')
at MpkUploadService.TransferTeamServerMpkToModelServer (SubMicroflow : 'TransferTeamServerMpkToModelServer_WrappedWithWorkingDir')
Advanced stacktrace:
at PCP_ProjectsAPI.ExposeTeamServerRevisionAsOnlineWorkingCopy (JavaAction : 'ThrowException')
Advanced stacktrace:
I noticed that a 300MB is causing problems with creating a new working copy. Are there limitations on what you can check in or is this an SDK "bug"?
↧
DocumentParser app service no longer available?
I'm trying to do a POC which extracts metadata from a FileDocument, and I came across this app service: DocumentParser https://appstore.home.mendix.com/link/app/DocumentParser. This would be very useful to showcase to our potential client. But I realized that the app service is down since it returns java.net.UnknownHostException. Any chance of reviving this app service?
↧
Published REST Services
How to expose entities and microflows to other apps using the REST standard while using Published REST Services.
↧
View a dynamic document in Mendix
Hello , I had been trying to display a form inside the Mendix window. I tried using document viewer widget and image viewer widget also but it does not help to display the dynamic PDF . The console has no errors but on checking the output it shows blank page. Is there any other way to display a Dynamic PDF . ? Thanks in advance.
↧
↧
Web modeler roadmap
Some years ago I created my first app in Mendix. Today I wanted to try out Mendix again to see what changed. As I only have a Chromebook and a Mac, I was happy to see that Mendix created a web modeler. Is it correct that many functions are not available in the web modeler yet? When will it be possible to create a simple hello world app where I can create a table to store data and also add anew, edit and delete button? Or is this already possible? If yes, where can I find a youtube that explains how to do this?
↧
About the mechanism behind remote debugging
Hello, The desktop modeler of Mendix allows to do a debugging of an application running on the cloud. Could you please provide me some information how this mechanism works at the background? Thank you.
↧
Desktop modeler astronimical slow
Hi there, I am curious about the performance of the desktop modeler. Sometimes I am working in a model everything is lightning fast. So whenever you copy a microflow, add input params, renaming microflows, adding actions. Everything happens in milliseconds. But when you open next day the same model everything reacts extremely slow, instead of milliseconds you can wait for seconds. I tried to disable all kinds of processes of Windows, disabled antivirus, all kinds of tweaks, rebooting.... but somehow nothing really helps. When I check the taskmanager, the CPU is idling around 1-3%, memory is like 30% with mass consumers Mendix and Chrome, no hd activity, no network activity. Anyone thoughts on this?
↧
Ask the Expert - Community Webinar Feb 22nd
Hello everyone! In February, we're organizing an Ask the Expert webinar, featuring MVP's Marc Lehane, Nolan Ramsey, and Mike Kumpf. In this one-hour session you can ask them anything! From how they got into Mendix and how they became MVP, to what they had for breakfast. This Ask the Expert session is your chance to pick 3 Mendix experts' brains, ask your most burning questions, and discover what makes them tick. They will share their Mendix expertise and development knowledge with the world in a live session on February 22nd. Use this thread to post your questions for the experts and upvote the best questions to ask during the webinar. You can also ask questions during the live session using the chat. Register for the webinar here.
↧
↧
Published Rest service
Just wondering what the posibilities of the newly added rest service are. Is it possible to post/put binaries into file documents using the new Published Rest service?
↧
How to pass request header parameters in published rest service?
How to pass request header parameters in published rest service? Also how to pass request header parameter in microflow as well
↧
Datepicker/ Buttons/ Calendar widget relationship -- unexpected (and undesired ;)) results
Hi, I use a Calendar widget with a datepicker 'connected' to it, so that the calendar displays the week to which the selected date belongs. This works via an on-change microflow on the datepicker. Now I want to add buttons to move to the next/ previous week. The buttons call the same on-change microflow, only now I've manually added (at the start of the MF) the change in the relevant date-attribute (called 'StartDate', by using the addDays function). What happens: the date in the datepicker-field changes (+7/ -7 days), but the Calendar does not change along! :( [Note: I've tried several places for the manual change in the relevant date attribute, but none worked so far.] Any thoughts on why this might be the case? (Summing up: When I use the datepicker, both the date in the datepicker-field and the calendar change; when I use the buttons, only the date in the datepicker-field changes, the calendar does not change.) How can I make the calendar change along? Regards, Joris
↧
Xpath query functions
In the Mendix documentation I've found the following article. https://docs.mendix.com/refguide/xpath-query-functions It seems that the article implies that you can use these query functions in a retrieve within the modeler. However it seems this doesn't work as the modeler doesn't recognise the mentioned functions. Does anyone know how to use these query functions correctly?
↧
↧
JavaScript get GUID of dataview
I know you can use dijit.byNode(dojo.query(".mx-name-grid1")[0])._dataSource._pageObjs; to get at the guids of the objects in a datagrid. How can you do the same for a dataview? Thankyou very much
↧
Base64 Decode
Hi I am facing an issue while trying to decode a Base64 attachment (Excel file containing data) using "Base64DecodeToFile" Java Action from Community Commons. The attachment is coming to Mendix via Web service. Though the attachment file is encoded in Base64 format and attached in the request, I get 'Source file is Null' error. com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.IllegalArgumentException: Source file is null Can you please tell me how to get rid of this error or suggest some new way to receive excel file via web service. Thanks
↧
About the number of objects that can be passed to a page
Hello, I have two questions related to this point. 1. Mendix modeling environment only allows one object to be passed (This is enforced by the graphical user interface via a Drop Down Menu item), while, it is quite a common case where you may need more than one object to work with. a. Is there any particular reason why only one object can be passed? b. What is a possible workaround to deal when we need multiple objects to be passed? 2. The Drop Down Menu is filled with some items such as currentSession, currentUser, etc. What I expect is, these items should be globally reachable already at any point in the program. Is there a particular reason why these items also need to be passed? Also, are they globally reachable in some way (Such as calling System.) Thank you. Bugra
↧