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

BOX integration

$
0
0
If you have some material on Box integration, please share with me. We are looking for server - server integration.   Regards.

Testing Hybrid Tablet App Online - switches to Responsive navigation

$
0
0
Hi, I'm currently testing a hybrid tablet app online profile. When logging in I''m correctly routed to my tablet home page. But when I trigger a microflow with a 'Show home page' action I'm not routed to the tablet homepage, but to the responsive home page. Am I missing something or is this intended behaviour? From documentation The ‘Show home page’ action navigates to the home page for the current user. It goes to the same page as you go to after signing in and respects role-based home pages.  

Access rule for my entity does not work after deploying to cloud

$
0
0
I have an entity with access rule configured. It works fine when I test it locally. Security level set to production. But, after deploying to cloud environment the access rules do not work for the entity. Strangely it did not work when deployed first, then worked for a few hours yesterday and then stopped working again. What could be the reason for this? My app is offline enabled if that somehow required a different setting.

Access rules and Xpath constraint after deployment in Windows environment

$
0
0
Access rules and Xpath constraints set in the model work fine in a local environment. After deployment to our own (windows) cloud environment the access rules/Xpath constraints no longer work properly! Example: on account we have set the constraint [id='[%CurrentUser%]'] so that users can only see and change their own account. This works fine in a local environment with a SQL database. After deployment the Xpath constraint no longer works! How is this possible?

Filter for List

$
0
0
Whats the best way to create selectable filter options for a list?

Tika library for file type detection - cloud security

$
0
0
Im using the tika library for file type detection and get the following error only with cloud securety enabled: java.security.AccessControlException: access denied ("java.util.PropertyPermission""tika.config""read") How can I make this work with cloud security enabled? Thankyou

JSON mapping add NULL filed instead of absence

$
0
0
HI, Is there a way to set the mapping so that if a field is null, we have the 'field":NULL, instead of the filed not in the json?   Thanks Shannon

index.html redirecting to login.html for no reason

$
0
0
Hello, I am designing a bucket list app for a class of mine. The goal is to have anonymous users who can create accounts and then sign in with those accounts. I had a version of this working (in FireFox and not Chrome, but that was fine) but something my group or I did messed everything up. Currently when I run the app locally it displays a Mendix 5 login page, which I cannot figure out how to undo. When running in the cloud one of two things happens: (1) the homepage is displayed but the loading bar in the center of the screen continues and I can click on nothing or (2) the page continually refreshes, sometimes showing the homepage and then a white page until I exit.  I am at a loss as to the reasons behind this, and have scoured the forums for days trying to find a solution. If you need more information about the app just ask and I will respond.  Edit: Here is a LINK to what the Chrome console looks like when running from the cloud

403 error calling OData service from Mendix 'CSRF token validation failed'

$
0
0
Hello everyone, I am trying to call an OData service with a method POST, but I am getting a 403 error. First here are the other resources I found which helped a lot understanding the issue, but it's still not solved: https://docs.mendix.com/refguide/call-rest-action https://docs.mendix.com/howto/integration/consume-a-rest-service https://forum.mendixcloud.com/link/questions/62212 https://forum.mendixcloud.com/link/questions/82512 https://github.com/mendix/RestServices#rest-functions-overview https://www.mendix.com/blog/consuming-first-rest-service/ http://www.auraq.com/2017/01/09/an-example-of-using-restful-services-in-mendix-with-the-dropbox-api/   So to be able to use POST, I need to use a GET method first adding the header parameter "X-CSRF-Token = Fetch" to retrieve the token and pass it back to the following POST method. This is working great in Postman. However, when I try to do the same in Mendix, I am getting an error 403 on the POST Method. I tried using the Mendix "standard" Call REST activity, which works great but does not let me retrieve my the token from the header in the response of the GET call. I understand there is a session CSRF Token in the Mendix runtime variable "$currentSession/CSRFToken" but it does not seem to be the one from my Service, I tried to use it, but I got the same error. So as recommended in another forum discussion, I tried to use the Module RestServices from the App store, using it I am able to retrieve the token from the REST response header. I tried to pass the parameter "X-CSRF-Token" in the request header of the POST message, as I do in Postman, but the token I got from both method explained above was still getting me an error 403. FYI, when I use RestServices to get the token in the response header, the value of that token in different from the value of the runtime parameter "$currentSession/CSRFToken". For the Post method, I also tried both the Mendix "standard" Call REST activity and the java action "postWithResult" from the Module RestServices, passing the custom header parameter "X-CSRF-Token". In both cases I get the 403 errors, the log is a little different, I can actually get the following detailed message when I use RestServices: "Response status: 403 Forbidden, ETag: null, body: 'CSRF token validation failed'". Last but not least I checked my parameter syntax many times to be sure it was not the issue. So anyone here would have an idea where to look next? Thanks in advance, Seb

customize header row of a datagrid

$
0
0
Hi there, I am thinking that to show some data as follows. Since datagrid widget cannot display multiline for a header, I tried to use a table (to display the header) and templateDatagrid (to display the data) as follows.   But I don't know whether this implementation is good or not... I would like to know other solution of this. Does anyone have any other idea? Thanks in advance! Satomi

BOX for Mendix

$
0
0
Has any one used this connector yet? I am struggling to set up the app as don't see much documentation. Looking for some help in establishing the connection between tow apps. I have app created in BOX for Mendix and have client ID and Secret  but really not sure about the redirect URI etc.   appreciate any help!

Login Page microflow

$
0
0
Started mendix a while ago. Just wanted to create a login page, can anyone suggest how to create microflow for that. Users are stored in external database. 

com.mendix.webui.WebUIException

$
0
0
Good day all Sometime I get the default Mendix error message and the following in the console Log level: error Log node: connector An error has occurred while handling the request. [User 'name' with session id 'a5a84e91-ed8d-4afb-8498-xxxxx' and roles 'RoleA'] com.mendix.webui.WebUIException: Received request with schema id '36c24136-67d7-408a-xxxxxxxxxxxxxx' but this schema is unknown on the server.    at com.mendix.webui.internal.WebUIImpl.getSchema(WebUIImpl.scala:64) The schema ID is always the same. I've blanked out the last bit. It doesn't consistently happen and I can't quite figure out how to recreate it. It only happens when I open one particular page from my app. It seems like a UI issue and the page does have quite a complex design. Can anyone point me in the right direction to fix this? Thanks

Odata: expose many to many relation not possible?

$
0
0
Hi all, I thought publishing OData is straightforward, but now I'm stuck. I just want to expose a *-* relation. I found this forum post from 2 years ago where the answer is: it's not possible. Is this still true? Is there a best practice or a workaround for this issue?

handle large data using template grid

$
0
0
so i have a list of data nearly 2000+ rows and am using a template grid to show this data. since the list is huge, this form is getting loaded slowly. is there any option to show only few rows at first and using paging buttons i retrieve next list of data?

One Grid with all the functions of the Datagrid, Datatable, dataGridExtension widget, dataGridColumnSearch widget, some of the inline editing properties of the template grid and the list view. 

$
0
0
One Grid with all the functions of the Datagrid, Datatable, dataGridExtension widget, dataGridColumnSearch widget, some of the inline editing properties of the template grid and the list view.  We have created a food and beverage management application that aggregates point of sales information for companies that have more than one site.  At the moment we use all of the above widgets but it would save alot of time if we could have one widget that could do 90% of the things that we need e.g if we want to have inline microflow buttons we use a listview or template grid but then we cant sort if we click on the headers, but on the other datagrids you can. We could use the datatable then but that is not supported anymore and the search and excel export works differently and you have to create a context entity. We want our front end to be standard and all the grids to have the same functionality so we don't frustrate our users. We are currently using work arounds to make the grid functionality almost the same but this takes time and makes Mendix not that fast anymore.(We love Mendix don't misunderstand me) Would it be possible to have this? All of these functions already exist in one or other widget but not in just one that is supported by mendix itself.

About loops in Microflows

$
0
0
Hello, In Microflows, you can create loops by putting a back edge without putting a loop structure explicitly. As I understood, the code at the back transforms to Java source code, but, in Java source code, you cannot create such a loop since there are no explicit GOTO statements in Java source code (They are only available at bytecode-level). I wonder how such back edges are transformed to Java. Thank you.

Mendix Mobile Login

$
0
0
hi, i would just like to enter password while i am logging into a mobile mendix app. any ideas on implementing it ?   I am trying to use the mobile device widget in order to achieve the same.

When File Document is removed it's folder still lefts at file system

$
0
0
When I delete File entity, inherited from system.FileDocument file placed by default at deployment\data\files\..\.. is deleted, but folders where it was are still there (1b\a1 for example) . It's doesn't affect memory usage, but still looks kind of messy to me. Can someone, please, tell me why is it done like that?

Core.getActiveSession deprecation after mendix 7.6 , how to use the XPath replacement?

$
0
0
https://docs.mendix.com/refguide/moving-from-6-to-7 mentions: getActiveSession(String userName)Use an XPath query on the session table instead. getActiveSessions()Use an XPath query on the session table instead.   How do I replace this with an equivelent XPath query as stated in the mendix 7 documentation? XPath.create(getContext(), Session.class) doesn't return ISession   
Viewing all 83469 articles
Browse latest View live


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