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

OAUTH Module Cookie not found

$
0
0
We have been using the appstore OAUTH module with succes for quite some time now. However after some troubles with some data we had to do a restore action of the database where we had to remove some data manually. All went well except for the OAUTH Module which for some reason seems to be unable to find the Mendix Cookie after logging in? Did anyone else ever have some troubles with this and how did they solve it?

Add css class to data grid rows using JQuery on click event within a custom HTML Snippet widget.

$
0
0
I have the following JQuery within a custom HTMLSnippet Widget: $(".table tr").click(function(){ $(this).toggleClass("highlight"); }); It is supposed to apply this class to the data grid table rows when they are clicked: .highlight{ background-color: red; } However, it only toggles the class for the first row. I.E the row containing the table header. The class is not applied for any of the other rows when clicked. However, when inspecting the elements I noticed that the data grid is composed of two tables. One table has the mx-datagrid-head-table class and the other has the mx-datagrid-body-table class. I don't see why the data grid should be made up of two separate tables... and I find it odd that only the head-table applies the css when both elements share the "table" class.   Here is the custom HTML Snippet widget in its entirety:   This is the result of my JQuery:   The blue stripe is me attempting to click a row and apply the css, but as you can see it doesn't stick and only works for the header table. Any help would be much appreciated. Thanks.  

Webservice sending data twice

$
0
0
Hi, I'm using a web service to retrieve some data from a form within another Mendix app. It sends over a few string values nothing complicated. However the data is duplicated within the app it’s sent to and is shown twice. Has anyone encountered this issue before when sending data between two Mendix apps? For reference the form sending the data over is on 6.10.3 and the data is being viewed in 7.16.0.  

SAP Demo Gateway System (ES5) for this tutorial, the metadata file can be found

$
0
0
  What username and password do I use to download this Gateway System file? My SAP Hana Trial Account does not work https://sapes5.sapdevcenter.com/sap/opu/odata/iwbep/GWSAMPLE_BASIC/$metadata

Object data not available in After Create event when object is being created via a web service

$
0
0
Hi all, It seems that the data of an object (entity) is not available in the After Create event handler if the creation of that same object is triggered via a web service. When tracing I see that the web service message contains correct data while at the same time, when debugging the After Create microflow in the receiving app I see that the object is (still) empty. Can anyone confirm and explain this behavior? Regards, René

Inconsistency in decimal separator?

$
0
0
When I have to give a Decimal input I have to use a comma (,) as decimal separator, but when using the search fields I have to use a dot (.) for it to work. Is this a bug? Or is this some region/language setting? We have Dutch as our only language in our application.

An error occurred while initializing the Runtime: null

$
0
0
We have this error when run Mendix locally. I did modify the database entity and did export and import. Can anyone help?   com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: null     at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:328) Caused by: java.lang.NullPointerException: null     at com.mendix.connectionbus.mapping.MapperBase$.toKey$2(MapperBase.scala:60)     at com.mendix.connectionbus.mapping.MapperBase$.$anonfun$toUniqueConstraintsCache$2(MapperBase.scala:63)     at scala.collection.immutable.List.map(List.scala:283)     at com.mendix.connectionbus.mapping.MapperBase$.toUniqueConstraintsCache(MapperBase.scala:63)     at com.mendix.connectionbus.mapping.Mapper.updateCache(Mapper.java:635)     at com.mendix.connectionbus.modelsynchronization.analysis.DatabaseAnalyzer.analyzeAndFillMigrationCommands(DatabaseAnalyzer.java:112)     at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.analyzeAndFillMigrationCommands(ModelSynchronizationUpdater.java:144)     at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.analyzeAndRender(ModelSynchronizationUpdater.java:103)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeModel(SynchronizationManager.scala:192)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeCurrentDatabase(SynchronizationManager.scala:113)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyze(SynchronizationManager.scala:102)     at com.mendix.connectionbus.ConnectionBusImpl.collectDatabaseSynchronizationInformation(ConnectionBusImpl.java:304)     at com.mendix.basis.impl.MxRuntimeImpl.initializeConnectionBusAnyway(MxRuntimeImpl.java:405)     at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:310)     at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.java:49)     at com.mendix.m2ee.appcontainer.actions.StartAction.execute(StartAction.java:30)     at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandler.handle(HttpAdminHandler.java:129)     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)     at org.eclipse.jetty.server.Server.handle(Server.java:561)     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:334)     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:104)     at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)     at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:243)     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)     at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)     at java.lang.Thread.run(Thread.java:745)  

Error on destroying DropDownDivConverter widget

$
0
0
Since MX 7.18.1 the the DropDownDivConverter widget gives the following error on close page: Error: Unable to destroy:: Error while uninitialize NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. and warning: Home.dropdownDivConverter1: Unable to destroy:: Error while uninitialize NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. The error only occurs when there's an object in the container. If the container is empty the error does not occur.

SQLite error after login of mobile app

$
0
0
My offline mobile app was working fine earlier, but as of now I am always getting following error after login: {"message":"sqlite3_step failure: UNIQUE constraint failed: _guidToTable.guid","code":6} This seems to also prevent the app from refreshing the data. Does anyone have any idea what could be causing an error like this? I added a microflow to create a new object 'B' as an 'after create event' on an entity "A'. I then went into my app via desktop and removed all the objects of entity 'A' which were already in my DB because they would not have created the entity 'B' objects. afterwards I created a new object 'A' (which would then also create and object 'B' associated to this object 'A'). And like stated above after these changes the error starts popping up after login on mobile. however I'm not 100% sure if the error is related to these actions.

REST POST Json

$
0
0
Hi,   I am having problems withe sending Json data to npm json-server.  On the server I have structure like this below. [ { "id": 0, "type": "Call Report", "date": "16-06-2018", "category": "Opportunity", "priority": "high", "creator": "John Doe", "text": "Lorem ipsum Opp", "link": "" }, { "id": 1, "type": "Visit Report", "date": "12-10-2018", "category": "Installed Base", "priority": "medium", "creator": "John Travolta", "text": "Lorem ipsum IB", "link": "" } ] What i need to send to it is this: "id": 0, "type": "Call Report", "date": "16-06-2018", "category": "Opportunity", "priority": "high", "creator": "John Doe", "text": "Lorem ipsum Opp", "link": "" I have already tried it with Ionic and it works ok. Now i am trying to POST it with microflow. I've selected Custom request template and now I don't know how or what to put in field to send some fixed data just to see if it works. if I send something like this on image, it creates a new object on server but it contains only next increment of id not my data.  I also don't know how to check what it actually sends in request payload. I see it triggers post in console on the server but in browser I don't see it. Main thing is what do I need to put in the field above to send Json data through ? I've tried with export mapping and suitable object but it doesn't work.   Miha

Ldap test connection error

$
0
0
When configuring ldap in one of my apps I'm getting the following error when I click "Test Connection": Cannot decrypt the text because it was either NOT encrypted with a key of length 16 or they key is different Can anyone tell me what this means or what it's referring to? I've checked the Encryption key and it is 16 characters long. I've used this module in several apps so far and not had this error. Thanks, Tracy

Using EndOfCurrent dates for visibility expression

$
0
0
When I tried to compare a date to [%EndOfCurrentDay%] or [%EndOfCurrentweek%] in a visibility expression it failed to evaluate and only logged error in browser. I'm using the expression $date > or < [%EndOfCurrentweek/day%], any ideas?   Error from browser console:   Uncaught (in promise) Error: mxui_widget_DataView_187.applyContext: Error: Operator > not supported in expression >(, Sat Nov 03 2018 23:59:59 GMT-0700 (Pacific Daylight Time))     at mxui.js?636765920735742991:1     at Object.e.exports.collect (mxui.js?636765920735742991:1)     at Object.e.exports.applyContext (mxui.js?636765920735742991:1)     at O.(:8080/anonymous function).E.passContext (http://localhost:8080/mxclientsystem/mxui/mxui.js?636765920735742991:1:148381)     at O.(:8080/anonymous function).E.applyContext (http://localhost:8080/mxclientsystem/mxui/mxui.js?636765920735742991:1:148266)     at O.(:8080/anonymous function).E.<anonymous> (http://localhost:8080/mxclientsystem/mxui/mxui.js?636765920735742991:1:497821)     at Object.e.exports.collect (mxui.js?636765920735742991:1)     at O.(:8080/anonymous function).E.collect (http://localhost:8080/mxclientsystem/mxui/mxui.js?636765920735742991:1:149167)     at O.(:8080/anonymous function).E._loadListItems (http://localhost:8080/mxclientsystem/mxui/mxui.js?636765920735742991:1:497664)     at mxui.js?636765920735742991:1

The page you requested was not found. You are redirected to the home page.

$
0
0
Did any one of you face this error "The page you requested was not found. You are redirected to the home page." when you try to redirect to a page which has its Page URL property set to /Sample/{Id} My URL is: http://localhost:8080/p/Sample/8444249301319882

requestcom.mendix.core.CoreRuntimeException: Missing Oauth configuration, please contact the application administrator

$
0
0
this is the error I am seeing when I am using the Oauth2.0 provider provided by mendix...Erwin !! its now able to authenticate/ authorize the users from our custom IDP provider...but it gives an error while coming back to the oauthconfig page...I think!! am I missing anything here?? I have followed all the steps provided in the instructions? Problem accessing /callback/OauthModule. Reason: Exception occurred while processing requestcom.mendix.core.CoreRuntimeException: Missing Oauth configuration, please contact the application administrator

Stripe integration ?

$
0
0
Hi I would like to know if anybody tried to integarte a stipe payment solution with Mendix, I am very surprised to see any module in appstore or question on forum Thank you for your reactions Br    

Why do minified versions of libs break after being bundled?

$
0
0
Dear Mendix, I run into trouble when using minified libs in some widgets. The reason is that the bundled wdigets.js in wrapping the minified lib code. 'Heatmap/lib/d3-min':function(){ // wrapped by build app define(["dojo","dijit","dojox"], function(dojo,dijit,dojox){ // Minified version of d3 js. Ouch.... This fails!!! }); }, Versus normaly non minified lib 'Heatmap/lib/d3':function(){ // not wrapped.. d3 full version. Happy working code! }, Why is it wrapped, is this correct or a bug? Cheers, Andries

Push Notifications not triggering

$
0
0
Hi,    i have followed the user guide on how to implement push notifications (https://docs.mendix.com/howto/mobile/implementation-guide) however we have found that when the app starts the user is not getting asked to give permission for notifications and as a result their device does not get registered. Notifications are enable and we have the after start up microflow and snippet in our layout The only thing we can see in the device console is the following error saying 'Could not find GCM settings object'. It seems the widget cannot find the GCM settings entity but im unsure why.   Cheers

Webkit overflow scrolling properties on mobile

$
0
0
Hi, when using a dataview in your mobile app the -webkit-overflow-scrolling css property is applied from the mxui.css stylesheet see below. I had to change the default value from touch to auto, to remove the scroll your from left to right behaviour.  /* Client defaults and helpers */ .mx-dataview-content, .mx-scrollcontainer-wrapper:not(.mx-scrollcontainer-nested), .mx-tabcontainer-content, .mx-grid-content { -webkit-overflow-scrolling: touch; }   Do you know why this property is included in the mxui stylesheet or is this a bug or?

Give a cell or a row of a data grid a color based on an attribute value

$
0
0
Hi there, I have 2 cases for which I need some colors in my data grid: 1. Different background color of the row based on attribute value The color is based on a boolean attribute (active/inactive).  2. Different background color of an (editable) cell of a datagrid based on the value (positive or negative) The color is based on an integer either being positive, negative or 0. What is the easiest way to solve this? Unfortunately, the Data Grid extension is not maintained anymore :( Kind regards, Tim      

Keypress in the modeler

$
0
0
Is it my laptop or is the keypress not working well in Mx7? For example ctrl-c or ctrl-v is terrible. Anyone experiencing the same?   Update 1: Ticket created. Now we wait :)  
Viewing all 83469 articles
Browse latest View live


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