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

When trying to upload a schema into mendix 6.6 , I get this error: Type 'folderNodeType': This 'Choice' element is not supported in export mappings.

$
0
0

When trying to upload a schema into mendix 6.6 , I get this error: Type 'folderNodeType': This 'Choice' element is not supported in export mappings. The snippet of this type is below. What could be minimal edit needed in this xsd to make mendix accept this xsd?

<xs:complexType name="folderNodeType">
    <xs:complexContent>
        <xs:extension base="chatflowNode">
            <xs:sequence>
                <xs:choice maxOccurs="unbounded" minOccurs="0">
                    <xs:group ref="commonChatflowNodePropertiesChilds"/>
                </xs:choice>
                <xs:choice maxOccurs="unbounded" minOccurs="0">
                    <xs:group ref="commonChatflowNodeChilds"/>
                    <xs:element type="conceptNodeType" name="concept"/>
                </xs:choice>
                <xs:element name="autoLearnVariations" minOccurs="0">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="item" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
            <xs:attribute type="xs:string" name="label" use="optional"/>
            <xs:attribute type="selectionTypeType" name="selectionType" use="optional"/>
        </xs:extension>
    </xs:complexContent>
</xs:complexType>

When the XSD contains unnamed complextype then "Select Elements" of import mapping throws error.

$
0
0

When the XSD contains unnamed complextype then "Select Elements" of import mapping throws error.

<xs:element name="autoLearnVariations" minoccurs="0"> <xs:complextype> <xs:sequence> <xs:element name="item" type="xs:string" minoccurs="0" maxoccurs="unbounded"/> </xs:sequence> </xs:complextype> </xs:element>

Refresh In Client Issue!

$
0
0

Hi,

I have a scenario where on check of the check box , I am showing a Text field to give comments . And after uncheck of the check box the data what i entered in the comments field should be erased . To obtain this in the microflow i am setting the comments field to an empty (' ') string value and refreshing in the client using Change Variable activity , Now the issue is The Refresh In Client is not working , though i am selecting Refresh in the client and committing the data was not refreshing, But if i Refresh the page then its working . Can anyone suggest me how can i achieve this?

Thanks in Advance!

Export mapping -> map automatically does not create correct named entities when 2 subelements have same type. Due to that each of the below example throws following error in compile time at the mapping of second string element "source".

$
0
0

Export mapping -> map automatically does not create correct named entities when 2 subelements have same type. Due to that each of the below example throws following error in compile time at the mapping of second string element "source". It uses same association for both elements and same entity.

Error: The selected entity 'DialogBuilder11.String' is already used in one of the other specializations of 'DialogBuilder11.ChoiceBase'. Export object mapping element 'source' Export mapping 'dialogexportmapping' DialogBuilder1_1

Example: <xs:complextype name="grammarType"> <xs:choice minoccurs="0" maxoccurs="unbounded"> <xs:element name="item" type="xs:string" minoccurs="0" maxoccurs="unbounded"/> <xs:element name="source" type="xs:string" minoccurs="0" maxoccurs="unbounded"/>

Processing of sub-microflows

$
0
0

how are sub-microflows processed?

Does the calling microflow always wait for the sub to complete before continuing?

For instance if I have three microflows (A,B and C) and Microflow A calls B and then calls C.

Would it wait for B to complete before running C?

Strange issue with scheduled events testing Mendix 6.7.0

$
0
0

I have an Alert entity where records can be created either manually, or through a scheduled event. An After Create microflow on the entity ensures that an association is set to a Segment entity (which is used to control access to the data segment).

After upgrading to version 6.7.0 I am getting errors when the scheduled event runs. If I remove the after create microflow the error is not present. Here is the After Create microflow that seems to be the issue (I would expect the schedule event to follow the (empty) branch from the inheritance split on currentUser):

https://modelshare.mendix.com/models/25d6c156-da84-46df-b241-c9b00809aa19/after-create-alert-set-segment

Here is the stacktrace of the scheuled event:

Exception in execution of monitored action 'SLA.TriggerEsc' (execution id: 95deefc1-5055-42ef-b7d3-1da60ee8a555, execution type: SCHEDULEDEVENT)


com.mendix.modules.microflowengine.MicroflowException: com.mendix.modules.microflowengine.MicroflowException: com.mendix.modules.microflowengine.MicroflowException: at SLA.AfterCrAlertSetSegment (Gateway : '') at {"before":[],"action":{"entityName":"SLA.Alert","type":"CreateAction"},"after":[{}],"type":"EventExtendedAction"} at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143)

Caused by: com.mendix.core.CoreRuntimeException: com.mendix.modules.microflowengine.MicroflowException: com.mendix.modules.microflowengine.MicroflowException: at SLA.AfterCrAlertSetSegment (Gateway : '') at {"before":[],"action":{"entityName":"SLA.Alert","type":"CreateAction"},"after":[{}],"type":"EventExtendedAction"} at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at com.mendix.core.actionmanagement.ActionManager.executeInTransactionSync(ActionManager.java:143)

Caused by: com.mendix.modules.microflowengine.MicroflowException: com.mendix.modules.microflowengine.MicroflowException: at SLA.AfterCrAlertSetSegment (Gateway : '') at {"before":[],"action":{"entityName":"SLA.Alert","type":"CreateAction"},"after":[{}],"type":"EventExtendedAction"} at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143)

Caused by: com.mendix.core.CoreRuntimeException: com.mendix.modules.microflowengine.MicroflowException: at SLA.AfterCrAlertSetSegment (Gateway : '') at {"before":[],"action":{"entityName":"SLA.Alert","type":"CreateAction"},"after":[{}],"type":"EventExtendedAction"} at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at com.mendix.core.actionmanagement.ActionManager.executeInTransactionSync(ActionManager.java:143)

Caused by: com.mendix.modules.microflowengine.MicroflowException: at SLA.AfterCrAlertSetSegment (Gateway : '') at {"before":[],"action":{"entityName":"SLA.Alert","type":"CreateAction"},"after":[{}],"type":"EventExtendedAction"} at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143)

Caused by: java.lang.NullPointerException: null at com.mendix.core.action.RequestScope.getCurrentUserObject(RequestScope.scala:37) at com.mendix.core.action.ContextImpl.getCurrentUserObject(ContextImpl.java:178) at com.mendix.modules.microflowengine.microflow.impl.ScopeImpl.getVariable(ScopeImpl.java:32) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.getVariable(MicroflowImpl.java:222) at com.mendix.modules.microflowengine.actions.other.InheritanceSplitAction.execute(GatewayAction.scala:59) at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)

testing oql

$
0
0

Hi, I wrote a oql query, the system compile without error but when I open the report I receive an error. I'd like to test the query without running the page but I don't know a "testing button"

please, may you help me? thanks luca

Not a question, but a bug. Bug running microflow. Plus a bbs bug.

$
0
0

Happens when I try to run an action call based on RunUnitTest from the UnitTesting module. And this bug only happens when running Mendix. When running in Eclipse, the error does not occur.


java.lang.NullPointerException: null at com.mendix.core.action.RequestScope.getCurrentUserObject(RequestScope.scala:37) at com.mendix.core.action.ContextImpl.getCurrentUserObject(ContextImpl.java:178) at com.mendix.modules.microflowengine.debugger.internal.DebuggerJSONGenerator$.createPausedMicroflowObject(DebuggerJSONGenerator.scala:40) at com.mendix.modules.microflowengine.debugger.internal.DebuggerJSONGenerator$.createEventObject(DebuggerJSONGenerator.scala:26) at com.mendix.modules.microflowengine.debugger.internal.EventPusher$$anonfun$handleRequest$1.apply(EventPusher.scala:27) at com.mendix.modules.microflowengine.debugger.internal.EventPusher$$anonfun$handleRequest$1.apply(EventPusher.scala:27) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245) at scala.collection.Iterator$class.foreach(Iterator.scala:742) at scala.collection.AbstractIterator.foreach(Iterator.scala:1194) at scala.collection.IterableLike$class.foreach(IterableLike.scala:72) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at scala.collection.TraversableLike$class.map(TraversableLike.scala:245) at scala.collection.AbstractTraversable.map(Traversable.scala:104) at com.mendix.modules.microflowengine.debugger.internal.EventPusher.handleRequest(EventPusher.scala:27) at com.mendix.modules.microflowengine.debugger.internal.DebuggerHandler.processJsonRequest(DebuggerHandler.scala:124) at com.mendix.modules.microflowengine.debugger.internal.DebuggerHandler.processRequest(DebuggerHandler.scala:50) at com.mendix.externalinterface.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:69) at com.mendix.externalinterface.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:66) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.externalinterface.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:72) at com.mendix.core.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:742) at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.handle(RuntimeHandler.java:41) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:647) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:745)


P.S. there is something wrong with this bbs. .................................................................................................................................................................................................................This_should_not_happen.............................................................


6.7 data view footer! button padding gone

$
0
0

I've started using 6.7 and started using the new data view footer for buttons, which I think is a great new addition!

However the buttons don't seem to have any padding/white space associated with them, and I can't seem to adjust this with custom styling, any suggestions on how to fix this?

alt text

Exchange web services (EWS) - Exchange client module

$
0
0

Hi All,

I proposed a solution to our client where I want to retrieve emails from outlook inbox (or specific folder) and generate workflow based on email so that users don't have to manually create a workflow and attach emails or any other attachments within the email. I thought IMAPPOP3email module on the app store is the best fit to implement this (which i think it is and it works perfect in my POC) but unfortunately the technical architect said they cannot open the exchange server port and instead they recommended EWS will be better option. So I started looking into EWS and found one module Exchange client (2007 and up) but this was developed in Mendix version 3 and needs upgrading. I have seen a forum post here by Chris de Gelder, asking if there is any plan to upgrade/migrate exchange client to open source microsoft EWS for Java but I can't see any response to this post or don't know if this is already been migrated by someone who can help? Please can someone help to answer if this module is going to be upgraded/migrated or if anyone has already done this?

Really appreciate and thank you in advance as this will be a great help to make a decision on the next steps.

Mobile PIN Login/Hybrid Mobile App and Mendix SSO

$
0
0

Is there any (workaround) way to make these two compatible? Currently it seems impossible to login with your SSO mendix ID while on a hybrid mobile application.

Is there any way to make these 2 functionalities compatible (or is it even on the roadmap?).

App & Web services

$
0
0

Hi,

Just an easy one here.

Could anyone briefly describe the difference between - Published app services -Consumed app services -Published web services -Consumed web services

As a team we haven't needed to use these yet. I know i need one of these for what i'm trying to do but i'm finding the documentation on the mendix site to be too long winded. Is anyone able to summarize? or give examples.

Thank you! C

Problem with background color implementation for a specific list view

$
0
0

Hi

I want to make the background-color of a specific list view gray.

What I did was;

1 - adding a class to the list view "grijs"

2 - adding in the custom.css this

.grijs > li { background-color: #f5f5f5 !important; }

.grijs > li:hover { background-color: #f5f5f5 !important; }

3 - adding in the custom .scss also the same; .grijs > li { background-color: #f5f5f5 !important; }

.grijs > li:hover { background-color: #f5f5f5 !important; }

The result; list view keeps having the original color. I see that my new class is not even read (yes I did a cache delete);

mx-listview .mx-listview-item { background-color: #fff; }

This is what I see...who can tell me which mistake I make?

When the screens become bigger there comes unwanted white space down the page

$
0
0

Hi

I am using an iFrame with a page of our Mx App, whereby the background color is gray.

I noticed that when the screens become bigger there comes a unwanted white space with the classes mx-layoutcontainer-center mx-scrollcontainer-center.

My question is:

1 - Is it possible to disabl this behaviour?

2 - Otherwise is it possible to change/overrule this unwanted white space so that is same gray as the rest of the page?

Database Replication - GROUP BY

$
0
0

Does the Database Replication module support GROUP BY functionality?

I couldn't find it but maybe I'm overlooking something. I ended up using a custom constraint like this:

"1 = 1 GROUP BY [ColumnName]"


reference set selector - commit?

$
0
0

Hi everybody, i'm using a reference set object and it's work fine but when I close the application and open a new session of the application I missed the reference selected before. Do I need to commit the data after the record selection?

The "set reference selector" open a page where I can select the records to link with a different entity. After I select the records I can see the selected record on the "set reference selector table" but if I close the page I miss these association

please, may you help me? thanks

Validation - Entity vs Microflow

$
0
0

I am using the Excel Importer on a project which i am working on and if a file which i am importing violates any entity validation rules it throws an exception which is not very clear.

I could solve this by removing the entity validation and doing the validation within a microflow - this would mean i could customise the error messages to be more helpful to the user.

However before I do this i wanted to check:

Are there any disadvantages to performing validation through a custom save microflow vs setting validation rules on an entity?

Scroll lock for the Google Maps Widget

$
0
0

Hi,

I'm using the Google Maps Widget for my Car Sharing project. This app will mainly be used on mobile. The problem I'm facing is that while scrolling down on my mobile I'll almost always will hit the map which disables the regular scrolling and will make the map scroll to a different location.

Does anyone have experience with this widget and knows how to apply a scroll lock on the map so the regular scrolling will work properly?

Best regards

Daan

Client did GetSessionData call but mobile is not enabled in this project.

$
0
0

I am running two Mendix versions (version 4.7.2 & 6.6.0) locally with each their own sql database. After running version 6.6.0 i am not able to run version 4.7.2 anymore.

I get the error: " Client did GetSessionData call but mobile is not enabled in this project."

What can cause this error?

Thanks

microflow to save "set reference "

$
0
0

Hi, I'm trying to write a microflow to save on db (commit) the reference selected by reference object but it doesn't work (without error). Could someone share with me the object/configuration I need to put in the microflow?

thanks regards luca

Viewing all 83469 articles
Browse latest View live


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