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

Regional Number formatting

$
0
0

I am currenty working for Dutch project and currently facing 1 problem.
Standard number formatting is let's say 1,234.56    where dot(.) represents decimal and comma(,) represent grouping.
Now we want the number to be formatted in 1.234,56 where comma(,) represens decimal and dot(.) represents grouping 

How can we achieve this? 

Few things that I have tried :

changed system language setting to Dutch which was English  --- Didn't work for above stated scenario

Added Dutch language in Modeler and made it default language -- Didn't work for above stated scenario

Deleted all the dutch translations and kept Dutch as default language in modeler System language set to English and Dutch , tried both combination -- Didn't work for above stated scenario

 

The value that I am getting is in form of data view with numeric values are calculated using some microflow logic over imported excel file.

 

Please assist , if it is possible to view numbers in Dutch Format i.e. 1.234,56


"Run in the cloud" button is greyed out

$
0
0

Downloaded the modeller and tried to upload an app to the free cloud. Apparently, I can only run it locally. The "Run in the cloud" button is greyed out. See below.

Reading JSON file using Import Mapping Method

$
0
0

Hi All, 

I am uploading the JSON file and expecteing it to store in the Mendix database using Import Mapping. 

The data is not imprted for attached JSON snippet. The entity structure is starting from mnemonic i didn't include data in the JSON structure.

So i want to exclude the metadata also as shown below.

 

 { "data": {"mnemonic": [
      {"code": "VOF","name": "V.O.F.","type": "CLIENT","client": [
          {"entity": "NV","code": "TEST1"
          }
        ],"outright-client": [
          {"account-number": 2132
          }
        ]
      },"meta-data": {"count": 1234,"as-of": "20170215132000GMT","date-time": "20170215132000GMT"
  }
}

 

I want to access mendixsystem$attribute entity and list the attributes of MyFirstModule.Entity in a drop down. How can I access this in modeller?

$
0
0

1. I want to access attributes of mendixsystem$attribute and mendixsystem$entity from modelller.

2. How can I display the attributes of MyRepository.FirstEntity in a dropdown.

 

Admin selects the attributes from dropdown which can be edited by the user. Now when user logs in, the review page should dynamically display these attributes along with their values. Drop down is nothing but attribute names from an entity. How can we compare values to entity attribute names and display values? Please suggest.

Offline app does not show login page when anonymous usage is enabled

$
0
0

When I enable anonymous users, the offline app no longer shows the login page but attempts to use the anonymous session. This is not correct because the anonymous role does not have access to any navigation items in the offline profile so the app should show the login page.

Ticket: 50851

It seems my edit got lost somehow. Once again: The real app does have anonymous pages for the desktop browser, for the login widget and forgot password functionality. When I turn on anonymous access, the offline login breaks.

 

Edit 1-5-2017:

The LoginForm widget works offline too, just don't enable the forgot password function. The issue can be solved using the same navigation configuration as with online/hybrid.

I created a pull request on the login form widget for the offline enablement.

Before commit microflow executed twice

$
0
0

I configured a before commit event for an image entity. Whenever a new image is uploaded and saved (standard save button) the before commit microflow is executed twice. Does anyone have idea why? How can I prevent this behavior?

MPK , MPR , MDA

$
0
0

Hello

I have MPK and MPR file, both seem to solve the same purpose. Opening MPK will extract files and open mpr in modeler.

If i onyl have a MPR file and i double click on this, it seems to do same and put all files in same locaiton and open modeler.

 

Where does the difference come in?If i have to share my project if someone, will i give MPK or MPR file.

 

In addition , MDA file is also package that will have the same.

ANy one can clear differences for me?

thanks

A3 Bad user error when using Mendix app "IMAP/POP3 incoming email"

$
0
0

Hi everyone,

In a project of mine i am experiencing problems when using the "IMAP/POP3 incoming email" module. With this module we want to retrieve emails from Outlook and create Email objects in our application. However this sometimes fails during the "RetrieveEmailMessages" java action. In the logs the following message is returned:


2016-10-10 10:20:43.410 WARNING - Encryption: The string provided is not an encrypted string. Returning the plain string.

2016-10-10 10:20:46.103 ERROR - Encryption: com.sun.mail.iap.BadCommandException A3 BAD User is authenticated but not connected.

com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: javax.mail.MessagingException: A3 BAD User is authenticated but not connected.; nested exception is: com.sun.mail.iap.BadCommandException: A3 BAD User is authenticated but not connected. at com.mendix.core.component.InternalCore.execute(InternalCore.java:385)


Does anyone know what the cause is for this failure? The error seems to happen at random as sometimes the emails are retrieved without errors or failure.

Many thanks in advance!


Hybrid App use of local users

$
0
0

Hi,

 

I'm pretty new with mendix, and i have a very basic question (I think). Been searching the forum but cannot seem to get the right answer. So:

- I'm building an hybrid app with anonymous access, so that new users can register for the app, and get full access to the app. 

- I need to import about 6.000 users. (which currently use a different not-mendix app)

- I'll be usinig the mendix cloud.

 

I have three questions:

1.  What is the difference between local users and mendix AppCloud users?

2. Do I have to import these 6000 users as local users of the app?

3. When new users register, will these be registered as Local users? or as Mendix AppCloud users?

Problem with Mendix 7.2: java.lang.IllegalArgumentException: Global identifier should be a number

$
0
0

Hi,

We have a critical problem in multiple projects since updating to 7.2. Before 7.2 everything worked fine.

We cannot (yet) reproduce this error in a fresh project, but it goes wrong in all of our projects when we set a certain relation before we enter a page. If we do exactly the same after we left the page, it works.

Security level is on production, when we set the security level to demo/prototype, there is no error.

We checked our entity access and that should not be the problem. 

 

Are there more people running into this error after updating to Mendix 7.2 ?

 

Example of stacktrace:

com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"changes":"{FamilyTree.Persoon_Child=[[MendixIdentifier:: id=11821949021848857 objectType=plugin_Erfrechtplan.Persoon entityID=42], [MendixIdentifier:: id=11821949021847556 objectType=plugin_Erfrechtplan.Persoon...","type":"ChangeAction"}', all database changes executed by this action were rolled back
at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:178)

Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"changes":"{FamilyTree.Persoon_Child=[[MendixIdentifier:: id=11821949021848857 objectType=plugin_Erfrechtplan.Persoon entityID=42], [MendixIdentifier:: id=11821949021847556 objectType=plugin_Erfrechtplan.Persoon...","type":"ChangeAction"}', all database changes executed by this action were rolled back
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37)

Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"changes":"{FamilyTree.Persoon_Child=[[MendixIdentifier:: id=11821949021848857 objectType=plugin_Erfrechtplan.Persoon entityID=42], [MendixIdentifier:: id=11821949021847556 objectType=plugin_Erfrechtplan.Persoon...","type":"ChangeAction"}', all database changes executed by this action were rolled back
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:152)

Caused by: java.lang.IllegalArgumentException: Global identifier should be a number (given value: [[MendixIdentifier:: id=11821949021848857 objectType=plugin_Erfrechtplan.Persoon entityID=42])
at com.mendix.basis.objectmanagement.MendixIdentifier.getGuidFromGlobalIdentifier(MendixIdentifier.java:74)
at com.mendix.basis.objectmanagement.MendixIdentifier.<init>(MendixIdentifier.java:54)
at com.mendix.basis.objectmanagement.member.MendixObjectReferenceSetImpl$$anonfun$5.apply(MendixObjectReferenceSetImpl.scala:182)
at com.mendix.basis.objectmanagement.member.MendixObjectReferenceSetImpl$$anonfun$5.apply(MendixObjectReferenceSetImpl.scala:181)
at scala.collection.TraversableLike$WithFilter$$anonfun$map$2.apply(TraversableLike.scala:683)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
at scala.collection.TraversableLike$WithFilter.map(TraversableLike.scala:682)
at com.mendix.basis.objectmanagement.member.MendixObjectReferenceSetImpl.getValueFromStringSet(MendixObjectReferenceSetImpl.scala:181)
at com.mendix.basis.objectmanagement.member.MendixObjectReferenceSetImpl.getValueFromString(MendixObjectReferenceSetImpl.scala:157)
at com.mendix.basis.objectmanagement.member.MendixObjectReferenceSetImpl.getValueFromString(MendixObjectReferenceSetImpl.scala:25)
at com.mendix.basis.action.user.Changer$class.setMemberValue(Changer.scala:60)
at com.mendix.basis.action.user.Changer$class.changeMember(Changer.scala:31)
at com.mendix.basis.action.user.ChangeAction.changeMember(ChangeAction.scala:13)
at com.mendix.basis.action.user.ChangeAction$$anonfun$executeAction$1.apply(ChangeAction.scala:36)
at com.mendix.basis.action.user.ChangeAction$$anonfun$executeAction$1.apply(ChangeAction.scala:35)
at scala.collection.Iterator$class.foreach(Iterator.scala:893)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at com.mendix.basis.action.user.ChangeAction.executeAction(ChangeAction.scala:35)
at com.mendix.basis.action.user.ChangeAction.executeAction(ChangeAction.scala:13)
at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:50)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:73)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:53)
at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:51)
at com.mendix.basis.actionmanagement.ActionManager$1.execute(ActionManager.java:170)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:33)
at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:174)
at com.mendix.basis.component.InternalCore.change(InternalCore.java:136)
at com.mendix.webui.requesthandling.RequestHandlingUtil$$anonfun$validateChanges$1$$anonfun$3.apply(RequestHandlingUtil.scala:50)
at com.mendix.webui.requesthandling.RequestHandlingUtil$$anonfun$validateChanges$1$$anonfun$3.apply(RequestHandlingUtil.scala:37)
at scala.collection.TraversableLike$WithFilter$$anonfun$map$2.apply(TraversableLike.scala:683)
at scala.collection.immutable.HashMap$HashMap1.foreach(HashMap.scala:221)
at scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:428)
at scala.collection.TraversableLike$WithFilter.map(TraversableLike.scala:682)
at com.mendix.webui.requesthandling.RequestHandlingUtil$$anonfun$validateChanges$1.apply(RequestHandlingUtil.scala:37)
at com.mendix.webui.requesthandling.RequestHandlingUtil$$anonfun$validateChanges$1.apply(RequestHandlingUtil.scala:32)
at scala.Option.map(Option.scala:146)
at com.mendix.webui.requesthandling.RequestHandlingUtil$.validateChanges(RequestHandlingUtil.scala:32)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:300)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:293)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:293)
at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:33)
at com.mendix.basis.actionmanagement.IMonitoredAction$class.monitor(IMonitoredAction.scala:49)
at com.mendix.webui.requesthandling.ClientRequestHandler$ClientMonitoredAction.monitor(ClientRequestHandler.scala:408)
at com.mendix.webui.requesthandling.ClientRequestHandler.handleRequest(ClientRequestHandler.scala:293)
at com.mendix.webui.requesthandling.ClientRequestHandler.handleActionWithSessionRequired(ClientRequestHandler.scala:235)
at com.mendix.webui.requesthandling.ClientRequestHandler.handleAction(ClientRequestHandler.scala:202)
at com.mendix.webui.requesthandling.ClientRequestHandler.liftedTree1$1(ClientRequestHandler.scala:101)
at com.mendix.webui.requesthandling.ClientRequestHandler.processRequest(ClientRequestHandler.scala:93)
at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:40)
at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:70)
at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:67)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:33)
at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:73)
at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:885)
at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.handle(RuntimeHandler.java:41)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:368)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:745)

 

How to restore a local database including the files?

$
0
0

Hi all,

I am familliar with how to restore a database to my local environment using Postgress, however I am unsure how to restore my files (like images and such) from my cloud based DB to my local postgress DB.

Can anyone tell me if and how this is possible?

Thanks!

Adding a list to an object

$
0
0

I've created a shopping cart where products can be placed in. Inside the shoppingcart there is one button to add all of the products inside an order.

When the "Bestellen" button is clicked the following microflow will be called:

The new object "bestelling" is created but the products are not placed in the bestel_lines table. Inside the loop this is filled in the bestel_lines table:

I can't seem to figure out why the products are not placed in the bestel_lines table. Thanks in advance for helping me out.

Using Xpath constraint to only show user's own data to user: why can the user not see his own data?

$
0
0

I got an app in which users can add orders. I created an association between Order in the Management module and Account in the Administration module: Order_Account.

I use access rules of the entity Order in an attempt to be able to show the user only the data he added himself.

[Management.Order_Account='[%CurrentUser%]']

The problem is that when I run the app, the user can add data, but the added data is now not shown at all, the Order page stays empty.

The order is added, cause the Administrator account is able to see the added data. So there must be a problem in the Xpath constraint I used.

Does someone know how I can solve this?

Using the feedback widget in a layout

$
0
0

I use the feedback widget in a layout. Does this have advantages or disadvantages? Will it have impact on the performance?

Feedback Widget

$
0
0

Hi

i have downladed feedback widget and trying to configure its properties.

I am aware about the APP ID that we have in mendix app, from where do i get project ID for the feedback widget. Is it same as app id?


Migration PostGresSQL to SQL

$
0
0

HI

 

I need to migrate postgressql dump to SQL database and then use this SQL database for my mendix applicaiton. I see so many posts blogs on this, its slightly confusing

1. Is there out of box way to migrate, has anyone tried this: https://docs.mendix.com/howtogeneral/tips/migrating-your-mendix-database

2. WHat can be other way to migrate, by mendix or otherwise.

3. Once i am migrated, do i use SQLCOnnector plugin by Mendix to work with the database, any other way. Using this i will have to manually create microflow to execute SQL commands.

 

ANy help/pointers?

 

Microflow does not receive all data when sending a POST.

$
0
0

I'm sending the following json post action:


 

Part of my Model:

 

My publish and update microflows:


 

Account contains no more than the Account_ID and the request is empty when the json object is send.

 

How does one get the json contents?

 


 

 

 

RunMicroflowAsyncInQueue not working anymore

$
0
0

While rebuilding a part of our model I noticed during testing that this Java action is no longer working. The microflow is scheduled and the logs tell me that the microflow is executed, however the breakpoint is never triggered and looking at the data the microflow did not run. Debugging from eclipse does not help. I see that the java action fires the microflow. From a Java standpoint everything looks ok.

Changing the RunMicroflowAsyncInQueue to executeMicroflowInBackground did not help. It is also not executed in the background. The executeMicroflowAsUser did work as expected.

Trying to reproduce it in a test environment did not help. In the testenvironment everything works as expected. I double checked the userlib library for double entries and could not find anything wrong there. Anybody a clue why this might not work anymore, or what I could do to debug this further?

Regards,

Ronald

[EDIT] Bump up to see if somebody has a suggestion before I am gone file a support request.

Invoice visibility

$
0
0

Hello everyone,

 

I’ve got a small question regarding the visibility of products placed on an order/invoice.

A customer is able to buy multiple products from multiple retailers at the same time.

What we want to achieve is the following:

When a customer buys a product from Retailer A and a product from Retailer B, we want the invoice to be split, showing the correct products to the correct retailers.

So Retailer A should only be able to view the products that the customer bought from Retailer A and vice versa with Retailer B.

 

Thanks in advance!

 

Flat file importer not importing records

$
0
0

I'm using the flat file importer and 5900 records out of 6000 will import with no problem.  i even changed the whole data model to all strings to make sure it wasn't a conversion issue.  The problem is that I'm not getting any errors.  How do i see what is getting skipped over?  My file is fixed length.  Its hosted as a free app. and is using the queue

Viewing all 83469 articles
Browse latest View live


Latest Images

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