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

parent to children action in offline app

$
0
0

Mendix beginner here, having difficulty with going from a line in a data grid listing invoices to a data grid of line items for that invoice.  The invoice line items _could_ be on the same page, but a separate page would be better, because some invoices could have hundreds of line items.

Because this will need to support offline mode, I understand that microflows are not supported.  A Mendix video/presentation says "Navigate via associations" but I don't see any way to do that.  I have a parent-child association in my data model and the invoice number is present in both invoice and invoice_line_item entities.

Any pointers would be welcome.


Multi-Select Datagrid Search Fields on iPad

$
0
0

In one of my apps, I have a page with a datagrid that has multiselect search fields (standard out of the box search fields).  When this page is accessed via a browser from and iPad (Safari and Chrome behave the same), the multiselect fields do not function.  I can't select any search options and the list of options does not appear when I navigate to one of these search fields.

Anyone else ever seen this?  Is this a know bug?  Any workarounds exist?

Thanks in Advance

Mike

Mobile App Issue 7.4.0

$
0
0

Hi,

In 7.4.0 the names of the navigation profiles that are used in the building of hybrid apps have been removed, yet the build process for Hybrid Apps still requires these names.  Can someone explain how we build hybrid app packages with a 7.4.0 based app?

How does tabindex/focusindex work?

$
0
0

I am building a custom widget in which i have to interfere with the default tab behaviour. To do this properly i would need to know a bit more on what the current behaviour is. Setting the tab index attribute in Mendix seems to result in a focusindex attribute on the dom. While i cannot find anything on focusindex it seems to behave just like what you would expect from a tabindex attribute, so how does this work exactly?

How to stop default alert message in datagrid button?

$
0
0

I have a datagrid and added few buttons, like "Add", "Edit", "Process" etc. Without selecting any row if I click "Edit" button, then it will send an alert "No row selected". But, my process button process data from entity, not from datagrid. So, how to stop the alert message as I ant to process without selecting any row in datagrid.

Embedded twitter feed not loading every time

$
0
0

Hi there

We are implementing a twitter feed using the instructions in these posts (thanks to those who posted):

https://forum.mendixcloud.com/link/questions/7142

and

https://forum.mendixcloud.com/link/questions/6908

We used the following code in separate snippets:

HTML Snippet 1 (Masked data-widget-id and User):

<a class="twitter-timeline" href="https://twitter.com/search?q=%40MyUser" data-tweet-limit="1" data-chrome="noheader nofooter noborders noscrollbar transparent" data-widget-id="MyWidgetID">Tweets about @MyUser</a>

Javascript Snippet 1 (JQuery not enabled):

!function(d,s,id)
{
var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';
if(!d.getElementById(id))
{
js=d.createElement(s);
js.id=id;
js.src=p+"://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js,fjs);
}
}
(document,"script","twitter-wjs");

Javascript Snippet 2 (JQuery not enabled):

if (typeof twttr != "undefined")
{
twttr.widgets.load( );
}

The timeline feed seems to load content sporadically (once every few minutes) and produces nothing when we refresh the page on subsequent loads (i.e. we only see an empty block on the page).  When it produces something it sometimes renders a nicely rendered version we expect, sometimes produces a poorly rendered version of what we expect and sometimes it just produces a link to twitter.  I placed console.log() lines in the Javascript at certain sections for debugging purposes and I can see these points triggered in the console which tells me that the code is triggered.  There aren't any errors in the console.

Has anyone else seen something similar?

Many thanks

Users can not log into the system

$
0
0

Hi All

 

Im getting this error when all users try login to our system. What is causing it?

 

 

Timestamp

2017-07-05 19:05:03.874

Level

Error

Node

Connector

Message

An error has occurred while handling the request.

Stack trace

com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"before":[],"action":{"type":"LoginAction","user":"managerbull"},"after":[],"type":"EventExtendedAction"}', all database changes executed by this action were rolled back
at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:178)
Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"before":[],"action":{"type":"LoginAction","user":"managerbull"},"after":[],"type":"EventExtendedAction"}', all database changes executed by this action were rolled back
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37)
Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"before":[],"action":{"type":"LoginAction","user":"managerbull"},"after":[],"type":"EventExtendedAction"}', all database changes executed by this action were rolled back
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:152)
Caused by: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"name":"licensepoolmanager.LoginHandler","type":"JavaAction"}', all database changes executed by this action were rolled back
at com.mendix.basis.actionmanagement.SyncEventExtendedAction.executeAction(SyncEventExtendedAction.java:43)
Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"name":"licensepoolmanager.LoginHandler","type":"JavaAction"}', all database changes executed by this action were rolled back
at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:178)
Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"name":"licensepoolmanager.LoginHandler","type":"JavaAction"}', all database changes executed by this action were rolled back
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37)
Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"name":"licensepoolmanager.LoginHandler","type":"JavaAction"}', all database changes executed by this action were rolled back
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:152)
Caused by: java.lang.NullPointerException
at licensepoolmanager.actions.LoginHandler.getActivePoolAccounts(LoginHandler.java:102)
at licensepoolmanager.actions.LoginHandler.executeAction(LoginHandler.java:63)
at licensepoolmanager.actions.LoginHandler.executeAction(LoginHandler.java:21)
at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:50)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:73)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:53)
at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:51)
at com.mendix.basis.actionmanagement.DefaultActionMonitor$$anonfun$run$1.apply(CustomMonitoredAction.scala:18)
at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:33)
at com.mendix.basis.actionmanagement.IMonitoredAction$class.monitor(IMonitoredAction.scala:49)
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:62)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:51)
at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:51)
at com.mendix.basis.actionmanagement.ActionManager$1.execute(ActionManager.java:170)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:33)
at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:174)
at com.mendix.basis.actionmanagement.SyncEventExtendedAction.executeAction(SyncEventExtendedAction.java:41)
at com.mendix.basis.actionmanagement.EventExtendedAction.execute(EventExtendedAction.java:89)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:73)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:53)
at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:51)
at com.mendix.basis.actionmanagement.DefaultActionMonitor$$anonfun$run$1.apply(CustomMonitoredAction.scala:18)
at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:33)
at com.mendix.basis.actionmanagement.IMonitoredAction$class.monitor(IMonitoredAction.scala:49)
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:62)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:51)
at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:51)
at com.mendix.basis.actionmanagement.ActionManager$1.execute(ActionManager.java:172)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:33)
at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:174)
at com.mendix.basis.component.InternalCore.login(InternalCore.java:961)
at com.mendix.basis.component.InternalCore.login(InternalCore.java:983)
at com.mendix.webui.actions.client.LoginAction$$anonfun$1.apply(LoginAction.scala:35)
at com.mendix.webui.actions.client.LoginAction$$anonfun$1.apply(LoginAction.scala:35)
at scala.util.Try$.apply(Try.scala:192)
at com.mendix.webui.actions.client.LoginAction.execute(LoginAction.scala:35)
at com.mendix.webui.requesthandling.ClientRequestHandler.handleAction(ClientRequestHandler.scala:145)
at com.mendix.webui.requesthandling.ClientRequestHandler.liftedTree1$1(ClientRequestHandler.scala:101)
at com.mendix.webui.requesthandling.ClientRequestHandler.processRequest(ClientRequestHandler.scala:93)
at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:40)
at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:70)
at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:67)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:33)
at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:73)
at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:885)
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.content(AbstractHttpConnection.java:953)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
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)

 Close

Your app is outdated, install a new version and try again

$
0
0

Hello,

Does anyone know what this error message is for?

--- Update ---

I just saw this error message in the console. The app seems to continue working fine.

Desktop only. Just upgrade 7.2 to 7.3 to 7.4

 

// :) Fredrik


Button 'Select all' only when datasource is Database

$
0
0

 I have a datagrid that has a Microflow as datasource.

On the datagrid I have a button that starts a microflow which will process the data of the rows that I select in the datagrid. That works fine.

Now I add a 'Select All' button to the datagrid. I define the button to select ALL rows (not a page). Now when I first select all rows by this button, and then use my button to start the microflow, it only processes the rows that are on the page that is visible. It does NOT process ALL the rows that have been selected according to the Select-All button.

When debugging, I can see in the Variables pane that the list with data that is being displayed on the datagrid suddenly decreases to the number of rows that is visible.

 

When I change the datasource of the datagrid to 'Database' instead of 'Microflow', it seems to work correct. So it appears that a 'Select all' button only works correct on a datagrid with datasource "Database', and not with datasource 'Microflow'. I could not found any datasource restrictions in the Reference Guide. ( I use Mendix modeler version 6.10.3)

Does anyone know this is normal behaviour, or am I doing something wrong?

 

Thanks for replying.

Issues with Listview when scrolling in mobile browsers

$
0
0

Hi all,

 

We have a web app that when accessed through a mobile browser has a very peculiar behaviour. If we use the app without using the logo or the navigation menu, everything seems to work fine. However, if we go to a page and then use the logo to navigate to the homepage, or go to another page using the navigation menu, suddenly we lose the ability to scroll in listviews...the usual 300ms delay the browsers have to see if we want to scroll or click is gone, and every time we try to scroll, it immediately assumes we clicked. The other weird thing is that this seems to only happen with listviews. Grids and other controls on dataviews seem to continue to work fine.

 

Has anyone ever seen this? And, more importantly, does anyone have any idea what could be causing this?

 

Many thanks

Gonçalo

Issues opening a project in 6.10.3

$
0
0

I seem to be getting issues when I download and try and open up a project in version 6.10.3

This project opens up fine with the other engineers, they have been trying to help me but they are stumped.

The project downloaded correctly, I have since restarted my machine, deleted the project and downloading again. Uninstalling and re-installing the modeler again.

 

The full stack trace is:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Void Newtonsoft.Json.JsonReader.set_FloatParseHandling(Newtonsoft.Json.FloatParseHandling)'.

   at Mendix.Modeler.Integration.JsonElementFactory.ReadJsonString(String jsonString)

   at Mendix.Modeler.Integration.JsonStructure.FormatJson() in C:\jenkins\workspace\Integration-Build-6\modeler\Mendix.Modeler.Integration\JsonStructures\JsonStructure.cs:line 34

   at Mendix.Modeler.Integration.JsonStructure..ctor(IFolder container, String name) in C:\jenkins\workspace\Integration-Build-6\modeler\Mendix.Modeler.Integration\JsonStructures\JsonStructure.cs:line 24

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at Mendix.Modeler.Storage.Caches.CachedType.CreateInstance(IStorageObject container, Type containerType) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Storage\Caches\CachedType.cs:line 108

   at Mendix.Modeler.Storage.Operations.UnitContentsLoader.ConstructObjectInternal(IStorageUnit containingUnit, IStorageObject container, JObject jObject) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Storage\Operations\UnitContentsLoader.cs:line 50

   at Mendix.Modeler.Storage.Operations.UnitContentsLoader.ConstructUnitFromContents(IStorageUnit container, Byte[] contents) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Storage\Operations\UnitContentsLoader.cs:line 33

   at Mendix.Modeler.Storage.Operations.UnitLoader.ConstructUnit(IStorageUnit container, DbDataReader reader) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 215

   at Mendix.Modeler.Storage.Operations.UnitLoader.LoadChildUnits(IStorageUnit unit) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 143

   at Mendix.Modeler.Storage.Operations.UnitLoader.LoadChildUnits(IStorageUnit unit) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 179

   at Mendix.Modeler.Storage.Operations.UnitLoader.LoadChildUnits(IStorageUnit unit) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 179

   at Mendix.Modeler.Storage.Operations.UnitLoader.LoadChildUnits(IStorageUnit unit) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 179

   at Mendix.Modeler.Storage.Operations.UnitLoader.Load[T](IProgressInfo info, Dictionary`2 _knownUnits, Boolean& conversionNeeded) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 48

   at Mendix.Modeler.Operations.Loader30.<>c__DisplayClass0_0.<DoLoad>b__0(Database database) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Core\Operations\Loader30.cs:line 22

   at Mendix.Modeler.Utility.DbConnectors.DbConnector.WithoutTransactionDo[TResult](Func`1 action) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Utility\DbConnectors\DbConnector.cs:line 64

   at Mendix.Modeler.Utility.DbConnectors.SQLiteConnector.Do[TResult](String filePath, Boolean useTransaction, Func`2 action) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Utility\DbConnectors\SQLiteConnector.cs:line 58

   at Mendix.Modeler.Storage.Database.Do[TResult](String filePath, Boolean useTransaction, Func`2 action) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Storage\Database.cs:line 0

   at Mendix.Modeler.Operations.Loader30.DoLoad(IProgressInfo info, String filePath) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Core\Operations\Loader30.cs:line 18

Order of form parts depending on device

$
0
0

I use a standard form layout, with menu's, workspaces and some other parts. When the form is displayed on mobile, I have to scroll down all the menu's before I get to the workspace. Is there a way to change the order of the formparts depending on the type of device. E.g. in the CSS?

Mobile app ios package (ipa) on premise environment?

$
0
0

Hi,

We have a on premise environment with Mx 7.4.0.

We created an mobile ios package (ipa) with Adobe Phonegab and the Apple developer portal but we are wondering where we have to set the URL of the producion environment of the on premise installation. A login screen appears when we click on the App icon on the iPhone but somehow the app needs to know which (on premise) app environment he has to connect and login? I think?

Is this possible or can you only use this when the application is hosted in the Mendix Cloud?

Thanks!

Offline profile prohibits search bar and therefore buttons that act on a row in data grid? Workarounds?

$
0
0

Mendix (7.4) limitations on what you can do in offline mode are really getting in the way.  I need to display invoice lines in a data grid and be able to select a row, tap a button and go to a data grid page for the selected invoice line.  But this does not seem to be legal, I get an error during checking that says that "Grids with a search bar are not supported on pages that are accessible through the online profile". The so-called search bar seems to be the only place where I could put a button that operates on the selected row. 

Anyone have any ideas on how I could get around this?

Unregistering device from push notifications when closing session

$
0
0

For one of our apps, I'm turning of the 'multiple sessions per user' which will close an initial session when the user signs in somewhere else.

My question: what is the effect of this on the registration of the initial device? Ideally, you don't want to receive push notifications on that device anymore but I'm not sure whether it'll work that way.


List view expands vertically , is horizontal expand possible ?

$
0
0

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?

Cannot build a system due to Errors

$
0
0

I'm trying to build a system for the first time (by first time, I mean that this is the first time I have developed on it - it has ran for a colleague), however I get 'Compilation of Java actions failed'.

And then this is always followed by a 'Java heap space' error. I then upped the memory that the app is using to 1024 and then 2048 and still there is a Java heap space error.

I have tried:

-redownloading the app

-redownloading app + modeler

-updating java

-using a postgres (not built in) database

I'm unsure what to do about this, I can't get the system running!

Any help is great.

EDIT: Here is the error I am getting http://i.imgur.com/dkNnSrD.png

Cheers.

error with mendix Data grid Extension widget

$
0
0

Trying to integrate the Data Grid Extension widget but get the error below when trying to use inline buttons.

error in create widget:self.grid.liveConnect is not a function

Anyone got any ideas?

Request entity to large

$
0
0

Hi All

I have a problem when transferring from an OData service hosted by mendix(hosted in the could, not on premise) communicating with a C# application. When trying to transfer data we get a "413:Request entity to large" error. I know that you can somehow set the max amount of data to be transferred on a web service and according to my thinking this should be a setting on the host side, I have not located where this setting is. Has anyone experienced something like this? Any help would be appreciated as this is blocking a critical part of the project process.

MX 7.4.0 sign out button not working on offline app

$
0
0

Hi everybody,

 

When I use the sign out button in my offline app, the app "hangs". The signing out process takes forever. The only option to sign in again is to kill and restart the app. It seems like a bug to me, but in the release notes it is mentioned that the sign out functionality has been improved.

"We fixed the issue that occurred when the user was not able to log out of an offline app while being offline."

 

Anybody having the same issue? Did anybody got it working?

Viewing all 83469 articles
Browse latest View live


Latest Images

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