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

Setting single Webservice Proxy connection

$
0
0

Hi, I want to connect to a single webservice call behind the proxy and rest should be working as normal. My question is can we link to a single webservice using a proxy and keep the rest of the services/link work as normal.

Also looking for a clear answer on this one https://mxforum.mendix.com/questions/21762/Webservice%20call%20behind%20the%20proxy%20issue

Thanks in advance

Cheers,

Savan


Error while opening a folder in Adobe Bracket for custom widget.

$
0
0

Hi All,

I'm trying to open pre-defined widget in Adobe Bracket to customize it. But I'm unable to do so. I'm getting the following error . the directory is not the source directory of a custom widget .

I have downloaded the HTMLSnippet zip file from GitHub and opened it in Adobe Brackets. But it is not generating the MPK file . It is showing the above error

Commit without save

$
0
0

Hi. I am trying to figure out why some of my forms entity attributes are saved by just leaving the field (no events at all setup) and other forms will only commit changes when hitting the save button. There is no events set on leave , etc. . I am trying to prevent users from selecting a specific value in a enum entity based on another attribute value.

I have a before commit event handler mf on the Entity that will raise an error if the user selected the wrong enum but that only gets triggered on hitting save button. but at that time the users action to select the enum has already been committed to the database. It raises the error but that does not help as the wrong enum value is already set.

anyone ideas why forms will commit changes before hitting save? and as said I don't have events.

Problem with Proj4 library in custom widget

$
0
0

I'm having a problem with including the proj4 library in my custom widget. I have the (non-minified) proj4-src.js in my lib folder, along with jquery, openlayers and bootstrap.

All included like so:

"WidgetName/lib/jquery-1.11.2",
"WidgetName/lib/bootstrap",
"WidgetName/lib/proj4-src",
"WidgetName/lib/openlayers-3.15.0",

All files are then loaded like so and are fine: http://localhost:8080/widgets/WidgetName/lib/bootstrap.js?636072043809 except for the proj4 one, Mendix tries to load it via this link: http://localhost:8081/mxclientsystem/WidgetName/lib/proj4-src.js?636072043809 and this gives a 404.

Now I found if I manually change the includes like so:

"WidgetName/lib/jquery-1.11.2",
"WidgetName/lib/bootstrap",
"/widgets/WidgetName/lib/proj4-src.js",
"WidgetName/lib/openlayers-3.15.0",

then it works on localhost, however, this can't be deployed because when you run "Tools > Check widgets" the following error appears in the logs.

Missing dependency. module: WidgetName/widget/WidgetName; dependency: /widgets/WidgetName/lib/proj4-src.js

Does anyone here have an idea why this particular library doesn't want to cooperate?

Rest caller activity failed behind the proxy but it working with 6.6.0 modeler

$
0
0

Rest caller activity is not working behind the proxy even i passed proxy parms to the JVM in 6.7.0 modeler. But the same configuration is working in the 6.6.0 modeler.

below are the configuration for the both 6.6.0 and 6.7.0

-Dhttp.proxyHost=58.2.40.198 -Dhttp.proxyPort=3120 -Dhttps.proxyHost=58.2.40.198 -Dhttps.proxyPort=3120

Can anybody tell me what is the issue behind this.

Committing an entity in a long running microflow, only update at the end of the microflow.

$
0
0

Hi There

How do i commit a entity immediately in a long running microflow. I do change it with commit but when I call that same entity from a different microflow after the commit but before the first long running microflow completes the changes do not show in the second microflow.

Export in report

$
0
0

Hi, i'm using reports in mendix, can I export 2 or more datasets in one excel file?

Replacing flash reports

$
0
0

Hi, i'm using reports in mendix, this reports are not working on mobile device because they are based on flash, is it possible to replace them to something that will work on mobile devices?


Microflow not updating client

$
0
0

I have a created a micro flow that is triggered from the onchange event of a reference selector. The microflow basically returns a list of data. The micro flow is functioning correctly but the client is not updating to display the data. I tried checking the "Refresh in client" in the "Create Object" action in the micro flow but that makes the micro flow go into an infinite loop for some reason. Is there a way to update the client that I am overlooking?

REST 'limit' parameter does not work?

$
0
0

Hi,

I've implemented the Rijksmuseum REST example. The data from Rijksmuseum is persisted in my domainmodel. Next I made a Service Definition which pointed to a microflow to retrieve all ArtObjects from my own domainmodel and give that back as transient objects. That's all working fine.

However, when I try to use the 'offset' and 'limit' parameters, I notice that offset works nice, but the limit does not.

The url I use in my browser points to my local machine and reads: http://localhost:8080/rest/artobjectsservice/?data=true&contenttype=json&offset=6&limit=2.

I expect that the returned objects start at 207 (I deleted first 200 records, so 201 is the first record) and end at 209.

However, the result is that the list start at 207 and shows all records until the end (which is 210). What is going wrong?

This is the result by the way:

[{ "ArtobjectWebimage": {"Url": "http://lh6.ggpht.com/6aIGcpZ79srqgaaYflpZVa0w4a9ELZciYDmDcJxuCLRSrbYGb0KCZTED7BMkAHcOZUXNQytlXqiBJaN1cdKss-j9RE=s0"}, "PrincipalOrFirstMaker": "Anonymous", "Title": "Vers geschreven door J.B.F. van Gogh voor zijn executie, 1778", "key": 207 },{ "ArtobjectWebimage": {"Url": "http://lh5.ggpht.com/QjSoKZOeS1lkYXUgPHgy9W3ZwFYoDGbXLknZz5RyjrKbi4eBMDW5ek5O2vcD5Mp-EtAWSIb8vCrqdR2I2HQrBDgpg=s0"}, "PrincipalOrFirstMaker": "Vincent van Gogh", "Title": "Road behind the Parsonage Garden in Nuenen", "key": 208 },{ "ArtobjectWebimage": {"Url": "http://lh4.ggpht.com/p0gQfwn5ryZ6Fazbkv9dG2MGXJlZF0SGuzQRwyBm8W-7H-JhYUgdhkh6R2iDstWCMaAk-Sisg5O1Z1PM4GVGL0xNZHIL=s0"}, "PrincipalOrFirstMaker": "Vincent van Gogh", "Title": "Schelpenvisser", "key": 209 },{ "ArtobjectWebimage": {"Url": "http://lh5.ggpht.com/LeONPNh8oPUpjMUWxUe3d0GDkktDb3FKgQuy9rRe-1usnLs6u5yrQfvlLC3nARNJWTe3ZOLUR7-hbe1Zai6NN3RU8=s0"}, "PrincipalOrFirstMaker": "Vincent van Gogh", "Title": "Korensnijder met hoed, van achteren gezien", "key": 210 }]

Best practice REST implementation

$
0
0

Hi,

I've implemented the Rijksmuseum REST example but noticed there are quite different ways of implementing REST so I have some questions about the best practice.

  1. The examples in the documentation are mostly using the JAVA actions. However, for outgoing calls there is a 'CALL Rest activity' available. Should I use that or stick to Java for as long REST is in developement by Mendix?

  2. There is an option in Export Mapping to use a JSON structure. But only the top most element in the structure can be (de)selected. When will it possible to use the REST export mapping to define what attributes are exposed in a publised webservice?

  3. It is possible to use the Service Definition screen to expose a business domain to CRUD operations. But I fail to find out how I can define parameters for the service. Is it true that only the 'key' is supported as parameter? If not, does anybody know where I can find documentation on how to configure the Service Definition on that point (and yes, I've read the GitHub 'Mendix REST Services module' documentation)

  4. Services that are configured using the Service Definition screen seems to return all available objects if no key is supplied. Is it possible to prevent that behavior (no key provided means, no objects returned)

Mendix ChartJS widget

$
0
0

As I experienced serious issues on nodes with this widget upgrading from 5.21 to 6.0 I dropped the widget from my project.

I would like to know if Mendix ChartJS widget version 13-5-2016 can be run on a nodes with version 6,7.1 modeller, docs say version 6.1....

Flip Clock Widget

$
0
0

Ok, maybe I'm just missing it, but how do you pass the attribute into this widget to base the countdown on?

Calculated attributes in Reports

$
0
0

Hi, i'm using reports in mendix, when i'm trying to use calculated attributes in OQL queries for reports , they are not available, also I noticed that they are not present in database , can I ask why ?

Mendix Version Selector

$
0
0

Hi,

I have multiple versions of mendix modellers installed on my desktop on the D Drive. But none of these versions are listed on the Mendix Version Selector as the default location used to find the modeller are "C:\Program Files\Mendix" and "C:\Program Files (x 86) \Mendix\" . Is there a way to change the default path to "D:\Program Files\Mendix" and "D:\Program Files (x 86) \Mendix\" respectively in the Mendix Version Selector.

Thanks, Aravind


How to retrieve the openId of a user for logout MF?

$
0
0

Hi guys,

I am wondering what the openId is of a user in the app, so it could be passed to the javaaction Logoutuser, which asks for an openId.

Export configurable objects

$
0
0

From a service, I get a response of configurable objects that I need to export, both to CSV and XML. This means objects with varying attributes, defined by key value pairs. Note: in a single Result, all objects are consistent: they have the same keys, but the keys will differ over multiple results. A domain model would look like this:

domain model

Is it possible to export data of this format to CSV and XML by using either standard Mendix functionality or AppStore modules? If not, what would be the best way to implement this?

Update Let's say I get two objects with some identifier (which isn't actually relevant to the end user). In this case, the user has requested three attributes, Name, Age and Employer. Each of these two objects has all three attributes. Then, I want to generate:

Example CSV:
Name, Age,Employer
Rom,32,Ciber
Erwin,26,Ciber



ExampleXML:
<Results>
<Result1>
<Name>Rom</Name>
<Age>32</Age>
<Employer>Ciber</Employer>
</Result1>
<Result2>
<Name>Erwin</Name>
<Age>26</Age>
<Employer>Ciber</Employer>
</Result2>
</Results>

How to autofocus tab

$
0
0

Hi guys,

I am wondering whether one of you has experience with implementing autofocus on the textfields. Now I have set up tab indexes and the focus is on when tabbing over textfiels, but the very first tab index isn't caught and has not a (auto)focus state.

What could you advice to get this in a focused state?

Unique record 3 entities

$
0
0

Hello,

I have 3 entities, Accout, Registration and Event (img 1). Domain Model Table 'Registration' is a combination of Account and Event, so all users can register for an event. Now I want to be the combined records unique, so it is not possible for someone to register for the same Event on the same date. How can this be done?

Thanks,

Joey

Hide a button

$
0
0

Hello,

I have 3 entities, Account, Registration and Event.

I have a button that register the $currentUser for the event he/she has selected in a templategrid. I have a working validation so that a user cannot register for the same event more than once.

But, after a registration the button stays in screen with the same text 'Register!', the user will get an error that says 'already registered' if he/she presses the button.

I would like to just hide the button after a registration and put the text; You have registered for this event.

How can this be done?

Thanks,

Joey

Viewing all 83469 articles
Browse latest View live
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>