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

Project Default Time Zone Error

$
0
0

I get the below error when I set the Default Time Zone in my project settings. The error prevents me from starting the project. Anyone have a workaround for this?

com.mendix.m2ee.api.AdminException: Starting Mendix Runtime failed. at com.mendix.core.impl.MxRuntimeImpl.fireZeeMissile(MxRuntimeImpl.java:484)

Caused by: com.mendix.core.CoreRuntimeException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: Object id: 8444249301321782, validation errors: (member: Name, message: This user name is already in use.) at com.mendix.core.actionmanagement.ActionManager.executeInTransactionSync(ActionManager.java:143)

Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: Object id: 8444249301321782, validation errors: (member: Name, message: This user name is already in use.) at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:178)

Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: Object id: 8444249301321782, validation errors: (member: Name, message: This user name is already in use.) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)

Caused by: com.mendix.systemwideinterfaces.core.UserException: Object id: 8444249301321782, validation errors: (member: Name, message: This user name is already in use.)


Updating app (on premise) takes unusually long

$
0
0

Ever since we upgraded to Mendix 6.5.1 (and Mendix Service Console 4.3.0), updating our application takes much longer. The progress bar goes to 100% in around 30 seconds but then stays at 100% for 4 more minutes. Although pretty typical and annoying progress bar behavior, I was wondering what caused this and what I can do about it. We used to be able to do deployments to Test in about 2 minutes.

Any ideas?

How to implement this tooltip?

$
0
0

Hi guys,

For our app I need a stunning tooltip in our form, which I found here:

http://tympanus.net/Development/TooltipStylesInspiration/line.html

I want to implement same tooltip but than coming out from the left.

The fact is that I am not a css/js master and not all with Mendix. Is there anybody who can help/coach me developing this tooltip?

Include API key in call Geocoding

$
0
0

Hi,

In my project I want to use the Geocoding API from Google to get longitude and latitude based on an address string. A CalculatieGeo is included in the googlemaps module in the app store. However usage of this API is limited without an API key, and in my project I need to use it a large number of times. I cannot find an option to add an API key to the CalculateGeo request in the googlemaps module.

Does anybody know how to of a way to add the key to the geocoding request?

Consumed webservice doesn't work with empty response

$
0
0

We try to consume a webservice which calls a microflow which only needs to create a new entity based on the request.

However, the webservice gives an error with HTTP code 200 ('Ok') if the response is empty, but works perfectly when the response is not empty (in our case we returned a boolean which is always true).

Why can't you consume a webservice with an empty response??

Deleting project from team server

$
0
0

Can anyone tell me how I should go about deleting unused projects from the team server? I was trying to follow some postings on the forum but I believe they are for older versions. Thank you.

$currentuser empty in microflow unless viewed in debugger or added to log message

$
0
0

Hi,

Doing some tests (Mx4 upgraded application) in Mendix 6.7.1 and encounter an issue when $currentuser is used in a microflow List Operation action. A list is retrieved that contains users and we use the List Operation action to check whether $currentuser is included in this list (CONTAINS action).

This functionality works perfectly fine in Mx4 AND when using the debugger in Mx6.7.1 and going step by step through the MF. However when not using the debugger the Contains action returns a FALSE (while a TRUE is expected). It seems like currentuser is empty in these cases.

After some debugging I found that when I add a log message that contains the $currentuser/name that the issue is no longer occurring. It seems like the log message 'forces' the currentuser to be populated. For now I can use this as a workaround.

This issue reminds me of earlier tests with Mx5/6 when using the Aggregate SUM action in a MF: https://mxforum.mendix.com/questions/9302/Decimal-calculated-field-javalangDouble-cannot-be-cast-to-javamathBigDecimal In this case we also had to explicitly use a list/parameter in order to prevent it from causing issues.

I reckon this is a bug. Or is there any other explanation?

Kind regards,

Brian

DataView refresh issue while using Listen to widget

$
0
0

Hi friends,

I am showing a link in the list view, on click of that list view I am showing the related data in the data view using Listen to widget. On click of the link for the first time, data is being shown in the data view, from the second (next) time, the data is not getting refreshed and not been shown.

Could please suggest how to refresh a data view on click of this link?

Thanks in Advance.


Google Maps causing problem when showing in a list?

$
0
0

Hi guys,

When I after login directly show a list view with a google maps in it, it will keeps loading (the dotts). If I check a single object on a other page with just that object in dataview i see the maps. When I after this try to open the listview now all gets loaded.

So the problem is that it not directly loads the widget and keep loading (no logging), but when opened a single opject and seen a map, the list is shown and the maps are visible.....what do I wrong? (tried also without security and keeps same)

In the console I found this error:

mxui.js?636075918328289005:29 mendix.sys.Data.get: error in error handler for xpath //Barge.LocalJsonObject[not(Afgerond)] : mxuiwidgetDataView1.applyContext: Error: GoogleMapswidgetGoogleMaps1.applyContext: Error: GoogleMapswidgetGoogleMaps_1.applyContext: TypeError: google.maps.LatLng is not a constructor (webcore.datasource.XPathSource)(anonymous function) @ mxui.js?636075918328289005:29

Google Maps causing problem when showing in a listview (google.maps.LatLng is not a constructor)t?

$
0
0

Hi guys,

When I after login directly show a list view with a google maps in it, it will keeps loading (the dotts). If I check a single object on a other page with just that object in dataview i see the maps. When I after this try to open the listview now all gets loaded.

So the problem is that it not directly loads the widget and keep loading (no logging), but when opened a single opject and seen a map, the list is shown and the maps are visible.....what do I wrong? (tried also without security and keeps same)

In the console I found this error:

mxui.js?636075918328289005:29 mendix.sys.Data.get: error in error handler for xpath //Barge.LocalJsonObject[not(Afgerond)] : mxuiwidgetDataView1.applyContext: Error: GoogleMapswidgetGoogleMaps1.applyContext: Error: GoogleMapswidgetGoogleMaps_1.applyContext: TypeError: google.maps.LatLng is not a constructor (webcore.datasource.XPathSource)(anonymous function) @ mxui.js?636075918328289005:29

Dynamically displaying empty tables in PDF Template

$
0
0

Hi all,

I want to display a empty table(where client can sign) in PDF. and this table is dynamically displayed based on number of clients. Example if one client, two empty tables, if two clients four empty tables.

I am using PDF Template. Is there any idea, how can i achieve this dynamically displaying empty tables.

Compare Lookup Values based on Enumerations

$
0
0

I have a Look Up Table called LuContactType

LuContactType consists of 3 Attributes one of which is "Name".

Name is an enumeration.

I have then associated this Lookup Table "LuContactType" to another entity called Contact.

I want to compare the value of $Module/Contacts.Contact_LuContactType in a micro flow.

Path will autocomplete the expression as far as

$Module/Contacts.Contact_LuContactType

I then am unable to add anything else to this expression. If I add a comparison to the enumeration value I get a type mismatch and

Invalid argument types Contacts.LuContactTYpe and Enumeration Contacts.ContactTypeEnum

I am unable to compare it against a string value and I am unable to extend the relationship beyond the basics of

  $Module/Contacts.Contact_LuContactType

I have only started using Mendix recently and I have to say I am learning to hate XPath with an all consuming passion.

Business Process Transactional Coordination

$
0
0

Is there a way to set a transactional context when you enter a one page form (with associations and references in it) that has multiple parts to the form which might have been committed as part of the work in the form? I would like to have the ability to rollback all changes made within the form in a larger transactional context. I have done this before using Hibernate, but I don't see that in Mendix.

Is there a way to get the current build version number to display on the landing pages.

$
0
0

Hi There

We have many branch Lines and it would help us if we could show the current build version number on our landing pages.

Regards, Patrick

Newly created object and autocommitting

$
0
0

Using a function that creates a new object - pretty straightforward, every data-grid does this.

However, after this object has been created it is being held in what seems to be the cache, or just an autocommit state that is only temporary (again I assume is being held in the cache).

I have checked my microflows and I am definitely not committing by accident, but it is still being held in the list.

The problem then is, I am doing a retrieve to check to see if there is an object between two dates, and this timesheet IS, however it hasn't been committed.

Is there a way to get rid of the autocommit state that seems to come from Mendix?

Screenshot of autocommit in question - http://imgur.com/a/uQlO4

Cheers.


how to add SSL certificate to my project

$
0
0

I want to add SSL certificate (in the moderler) to my application because when i try to access a external hosted web service following error message comes at run time.

com.mendix.modules.microflowengine.MicroflowException: com.sun.xml.ws.client.ClientTransportException: HTTP transport error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at DisruptionHandler.ntsNtSmessageserviceservicegetmessages (CallWebservice : 'Call web service 'get_messages'')

I searched internet and found perhaps its the issue of SSL certificate. Can some please help me in this sceanrio. Thanks,

How do i populate a pdf form with mendix data?

$
0
0

I am trying to do two things.

  1. upload pdf templates
  2. populate those forms using mendix data

any links to advise? I can only find references to word merge and all the questions in the forum seems to erro when trying to load them!

need a better way of populating forms, the document template function isn't great

Thanks

Custom Administrator user role not set on cloud

$
0
0

Hi all,

I have created a new user role specifically for MxAdmin (conveniently called 'MxAdmin') which I have set as the User Role for the Administrator in the Project Security settings. When I login with MxAdmin, debug my "Show Homepage" microflow and retrieve the userroles, locally I have two user roles: Administrator (which is set by default, according to the documentation) and MxAdmin.

Strangely, when I deploy my application to the cloud and debug the same flow I only have one userrole: Administrator. MxAdmin seems to be gone.

Am I overlooking a setting on the cloud, misreading the documentation or is this a bug?

Request-URI Too Large rest services

$
0
0

Hello,

I was wondering if there is a way to change the request limit configuration of the rest service to accept bigger files. without contacting mendix to change it for me in the cloud.

Basically we send the xml as a body parameter with the request with some other parameters in the uri for processing. this works. though with bigger files we need to change the request limit.

so what is the way to go in this situation ?

How do i login a webservice user from java?

$
0
0

I build a custom request handler that handled incoming requests with BasicAuthentication. Because i did not want to bypass the Mendix security i added a piece of code that tries to login and generates a user context based on that. However, I get an error that a webservice user is not allowed to login.

I use the following snippet to achieve the above:

final String[] values = credentials.split(":",2);    
IContext context = Core.login(values[0],values[1]).createContext();
Viewing all 83469 articles
Browse latest View live


Latest Images

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