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

XPath constraint not working for selectable objects

$
0
0
Hi everyone, Is it possible to do an attribute comparison when using xpath in the selectable objects option of a reference selector?  So I have an entity called ‘Request’ and I set an attribute called ‘Team Code’ to a string (say CM01).  I then have an entity called Users and these all have an attribute called TeamCode where some have CM01.  I have an assoication between these 2 entites. I’m trying to return the users that have the same TeamCode as the attribute in ‘Request’.   I know that I can bring back the list of users I want if I do something like ‘TeamCode = ‘CM01’’, which is me hardcoding the CM01.  But this will change depending on who is logged in.  So if I set this value in the ‘Request’ Attribute, I want to do: [TeamCode = WebApp.Request_Users/WebApp.Request/TeamCode] This doesn’t appear to work at all.   The reference selector is pointing to right datasource which is WebApp.Request_Users/WebApp.Users/WebApp.Users.EmployeeName  (EmployeeName is actually what I want to appear in my reference selector list) I’m using  a Page Parameter of Request and a Snippet that has an entity of Request. Is it possible? EDIT: I'm not using the Administration.Account object.  The Users entity is one that I have created.  They are different modules in the project, but my account  that I am logged in as has full read and write access to the data.

Dropdown/refselector repeats values

$
0
0
I have Dropdown/refselector in a page that uses a Microflow to filter selectable objects. Let’s say the filtered objects are only 4 but those 4 keep repeating in the dropdown until the size of 13 or so. Instead just displaying 4. Is this a bug or is there a setting I need to tweak.

OQL with XPath constrain

$
0
0
Hello  buddies,   I am using OQL of datasets, I tried to construct an where clause using XPath, but I always got compilation error. Input parameter is an object, Please reference my snapshots.  Could anyone help me on it? Thanks in advance.  select      c.ID MendixId,     c.Name CustomersName,      count(o.TotalPrice) Ordercount,      sum(o.TotalPrice) TotalSpent from Sales.Customer c join c/Sales.Order_Customer/Sales."Order" o where  c.Name=[$Customer/Name] group by c.ID,  c.Name;  

Search content in the files (attachments)

$
0
0
Hi Team,  I need your help in understanding how effective is the search capability WRT to finding search strings in the files attached.  how scalable is it and how good is indexing capabilities WRT to files. Thanks    

HTML/JavaScript Snippet

$
0
0
This widget is not much reliable as it is difficult to predict when code placed inside this would work or when it would not. Say suppose i want to execute the code inside this snippet only after the data is loaded from data view . How do i make sure to this only after all the data is loaded? Is there a way to debug the code placed inside this?

Reason for error - Batch update of sessions that should be kept alive failed , com.mendix.connectionbus.ConnectionBusRuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: The connection is closed

$
0
0
We are getting this error frequently in production environment. Does anyone know the root cause of this.

how to show changes made in mendix studio in mendix studio pro.

$
0
0
i develop project in mendix studio now when i open this project in mendix studio pro it does not shows changes made in it...how o do that?  

Mendix Optimistic locking as data exclusion control

$
0
0
What kind of method does Mendix use for optimistic locking as data exclusion control? More context: Is optimistic locking should be done by preparing the items with the common update count in the Entity, but if you pass a parameter from the screen to Microflow, the parameter value will be updated with the latest value of the Entity. Unfortunately I cannot compare it with the number of updates  that have occured.

Validation Feedback Javascript

$
0
0
Hi Forum,   Is there a way to implement Validation Feedback into a Javascript action?

Login Snippet vs. Login Page / password peak

$
0
0
Hi everyone, both, the normal login page and the deep link login page have a login form that allows users to demask a password once they click on an eye glyphicon. I’d like to have that in my standard password input field … should not be super difficult but I need someone to direct me to the right approach… Thanks, Boris  

Environment variable in mendix

$
0
0
Hi All, I am working on an application where i have some certificates stored locally which we are using to authenticate our session(BY JAVA CALL) before calling services . However now as our application is on Quality we have stored those certificates on cloud environment , I want to p”ass those certificates directly from environment so others can also use the application with those certificates without storing them locally on every system and then passing the path in java code .  I am using “ System.env(“CLIENT_CERTIFICATES”) ” but i am getting error as :   com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156) Caused by: java.lang.NullPointerException at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) Caused by: null   Can someone help me what is this issue represent ? or is their any way to fetch those certificates .      

redirecting to page URL after SAML/SSO login?

$
0
0
I have a URL /mypage configured to a page in my app. When  I give this URL to a user https://myapp.com/p/mypage .. the user rightfully gets redirected to SSO login page but instead of going to /mypage the user lands on home page of the app. How do I configure SAML module to honor /p handler and get it to /mypage after user logs in.

Display data in Table

$
0
0
Hello , I have a string type attribute in an entity , the value  stores is in the format  A,B,C D,E,F The number of rows are dynamic and columns are fixed . I want to display the data in table format , with number of rows increasing with the data has more rows. Can someone help we with this 

Memory management when changing the visibility between two data widgets using a switch without a microflow

$
0
0
Hello everyone, I am developing a project in which a page requires conditional visibility between two different data widgets using a switch. I have implemented in a way where the domain model has an entity called “CondVisibility” with an attribute called "ListView” which by default is a true boolean value. The page that requires the conditional visibility contains a switch, a data grid and a template grid. When a user accesses the page, the CondVisibility object is created. Navigation shown here: The switch changes the value of the ListView bool when toggled: According to this, data is displayed either using a data grid if the value is true or a template view if the value is false:     My question is- is the object that was created deleted each time the user navigates away fro the page? That does not seem to be the case here since a data grid that is configured to show ListView objects doesn’t show any even after accessing the page many times. It was brought to my attention that this would usually be done using a microflow that checks if the object has already been created first to avoid creating an excess amount of objects.  

How to get application stats

$
0
0
Hi team, We would like to get following adoption stats at application and then aggregate to consolidated view at platform level. New to Mendix so looking for community support to get some hints. Pls. advise. Total number of hits Total number of records Trend analysis of records Demographics of records (preferably via Google analytics) Any preferred ETL tool for overall data consolidation at platform level

Add Custom javascript togglePassword in Loginpage in the module Forgot Password

$
0
0
I used the forgot password module and made a custom login page.  I want to used de blinkin eyes as in the default login.html with the togglePassword javascript function. Have some a solution for this?          

Default background on template document

$
0
0
Our customer uses a Mendix app to produce output with Microsoft Word (using Templates and Generate Document). They requested to add an default background image in the (Word) template, almost full page (A4) instead of using custom paper in the printer (reducing costs). How to achieve this?

Search content in the files (attachments)

$
0
0
Hi Team,  I need your help in understanding how effective is the search capability WRT to finding search strings in the files attached.  how scalable is it and how good is indexing capabilities WRT to files. Thanks    

HTTP Error 500 when running Mendix App locally

$
0
0
Hello, In our project we currently have the problem, that some developers run into a HTTP ERROR 500 when running the app locally and viewing it in the browser. In our project we are currently working with Mendix 8.8.1. We tried to compare the following between my machine where it works and the machines where it doesn't. None of it helped. Comparing the Errors in the Mendix Console when running locally. Yes there is an error, but also on my machine, where it works perfectly (see screenshot attached) Comparing the complete project settings (esp. Runtime, Anonymous users and security. They are all the same. Trying with different branches and rolling back to older versions Setting breakpoints in the microflows which are used after startup (Esp. in SiemensEntitlementSSOIntegration.ASU_OpenIDConnect_Start since we use the Siemens Entitlement Module. We assumed the problem could come from this module, but we could not link the Error 500 to any called microflows.) Comparing Firewall settings   Since we couldn't figure out what exactly causes the Error 500 - Is it possible to access logs of the local server which could contain further information? What could be another approach to find the cause for this error?   Thank you for any hints!  

Data persistence issue in mendix application which deployed in mindsphere

$
0
0
HI All, We have created persistable entity in domain model and created overview page for same entity in mendix and we deployed it into mindpshere using cloud foundry, then created application in mindsphere to view page created in mendix .we were able to see the mendix application in mindsphere.And also we tried to insert data into Mindsphere postgres database using the overview page.After Some time When we refresh the page data is getting automatically erase.  Kindly provide solution on above issue.
Viewing all 83469 articles
Browse latest View live


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