Hello, I would like to know how can I add the listener on column check box in datagrid2? for eg: here in my case I want to call microflow/nanoflow on click on column IS_ACTIVE check box. IS_ACTIVE is the column from column selector. The reason I want this is, I want to save this column selection in my profile immediately when column is selected instead of saving when page is closed.
↧
Add onClick event listener when column is selected
↧
How to add soap service with response with 2 namespaces?
I need publish web service in mendix 10 that answer should be like this: ? ? How can I do that? I can set only 1 target namespace?
↧
↧
Upgrade to Mx10 gives new error in OData: "The exposed name cannot be the same as the exposed name of the containing entity"
Hi community, When I try to upgrade my Mx 9 project to Mx 10, I get a new error in my existing published OData service. It states "The exposed name cannot be the same as the exposed name of the containing entity". This error is clear to me, as it points me to multiple instances where the attribute name is the same as the entity name. So resolving can be easily achieved by renaming either the entity or attribute. My question: Why is this an issue all of a sudden? Do you see any good reason for this? I'm still using OData 3. Let's say I use an entity for Status having an attribute Status and an association to link an item to its Status. Why is the exposed attribute Status an invalid attribute name and should I rename this? Hopefully someone knows this!
↧
How set up second data grid on page without error
Hi, Im trying make a page where I import data from excel to data grid 2, but I need to insert another imported data to be selected and seen on this page. I can input another data grid 2, but I need to be seen only 1 line from atribute, like list of details about company. I cannot choose list view or something different from data grip 2 without error and I just cannot solve this errors. So Im looking for some solution. And I need have the data about company editable from the Page. Or from somewhere reachable for user. Thank you very much.
↧
Problem with linking entities from two different modules
I have a problem where I have two entities in two different modules. How can I use a microflow to link them together. I have the entity "Action" with an attribute of MitigationTitle in one module, I then have the entity "Question" with the attribute of MitigationTitle aswell, this is in the assessments module. I need to display the mitigation title on a page along with the description of the mitigation which is in the question entity, linking these will help me to only display the description with the correct mitigation title.
↧
↧
Database connection isssue "The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption"
Hello, I'm trying to connect a new app to a new database in the Mendix console, and I get this error. Opening JDBC connection to 000.00.00.00/databasename failed with SQLState: 08S01 Error code: 0 Message: "The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:0b32ed8f-e37a-45db-a440-f7174c0cd526", retrying...(1/4) I also tried locally.
↧
MobileSSO configuration with Google idp and iOS app does not accept appname://oauth/callback for a redirect URI
I am using Mendix 10.12.1, with modules MobileSSO 2.0.0, OIDC 2.4.0, DeepLInk 10.0.2 I am setting up a Google IDP, and integrating with an iOS deployment of my mobile app and a sandbox server. I am running into a few problems with the instructions. 1. Google IDP rejects a redirect URI that does not start with https, so I cannot enter appname://oauth/callback per the instructions in MobileSSO section 4.4.1 Configuring IdP for Mobile "Make sure to add a Custom callback URL in the client and IdP. This configuration is optional for web apps but mandatory for mobile apps. For Example, APP_NAME://oauth/callback, where APP_NAME is an application name which is used to create the application using Build Native Mobile App" 2. if I use https://appname-sandbox.mxapps.io/oauth/callback and the set the OIDC.ClientConfiguration/CustomCallbackURL to appname://oauth/callback it does not work for web or mobile sign in with google. It states the requested URL does not exist. If I set the OIDC.ClientConfiguration/CustomCallbackURL to https://appname-sandbox.mxapps.io/oauth/callback, or to /oauth/callback for both web and iOS app the login fails with this message "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again." on a browser page. Looking at MobileSSO.SUB_getMobileCallbackURL, it seems that this is expected behavior. If CustomCallbackURL is set, then it uses the callback as is or if it starts with / it prepends the app name, but if the callback is not defined, or empty, it then checks if it is a Mobile authentication, and then tries to construct the URL. Am I missing something ? The only way I can get it to partially work (for web sign in with google) is to set the OIDC.ClientConfigurat.CustomCallbackURL to https://appname-sandbox.mxapps.io/oauth/v2/callback, but then the mobile app also redirects to the web page instead of restarting the app with the new session.
↧
Datagrid2 displaying based on the Attribute in Descending order
Dear Experts, We have a Advanced attribute in our Datagrid, we want to display the same in descending order in our Datagrid2 but the filter is not working. Can we get some guidance on how to display it in Descending order. Regards, IMTS Team
↧
How to set up a decrease in an attribute value?
I have an electric car charging reservation app and I am building a microflow so that once the user chooses the charger they want it checks if the capacity is above 0 and if it is available it lowers the capacity of the charger(by capacity I mean number of available chargers) and does this for a set time, 1, 2 or three hours. So far I have this as my microflow, the availability(capacity) should be lowered by one it is an attribute of my ChargingStation entity, I have already created a microflow where I can create new chargers and set up their availability.
↧
↧
validation issues
good day Community I have created a form and on that form the user selected their date of birth and then I need the Age tab to repopulated that field with their correct age so for example they selected 1994/07/21 then I need the age the tab to show the age 30 how to I go about getting that do on. the validation field I have add this $value != empty and calendarYearsbetween and %beaginofCurrentYear% however thins working please advise where I am going wrong
↧
Mx.UI.Action
I have an application that has been upgraded from 9.24.16 to 10.6.13 and uses a scanbox since upgrading the scanbox no longer works and I receive the following error, mx.ui.action is not a function TypeError: mx.ui.action is not a function at j..E._execMf (http://localhost:8080/widgets/ScanBox/widget/ScanBox.js?638621758118157293:169:23) at j..E._processValue (http://localhost:8080/widgets/ScanBox/widget/ScanBox.js?638621758118157293:137:22) at j..E. (http://localhost:8080/widgets/ScanBox/widget/ScanBox.js?638621758118157293:123:26) at http://localhost:8080/mxclientsystem/mxui/mxui.js?638621758118157293:5:27376 I found a site that said change the .JS file to read mx.data.action but this also doesnt work can anyone advise please as there are no updates for this widget.
↧
Redirect logged in users on application restart
Hello, Is it possible to enforce a redirection to another page (outside the application) for logged-in users when the application is restarted during the deployment process? Thank you.
↧
Issue with Change Object
Hi Everyone, I am creating a registration page containing the subject for which a student wants to register for. Workflow looks like: Student visits the Training Event page, the field "Number of Registration" shows the number of students that have registered for the course. Student then selects the course they want to register for. Then they click on registration button. Then a new page shows giving students a "New" button to register for the particular course/training event. Once the New button is clicked >> Trainee /student selects his/ her name with Date. Then Save button is clicked As per expectation the, once Save is clicked a registration is saved into database along with Trainee name and the "Number of Registration" counter should read it from database and counter should be incremented. This is viewed by teacher who is taking the training event. Note: Save Button triggers a microflow [ see image ] so that registration is committed into the database. To increment the "Number of Registration" counter it refers the same database. However while executing the process and clicking on save it give me an error: When troubleshooting I see below messages in stack trace: Below is the stack trace for the error:
An error has occurred while handling the request. [User 'Anonymous_5028e293-c947-4d08-94ca-fe2187de8827' with session id '8ec3417e-XXXX-XXXX-XXXX-XXXXXXXXd727' and roles 'Administrator']
--------
com.mendix.webui.WebUIException: Exception while executing runtime operation at com.mendix.webui.actions.client.RuntimeOperationAction.$anonfun$apply$1(RuntimeOperationAction.scala:54)
Caused by: com.mendix.modules.microflowengine.MicroflowException: Change object 'Some(TrainingEvent)' should not be null at MyFirstModule.ACT_Registration_Save (Change : 'Change 'TrainingEvent' (TotalNumberOfRegistrations)')
Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:83)
Caused by: java.lang.IllegalArgumentException: Change object 'Some(TrainingEvent)' should not be null at com.mendix.modules.microflowengine.actions.mxobject.ChangeAction.execute(ChangeAction.scala:43) at com.mendix.modules.microflowengine.actions.mxobject.ChangeAction.execute(ChangeAction.scala:12) at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32) at scala.Option.flatMap(Option.scala:283) at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:169) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:116) at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:58) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:48) at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:57) at com.mendix.basis.actionmanagement.ActionManager.$anonfun$executeSync$2(ActionManager.scala:104) at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20) at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:103) at com.mendix.basis.actionmanagement.MicroflowCallBuilderImpl.execute(MicroflowCallBuilderImpl.scala:62) at com.mendix.webui.actions.client.MicroflowRuntimeOperationExecutor.runMicroflow(MicroflowRuntimeOperationExecutor.scala:97) at com.mendix.webui.actions.client.MicroflowRuntimeOperationExecutor.$anonfun$apply$5(MicroflowRuntimeOperationExecutor.scala:57) at com.mendix.webui.actions.client.RegularClientAction$Helpers$.$anonfun$liftEither$1(RegularClientAction.scala:30) at com.mendix.webui.actions.client.RegularClientAction$Helpers$StateHandler.$anonfun$apply$4(RegularClientAction.scala:56) at com.mendix.webui.requesthandling.helpers.StateHandling.withState(StateHandling.scala:46) at com.mendix.webui.requesthandling.helpers.StateHandling.withState$(StateHandling.scala:43) at com.mendix.webui.actions.client.RegularClientAction$Helpers$StateHandler.withState(RegularClientAction.scala:46) at com.mendix.webui.actions.client.RegularClientAction$Helpers$StateHandler.apply(RegularClientAction.scala:54) at com.mendix.webui.actions.client.RegularClientAction$Helpers$StateHandler.apply(RegularClientAction.scala:46) at com.mendix.webui.actions.client.MicroflowRuntimeOperationExecutor.apply(MicroflowRuntimeOperationExecutor.scala:58) at com.mendix.webui.actions.client.RuntimeOperationAction.$anonfun$apply$1(RuntimeOperationAction.scala:49) at scala.util.Either.flatMap(Either.scala:352) at com.mendix.webui.actions.client.RuntimeOperationAction.apply(RuntimeOperationAction.scala:33) at com.mendix.webui.actions.client.RuntimeOperationAction.apply(RuntimeOperationAction.scala:22) at com.mendix.webui.actions.client.RegularClientAction$Helpers$.$anonfun$liftEither$1(RegularClientAction.scala:30) at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$3(RegularClientAction.scala:120) at scala.util.Try$.apply(Try.scala:210) at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$2(RegularClientAction.scala:120) at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$2$adapted(RegularClientAction.scala:118) at com.mendix.webui.requesthandling.helpers.ContextHandling.$anonfun$inContext$7(ContextHandling.scala:58) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18) at com.mendix.basis.actionmanagement.ActionMonitoring$.$anonfun$monitor$1(ActionMonitoring.scala:52) at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20) at com.mendix.basis.actionmanagement.ActionMonitoring$.monitor(ActionMonitoring.scala:52) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:58) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:32) at com.mendix.webui.actions.client.RegularClientAction.inContext(RegularClientAction.scala:94) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:29) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:21) at com.mendix.webui.actions.client.RegularClientAction.inContext(RegularClientAction.scala:94) at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$1(RegularClientAction.scala:118) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18) at com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest(ProfileHandling.scala:14) at com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest$(ProfileHandling.scala:10) at com.mendix.webui.actions.client.RegularClientAction.profileRequest(RegularClientAction.scala:94) at com.mendix.webui.actions.client.RegularClientAction.execute(RegularClientAction.scala:115) at com.mendix.webui.requesthandling.ClientRequestHandler.handleAction(ClientRequestHandler.scala:96) at com.mendix.webui.requesthandling.ClientRequestHandler.processRequest(ClientRequestHandler.scala:69) at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:37) at com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1(MxRuntimeConnector.scala:54) at com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1$adapted(MxRuntimeConnector.scala:54) at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20) at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.scala:54) at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.scala:219) at com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service(RuntimeServlet.scala:40) at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764) at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665) at org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:170) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) at org.eclipse.jetty.server.Server.handle(Server.java:563) at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:416) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:385) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:272) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:140) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149) at java.base/java.lang.Thread.run(Thread.java:829) MicroFlow looks like: Domain Model Looks like: Listing the properties of each component of MicroFlow: 1. 2. 3. 4. 5. 6. Please let me know if there are any suggestions or improvement that I can make to resolve this error.
↧
↧
When creating a new object with combobox footer, after using a microflow the combobox is empty.
i have a job, if i add a new client via a microflow this works. I can type, and it works, but if I update the fields using a MF, the client saves, but doesn't refresh in the job view.
↧
How to fill extra space in Template Grid.
Hi, I use Document Template and Template Grid to export PDF files. I need to set the number of columns to 12 or more, but it creates extra space on the right edge. Is there any way to fill or eliminate this extra space?
↧
How to change an attribute on an entity that is not available in the Microflow
I am currently doing a Uni project. I have created a Bike Rental platform and I am trying to figure out the best way to perform rentals, and then return those rentals. As part of this process, I need to be able to mark the status of each bike as Available or On-Hire so that I can show/hide from the rental pool. For the rental process I currently 3 entities. Bike, bikeHire and bikeReturn. I have primarily done it this way because I have tried many different ways to achieve this but haven't gotten anywhere. The main problem I have run into by doing it this way, is that n matter which way I go, If I put a return button either dataView for Bike, or bikeHire, I cannot then access the other entity to make changes. I have no way to set the Status in Bike as Available with a microflow, because the entity is not available. Can anyone give any hints on how best to rent out an object, and return an object?
↧
How to auto assign a task for a user role?
Question: The task with the attachment and guid "19703248380151847" is being rejected by the "demo_manager" role. After rejection, the task should be automatically assigned to the "demo_user" role on the "taskInbox" page located within the "workflowcommons" module. Currently, there are three tabs on this page ("all open tasks," "unassigned tasks," and "my open tasks"). I aim to have the task appear in one of these tabs without requiring manual assignment using the "(assign to me)" button. Context: The issue arises after a task rejection by the "demo_manager" role. Desired Outcome: Automatically assign the rejected task to the "demo_user" role on the "taskInbox" page. Current Situation: The task appears in one of the three tabs on the "taskInbox" page but requires manual assignment using the "(assign to me)" button. Request: Can anyone suggest a solution to achieve automatic assignment of the rejected task to the "demo_user" role on the "taskInbox" page?
↧
↧
How to dynamically grow a combo-box height
Hi all, I'm struggling to have a combo-box grow dynamically. I managed to have the text wrap as we want it (see screenshot) however, the combo-box is not growing with it We are adding the following class and CSS to the combo-box instance: .combobox_nowrap{
.widget-combobox-input{
height: auto;
& + .widget-combobox-placeholder-text{
white-space: break-spaces !important;
height: fit-content !important;
}
}
} Any ideas? TIA
↧
How to change the background color using the Dynamic row class
About Dynamic row class that can be set in DataGrid2 Here's what we want to achieve. If the checkbox is yes, the background color of the row will be changed to blue. If the checkbox is no, the background color of the row will remain unchanged. I'm using the Dynamic row class, but it doesn't work as expected. If you have any knowledge, please help me. Execution Result ↓ Text thickness changes, but background color does not change. css settings ↓ Dynamic row class settings ↓
↧
DataGrid2 - Dynamic row backgorund color.
Hi, I am trying to dynamically change the background color of the rows in datagrid 2. For this I have created a new class and if the condition is true I call that class. Calling this class changes the font color but not the background color. This is the class I am using .caducada { background-color: greenyellow !important; color: red; } Dynamic row class: if $currentObject/FECHA_CADUCIDAD >= [%CurrentDateTime%] then ' ' else 'caducada'
↧