Hello guys, We recently upgraded Mendix from 6.9 to 7.21 and started getting “Failed to Commit” during LDAP Synch (Version 5.3.1) job execution. We are using below LDAP settings. Please share your thoughts. I tried cleaning all User Account data and freshly imported into two lower environments. One environment able to successfully imported and another environment still getting Failed to Commit Msg. Same code and same data from Active Directory but two different results. Error Message: 2019-04-03 10:58:02.926 ERROR - Ldap: com.mendix.core.CoreRuntimeException: Failed to commit at com.mendix.basis.component.CommitHandler.commit(CommitHandler.scala:155) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"before":[{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"}', all database changes executed by this action were rolled back at com.mendix.basis.actionmanagement.ActionManagerBase.executeInTransactionSync(ActionManagerBase.java:125) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"before":[{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"}', all database changes executed by this action were rolled back at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:159) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"before":[{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"}', all database changes executed by this action were rolled back at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"before":[{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"}', all database changes executed by this action were rolled back at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:160) Caused by: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException at com.mendix.basis.actionmanagement.SyncEventExtendedAction.executeAction(SyncEventExtendedAction.java:43) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:159) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) Caused by: java.lang.NullPointerException: null at java.lang.AbstractStringBuilder.append(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) at com.mendix.basis.action.user.UniquenessChecker.findEntityOnAttribute(UniquenessChecker.scala:103) at com.mendix.basis.action.user.UniquenessChecker.existsInDatabase(UniquenessChecker.scala:81) at com.mendix.basis.action.user.UniquenessChecker.$anonfun$check$6(UniquenessChecker.scala:46) at com.mendix.basis.action.user.UniquenessChecker.$anonfun$check$6$adapted(UniquenessChecker.scala:41) at scala.Option.foreach(Option.scala:257) at com.mendix.basis.action.user.UniquenessChecker.$anonfun$check$5(UniquenessChecker.scala:41) at com.mendix.basis.action.user.UniquenessChecker.$anonfun$check$5$adapted(UniquenessChecker.scala:38) at scala.collection.immutable.List.foreach(List.scala:388) at com.mendix.basis.action.user.UniquenessChecker.$anonfun$check$4(UniquenessChecker.scala:38) at scala.collection.immutable.List.flatMap(List.scala:334) at com.mendix.basis.action.user.UniquenessChecker.checkUniqueness$1(UniquenessChecker.scala:34) at com.mendix.basis.action.user.UniquenessChecker.check(UniquenessChecker.scala:57) at com.mendix.basis.action.user.CommitAction.commitPersistableObjects(CommitAction.scala:92) at com.mendix.basis.action.user.CommitAction.executeAction(CommitAction.scala:59) at com.mendix.basis.action.user.CommitAction.executeAction(CommitAction.scala:29) at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57) at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55) at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:150) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:155) at com.mendix.basis.actionmanagement.SyncEventExtendedAction.executeAction(SyncEventExtendedAction.java:41) at com.mendix.basis.actionmanagement.EventExtendedAction.execute(EventExtendedAction.java:104) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57) at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55) at com.mendix.basis.actionmanagement.DefaultActionMonitor$.$anonfun$run$1(CustomMonitoredAction.scala:18) at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49) at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25) at com.mendix.basis.actionmanagement.CustomMonitoredAction.monitor(CustomMonitoredAction.scala:22) at com.mendix.basis.actionmanagement.DefaultActionMonitor$.run(CustomMonitoredAction.scala:18) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:68) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:55) at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55) at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:153) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:155) at com.mendix.basis.actionmanagement.ActionManagerBase.executeInTransactionSync(ActionManagerBase.java:118) at com.mendix.basis.component.CommitHandler.$anonfun$storeObjectsAndAutoCommittedObjects$1(CommitHandler.scala:169) at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:233) at scala.collection.immutable.List.foreach(List.scala:388) at scala.collection.TraversableLike.map(TraversableLike.scala:233) at scala.collection.TraversableLike.map$(TraversableLike.scala:226) at scala.collection.immutable.List.map(List.scala:294) at com.mendix.basis.component.CommitHandler.storeObjectsAndAutoCommittedObjects(CommitHandler.scala:167) at com.mendix.basis.component.CommitHandler.commit(CommitHandler.scala:127) at com.mendix.basis.component.CommitHandler.commit$(CommitHandler.scala:109) at com.mendix.basis.component.InternalCore.commit(InternalCore.scala:7) at com.mendix.basis.component.CommitHandler.commitWithEvents(CommitHandler.scala:68) at com.mendix.basis.component.CommitHandler.commit(CommitHandler.scala:27) at com.mendix.basis.component.CommitHandler.commit$(CommitHandler.scala:26) at com.mendix.basis.component.InternalCore.commit(InternalCore.scala:7) at com.mendix.basis.component.CommitHandler.commit(CommitHandler.scala:22) at com.mendix.basis.component.CommitHandler.commit$(CommitHandler.scala:22) at com.mendix.basis.component.InternalCore.commit(InternalCore.scala:7) at com.mendix.core.Core.commit(Core.java:444) at system.proxies.User.commit(User.java:108) at ldap.ImportUserRecord.processUserImport(ImportUserRecord.java:538) at ldap.ImportUserRecord$UserMapper.handleNameClassPair(ImportUserRecord.java:344) at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:367) at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:328) at ldap.LdapModule.pagedSearch(LdapModule.java:433) at ldap.LdapModule.searchAD(LdapModule.java:387) at ldap.ImportUserRecord.importUsers(ImportUserRecord.java:230) at ldap.ImportUserRecord.runImportUsers(ImportUserRecord.java:113) at ldap.actions.ImportLdapUsers.executeAction(ImportLdapUsers.java:49) at ldap.actions.ImportLdapUsers.executeAction(ImportLdapUsers.java:27) at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57) at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55) at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:150) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:155) at com.mendix.basis.component.InternalCoreBase.execute(InternalCoreBase.java:414) at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:56) at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:201) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:157) at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57) at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55) at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:150) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:155) at com.mendix.basis.component.InternalCoreBase.executeSync(InternalCoreBase.java:492) at com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:51) at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:201) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:157) at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57) at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55) at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:150) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:155) at com.mendix.basis.component.InternalCoreBase.executeSync(InternalCoreBase.java:492) at com.mendix.modules.microflowengine.actions.other.NestedLoopedMicroflowAction.$anonfun$executeLoop$2(NestedLoopMicroflowAction.scala:67) at com.mendix.modules.microflowengine.actions.other.NestedLoopedMicroflowAction.$anonfun$executeLoop$2$adapted(NestedLoopMicroflowAction.scala:58) at scala.collection.TraversableLike$WithFilter.$anonfun$foreach$1(TraversableLike.scala:788) at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:58) at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:51) at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47) at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:787) at com.mendix.modules.microflowengine.actions.other.NestedLoopedMicroflowAction.executeLoop(NestedLoopMicroflowAction.scala:58) at com.mendix.modules.microflowengine.actions.other.NestedLoopedMicroflowAction.execute(NestedLoopMicroflowAction.scala:40) at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:201) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:157) at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57) at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55) at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:150) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:155) at com.mendix.basis.component.InternalCoreBase.executeSync(InternalCoreBase.java:492) at com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:51) at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:201) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:157) at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57) at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55) at com.mendix.basis.actionmanagement.DefaultActionMonitor$.$anonfun$run$1(CustomMonitoredAction.scala:18) at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49) at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25) at com.mendix.basis.actionmanagement.CustomMonitoredAction.monitor(CustomMonitoredAction.scala:22) at com.mendix.basis.actionmanagement.DefaultActionMonitor$.run(CustomMonitoredAction.scala:18) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:68) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:55) at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55) at com.mendix.basis.actionmanagement.AsyncExecution.$anonfun$call$1(AsyncExecution.scala:21) at scala.util.Try$.apply(Try.scala:209) at com.mendix.basis.actionmanagement.AsyncExecution.call(AsyncExecution.scala:21) at com.mendix.basis.actionmanagement.AsyncExecution.$anonfun$execute$1(AsyncExecution.scala:17) at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:654) at scala.util.Success.$anonfun$map$1(Try.scala:251) at scala.util.Success.map(Try.scala:209) at scala.concurrent.Future.$anonfun$map$1(Future.scala:288) at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29) at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
↧
LDAP Synch Import - Failed to Commit error
↧
Endless provisioning loop
Hi there, it seems like my Web Modeler is stuck in an endless provisioning process loop since yesterday. I’ve already tried reaching out to the support team but haven’t gotten an answer yet. I am really thankful for any help because it is urgent. Best regards Egzon
↧
↧
Handling Unexpected Parameters in Web or REST Consume Service
When you add an operation for a web or REST consume service you can select which parameters you expect. But how do you handle unexpected parameters? By ‘unexpected I mean that if I have two parameters of ‘type’ and ‘date’ but someone sends a request with a parameter of ‘type123’ or ‘datesz’ then that is ‘unexpected’. And I want to respond to the user with something helpful about their typo/incorrect param. You can’t create a parameter for every variation of a misspelling of an expected param in the ‘Operation’ form. And so it seems the only way to capture unexpected params would be in the microflow itself. Has anyone ever handled unexpected parameters in a different way? And if not how have you handled them within a microflow? And/or does anyone know if MX will update this form to include something like the image below to provide options on how to handle them?
↧
Community Commons Module
Dear community, As a result of browsing through your questions on this forum and investigating several projects, we just published a module with a lot of reusable Java actions. The module can be found in the AppStore. The module addes functionality for working with Dates, Batches, Strings, Internet, Files, Configuration etc. See the documentation or screenshot for a complete list of functions. Feel free to post any bugs concerning the module, or suggestions for function to be added (with or without code) in this thread. The functions can be invoked from Microflows, or from Java using communitycommons.<folder>.<function>(arguments) A list of the functions available in 1.0: Batches
AddToBatch - Add an object to a batch.
CommitBatch - Commit a batch
DeleteAll - Removes ALL instances of a certain domain object type using batches.
DateTime
DateTimeToLong - Converts a DateTime to a Unix timestamps. (Milliseconds since 1-1-1970)
LongToDateTime - Converts a Unix timestamp to a dateTime object
YearsBetween - Calculates the number of years between two dates.
Logging
Log - Prints a message to the Mendix log.
SimpleLog - Logs a message to 'Community Commons' with loglevel 'Info'.
TimeMeasureStart - Start timing something, and print the result to the log.
TimeMeasureEnd - End timing something, and print the result to the log.
Misc
CreateUserIfNotExists - (Microflow) Create a user with predefined password an role. Useful during startup for integration purposes.
DuplicateFileDocument - Clones the contents of one file document into another.
GetApplicationUrl - Returns the runtime URL of this application.
GetFileSize - Returns the filesize of a file document in bytes.
GetRuntimeVersion - Returns the runtime version of this application.
RetrieveURL - Retrieves data (such as an HTML page) from an URL using the HTTP protocol, and returns it as string.
StoreURLToFileDocument - Retrieve a document from an URL using a HTTP GET request.
ThrowException - This action always throws an exception (of type communityutils.UserThrownError), which is, in combination with custom error handling, quite useful to end a microflow prematurely or to bail out to the calling action/ microflow.
ORM
CommitWithoutEvents - Commits an object, but without events.
Clone - Clones objects
DeepClone - Clones objects, their associations and even referred objects.
GetGUID - returns the Global Unique Identifier (GUID, or id) of an object.
GetOriginalValueAsString - Returns the original value of an object member, that is, the last committed value.
GetTypeAsString - Returns the actual type of an Entity. Useful as alternative way to split upon inheritance, or as input of other functions in this module.
MemberHasChanged - Checks whether a member has changed since the last commit. Useful in combination with getOriginalValueAsString.
RefreshClass - Refreshes a certain domain object type in the client. Useful to enforce a datagrid to refresh for example.
StringUtils
Hash - Hashes a value using the SHA-256 hash algorithm.
HTMLEncode - Encodes a string to HTML Entities, so that they can be displayed in the browser without breaking any layout.
RandomString - Generates a random alphanumeric string of the desired length.
RegexReplaceAll - Performs a regular expression. Identical to the microflow expression funciton 'replaceAll'.
RegexTest - Returns true if a value matches a regular expression.
StringLeftPad - Pads a string on the left to a certain length.
StringLength - Returns -1 if the value is empty, the length otherwise.
StringRightPad - Pads a string on the right to a certain length.
StringTrim - Left and right trims a string (that is; removes all surrounding whitespace characters such as tabs, spaces and returns).
SubstituteTemplate - Given an object and a template, substitutes all fields in the template. Supports attributes, references, referencesets and project constants.
↧
Training Question
I am taking the Rapid training and have come to a stand still in section 4.8.2 where you create pages using the Reference Selector widget. Training calls for creating a Training Event Overview and Detail page, which I have done. Then it says in the Training Event New Edit page there will be a date picker on that page because the Training Event NewEdit page is tied to entity TrainingEvent which has Start and End Date, which my Domain Model does have. However, I don’t see the Date Picker on the Training Event Detail Page. Would like to provide images, but don’t see where they can be added. However, if you look at my Domain Model, Training Event entity is there with Start/End dates and are connected to Course, Location, and Teachers as instructed. Thanks
↧
↧
Reference Selection XPath Constraint Condition in Microflow
Hello Everyone I have restricted the value in reference selector using the following XPath Constraint condition. I am trying to put this condition in a microflow so that users dont have to select the values manually. TestManagement.Load_Schedule_VR_Record_Keeping_Sites/TestManagement.Sites/TestManagement.Generator_Detail_Sites/TestManagement.Generator_Detail TestManagement.Load_Schedule_VR_Record_Keeping_Generators/TestManagement.Generators/TestManagement.Generator_Detail_Generators/TestManagement.Generator_Detail When I put any of these constraints at the entity level, Mendix gives me below error: LineColumnError 11required (...)+ loop did not match anything at input 'TestManagement.Load_Schedule_VR_Record_Keeping_Sites' Could anyone please advice how to assign values based on the conditions without having to ask users to select manually. Thank you. Best Regards, Puneet Solanki
↧
Consuming and using an API that requires Bearer Tokens
I've gotten as far as setting up a demo app to pull data from my API, but the requests fail because I'm unable to pass a Bearer Token to the REST object. Is this possible right now?
↧
Casting in OQL
Greetings I’ve scoured the documentation but details are distressingly sparse. How do I do a cast from string to datetime? What format does the string need to be in? Here follows a list of things I’ve tried that gave me a “Invalid datetime format” error. cast(‘2018/12/01’ as datetime) cast(‘2018-12-01’ as datetime) cast(‘01/12/2018’ as datetime) cast(‘01/12/2018 00:00:00’ as datetime) cast(‘2018/12/01 00:00:00’ as datetime) cast(‘01/12/2018 00:00:00:0000’ as datetime) cast(‘2018/12/01 00:00:00:0000’ as datetime) CAST('31/DEC/2012 08:00:00 PM' AS DATETIME) CAST('1 DECEMBER 2018' AS DATETIME) CAST('1543622400' AS DATETIME) (timestamp) I give up. The only conclusion I can reach is that the cast functionality cannot actually cast anything to datetime.
↧
Increase main page opacity / darkness when sidebar is open
The layout I’m using for a new mobile app has a left toggle menu that slides over the page content. My question is how can I increase the background opacity or darkness for the page that is being overlaid by the toggle menu much like when a modal is active?
↧
↧
Problems on deploy using Mendix 7.23.3
I experience a problem with the new modeler version: When I change samething simple, like a page title or a label, Then click in “Run Locally” The changes are not reflected on the system. When I do a deploy on free claud, the same problem occurs. This problem started today. Yesterday, I didn’t have this problem. Anyone can help me?
↧
List view expands vertically , is horizontal expand possible ?
I am using list view to display Date and few quantity associated for that date, the requirement is to show quantities below the date. I arranged the column in table to get the desired view but the problem with list view i am facing is that it expands vertically (add rows below) and i want it horizontally( in columns) How can it be achieved?
↧
HTML Media Capture
Hi Are there any HTML5 camera widgets or do I have to implement this myself in order to deal with device camera crashing?
↧
SVGRenderer: refresh image
I'm using the awesome SVGRenderer to create an SVG. The SVGRenderer is placed in a Dataview. I would like to refresh the image if the context object is changed but somehow this is not happening. I'm using a Microflow Timer to perform a commit on the Dataview object. Upon reviewing the JS code, I see that there are no subscriptions (that part has been commented out): /* if (this._contextObj) { this.subscribe({ guid: this._contextObj.getGuid(), callback: lang.hitch(this, function (guid) { this._updateRendering(); }) }); … */ Could this be the problem? If so, would there be a workaround? The image is created properly when the page is opened so a page refresh might do the trick. I have however seen a lot of questions on that topic and it is usually not regarded as the way to go. Thanks for any help!
↧
↧
Internet Explorer - No constructor found for widget [xxxx]
We are having an internet explorer only issue (IE11) which is causing widgets not to render. The error message is: No constructor found for widget LoginForm.widget.LoginForm. This is just an example, it seems like many widgets are not rendering in IE which work fine in Chrome. I have tried upgrading our application from 7.13 to 7.16 and also to the latest version, 7.23. However, the widgets still do not render in IE11, but have no issues in Chrome. I’ve looked around at other options on similar questions posted to the forum, but have not been able to find a solution. Has anyone else experienced a similar problem/been able to resolve?
↧
Sorted sort criterias in Java retrieve
Good morning Forum, I need to retrieve data in a java action. This data needs to be sorted. I am using the Core.retrieveXPathQuery method. I can add a sort criteria by passing a map of sort criterias. My problem is, I want the sort criteria List to be sorted but a HashMap is not sorted. Is there any way to achieve this? In a microflow retrieve action, you can sort your sort criteria list. I am pretty sure that it is also possible in a java retrieve. But How? Any ideas?
↧
Logged in user not able to see other users associated data
I have created an application wherein an administrator can create sampleUser(sampleUser can log in and access the portal created for them) accounts. I have an entity in the application as “sampleUser” set generalization to "Administration.Account". An admin can create this “sampleUser” and using that created account by admin “sampleUser” can log into the application. After logging in the “sampleUser” can add or update the data so when a ""sampleUser" updates the data then “sampleUser” name will be associated with that record. But when other SampleUser say, sampleUser2 logs in to the application the updated record by the sampleUser1 is visible but not the name of the sampleUser1. I have used a microflow to save data on click of the save button. In which I retrieve %currentUser% info and then create the object of the sampleUser and associate it with the record which is to be saved. I tried another way of using the drop-down for selecting the current user (name of sampleUser) It works correctly. What can be the issue with saving the data using microflow?
↧
Why it is taking too long to execute the Java action with 50 formula fields?
Hi All, I have written a java action to export the data to an excel file. I used 50 formula fields in that java action. When I try to execute the process, it is taking more than 60sec time to complete the export. How can I reduce this time? Is there any alternative to reduce the process time. Hope you got my question. Thanks in advance. Regards, Venkat
↧
↧
CSS: Create class for specific input button
Hi, I have an referenceSelector-Widget and want to change the background-color of the input field to white. In the custom.css file I used following css-code: input.form-control {background-color: white !important;} Which worked perfectly, but I want to use this for one specific widget. Therefore I have selected the referenceSelector widget in the Mendix Modeller and written down “custom” as a class under the property “Common → Class”. Afterwards I tried following css codes and none of them worked: input.form-control.custom {background-color: white !important;} input.form-control custom {background-color: white !important;} input.form-control, custom {background-color: white !important;} custom.input.form-control {background-color: white !important;} input.form-control>custom {background-color: white !important;} Can anyone help? :)
↧
certificate for mobile App for windows phones
After creating a mobile app for Windows phones with PhoneGap, I tried to install it on my Windows computer, but it failed because a new certificate needs to be installed or the Appx package needs to be provided with a trusted certificate . How can I create a package with a trusted certificate?
↧
ERROR:Microflow Show page function
Hi all, I’m struggling with this error written as below. “The selected page 'GetInventory_NewEdit' expects an object of type 'GetInventory', which is not compatible with the object of type 'GetInventory' that is available here.” how can I solve this error?Please help with this problem. Thank you,
↧