Hi everyone, I am pretty new to Mendix and I am trying to make a graph from data I calculated and show in a data grid, but that I don't store in the database. I could simply calculate it again using the same microflow and then base the graph on that but I can imagine that's pretty bad for performance. I tried to use the listen to function but then it only shows one value in the graph instead of all of it. Does someone have suggestions on how to use the calculated data in the graph without calculating it again?
↧
Using calculated non-persistable data in a graph
↧
Upgrades in ATS
Hey, This week there was an upgrade on ATS, during which we could not work with ATS. Can a scheduled test run continue during an upgrade like that one? Can we also be alerted some time before the actual upgrade? How do we know which Mendix version is supported by the ATS version? Kind regards, Kathy
↧
↧
'00' getting added in the calendar widget before ever title added there. Why?
When i am retrieving a name from association to display it in the calendar, a default '00' value is added before the name string. [Calendar widget>Event data>Title]- Is the place where i am retrieving the name.
↧
Simple Menu Bar in Layout not refreshing
Hi all, I have a Simple Menu Bar (horizontal) with navigation items (no sub-items) placed within my layout. I also have a button in the layout that allows the user to navigate to the homepage directly. However, when the user clikcs on this home button, it seems that the last clicked navigation item in the Simple Menu Bar remains active (i.e. the .active class remains on the navigation item). This gives a weird situation as the user at that point will be on the homepage, but the Simple Menu Bar will still have the last clidked navigation item showing as active. I have found a way to circumvent this behaviour by placing the Simple Menu Bar in a placeholder within the layout. In this case the active class is succesfully removed from the navigation item. However, this means that I will have to put the Simple Menu Bar within the placeholder on every page, while it will remain the same accross the project. Therefore, I would rather avoid that... Would you have any other ideas to solve this?
↧
Data grid doesn't seem to be refreshing properly
I have a data grid displaying multiple attributes from my 'product' entity, which it does just fine. I can add and edit records in the data grid just fine, except for 1 of the attributes. There's 1 attribute that, when i try to edit it, it won't actually update the field in the data grid UNLESS i refresh the page manually(the attribute in question is an enumeration, and i'm using some custom java to change the value of it according to the selected option in a dropdown, this all works perfectly fine) I have also tried setting the 'refresh time(in seconds)' property of the data grid to 1 second , 10 seconds , 60 seconds, none of those settings made any difference. Is there anything else i can do to make a data grid refresh, other than just refreshing the page manually?
↧
↧
Error in SOAP webservice
Hi all, When I activate a SOAP webservice in ACC environment the message doesn't arrive at the endpoint and gives next message: Soap message : null Error type: com.sun.xml.ws.server.UnsupportedMediaException Error message: Unsupported content-Type:text/xml;Charset=utf-8 Supported ones are: [application /soap+xml] When I test the message in my development env to SOAPUI all goes well and I get the expected response. The endpoint has been checked. How can I solve this?
↧
User status
Hi all, So i have for example 10 registered users in my app for a company and i want to give a user a status: active / non-active. For each status i want to give the user different access rights. Could you help me out with this ?
↧
Generating Keys for Phonegap to deploy my app in the Apple store
Hi all i am trying to publish a app, At step 3 and 4 u need to use openssl downloaded it an tried the commands "C:\OpenSSL\bin\openssl.exe" req -new -key "C:\private.key" -out "C:\ios.csr" and also the other one ut i got these errors so they are invalid to generate the keys does anyone know how to get them. I would like to use them in adobe phonegab I am using this Doc on mendix :https://docs.mendix.com/refguide/managing-app-signing-keys
↧
How to execute custom MF after a file/image is chosen?
Hi, In order to simplify the profile picture upload process, I want that after an image/file is chosen (through standard image uploader (browse button) functionality) the process goes further to a custom Microflow (in order to crop the image after it is uploaded). Do you have any advice how to reach this (how to improve the standard browse functionality with custom MF)? Or is there any non-standard action (Java) that I can use to chose/upload an image/file and extend with custom MF?
↧
↧
Java runtime exception - LocalFileSystemStore:: store Error opening file for key
I have recently been receiving this error (the stack trace is below) when I try to take a picture using the phonegap camera widget. I am not sure if it is related to the widget or not, but this is the first time I am seeing this error. I believe it is occurring when trying to upload the image. I saw that there is another question similar to this https://forum.mendixcloud.com/link/questions/89335. If anyone has any suggestions on how to handle this error, please let me know. Thank you.
Stack trace
com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' a552b719-eb61-4388-9ba8-1f50b5caafd1 '
at BillingSheet.SavePhotoForPhoneWidget_PhotoSavedInBillingSheetPDF (Change : 'Change 'ImageGeneratedFromMobile' (VendorBillingSheetPDF_BillingSheet)')
Advanced stacktrace:
at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143)
Caused by: com.mendix.core.CoreRuntimeException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' a552b719-eb61-4388-9ba8-1f50b5caafd1 '
at com.mendix.core.actionmanagement.ActionManager.executeInTransactionSync(ActionManager.java:143)
Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' a552b719-eb61-4388-9ba8-1f50b5caafd1 '
at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:176)
Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' a552b719-eb61-4388-9ba8-1f50b5caafd1 '
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:40)
Caused by: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' a552b719-eb61-4388-9ba8-1f50b5caafd1 '
at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.storeFile$1(LocalFileSystemStore.scala:89)
at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.store(LocalFileSystemStore.scala:96)
at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.writeFile(FileDocumentProcessorImpl.java:195)
at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.storeFileDocument(FileDocumentProcessorImpl.java:127)
at com.mendix.core.objectmanagement.member.MendixBinary.commitValueAsFileDocument(MendixBinary.java:186)
at com.mendix.core.action.user.CommitAction.com$mendix$core$action$user$CommitAction$$postProcess$1(CommitAction.scala:82)
at com.mendix.core.action.user.CommitAction$$anonfun$commit$1.apply(CommitAction.scala:76)
at com.mendix.core.action.user.CommitAction$$anonfun$commit$1.apply(CommitAction.scala:76)
at scala.collection.immutable.List.foreach(List.scala:381)
at com.mendix.core.action.user.CommitAction.commit(CommitAction.scala:76)
at com.mendix.core.action.user.CommitAction.commitPersistableObjects(CommitAction.scala:63)
at com.mendix.core.action.user.CommitAction.executeAction(CommitAction.scala:42)
at com.mendix.core.action.user.CommitAction.executeAction(CommitAction.scala:20)
at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)
at com.mendix.core.actionmanagement.ActionManager.executeInTransactionSync(ActionManager.java:136)
at com.mendix.core.component.InternalCore.commit(InternalCore.java:286)
at com.mendix.core.component.InternalCore.commitWithoutEvents(InternalCore.java:331)
at com.mendix.core.component.InternalCore.commitWithoutEvents(InternalCore.java:320)
at com.mendix.core.component.InternalCore.commitWithoutEvents(InternalCore.java:310)
at com.mendix.modules.microflowengine.actions.mxobject.ChangeItemsExecutor$class.executeChanges(ChangeItemsExecutor.scala:60)
at com.mendix.modules.microflowengine.actions.mxobject.ChangeAction.executeChanges(ChangeAction.scala:17)
at com.mendix.modules.microflowengine.actions.mxobject.ChangeAction.execute(ChangeAction.scala:45)
at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)
at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)
at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)
at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)
at com.mendix.core.component.InternalCore.execute(InternalCore.java:496)
at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:144)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:312)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:302)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:302)
at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:161)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:163)
at scala.util.Try$.apply(Try.scala:192)
at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:157)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:153)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: java.lang.NullPointerException
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at com.mendix.core.objectmanagement.member.RereadableInputStream.read(RereadableInputStream.scala:16)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1719)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1696)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:1671)
at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.storeFile$1(LocalFileSystemStore.scala:86)
... 56 more
↧
Unable to run locally on Mendix
It has a problem while running locally on Mendix. Here is the details, and I tried to change runtime port from 8080 to 8000 in project settings, but it still cannot work. So what's the problem of this?
↧
An error occurred while initializing the Runtime: null
We are getting following error when running the process locally. com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: null at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:350) Caused by: java.lang.NullPointerException: null at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.shouldCreateColumn(ModelSynchronizationUpdater.java:228) at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.validateConstraint(ModelSynchronizationUpdater.java:194) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1620) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.analyzeConstraints(ModelSynchronizationUpdater.java:187) at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.validateConstraints(ModelSynchronizationUpdater.java:144) at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.analyzeAndRender(ModelSynchronizationUpdater.java:98) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeModel(SynchronizationManager.scala:176) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeCurrentDatabase(SynchronizationManager.scala:98) at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyze(SynchronizationManager.scala:87) at com.mendix.connectionbus.ConnectionBusImpl.collectDatabaseSynchronizationInformation(ConnectionBusImpl.java:307) at com.mendix.basis.impl.MxRuntimeImpl.initializeConnectionBusAnyway(MxRuntimeImpl.java:427) at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:332) at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:277) at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.java:49) at com.mendix.m2ee.appcontainer.actions.StartAction.execute(StartAction.java:30) at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandler.handle(HttpAdminHandler.java:119) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:561) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:334) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:104) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597) at java.lang.Thread.run(Thread.java:748) The similar error is already posted by someone in the Forum before but no resolution is provided.
↧
School management system
Hi guys, so ive made a "class" and i want to add "students" to this class. Also, how can i limit the amount of students that can be added to this class ? I have no clue how to go from here, hope someone can help :)
↧
↧
SAP Cloud Platform: unable to logon to another account
I have tried to create an SAP app for deployment on the SAP Cloud Platform. When I created the app I had to logon to my account on the SCP. But now that I want to create a second app I'm no longer able to logon to the SCP with a different account, as Mendix somehow has stored a token of the first account. This might be useful when working with only one account, but it's not if you want to use multiple SCP accounts. So where can I disable this feature or remove the current token?
↧
Assign role in microflow
Hi, I have an enumeration where we select a role which should be applied to the user being made. I have created a microflow where I have set an exclusive split to check which enumeration has been selected. How do I assign a role to the user after a certain enumeration has been checked, so after the exclusive split? What I have so far is: The user is made but can't login because the user doesn't get a role.
↧
Download selected documents from dataGrid
I'm trying to create a way to download multiple files from a datagrid. I've made it that I can select multiple entries in the datagrid, also a download button connected to a microflow. However I don't know how to approach this. Is there a way to iterate over the list of documents and if I find something like "IsSelected" then download the file? Thanks!
↧
Variable default value for string attribute
For a course registration I would like the system to default the name of the user in the registration form. However, for a string attribute in the domain model the default value cannot be a variable. How to default the name of the (logged in) user in the registration form?
↧
↧
Convert System.FileDocument size from bytes to MB
I want to be able to transform the attribute "Size" of the FileDocument type from bytes to Megabytes. At the moment my app is configured to show the size of my documents, but since it's a System.FileDocument type, the size is a "long". Any ideas on how can I convert this attribute to Megabytes?
↧
Error while trying to publish an App
Hi, I am getting error while I am trying to publish an App. I am following the procedure as mentioned in the following url.. https://docs.mendix.com/howto/tutorials/start-with-a-blank-app-3-publish-and-view-your-app. Thanks in advance
↧
FormatDateTime shows wrong time for date with daylight saving time
In our application appointments are made in the future and mailed tot the attendants. All dates are localized. 25 march is the date daylight saving time starts. Today is 21 march. When the date is scheduled before 25 march 2018 the datetime is showed right in the email. But when we schedule it after 25 march the datetime is shown one hour too early in the email. The dates are shown in the right way at forms. It seems that when using formatDateTime during a winter time periode, Mendix always uses the winter time for formatting a date that is saved. Although the date saved is in summer time. Is this a bug in Mendix? Has anyone encountered the same problem?
↧