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

Update client display between microflow start and end.

$
0
0

The JavaScript client only seems to update at the end of a microflow. I want to update the gui within the microflow. This is for a progressbar widget. I have tried threaded calls to submicroflows with no luck. How can one accomplish updates in the gui between the little green apple and those red tomatos :)

Thankyou


Which richtext editor / viewer to use for Mendix 6.6.0

$
0
0

Which richtext editor / viewer should I use for Mendix 6.6.0 ? The CKeditor/viewer script is loading but not working....

Select records based on current date

$
0
0

Hi,

I have an entity with an attribute 'Date'.

Now I want to display all records in a data grid with 'Date' equal or greater than today. So I selected database as data source, selected the attribute 'Date', but what should be the value to display the records with a data equal or greater than today?

Or is there a better way to do this?

Thanks

Multi-threaded microflows?

$
0
0

Are microflows within Mendix multi-threaded?

For instance could a single microflow ever cause the CPU usage to spike over a single core?

Problem with adding font-awesome to app

$
0
0

Hi guys

I want to add fontawesome to our app, like described here: https://mxforum.mendix.com/questions/18142/Adding-glypicons-to-Mendix-Modeler.

What I did was:

1 - downloaded v.4.6.3 and copied the font folder of font-awesome to the theme folder.

2 - I pasted the classes into the custom.css and custom_variables.scss

3 - give the button the class name

4 - zipped the theme to a package

Now it should work I thought, but no... But I even dont see that the classes are read...what do I mis?

calling an mx.data object

$
0
0

Hi, I want to use mx.data object as well as java script in my application. can any one suggest me how too implement mx.data in mendix.

In what cases would a one-to-one relationship necessary improve performance?

$
0
0

I have a simple object with only a few fields, but it comes a long with a lot of metadata attributes (appr. 20). Those attributes will not be used very often. Would it make sense to separate these and add a one-to-one relationship instead for performance sake?

Call Rest Service - supported representations

$
0
0

I am trying to consume a REST service which returns an image, but this results in an error. I have configured the Call REST Service action to store the response in a string: since I don't get a JSON object, I don't see how I can use an import mapping.

In this blog post, it is mentioned that the representation of a resource can vary: "Several common representations are XML, JSON, HTML, or binary data such as an image or PDF file." Can I consume such a service through the native Call REST Service action?

The error that I get:

com.mendix.modules.microflowengine.MicroflowException: Error calling REST service
    at CustomerApi.GetThumbnail (CallRest : 'Call REST (GET)')
    at Tests.TEST_IVK_GetThumbnail (SubMicroflow : 'GetThumbnail')

Advanced stacktrace:
    at com.mendix.integration.actions.microflow.RestCallAction.handleResponse(RestCallAction.scala:70)

Caused by: java.nio.charset.MalformedInputException: Input length = 1
    at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
    at java.io.InputStreamReader.read(InputStreamReader.java:184)
    at java.io.BufferedReader.read1(BufferedReader.java:210)
    at java.io.BufferedReader.read(BufferedReader.java:286)
    at java.io.Reader.read(Reader.java:140)
    at scala.io.BufferedSource.mkString(BufferedSource.scala:96)
    at com.mendix.integration.actions.microflow.RestCallAction$$anonfun$com$mendix$integration$actions$microflow$RestCallAction$$extractString$1.apply(RestCallAction.scala:90)
    at com.mendix.integration.actions.microflow.RestCallAction$$anonfun$com$mendix$integration$actions$microflow$RestCallAction$$extractString$1.apply(RestCallAction.scala:90)
    at scala.Option.map(Option.scala:146)
    at com.mendix.integration.actions.microflow.RestCallAction.com$mendix$integration$actions$microflow$RestCallAction$$extractString(RestCallAction.scala:90)
    at com.mendix.integration.actions.microflow.RestCallAction$$anonfun$handleResponse$1.apply(RestCallAction.scala:67)
    at com.mendix.integration.actions.microflow.RestCallAction$$anonfun$handleResponse$1.apply(RestCallAction.scala:67)
    at com.mendix.integration.actions.ServiceCallResult.parseResponse(ServiceCallResult.scala:39)
    at com.mendix.integration.actions.ServiceCallResult.toMendixResult(ServiceCallResult.scala:33)
    at com.mendix.integration.actions.microflow.RestCallAction.handleResponse(RestCallAction.scala:67)
    at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:42)
    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:32)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:174)
    at com.mendix.core.component.InternalCore.executeSync(InternalCore.java:459)
    at com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:43)
    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:32)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:174)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:377)
    at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:135)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:282)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:277)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:277)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:144)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:146)
    at scala.util.Try$.apply(Try.scala:192)
    at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:140)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:136)
    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)

How to retrieve a random element of a list?

$
0
0

Hi All,

I am looking for a way to retrieve a random name from a list of names. Is this possible? Can I do this by using microflows only?

ConcurrentModificationException

$
0
0

I get a ConcurrentModificationException in the log. It happens when importing master data (each object becomes a webservice call, so many calls in a short period of time). It happens approximately once every hour and lasts for 15 minutes. During that time, messages are handled, but after 15 minutes it starts working fine again (until 1 hour later). What can be the cause of this?

Aug 11 14:18:46.751 127.0.0.1 tr10000: ERROR - ActorSystem: Unknown message: Failure(java.util.ConcurrentModificationException)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (1/13) com.mendix.systemwideinterfaces.MendixRuntimeException: Unknown message: Failure(java.util.ConcurrentModificationException)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (2/13) at com.mendix.core.session.ActionDispatcher$$anonfun$receive$2.applyOrElse(ActionDispatching.scala:132)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (3/13) at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (4/13) at com.mendix.core.session.ActionDispatcher.aroundReceive(ActionDispatching.scala:111)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (5/13) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (6/13) at akka.actor.ActorCell.invoke(ActorCell.scala:487)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (7/13) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (8/13) at akka.dispatch.Mailbox.run(Mailbox.scala:220)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (9/13) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (10/13)            at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (11/13)            at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (12/13)            at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
Aug 11 14:18:46.757 127.0.0.1 tr10000: ERROR - ActorSystem: (13/13)            at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

EnableKeepAlive not working

$
0
0

We are running 3 on premise servers with load balancing.

I have added EnableKeepAlive: true in yaml files under mxruntime, but users are still complaining they are being logged out.

Is there something else I need to do to so that users remain logged in?

Thanks, Tracy

How to get the CPU Time consumed and Allocated Bytes for a thread in Mendix.

$
0
0

I want to know how much CPU Time & Memory usage (Allocated Bytes) is being utilized at a particular event in my application. I tried to create Java classes and invoke them during my event call in Mendix using the predefined java methods getThreadCPUTime & getThreadAllocatedBytes but upon doing this, I am getting the CPU Time for thread in response but I am not sure if this Thread CPU Time is for actual Mendix thread or the Java thread which got created for the class during the invoke. Are there any predefined API’s in Mendix, which can be used to fetch CPU Time & Memory usage on a particular event in my application?

autosave documents

$
0
0

Is there a way to implement autosave on documents so that a document is periodically saved automatically while a user has the doc open?

Thanks, Tracy

Sending attachments in email from sandbox app

$
0
0

I have build an application which uses the email widget tot sent mail with a PDF as attachment to a list of mail adresses, In local deployment this works but when I deploy the application to the sandbox the mail is sent but without the attachment. Does anyone know what the reason can be?

Dynamically open different module pages

$
0
0

Hello

I'm currently building a type of app store where each app will be built as a different module. All the details regarding apps are held in one entity including the name of the home page for that app.

On the details page for an app it will have a launch button and I want this to button to display the home page for that app.

Is this possible/whats the best way/how can I achieve this? I thought i'd be able to use a microflow which retrieved the home page from the apps entity and then used that variable to display the page but this isn't possible using the Show Page function so i'm sure there must be an alternative way.

Any help will be appreciated Leon


SAML Module - Loader Constraint Violation

$
0
0

I have the SAML module installed in an existing app. Invoking the Startup microflow in this module, I get a hard error in the console and see the following stack trace:

java.lang.LinkageError: loader constraint violation: when resolving method
      "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" 
       the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) 
       of the current class, org/slf4j/LoggerFactory, and the class loader
       (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for the method's
        defining class, 
        org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory 
        used in the signature
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:299)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
at org.opensaml.DefaultBootstrap.getLogger(DefaultBootstrap.java:225)
at org.opensaml.DefaultBootstrap.initializeXMLSecurity(DefaultBootstrap.java:168)
at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:90)
at saml20.implementation.SAMLRequestHandler.<init>(SAMLRequestHandler.java:62)
at saml20.implementation.SAMLRequestHandler.getInstance(SAMLRequestHandler.java:56)
at saml20.implementation.SSOServerConfiguration.start(SSOServerConfiguration.java:18)
at saml20.actions.StartSSO.executeAction(StartSSO.java:28)
at saml20.actions.StartSSO.executeAction(StartSSO.java:16)
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:32)
at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:174)
at com.mendix.core.component.InternalCore.execute(InternalCore.java:383)
at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:52)
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:32)
at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:174)
at com.mendix.core.component.InternalCore.execute(InternalCore.java:383)
at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:135)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:317)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:312)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:312)
at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:144)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:146)
at scala.util.Try$.apply(Try.scala:192)
at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:140)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:136)
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)

I created a test project with just the SAML module and didn't get this error. Any pointers on how to troubleshoot and correct the conflict in my project?

Thanks!

Adding a snippet in home page showing an error in mendix 6.6.0

$
0
0

Hi friends,

I created a snippet with the microflow it won't show me an error and when i attaching it in a home page it was showing an error 'The snippet expect an entity and should be used in the context of an entity (e.g. a data view)

Please explain me how to rectify the error

JavaScript get GUID of dataview

$
0
0

I know you can use dijit.byNode(dojo.query(".mx-name-grid1")[0])._dataSource._pageObjs; to get at the guids of the objects in a datagrid. How can you do the same for a dataview?

Thankyou very much

Tablet Datepicker

$
0
0

Is there any datepicker widget that works for tablets? The standard datepicker requires double tapping which is less than ideal. The bootstrap datepicker does not seem to work correctly (does not save the input) in 6.7.

Any other suggestions on how to provide a good way for my client to input dates in a tablet

How to activate an on change microflow during typing

$
0
0

Hi all,

I was wondering whether anyone has experience with the following and could help me with it.

I have placed an on change microflow at an editable field. It triggers the on change flow by clicking outside of the field/somewhere else on the page. However, I would like it to be triggered when the first number is entered, and then again when the second is entered, etc.

Does any of you know how to do this?

Viewing all 83469 articles
Browse latest View live


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