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

apache felix not in 7.0.2 runtime?

$
0
0

I am trying to deploy a appplication on to the Mendix AWS AMI

Have built an MDA using modeler 7.0.2 (build 20466) and pushed that up but when I try to start the application (m2ee start) I get

ERROR: felix configuration template is not a readable file: /srv/app/runtimes/7.0.2/runtime/felixconfig.properties.template

Which is because the file does not exist

Looking on my local windows modeler environment I can see this file (and several org.apache.felix jars) are there under the 6.10.3 runtime but not under 7.0.2

So I guess I have several questions:

- If the felix stuff no longer requires under 7?

- If it is NOT required, what part onf the config on the AMI is trying to load the felixconfig.properties.template?

- If it IS required, how do I get hold of the correct runtime files

 

 

 



 


Mobile pin with anonymous users enabled

$
0
0

Since Mendix 6.7.0 the hybrid mobile version of Mendix has functionality to allow a user to login in using a pin code. If the project does not have anonymous users, this login screen with pin code option is nicely shown. However, the project for which I need it does have anonymous users enabled, and therefore a mendix page is shown instead of the mobile pin page.

Does anyone know how I can force anonymous users in the mobile to go to the cordovan PIN code login page?

Mendix in an iframe. How to scroll the main page to the top

$
0
0

For a client we have made a Job page with a list of the current available jobs. Now when you are down the list and open the job description the other window does not scroll to the top.

I tried a couple of tricks mentioned here: http://stackoverflow.com/questions/1852518/how-to-get-scrolltop-of-an-iframe but these do not seem to work. The best I got was a second scrollbar IN my iframe that was at the top but since the scrollbar of the window around my iframe is still at the bottom position this is not what I want. Is there a way to influance the scrollbar of the window around the iframe from inside the iframe?

Regards,

Ronald

 

The selected menu has 3 levels and only 2 are allowed. Property 'Menu' of menu bar 'menuBar1' Layout 'TopBar_Fixed' NavigationLayouts. What is the solution for this error?

$
0
0

I am trying to create a subitem in Menu bar of Navigation. I am getting an error like 

The selected menu has 3 levels and only 2 are allowed.Property 'Menu' of menu bar 'menuBar1'Layout 'TopBar_Fixed'NavigationLayouts.

Can anyone help me....

Thanks & Regards,

Venkat

How can I create Multi-level Dropdowns from the header?

$
0
0

Hi.

In my application I have Accounts, Leads, Inquiries, Ordermanagement, Invoice tabs in header. I want to add Sub items to these tabs. e.g., For Accounts tab, I want A1, A2 ,A3 in dropdown. And for A1 I want A11, A12, A13, A14. For A2, A21, A22. For A3, A31. For A4,  A41, A42, A43. Can I make them using the existing functionality? Or do I need to add extra code? Can anyone please help me.

Thanks,

Venkat.

new deployments and my test scripts

$
0
0

Hello, we regularly have new deployments on our app, do I have to create new test scripts every time?

404 - file not found for file: ui/img/image.png

$
0
0

Hi guys

 

in the mx app we make use of an custm widget with an image.png.

This image is defined in the widget/ui/img/image.png

The image is visible in the app but we still see in the console the 404 file not found error.

Cache delete of the app did not work.

Anyone an idea?

 

MxAdmin session gets removed while th MF is still running

$
0
0

Hi guys,

I have a heavy mf initiated as MxAdmin doing import stuff.

And I normally in an infinitie loop Mx throws the user out...but in this case it isnt desired.

Is there a way to disable this ? As long as the MF is running i'd like to show the page with the loader icon on it.

 

 

 


Mendix iOS iPad page keeps on showing white screen

$
0
0

I have an app that works fine on desktop and Andriod iPad but on iOS iPad it only displays the top navigation but the content and footer areas are not displaying it's showing the white screen but when flipping between portrait and Landscape it shows the page for a split sec then disappeared again. Does anyone have an idea of how I can fix this ios bug?

How show an enumeration with matching attributes?

$
0
0

So basically I want to make an application like netflix, where Categories are shown with the matching Movies. What is the best way to do this? I already made an enumeration of Categories and connected it to Movies, but just showing the enumeration on the homepage with matching Movies is something I cannot get done. Any tips?

Offline app does not show login page when anonymous usage is enabled

$
0
0

When I enable anonymous users, the offline app no longer shows the login page but attempts to use the anonymous session. This is not correct because the anonymous role does not have access to any navigation items in the offline profile so the app should show the login page.

Ticket: 50851

It seems my edit got lost somehow. Once again: The real app does have anonymous pages for the desktop browser, for the login widget and forgot password functionality. When I turn on anonymous access, the offline login breaks.

Mendix 7 - problem with mx.data.get and filter.references

$
0
0

Hallo,

in our custom widgets we use the filter.references option of the mx.data.get, in order to be able to reach from a mendix object not only the guid of another mxObj (associated to the first one) but also its attributes.
Once the object is retrieved using the filter.references, mxObj.get("mxObj1_mxObj2") used to return an object, containing, among others, the keys 'attributes' and guid, so that for example the command
mxObj.get("mxObj1_mxObj2").attributes['Name'].value 
used to return the value of the attribute name of the second obj.

Running the same project in Mendix 7, we got several errors, since the line mxObj.get("mxObj1_mxObj2") now returns only the id of the refered object, even if, for what I can see, mxObj contains exactly the same amount of information as before.

I could not find any comment about these changes in the release notes of mendix 7 (a change on the get function is mentioned, but not about how to use filter.references); also in the description of mx.data.get there is a reference to 'options' for the argument filter.references, but I could not find any further documentation.

I would be very grateful if you could point me out any possible solution or any extra documentation for this options.

Thank you in advance.

How to subscribe to more than one attribute in a widget

$
0
0

For a custom widget I'm trying to subscribe to two attributes from the context object, one wich only triggers the updateRendering and one which instructs the widget to reload the data. Ive tried several options but none work.

 

Option 1: two subscribes

Update: I have no clue why, but this one does work now. Probably some hidden typo in it the first time, no idea why it didn't generate and error though.

var attrHandle = this.subscribe({
  guid: this._contextObj.getGuid(),
  attr: this._association,
  callback: dojoLang.hitch(this, function(guid, attr, attrValue) {
     this._updateRendering();
  })
});

var reloadDataHandle = this.subscribe({
  guid: this._contextObj.getGuid(),
  attr: this.reloadDataAttribute,
  callback: dojolang.hitch(this, function(guid, attr, attrValue) {
     this._reloadData();
  })
});

var validationHandle = this.subscribe({
  guid: this._contextObj.getGuid(),
  val: true,
  callback: dojoLang.hitch(this, this._handleValidation)
});

this._handles = [attrHandle, reloadDataHandle, validationHandle];

No errors, but the script simply runs forever as soon as the second attribute subscription is reached. So the page is never loaded.

 

Option 2: see if the attribute subscription accepts an array

var attrHandle = this.subscribe({
  guid: this._contextObj.getGuid(),
  attr: [this._association, this.reloadDataAttribute],
  callback: dojoLang.hitch(this, function(guid, attr, attrValue) {
     this._updateRendering();
  })
});

var validationHandle = this.subscribe({
  guid: this._contextObj.getGuid(),
  val: true,
  callback: dojoLang.hitch(this, this._handleValidation)
  });

this._handles = [attrHandle, validationHandle];

This seems to work fine, the page loads, again no errors. However the attrHandle is never trigerred when any of the attributes change.

 

Option 3: add an object handle, figure out later how to check what attributes where changed

var objHandle = this.subscribe({
  guid: this._contextObj.getGuid(),
  callback: dojoLang.hitch(this, function(guid) {
     this._updateRendering();
  })
});

var validationHandle = this.subscribe({
  guid: this._contextObj.getGuid(),
  val: true,
  callback: dojoLang.hitch(this, this._handleValidation)
  });

this._handles = [attrHandle, validationHandle];

However this comes with the problem that the object handle isn't called when any attribute changes (even though the console shows "mendix.sys.Data.update"), it's only called when I add an OnChange to the other input and refresh the entire object in the OnChange.

 

 

This is all in Mendix 6.10.2, does anyone have a solution for this?

Pass an array of strings to Mendix REST service via JQuery

$
0
0

Hi all,

I've been trying to pass to my Mendix rest service a list of string values. I did some research and saw that [t]o be able to map a list of String-/Float-/Boolean values, you need to set a many to many association to the Primitive entity in your RestServices module, or a subclass of the Primitive entity. However, after I've done that, the values don't seem to register. I'm not getting any errors, but the values just aren't accessible in my microflow when I make the request to the REST service.

Here's how I've setup my entities to match the REST request:

Here's my jQuery code that makes the request to the REST service on localhost:

$.ajax({   url: 'http://localhost:8080/rest/getproducts/',   method: 'GET',   data: {      q: 'Test',      productsGUIDs: ['58828270132528344','58828270132528345'],   },
}).then(function(data) {   console.log(data);
});

I've already tried changing the content-type attribute of the .ajax jquery call to JSON, but to no avail. I've also tried using JSON.stringify on the object before passing it through the data attribute.

 

The microflow exposed as 'getproducts' simply serializes the input object to JSON and returns the resulting string. This is done just so I can see if the values are being registered on the Mendix end. But I keep getting back the following string, which tells me that the values aren't being interpreted for some reason:

{  "q": "Test",  "productsGUIDs": [],
}

Here's a snapshot of the exposed microflow:

 

Can anybody help me understand what I might be doing wrong? I need this functionality for an important app update.

database backup for free version

$
0
0

Is there a way to activate the backup procedure for free apps or should this start as soon as you deploy the app?

I'm revisiting an app I developed a year ago for testing purposes and can't find any recent backup of it, the last one is dated over a year ago.

Also any new free app I deploy does not have any backups.


Forgot Password Module and other deeplinks

$
0
0

Hi, my application requires login. I  have Deeplinks working successfully. If user is already logged in link opens. If user is not logged in they are prompted to do so, then taken to the link.  For Guest nav, I direct them to a Login Page. Once logged in the deeplink is executed successfully. I am using AnonymousLogin_CopyDeepLinkInfo as the sign-in microflow for Anonymouse users. All this is working fine.

I'm trying to add the Forgot Password Module, but it seems to be interfering with my other deeplinks as described above.

If I change the Guest nav to NAV_GuestHomePage, Forgot Password works fine, but for my other deeplinks, the Guest user is never prompted to login so the deeplink tries to execute and open the form and fails because it doesn't have access. And, of course if I retain the Guest nav as the Login page, my other deeplinks work, but then the New Password field is not presented for the Forgot Password links.

How can I get both of these to work together?

menu: on hover show subitems and on click call a microflow

$
0
0

Hi all,

In my project I have four items in my menu bar. The current situation is that a microflow is triggered and a page will be shown because of the microflow. In this new shown page there is a choice among 3 items. I would like to enable a shortcut - to directly select one of these three items - by bringing subitems into the menu and still on click trigger the microflow to show the page with the choice among the three items. I only want to show the menu sub items on hover. Has anyone a sulution to do this? 

So the result for the user should be:

- hovering over the menu item should show sub menu-items

- clicking on the menu item should (trigger a microflow and) show the page

I hope to be reading some good ideas soon!

 

dojox/gfx in Custom widget - Modeler throws 404 error file: mxclientsystem/dojox/gfx/svg.js

$
0
0

HI

When i use Dojox/gfx in a custom widget, modeler throws '404 - file not found for file: mxclientsystem/dojox/gfx/svg.js' error.

Widget works fine if I don't include dojox/gfx file. I have created a test project for this widget to avoid any conflicts. I have copied dojox folder under lib folder \Interactive Clicking\src\InteractiveClicking\lib\dojox.

Googled and a post recommended to add following three which i have added index.html file under theme folder. But It didn't work and still same error.

I have created a simple html page with dojox and it works fine which mean i am missing something in Custom widget.

Can someone help please?

<script>
            dojoConfig = {
                baseUrl: "mxclientsystem/dojo/",
                cacheBust: "{{cachebust}}",
                rtlRedirect: "index-rtl.html"
				,async: true
				,isDebug: true
				,gfxRenderer:'svg,silverlight,vml'
            };</script>

 

 

define(["dojo/_base/declare","mxui/widget/_WidgetBase","dijit/_TemplatedMixin","mxui/dom","dojo/dom","dojo/dom-prop","dojo/dom-geometry","dojo/dom-class","dojo/dom-style","dojo/dom-construct","dojo/_base/array","dojo/_base/lang","dojo/text","dojo/html","dojo/_base/event","dojo/mouse"
    ,"dojo/on"
    ,"dojo/fx"

    , "InteractiveClicking/lib/dojox/gfx"

    , "InteractiveClicking/lib/jquery-1.11.2"
    ,"dojo/text!InteractiveClicking/widget/template/InteractiveClicking.html"
], function (declare, _WidgetBase, _TemplatedMixin, dom, dojoDom, dojoProp, dojoGeometry, dojoClass, dojoStyle, dojoConstruct, dojoArray, lang, dojoText, dojoHtml, dojoEvent
    ,mouse,on,fx,gfx
    , _jQuery, widgetTemplate) {

 

Broken pipe errors during document download

$
0
0

Our log is pretty much completely flooded with warnings like this one:

Nov  9 11:54:18.138 127.0.0.1 tr10000: WARNING - Connector: (35/74) Caused by: java.io.IOException: Broken pipe
Nov  9 11:54:18.138 127.0.0.1 tr10000: WARNING - Connector: (36/74)     at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
Nov  9 11:54:18.138 127.0.0.1 tr10000: WARNING - Connector: (37/74)     at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
Nov  9 11:54:18.138 127.0.0.1 tr10000: WARNING - Connector: (38/74)     at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
Nov  9 11:54:18.138 127.0.0.1 tr10000: WARNING - Connector: (39/74)     at sun.nio.ch.IOUtil.write(IOUtil.java:65)
Nov  9 11:54:18.138 127.0.0.1 tr10000: WARNING - Connector: (40/74)     at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
Nov  9 11:54:18.138 127.0.0.1 tr10000: WARNING - Connector: (41/74)     at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:310)
Nov  9 11:54:18.138 127.0.0.1 tr10000: WARNING - Connector: (42/74)     at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:362)
Nov  9 11:54:18.138 127.0.0.1 tr10000: WARNING - Connector: (43/74)     at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:853)
Nov  9 11:54:18.139 127.0.0.1 tr10000: WARNING - Connector: (44/74)     at org.eclipse.jetty.http.AbstractGenerator.blockForOutput(AbstractGenerator.java:523)
Nov  9 11:54:18.139 127.0.0.1 tr10000: WARNING - Connector: (45/74)     at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:170)
Nov  9 11:54:18.139 127.0.0.1 tr10000: WARNING - Connector: (46/74)     at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:107)
Nov  9 11:54:18.139 127.0.0.1 tr10000: WARNING - Connector: (47/74)     at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1720)
Nov  9 11:54:18.139 127.0.0.1 tr10000: WARNING - Connector: (48/74)     at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1696)
Nov  9 11:54:18.139 127.0.0.1 tr10000: WARNING - Connector: (49/74)     at org.apache.commons.io.IOUtils.copy(IOUtils.java:1671)
Nov  9 11:54:18.139 127.0.0.1 tr10000: WARNING - Connector: (50/74)     at com.mendix.webui.requesthandling.FileRequestHandler.sendDocument(FileRequestHandler.scala:371)

[cut]

The stacktrace is always the same, they always originate from the RequestHandler for /file.

I have tried to reproduce this issue without success (by throttling Chrome from a low bandwith setting to the 0 bandwidth setting).

It seems to me like this issue is caused by misconfiguration in nginx as used in the Mendix cloud. If I am correct, Nginx communicates with our users, and Jetty only communicates with Nginx. So if Jetty encounters a broken pipe, this must be caused by Nginx suddenly shutting down a connection between Nginx and Jetty. There may be valid reasons for Nginx ending the connection when downloading a file (the client has lost the connection with Nginx), but I think this should never ever result in this message in our log.

Does anyone have any thoughts on this? Is someone more knowledgable on Nginx or its specific settings in the Mendix cloud able to chime in?

Move entities to another module

$
0
0

What is the easiest way to move specific entities along with all their relations (relations inside and to outside of the module that belong to those enties) to another module without getting thousands of errors?

I am trying to decrease the number of entities in a specific module as too many entities are there now in that module.

Viewing all 83469 articles
Browse latest View live


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