Modeler Version 7.20.1; Current Security Setting = Prototype/Demo Mode Error: Executing Action Failed for Security Reasons: GetAccountFromCurrentUser Please help me understand how to resolve this error.
↧
Error: Execuring Action Failed for Security Reasons: GetAccountFromCurrentUser
↧
edit/change the avatar
How can I edit/change the avatar in de mendix community developer portal
↧
↧
Run button greyed out, running in sandbox not possible
Hi, I've been developing an app locally for a while and finally want to publish it to the sandbox. Usually I just click 'Run' and the magic happens. However, for some reason, that option is greyed out and I can only run the app locally. I have checked other forum posts about this. For starters, team server is enabled. I've also tried the following: - cleaning deployment directory - syncing project directory Committing and updating works just fine. I'm a little lost on what to do next so any help is appreciated :)
↧
Run Server error
Hi, clicking "RUN" (deploy on server) occurs the following error:"The app is already being deployed". The issue persists since two days. Thanks in advance
↧
Custom Data Types
Is there a way to specify a custom data type for an attribute in Mendix apart from the available base data types like boolean, integer, decimal, etc.? For example, I want to assign a data type of "PartNumber" to a attribute "partNumber", is it possible to first create the data type "PartNumber" (which follows a certain pattern of characters) and then use it as a data type for the attribute?
↧
↧
Mendix database identifiers
Hi - fairly new to using Mendix platform and bumped into a small issue. I created my own entity in the domain model and I am able to do the CRUD operations through the user interface. Now I would like to import some real data into the database directly. The issue is that it seems the Mendix identifier (called id) has to contain values that are referred or used somewhere in the metamodel. Can somebody tell me what the correct way to populate the database with data is (where else do I need to publish the identifiers)? I am looking to use direct SQL statements, not using an SDK (that Mendix might provide)...
↧
Custom Widget needs to include call to remote JavaScript source
Here is my issue. I'm creating a widget to use Stripe Elements (https://stripe.com/docs/stripe-js/elements/quickstart) and I need JavaScript file inside my widget or app to use the API. I first tried to copy the JavaScript file contents from the remote host (https://js.stripe.com/v3/) into a file on lib directory and inject it in my widget.js This partly worked. I could see the new JS Stripe Object but when I tried to create an instance for the API it throws an error saying the source must come from https://js.stripe.com/v3/ My questions is how do I remote JS call to my widget or to my Mendix app ?
↧
How to concatenate in OQL query for mendix?
I'm new to OQL so pardon if a similar issue like this has been resolved before, but I need to concatenate multiple rows into a single string for a report. How would I approach it? Is there something like LISTAGG that can create that list so I could tie it to the report? The rows look like this: ID FruitName 1 Orange 2 Apple 3 Watermelon And I need it to show in a report like this: Name Order List Mike Becker Orange, Apple, Watermelon
FROM App/Order Order
INNER JOIN App/Fruits AS Fruits
INNER JOIN App/Customer AS Cx
SELECT CX.Name AS Customer, LISTAGG(FruitName, ' ') WITHIN GROUP (ORDER BY FruitName) AS OrderList Thank you guys in advance!
↧
Data modeling question
A newbie to Mendix here and I have a question with a scenario I have for data modeling. Say I have two simple entities like below where one employee may be assigned to multiple projects. However, an employee can have a specific role in a project, for example, 'employee-A' has a 'developer' role on 'project-B' and has a 'lead' role in 'project-C'. So, it is not appropriate to store the 'role' attribute on the 'Employees' nor on the 'Projects' entity! What is the best way to handle this in Mendix?
↧
↧
How to making a label Bold, large and red.
How to making a label Bold, large and red. I know I can use the style property of a label, but I don't know what to write there.
↧
File upload Call REST service
Hi! How can I upload an file in a "Call REST Service" activity? In Postman I see: POST <api endpoint> HTTP/1.1 Host: <HOST> Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW cache-control: no-cache Content-Disposition: form-data; name="Filedata"; filename="<Path to file> Hopefully someone at the forum can help me
↧
run desktop mobile app
where is the error tap? I couldn't find it...
↧
TemplateGrid auto-refresh text
Good Morning, I am using a TemplateGrid with an auto-refresh. Inside of the TemplateGrid, I am showing a button with visibility based on two attributes (one is stored, one is calculated). This works fine. If the numbers change in the background, visibility is toggled. I am also showing a Progress Bar, based on the same attributes. It is also refreshing fine. In addition, I want to show the two values as parameters in a text. Here, the refresh is not working. It is always showing the values from the time the page was opened. Has anybody an Idea how to make the parameters in the text also refresh? P.S.: It is modeler Version 7.20.1 that can not be selected here.
↧
↧
svn checkout issue
Hi We have five applications in team server and out of five we are unable to checkout only 2 projects. From those projects we are getting the following issue svn: E120106: ra_serf: The server sent a truncated HTTP response body. Any idea why this is happening only for two projects?
↧
Error when creating deployment package - The JSON snippet is not valid.
Hi all, When I'm creating a deployment package, I'm getting a build error:
__ __ ____ _ _ _
| \/ | | _ \ (_) | | |
| \ / |_ _| |_) |_ _ _| | __| |
| |\/| \ \/ / _ <| | | | | |/ _` |
| | | |> <| |_) | |_| | | | (_| |
|_| |_/_/\_\____/ \__,_|_|_|\__,_|
v7.18.1.40272
Starting build for Mendix Project file: /srv/cloud/slots/tr10000/deploy/data/tmp/1543933905171-0/src/***.mpr
Using the following options:
* Build target: Package
* Deployment package file: /srv/cloud/slots/tr10000/deploy/data/tmp/buildjob2612975668371574034.mda
* Model version: 1.0.0.1512
* Project name: ***
Reading project file...
Building project...
Executing step 'Synchronize with file system'
* Synchronizing with file system...
Executing step 'Initialize'
* Preparing deployment...
Executing step 'Check prerequisites'
* Checking for errors...
ERROR: The project cannot be deployed, because it contains errors.
ERROR at Production_API, JSON structure 'JSON_FakeJson', -: The JSON snippet is not valid.
BUILD FAILED
Invalid type Mendix.Modeler.UIFramework.WebView.HtmlControl for instance field Mendix.Modeler.UIFramework.WebView.WebViewSpec:htmlControl
Invalid type Mendix.Modeler.UIFramework.WebView.WebViewSpec for instance field Mendix.Modeler.UIFramework.WebView.WebViewSpec+<>c__DisplayClass26_0:<>4__this We already checked the JSON, and it is valid. We also tried to create a new JSON with the same snippet but still the same message. Based on this forum post https://forum.mendixcloud.com/link/questions/91587 it seems like this could be caused by conflicting / old .JAR files. However, we don't know which one is causing the build error. Anyone any suggesting on where to start tackle this problem? Thanks in advance. Edit: Fixed it for now by replacing the JSON with a message definition, but I think the root cause is still there.
↧
Get Nanoflow result in widget
I am building a widget that should get the result of a nanoflow and do something with it. Currently it is just a string to display in an alert (for testing purposes). The code I am using comes directly from the client api documentation (https://apidocs.mendix.com/7/client/mx.data.html).
mx.data.callNanoflow({
nanoflow: this.nfReturningClass,
context: this.mxcontext,
origin: this.mxform,
callback: function(returnedString) {
alert("Nanoflow result " + returnedString);
},
error: function(error) {
console.log("Nanoflow error");
console.log(error)
}
}); I know the nanoflow is executed, as I have put some logging in it. However, the result I keep getting is: Error: Did not expect an argument to be undefined. I took a look at some other widgets that implement nanoflows, but none of them seem to do something with the result (just run the nanoflow). Am I doing something wrong? Has anybody successfully got a result from a nanoflow and used it in a widget? Or is this not fully implemented yet and perhaps the documentation is a bit ahead...
↧
table vs layout grid? in listivew?
Hi guys. There are some different opinions about this subject. When making a table where each row has a button it is advised to use a listview. To make the coloms in the listview you can either use table of layout. What do you guys use? what are some pro's or cons?
↧
↧
Xpath with a following Count list is not triggering a Count SQL query under water
Hi guys I am doing a little (multiple inner joins) complexe Xpath retrieve with a following count aggregation list, which normally resulted in count without a full retrieve of objects. After some MF and Xpath changes, whereby the Xpath specification is still similar, but in another order, also with a following count aggretion list...I see that is converted under water to a full object retrieve SQL query and not a count query. So I dont get exactyly what did trigger is to do NOT a count query but a full retrieve of objects? Have someone advice? Using OQL is not preferred seens this was working...
↧
Timeseries charts (version 1.4.0) not loading after deployment on server with Mendix 7.18.1 and 7.20.1
Hello We have a Mendix 7.18.1 model with Charts version 1.4.0 widget. We made some timeseries graphs (nice looking !) and they work well when tested locally. The timeseries plots work both in the webbrowser as well as in the mobile app. However, when we create a deployment package (after clean deployment dir) the deployment does not work on the server. When a page with the timeseries is loaded in webbrowser (and mobile app), the page is not loaded. The console for the webbrowser shows the following: Any ideas on how to solve this ? Or how to debug better ? I converted my model to Mendix 7.20.1 and saw the same problem. Thereafter I made a test project with a single, stand alone module showing a timeseries graph. This project runs smoothly local and on the sandbox (https://timecharttest-sandbox.mxapps.io/, select a timeseries, generate data and then show graph). When I integrate the stand alone module in our project and deploy it on the acceptance, still the page with the timeseries graph is not loaded. The following is shown in the Chrome console. Looks like an acces right. Any ideas/suggestions on how to solve this ?
↧
Could not create reactwidgetwrapper
I have just upgraded from 7.6.0 to 7.20.1. All worked well locally but am getting 'could not create widget' messages when deployed to our on premise linux servers. Could not create widget mxui.widget.ReactWidgetWrapper Could not create widget mxui.widget.NavigationTree I get the reactwidgetwrapper message on my loginpage. I've stripped out scrollbar, menu bar and downloading the loginform widget again from the app store. Any suggestions?
↧