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

Which Hardware do you use? // Mendix Pro on Windows Server 2016

$
0
0
Hi, With the time my projects slowly become a bit bigger. However, I have the impression that my hardware with Mendix reaches its limits, especially when Teams is also running at the same time.   HP EliteBook 745 G6 AMD Ryzen 5 PRO 3500U w/ Radeon Vega Mobile Gfx, 2100 MHz 16,0 GB RAM   What hardware do you use and what is your experience? Another question: Is someone of experienced with the   

While saving object creates two.

$
0
0
We are trying to save two entities at the same time. One is something like forum post that has one to many association to other entity that is comment that has two attributes – value and author. When creating new post we have form that has all the necessary input fields and data source is post that is page parameter. And one field that has data source a microflow that creates new comment with an association with post and and author’s name. Problem is that when using default save button action then instead of one comment two are saved. One with normal comment with value and author and another comment without value, just with author’s name. Maybe someone has an idea what could be wrong?

Assign System.Role to user with an Microflow

$
0
0
Hi, in my domain-model a user can be maintained as approver, so the other users can select this specific user as approver. How do I assign the System.UserRole “Approver” to the user within a microflow, when he is maintained as approver in the entity A_Fastlane.ExecutiveApprover by an admin?  Thank you! Tjark    

Unable to get a member from variable $dataView3, because you do not have sufficient permissions

$
0
0
All, I am seeing this issue while access attribute of dataview1 from dataview2. Dataview2 is inside dataview1. This code was working fine in Mendix 8.8.1 and started seeing this issue when I upgraded to 8.10.1. Required access is give to login user. Any inputs are greatly appreciated.    An error occurred while evaluating conditional editability expression in Payment.Payment.textBox6: Unable to get a member from variable $dataView3, because you do not have sufficient permissions to "Payment.BillingMethodDTO.IsEditable". Error: An error occurred while evaluating conditional editability expression in Payment.Payment.textBox6: Unable to get a member from variable $dataView3, because you do not have sufficient permissions to "Payment.BillingMethodDTO.IsEditable".     at http://localhost:8080/mxclientsystem/mxui/mxui.js?637299866224072983:73:306494     at http://localhost:8080/mxclientsystem/mxui/mxui.js?637299866224072983:73:306623     at y (http://localhost:8080/mxclientsystem/mxui/mxui.js?637299866224072983:20:6196)     at http://localhost:8080/mxclientsystem/mxui/mxui.js?637299866224072983:73:305958     at ue (http://localhost:8080/mxclientsystem/mxui/mxui.js?637299866224072983:35:7913)     at e.computeValue (http://localhost:8080/mxclientsystem/mxui/mxui.js?637299866224072983:35:14214)     at e.trackAndCompute (http://localhost:8080/mxclientsystem/mxui/mxui.js?637299866224072983:35:14040)     at e.get (http://localhost:8080/mxclientsystem/mxui/mxui.js?637299866224072983:35:13091)     at oe (http://localhost:8080/mxclientsystem/mxui/mxui.js?637299866224072983:35:7367)              

Sign up Error

$
0
0
Hi,  While I am trying to create a new user account using sign up . It is giving me error as the microflow is not able to find email template from database.   Can someone help This is forgot password module from App store

TC Connector add new attributes for EPM Task

$
0
0
Hello, I am using TC Connector with Mendix Studio Pro 8.6.3. I want to add some attributes to EPMTask. - I created my own module - In Domain Model I defined a new entity EPMTask derived from TcConnector.EPMTask - In the new entity I added the new attributes with the same name as in BMIDE (e.g. task_state) - I defined a microflow FindUserTasks - A page is displayed ShowInboxList: if the object of type TaskInbox is found, the page is displayed with the button Open Inbox - When the button Open Inbox is clicked, the page ShowTaskList is displayed If I use the entity TcConnector.EPMTask, it works properly and the tasks are displayed properly If I use the derived entity with the new properties, no tasks are displayed   If I add the new attributes directly in TcConnector.EPMTask and I use the entity TcConnector.EPMTask, it works. But I don’t want to modify TcConnector. I want to make my enhancements in my own module. I would like to know what I did wrong.            

Document reporting tool for Mendix

$
0
0
Does anyone know what the best document reporting tool is for Mendix? Particular for complex PDF reports with repeating sub headers. It appears the document template feature is not a core feature of Mendix and is no longer supported or being updated and I was wondering if anyone has a good recommendation that would also meet accessibility requirements long term. Thanks!  

Error when starting the database viewer

$
0
0
When I click advanced – start built-in database viewer, I got an error and I don't have a clue, any suggestions? (Studio Pro 8.11.0) Mendix.Modeler.M2EEConnector.M2EEException: Request <{"action":"start_hsqldb_gui","params":{}}> failed:  ---> System.Net.WebException: The request was aborted: The operation has timed out.    at System.Net.HttpWebRequest.GetResponse()    at Mendix.Modeler.M2EEConnector.M2EERequest.DoHttpRequest(String json, Int32 timeout) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.M2EEConnector\M2EERequest.cs:line 173    --- End of inner exception stack trace ---    at Mendix.Modeler.M2EEConnector.M2EERequest.DoHttpRequest(String json, Int32 timeout) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.M2EEConnector\M2EERequest.cs:line 186    at Mendix.Modeler.M2EEConnector.M2EERequest.Execute(Int32 timeout) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.M2EEConnector\M2EERequest.cs:line 69    at Mendix.Modeler.M2EEConnector.M2EEClient.StartHsqldbGui() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.M2EEConnector\M2EEClient.cs:line 309    at Mendix.Modeler.M2EEConnector.RuntimeController.StartBuiltInDatabaseBrowser() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.M2EEConnector\RuntimeController.cs:line 88    at Mendix.Modeler.UIFramework.Progress.ProcessRunner.RunStep(Step step) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 83    at Mendix.Modeler.UIFramework.Progress.ProcessRunner.OnDoWork(Object sender, DoWorkEventArgs e) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 63    at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Document Generation in Mendix

$
0
0
Does anyone know how to generate documents from a template in mendix? Looking to create pdfs and store them.

Native Mobile FCM Push Notification Configuration

Native Mobile FCM Push Notification Configuration

$
0
0
Currently attempting to setup push notifications on our mobile app in our QA environment. APN setup works normally but when setting up the FCM for Android I receive an error.  I don’t get the same error when setting it up on my local env. There was another error that appeared prior that apparently was linked with Community Commons and a duplicate pdfbox-1.8.5.jar that I had to remove in order to be able to run the project.  Unsure if they are related. I also had to downgrade the encryption module version. 1:33:20 PMAPPERROREncryption: Error while encrypting string: Key should not be empty 1:33:20 PMAPPERRORConnector: An error has occurred while handling the request. [User '----' with session id '----' and roles 'Administrator'] 1:33:20 PMAPPERRORConnector: com.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: Key should not be empty 1:33:20 PMAPPINFOat Encryption.Encrypt (Error : '') 1:33:20 PMAPPINFOat PushNotifications.IVK_SaveFCMSettings (SubMicroflow : 'Encrypt') 1:33:20 PMAPPINFOAdvanced stacktrace: 1:33:20 PMAPPINFOat com.mendix.modules.microflowengine.microflow.impl.ErrorEvent.throwError$1(ErrorEvent.scala:17) 1:33:20 PMAPPINFOCaused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: Key should not be empty 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156) 1:33:20 PMAPPINFOCaused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: Key should not be empty 1:33:20 PMAPPINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) 1:33:20 PMAPPINFOCaused by: com.mendix.systemwideinterfaces.MendixRuntimeException: Key should not be empty 1:33:20 PMAPPINFOat encryption.actions.EncryptString.executeAction(EncryptString.java:42) 1:33:20 PMAPPINFOat encryption.actions.EncryptString.executeAction(EncryptString.java:19) 1:33:20 PMAPPINFOat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) 1:33:20 PMAPPINFOat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147) 1:33:20 PMAPPINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.UserActionCallBuilderImpl.execute(UserActionCallBuilderImpl.scala:30) 1:33:20 PMAPPINFOat com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:56) 1:33:20 PMAPPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:49) 1:33:20 PMAPPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:215) 1:33:20 PMAPPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:165) 1:33:20 PMAPPINFOat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) 1:33:20 PMAPPINFOat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147) 1:33:20 PMAPPINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152) 1:33:20 PMAPPINFOat com.mendix.basis.component.InternalCoreBase.executeSync(InternalCoreBase.java:382) 1:33:20 PMAPPINFOat com.mendix.modules.microflowengine.MicroflowExecuter$.executeSync(MicroflowExecuter.scala:19) 1:33:20 PMAPPINFOat com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:49) 1:33:20 PMAPPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:49) 1:33:20 PMAPPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:215) 1:33:20 PMAPPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:165) 1:33:20 PMAPPINFOat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) 1:33:20 PMAPPINFOat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147) 1:33:20 PMAPPINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.MicroflowCallBuilderImpl.execute(MicroflowCallBuilderImpl.scala:40) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.ExecuteMicroflowAction.runMicroflow(ExecuteMicroflowAction.scala:76) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.ExecuteMicroflowAction.$anonfun$apply$3(ExecuteMicroflowAction.scala:42) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction$Helpers$.$anonfun$liftEither$1(RegularClientAction.scala:29) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction$Helpers$StateHandler.$anonfun$apply$4(RegularClientAction.scala:55) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.helpers.StateHandling.withState(StateHandling.scala:35) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.helpers.StateHandling.withState$(StateHandling.scala:32) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction$Helpers$StateHandler.withState(RegularClientAction.scala:45) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction$Helpers$StateHandler.apply(RegularClientAction.scala:53) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction$Helpers$StateHandler.apply(RegularClientAction.scala:45) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.ExecuteMicroflowAction.apply(ExecuteMicroflowAction.scala:43) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.ExecuteMicroflowAction.apply(ExecuteMicroflowAction.scala:22) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$3(RegularClientAction.scala:109) 1:33:20 PMAPPINFOat scala.util.Try$.apply(Try.scala:213) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$2(RegularClientAction.scala:109) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$2$adapted(RegularClientAction.scala:107) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.helpers.ContextHandling.$anonfun$inContext$5(ContextHandling.scala:47) 1:33:20 PMAPPINFOat scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47) 1:33:20 PMAPPINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49) 1:33:20 PMAPPINFOat com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.helpers.ContextHandling$ClientMonitoredAction.monitor(ContextHandling.scala:59) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:47) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:27) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction.inContext(RegularClientAction.scala:86) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:24) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:19) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction.inContext(RegularClientAction.scala:86) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$1(RegularClientAction.scala:107) 1:33:20 PMAPPINFOat scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest(ProfileHandling.scala:14) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest$(ProfileHandling.scala:10) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction.profileRequest(RegularClientAction.scala:86) 1:33:20 PMAPPINFOat com.mendix.webui.actions.client.RegularClientAction.execute(RegularClientAction.scala:104) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.ClientRequestHandler.handleAction(ClientRequestHandler.scala:104) 1:33:20 PMAPPINFOat com.mendix.webui.requesthandling.ClientRequestHandler.processRequest(ClientRequestHandler.scala:81) 1:33:20 PMAPPINFOat com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:40) 1:33:20 PMAPPINFOat com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:76) 1:33:20 PMAPPINFOat com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:73) 1:33:20 PMAPPINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) 1:33:20 PMAPPINFOat com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:79) 1:33:20 PMAPPINFOat com.mendix.basis.impl.MxRuntimeImplBase.processRequest(MxRuntimeImplBase.java:930) 1:33:20 PMAPPINFOat com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.service(RuntimeHandler.java:42) 1:33:20 PMAPPINFOat javax.servlet.http.HttpServlet.service(HttpServlet.java:790) 1:33:20 PMAPPINFOat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755) 1:33:20 PMAPPINFOat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:547) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) 1:33:20 PMAPPINFOat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1215) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.Server.handle(Server.java:500) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) 1:33:20 PMAPPINFOat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) 1:33:20 PMAPPINFOat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) 1:33:20 PMAPPINFOat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) 1:33:20 PMAPPINFOat org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) 1:33:20 PMAPPINFOat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) 1:33:20 PMAPPINFOat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) 1:33:20 PMAPPINFOat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) 1:33:20 PMAPPINFOat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) 1:33:20 PMAPPINFOat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375) 1:33:20 PMAPPINFOat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) 1:33:20 PMAPPINFOat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) 1:33:20 PMAPPINFOat java.base/java.lang.Thread.run(Unknown Source)  

USB Scanners with Mendix Web App - Values Not Being Passed Through

$
0
0
Has anyone had issues using barcode scanners with their mendix web app? Setup Barcode Scanner : Honeywell Hyperion 1300g Scanner is connected to computer register via USB. Browser – Mozilla Firefox Mozilla Extension – Tamper Monkey   Process We have a page that takes in input 14-digit SKU into a textbox Upon “key press enter” or the action button, they both trigger a microflow that takes that input SKU & inserts it into a our shipment details entity If we do not want to hand key it, the alternative is to use our scanner. How our scanner works with the mendix app : We’re using our scanner with Mozilla firefox, and a mozilla extension add on called “tamper monkey” that allows us to execute scripts. Our script essentially takes in incoming scan value, and then assigns the form textbox with the new 14-digit value & executes the button click on the page that runs the microflow. Its pretty basic, and I’ve got the attached snippet that I’m using. We currently do this for our other web applications var text_id = document.querySelector('[id*="Shipment_Edit.textBox6"]').id.replace("-label", ""); //set textbox value with incoming scanner message document.getElementById(text_id).setAttribute('value', incomingScannerMessage); //Button Click var button_obj = document.querySelector('[data-button-id*="2.Shipments.Shipment_Edit.actionButton4"]') button_obj.click(); //Refocus on input document.getElementById(text_id).focus();   Problem When using a keyboard, this works perfectly fine!! There are no issues at all, and we figured we could just code our scanners to copy the incoming barcode into the textbox, select the action button and perform a button object click via JavaScript as described above. What we’re seeing is that if you don’t touch the textbox and edit it in anyway, we’re able to successfully paste values into the textbox with our scanner and Mendix seems to in-take the contents of the textbox just fine and the microflow executes like normal, repeatedly. HOWEVER -  whenever we decide to go into the textbox and edit manually with the keyboard, its almost as if the state of the textbox changes and it unable to assign new values that are being pasted into the mendix textbox. Mendix appears to be saving the old value and new subsequent scans are unable to pass in, and our error logging within Mendix indicates its still trying to execute on the old SKU value. But if we decide to hand type via keyboard and click on the button, it’ll work.   I have to refresh the entire application and start over for the scanner to work again – that is…until we decide to click into the textbox and tamper with it.  

OQL query COUNT CASE

$
0
0
Hey I have a OQL query whitch need to count a value based on a string. now I have the next query but it gives error. SELECT     COUNT(CASE WHEN  Check.Result = 'OK' THEN 1 END) as  OK the error: Caused by: java.sql.SQLSyntaxErrorException: data type cast needed for parameter or null literal in statement

List View with Scroll Bar

$
0
0
Hello, I’m working on setting up a messaging function for my app. I sorted the list view so that the newest messages are at the bottom instead of at the top (following the pattern of most messaging apps). I’ve been trying to figure out a way to have the user scroll through the messages instead of using the “load more” button, but I haven’t been able to figure it out. If you could help me figure out how to give my list view its own individual scroll bar that replaces the “load more” button, I’d highly appreciate it. Or, if you could help me figure out how to inverse the position of the “load more” button and the comments so that the button and the oldest messages are at the top instead of at the bottom (with the newest ones being shown at the bottom instead), I’d also highly appreciate it. A solution to either one of these two problems will help me setup the messaging function. Thank you in advance!

Import mapping a JSON response which can either be a Object or an Array

$
0
0
I have a tricky solution with a app I’m building. The REST API’s which the I’m consuming, sends the response as Array of JSON objects ( if no of objects > 1 ) and sends only a single JSON object ( if no of objects = 1). Consider the example below. If parts are more than 1, then “parts” is received as an Array.  { "response": { "parts": [ { "name": "part 1" }, { "name": "part 2" } ] } }   If there is only 1 part, then “parts“ is received as an object.  { "response": { "parts": { "name": "part 1" } } } How do I handle this situation? How do I create import mapping for such a response?

Persist meta data for a given user session

$
0
0
I’m building a Hybrid mobile app for an existing web application (non Mendix).  We have a situation where we need to call a REST API to get the meta data for the application. It basically key/value pairs which is needed to show nice display names in UI. Once the data is loaded, I want to use it across current user session without loading it again. In the existing web application, it is loaded on client only once, converted to global Map, and re-used.  What is the recommended practice to achieve this in Mendix?

Courtesy Posting for Problem Resolution: Get Device Info, Get Current Location, etc.

ATS, AQM and APD On-Premise

$
0
0
Hi Forum,   I am aware that Mendix’s ATS and APD can be used on-premise deployment, but can AQM also be used on-premise?   Many thanks in advance

Pre setting a value on a reference selector based on selection in a previous Enum attribute

$
0
0
Hello Experts I have an entity ‘A’ with multiple attributes and one of it is an Enumeration ‘AE1’. I have another entity ‘B’ with 2 String attributes ‘BA1’, BA2’.  In my UI, I have the Enumeration attribute ‘AE1’ followed by a reference selector pointing to attribute ‘BA1’ of entity B. When I select  value 1 on my ‘AE1’ enumeration, I would like to preset my reference selector with one particular value and made it non editable. I am able to make it non editable with Visibility condition BUT having trouble pre-setting a value on it.  When I select  value 2 on my ‘AE1’ enumeration, I would like to keep the reference selector editable and let users select a value in there. I created a microflow on Change of  ‘AE1’ enumeration attribute and in here, I tried to retrieve the entity ‘B’ and set the value for attribute ‘BA1’ on my screen. However, this isnt working since I get an empty object at this point when I retrieve the entity ‘B’. What am I doing wrong here? Any advise helps.   Thanks in advance Madhavi

Native Apps – Bio metric Authentication

$
0
0
Hi, We have a Native Mobile project running and I’m looking to improve the authentication experience for the user by using the Biometric activities  I can retrieve the current user details through MobileDeviceInfo…. How I need to pass user details to the Sign-in Activities for Biometric Auth succeeds….? Need Password to Sign-in Activty for biometric succeed? Thanks!    
Viewing all 83469 articles
Browse latest View live


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