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

Make listvieuw hover down and up while scrolling

$
0
0
Hi I’d like my listvieuw  to ALWAYS be visible on the page (ergo: goes up and down while scrolling) This is how my page looks like in MSP: Any Idea on how I can do this? If you know ho to do this for buttons it would be welkom (I’d like to do the same with the button “Add new product”). The idea would be the same as the feedback button we have around on the forum. 

Overview of events per page (on change/on enter/on leave)?

$
0
0
Hi all, Is there a way in Mendix Modeler/Studio Pro (version 7.18.1 and up) to get an overview of all on change/on enter/on leave events that are present on a page? Thanks in advance for your answer. Best regards, Jeroen

Can auto commits delete objects that are actually commited before?

$
0
0
tldr: yes they can, under certain situations. We are currently investigating some issues regarding missing data and what we see is that the data that is missing is also mentioned as removed autocommited objects. Whether they are the same i cannot tell because the log message only  mentions that the object types are the same. But it frightens me, because the objects that are disappearing are actually committed at some point. e.g. some other objects exists and they can only exist when the removed object is in state B which it can only get by a commit. It was always my believe that the objects were only marked as auto commited (and thus removed) if they are never commited before, but the issues makes me doubt my believes. Is there someone else who can shed some light on this or share their experience with auto commited objects being removed? Edit I did some more testing and found out the following: The auto commit removal process respects delete behaviour but does not trigger events on the deleted object. Thus you cannot set an event handler on the object that is removed, but you can set an event listener on the associated object to check the delete. Also you can prevent the deletion of autocommited objects by setting delete behviour to “only delete if not associated with”. My quick and dirty solution for now is to create an extra “PreventDelete” object and when my Case reaches a state in which i do not want it to be deleted anymore i associate it with the PreventDelete entity. This should ‘solve’ my problem untill i find out why the object is marked as auto commited in the first place.   Edit2: Instead of using the only delete if, we used a before delete event handler on the PreventDelete entity and set the delete behaviour to On delete of Case also delete PreventDelete entity. This allows us to throw down some logging in cases when the PreventDeleteEntity is removed. For that to work you need to add a before delete event to the PreventDelete entity and set it to Throw error if the before delete event returns false. Then you let your before delete mf either always return false, or you base it on some logic so that you can still manually remove the items if necessary. Edit3: After some testing, today indeed showed that auto commits can delete objects even though they are explicitly commited. Logging on the before delete shows that the state of my object is different from my default state. Because the state is only set in my setState Microflow this is something that should not occur imo, i will file a bug report and get back you to see what happens. Edit4: In order to make my ticket complete i decided to build a test project to make it reproducable and after a while i found out the quirck that was in my model. Something that you could describe as ‘expected’ behaviour yet it seems very strange, so im gonna take it up with Mendix anyway because im very curious about what they think (disclaimer: This is how i think it works based on my test results, not (yet) on actual insights from Mendix) . - It starts with causing the autocommit, this is pretty clear, you commit an entity that references to an entity that is not commited ‘yet’, nor is it committed later on in the same microflow. This will result in marking your entity as autocommited. In my case this microflow ends up in a form in which i can edit my order, but also the client which is linked to the order. When saving the order directly it seems to detect that the order is commited explicitly and thus the autocommit tag is removed.  But when saving the client  we do something additionally that triggers a perma save of the autocommit tag. - saving the client also updates all related orders in the database. Because the order is autocommited it is also retrieved from the database and thus commited (semi-explicitly) afterwards. However this semi-explicitly saving of the order seems to break the autocommit functionality because when you now continue with saving your order in the normal way and then log out it is removed. My theory is that the auto commit function somehow determines that the retrieve was not supposed to retrieve the order in the first place (because it was auto commited at that point) thus marking it as an object that is supposed to be deleted, no matter how many times you commit it afterwards.

Populate different times for different dates in DateTime picker Widget

$
0
0
Hello  I am using DateTime picker widget (https://appstore.home.mendix.com/link/app/94760/) in my application where I can choose dates and times. Requirement: If the user selects a date which is Monday, then, only 5.30, 6.30 should be visible in the time drop down for the user to select the time, other times should be disabled Where as if the user selects a date which is Tuesday, then, only 5.30 should be visible in the time dropdown for the user to select the time, other times should be disabled I have tried to use the ‘Times Microflow’ in the ‘Time Restrictions’ tab of the widget to constraint the time visibility based on Date selected,but I am not understanding how to proceed. Question:  First of all is this requirement possible with the widget? If yes, please guide me how to proceed.

Zero to 1 data model relationship

$
0
0
Hi, I wish to have a 0 to 1 relationship in my data model. Meaning that a certain object may have an optional relationship to another object, but it is not required. How would I do this?

Merging Domine Models

$
0
0
How to merg two different domine models from different modules.

Hybrid Mobile offline pages

$
0
0
Please i created an offline hybrid app which the pages were created with data grid. The problem is if i call those pages in an action button, the button does not show in the app, unless i set the on click action of the action button to “do nothing” then the button will show in the app. what can possibly be the problem and how can i solve it thanks.

Loading HTML and Javascript in a Mendix page or widget

$
0
0
Through a Mendix application, I need to send a GET request to a server which gives an entire HTML page (including some Javascript) in response. The limitation here is that the contents of the response page cannot be captured in the form of Mendix objects. Is there any way by which I can embed the entire page insise a Mendix Page or Snippet?

How to get a selected object for setting visibility

$
0
0
Hello I built simple models like the below     and then I built a page like below     1. I set “Data source” by XPath in “List view”  - Test_Module.Book_Author/Test_Module.Book - [Status = 'Released'] 2. I set “Data source” by “Listen to widget” in “Data view” (It was marked by red line) - List view ‘listView1’   and then I want to set Visibility visible only when selected book object has “Normal” for level type but I can’t access the attribute of the selected book object  by using “based on expression” because $currentObject indicated Author object. So How can I get selected book object in this case? Thanks in advance  

Native Mobile local REST API JSON mapping to data

$
0
0
Hi, I am looking to build a Native Mobile app that communicates directly from the client to a REST API, which returns as JSON object. The JSON object is a combination of fields and lists. Example: {     "field1": "val1",     "field2": "val2",     "field3": "val3",     "array1": [{             "array1_field1": "val1a",             "array1_field2": "val2a"         },         {             "array1_field1": "val1b",             "array1_field2": "val2b"         },         {             "array1_field1": "val1c",             "array1_field2": "val2c"         }     ] } Within the infrastructure I need to deploy this, I will not have access to the runtime, and therefore are not able to make the calls and use the JSON mapper via microflows. I have seen the example documented in the link below, but this example only returns a list of objects. https://docs.mendix.com/howto/extensibility/write-javascript-github I need to return / create different objects from the JSON, one for the fields structure, and the others for the lists. I can create a Javascript action and use the FETCH API to retrieve the data, but am having some trouble understanding how I would create different types of Entities to either return from the function, or just create so that they can be retrieved later. The data could be seen as separate entities, but I would also like to link them together with a singleton structure for the fields and it's associated lists, so that when I delete the structure, the lists are cleared too. Could anyone possibly provide any examples of how this would be done using the mx.data framework? Thanks Chris

Unable to connect to Azure Face API

$
0
0
Hi, I was implementing an App using “Azure Face API” but was getting the following error.     Thanks in Regards.

Edit condition for visible row in document template not working

$
0
0
HI, I am creating a document template to create a PDF. When i use “Edit condition for visible row “  and select a boolean, the field stays empty.    The column is getting a symbol tho.    The column stays visible What i am trying to accomplish is is hiding a column based on a boolean attribute.  Am i doing something wrong?  Thank you in advance.   

Store data localy and temporary

$
0
0
Hi, Is there a way to store some data locally and temporary ? I have some nanoflows that creates and uses some data. For the moment I store it in the database. I would like this data to be unique to each instance of the app and to be reset at each refresh or page change. Is there a way to do it ?

Error: with Please re-select allowed rules

$
0
0
Hi, I got a error message: Please re-select allow rules, Document Page=ExcelimportOverview Module=Myfirstmodule. I still don't get it where i need to change something to solve the error. Does anybody know what to do, and tell which steps i need to take.  

Widget issues 8.4.0

$
0
0
Hello, since updating to 8.4.0, I have been unable to deploy, it’s detected these widgets as the problem. They are running the latest version available on the app store, do I need to just wait until they are updated to work with 8.4.0? Thanks, Garion. Log directory for one of the widgets Build started: Tue Nov 26 2019 11:55:39 GMT+0000 (Greenwich Mean Time) Build application version: 1.15.0 (d545ad7) Messages: info(100) Assumed module uses legacy loader API. module: MobileFeatures/MobileFeatures.webmodeler info(107) Package Version: package: dijit; version: 1.15.0 package: dojo; version: 1.15.0 warn(205) Module not tagged as pure AMD yet it contains AMD API applications. module: mxui/dom module: mxui/mxui module: mxui/html/parser module: mxui/lib/ColumnResizer module: mxui/mixin/_Stateful module: mxui/widget/_Button module: mxui/widget/_WidgetBase module: mendix/lang module: mendix/validator module: mendix/lib/MxContext module: mendix/lib/MxMetaObject module: mendix/lib/ObjectValidation module: big/big module: MobileFeatures/widget/MobileFeatures module: MobileFeatures/widget/plugins/advanced module: MobileFeatures/widget/plugins/classes module: MobileFeatures/widget/plugins/customconnectionerror module: MobileFeatures/widget/plugins/dialog module: MobileFeatures/widget/plugins/spinner module: MobileFeatures/widget/plugins/statusbar module: MobileFeatures/widget/plugins/transitions module: widgets/widgets warn(209) Missing or empty package.json. filename: C:/Program Files/Mendix/8.4.0.63076/modeler/tools/node/dojox/package.json filename: C:/Program Files/Mendix/8.4.0.63076/modeler/tools/node/mxui/package.json filename: C:/Program Files/Mendix/8.4.0.63076/modeler/tools/node/mendix/package.json filename: C:/Program Files/Mendix/8.4.0.63076/modeler/tools/node/big/package.json filename: C:/Users/garions/Documents/Mendix/What Matters Most Pilot-main/deployment/web/widgets/MobileFeatures/package.json filename: C:/Users/garions/Documents/Mendix/What Matters Most Pilot-main/deployment/data/tmp/widgets/package.json warn(216) dojo/has plugin resource could not be resolved during build-time. plugin resource id: dojo-bidi?./_BidiMixin; reference module id: dijit/_WidgetBase plugin resource id: dojo-firebug?./_firebug/firebug; reference module id: dojo/main plugin resource id: dom-addeventlistener?:./aspect; reference module id: dojo/on plugin resource id: host-browser?dom-addeventlistener?:../on:; reference module id: dojo/request/watch warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dijit/Fieldset; plugin: dojo/query module: dijit/RadioMenuItem; plugin: dojo/query module: dijit/Tree; plugin: dojo/query module: dijit/form/_RadioButtonMixin; plugin: dojo/query module: dojo/request; plugin: dojo/request/default module: dojo/request/node; plugin: dojo/node module: dojo/request/node; plugin: dojo/node module: dojo/request/node; plugin: dojo/node module: dojo/request/node; plugin: dojo/node module: dojo/request/registry; plugin: dojo/request/default warn(225) A directory that was scheduled to be read during discovery did not exist. directory: C:/Program Files/Mendix/8.4.0.63076/modeler/tools/node/dojox directory: C:/Program Files/Mendix/8.4.0.63076/modeler/tools/node/dojox error(311) Missing dependency. module: MobileFeatures/MobileFeatures.webmodeler; dependency: dojox Layer Contents: mxui/mxui: mxui/mxui mxui/dom mxui/html/parser mxui/widget/_Button mxui/widget/_WidgetBase mxui/mixin/_Stateful mxui/lib/ColumnResizer mendix/lang mendix/validator mendix/lib/MxContext mendix/lib/MxMetaObject mendix/lib/ObjectValidation big/big dijit/BackgroundIframe dijit/main dijit/Destroyable dijit/Tooltip dijit/_base/manager dijit/registry dijit/place dijit/Viewport dojo/window dijit/_Widget dijit/_WidgetBase dojo/Stateful dijit/_OnDijitClickMixin dijit/a11yclick dojo/touch dijit/_FocusMixin dijit/focus dijit/a11y dojo/uacss dijit/hccss dojo/hccss dijit/_TemplatedMixin dojo/cache dojo/text dojo/request dojo/request/default dojo/string dijit/_AttachMixin dijit/templates/Tooltip.html dijit/_Contained dijit/_Container dojo/cookie dojo/regexp dojo/fx dojo/promise/all dojo/request/iframe dojo/NodeList-manipulate widgets/widgets: widgets/widgets MobileFeatures/widget/MobileFeatures MobileFeatures/widget/plugins/spinner MobileFeatures/widget/plugins/dialog MobileFeatures/widget/plugins/transitions MobileFeatures/widget/plugins/classes dojo/NodeList-data MobileFeatures/widget/plugins/statusbar MobileFeatures/widget/plugins/customconnectionerror MobileFeatures/widget/plugins/advanced dojo/dojo: dojo/dojo dojo/main dojo/_base/kernel dojo/global dojo/has dojo/_base/config dojo/sniff dojo/_base/lang dojo/_base/array dojo/ready dojo/domReady dojo/_base/declare dojo/_base/connect dojo/on dojo/topic dojo/Evented dojo/aspect dojo/_base/event dojo/dom-geometry dojo/_base/window dojo/dom dojo/dom-style dojo/mouse dojo/_base/sniff dojo/keys dojo/_base/Deferred dojo/Deferred dojo/errors/CancelError dojo/errors/create dojo/promise/Promise dojo/promise/instrumentation dojo/promise/tracer dojo/when dojo/_base/json dojo/json dojo/_base/Color dojo/_base/browser dojo/_base/unload dojo/_base/html dojo/dom-attr dojo/dom-prop dojo/dom-construct dojo/dom-class dojo/_base/NodeList dojo/query dojo/selector/_loader dojo/NodeList-dom dojo/_base/xhr dojo/io-query dojo/dom-form dojo/request/watch dojo/request/util dojo/errors/RequestError dojo/errors/RequestTimeoutError dojo/request/xhr dojo/request/handlers dojo/_base/fx dojo/_base/loader Process finished normally errors: 1 warnings: 44 build time: 5.517 seconds

lDAP Java Compilation failed

$
0
0
 Hi, Facing the below after adding below Modules in Mendix 8.2.2. LDAP Synchronization Module Encryption Community Commons Function Library   Buildfile: C:\Users\vijaybir.singh1\Documents\Mendix\Ops Enhanced Reports-main\deployment\build_core.xml compile: [javac] Compiling 41 source files to C:\Users\vijaybir.singh1\Documents\Mendix\Ops Enhanced Reports-main\deployment\run\bin [javac] C:\Users\vijaybir.singh1\Documents\Mendix\Ops Enhanced Reports-main\javasource\ldap\ImportUserRecord.java:488: error: cannot find symbol [javac] List<IMendixObject> userList = Core.retrieveXPathQueryEscaped(this.context, "//" + this.userEntity + "[" + User.MemberNames.Name + "='%s']", username); [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String) [javac] location: class Core [javac] C:\Users\vijaybir.singh1\Documents\Mendix\Ops Enhanced Reports-main\javasource\ldap\ImportUserRecord.java:570: error: cannot find symbol [javac] for (IMendixObject obj : Core.retrieveXPathQueryEscaped(this.context, "//%s[%s=%s][%s='%s']", [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String,String,String,String,String) [javac] location: class Core [javac] C:\Users\vijaybir.singh1\Documents\Mendix\Ops Enhanced Reports-main\javasource\ldap\ImportUserRecord.java:600: error: cannot find symbol [javac] for (IMendixObject obj : Core.retrieveXPathQueryEscaped(this.context, "//%s[%s=%s][%s='%s']", [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String,String,String,String,String) [javac] location: class Core [javac] C:\Users\vijaybir.singh1\Documents\Mendix\Ops Enhanced Reports-main\javasource\ldap\LdapModule.java:91: error: cannot find symbol [javac] Core.addListener(this.listener); [javac] ^ [javac] symbol: method addListener(LdapActionListener) [javac] location: class Core [javac] C:\Users\vijaybir.singh1\Documents\Mendix\Ops Enhanced Reports-main\javasource\ldap\LdapModule.java:571: error: method getUser in interface ISession cannot be applied to given types; [javac] if (username.equals(session.getUser().getName())) { [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length BUILD FAILED C:\Users\vijaybir.singh1\Documents\Mendix\Ops Enhanced Reports-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. [javac] 5 errors Total time: 4 seconds  

Linking Multiple entities and combining them on a single page

$
0
0
Hi everyone, I’m quite new to Mendix, but I’m stuck in building my first app.  The problem is follows: In the figure below the entities I have can be seen: Now, I created a ‘ProjectMaster’ entity with those two details in it. Afterwards, I want to assign different employees to different tasks which are then assigned to the ‘ProjectMaster’ projectNumber e.g..  I’m a little bit lost, I don’t expect a clear answer from everyone, but maybe at least where I should look or how it could be build. Currently, I have a page where you can add a “ProjectMaster” and associate it to a ProjectDetails by a dropdown menu.  I now actually want in the page of the projectmaster a ‘listview’ that listens to the choice and where I can assign different tasks to the project and afterwards assign multiple employees to the different tasks. Thank you all in advance!

Monitor your Mendix apps with Datadog

$
0
0
Recently released: Monitor your Mendix apps with Datadog Datadog is a leader in the Forrester wave for intelligent Application and Service monitoring. Has really useful features if you need enterprise grade monitoring like consolidated logs for multiple applications in one place, and alerts on search terms for your logs.

Get External html files from resource directory

$
0
0
I have a requirement where I am trying to import an external html file from the resource directory in the Mendix application directory. How do I access the resources folder through the HTML Snippet widget to specify the path to file in the html itself?

Link to download archived Mendix modeler

$
0
0
Dear Mendixer, I was trying to download the app DigiD from App Store. But when I tried to search it from Mendix studio pro 8.3, 7.8,6 and 6.0.1, it gave 0 results. The published date of this app is 11/12/2014, so I thought to download old Mendix modeler (a version which was released around the publish date of this app). But in the App Store, I didn’t find a link to download Mendix modeler older than version 6.0.1. So is it possible to get the Mendix modeler version that was released around 11/12/2014?  
Viewing all 83469 articles
Browse latest View live


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