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

Custom domains - do you use internal or external domains for this?

$
0
0
In Mendix Applications you can set up a custom domain. This is done using the cname DNS entry. So if we use a public sub-domain for the applications like myapp1.xxx-yyy.com, the users can easily open this application in the browser and they benefit because offollowing: The application belongs to our company – based on the domain and based on the SSL certificate (No phishing app mimicking the frontend) There can be an easy pattern to memorize – myapp1.xxx-yyy.com, myapp2.xxx-yyy.com , myapp3.xxx-yyy.com etc Later if needed its our company that can re-route the users to a new application because of the domain name managed by us.   But – for potential hackers the public domain can be visible and can enable invetorisation of the applications from ourside.  This may have security implications and there are concerns in this area.    Therefore the question – is it possible to use only internal domain names as a custom domain,  those that are not publicly visible in the Internet and used only in INTRANET? Example. “http://myappl1.intranet” ?  Is there any general recomendation for this?     

When made multiple REST requests, the API receives the requests in batches of 2 request at a time.

$
0
0
Hello, We are using a 'Call Rest’ activity in microflow to make a REST request to an API. As a part of Performance Testing, we made multiple REST calls using this microflow via different user sessions but we could observe that the requests are received at the API end in batches of 2 requests at a time. To narrow down the issue we tried following: Created 4 copies of same microflow and triggered all 5 microflows via single user session. API received all 5 request at once. Is there some configuration of microflow which is applying this limit or this is because of any license limitation?

Hide keyboard on mobile device

$
0
0
I have an input field on a page we use on a mobile scanning device. The input field is filled by the device when we scan a bar code. To do so the input field needs to be focused.  There is an HTML snippet on the page which automatically puts the focus in the input field.  The downside of this solution is the keyboard, that's triggered automatically when the focus is on an input field.  Does anybody know how you can overrule or hide the keyboard?

Deleting an object in a listview that contains a DropdownDivConvertor Mendix 8 - access errors

$
0
0
As in title – when deleting an object that is displayed in a listview, with a DropdownDivConvertor present in the same listview, I get various errors (some buttons are hidden based on attribute values) telling me the object is not accessible. Removing the dropdown div convertor from the listview fixes all issues. Does anyone know how to fix this behaviour? Our client really likes the dropdown :)

App fails to deploy on cloud

$
0
0
Hello Everyone, Every time I try to deploy my app on cloud it gives the following error: “An error occurred while deploying your app to the cloud. Visit the developer portal to see the status of your app.” In the past I used to have this error but it usually goes away after 1 or 2 tries. This time it is consistent. Any suggestions? Best Regards, Puneet  

Microsoft Graph - Retrieve/Write to sharepoint online list

$
0
0
Hi , I would like to use Microsoft Graph in order to retrieve data from my sharepoint online list and then update it within my Mendix app.  But I don’t know how to manage it, how can I display list data into my mendix application ? How can I manage permissions in my application regarding to users permissions in my sharepoint online ? Could anyone help me and provide more details about it ? thanks in advance,

Create a list from a set of variables

$
0
0
I’d like to create a list. And the dimensions are defined. How do I fill the content of the list from another Object? For example, list #1 has 5 columns and object #1 has 10 variables. I’d like to fill the 5 columns from object #1. Thank you  

How to change the style of an element dynamically?

$
0
0
Hello, What is the best approach to change the style of the element dynamically in Mendix?  For example, I have a container and a button, after the user clicks on the button, the background color of the container should change and some elements inside of it become visible. Is it possible to make it using microflows? For example, is it possible to assign a different custom SCSS/CSS class to the container after the user clicks on the button? Thank you in advance!

Import Flat File

$
0
0
Hello everyone – I see various app store widgets for a flat file importer (my flat files are delimited by ^). However, those widgets are only available in an older version of Mendix. Since I’m on 8.1.0, is my best option to wait until Mendix or the widgets upgrade to that later version?

Mendix 8 - Redirect from request handler

$
0
0
Did something change in Modeler 8.x w/ how redirects happen in request handlers? I used to be able to use the following code in 7.x but in 8 it just stays at the url of the request handler being called. // Redirect to home page Core.execute(mSession.createContext(), "System.ShowHomePage");    // Redirect to login page response.setStatus(IMxRuntimeResponse.SEE_OTHER); response.addHeader("location", "index.html");  

Get local date in a background job or; how to use executeMicroflowAsUser_1

$
0
0
Hi, Here my situation: When the user submits a page on his mobile, a PDF and email has to be send. This takes quite some time and we don't want the user to wait for that. So that is all put into a background process using the CommunityCommons ‘executeMicroflowInBackground’. Works all nice except for one thing; the date that is “printed” in the PDF is using (of course) the UTC date and not the date of the user. I have tried to use the ‘executeMicroflowAsUser_1’ but somehow the object that is past is always empty. So my questions are: 1-How do I format a printable date in a process that is running on the sever, without “real” user? I can get the user(name) in the microflow, but how to use it in the format? I currently use formatDateTime($DatumTest/DateOnline,'dd-MM-yyyy HH:mm') 2-How to use the executeMicroflowAsUser_1 so that is using the passed object as argument. Thanks in advance for any help. Here is screenshot of my simple test:

Attribute Storing Another Attribute Conditionally

$
0
0
Hi – I’m trying to add an attribute (say Attribute3)  that stores the value of another attribute (say Attribute1 or Attribute2) conditionally. The logic would be: if Attribute1 is blank then save the value of Attribute2 into Attribute3 else save the value of Attribute1 into Attribute3 How can I best accomplish this? I’ve searched the forums and have seen microflow and enumeration. Not sure how best to put this into practice.  

Display many to one relationship in a data grid

$
0
0
I have two entities, Employee and Phone. There are multiple Phone objects associated with a single Employee, i.e. (1)Employee—(*)Phone. I need to display the Employee’s first name and last name and the phone number of the employee’s cell phone in a single data grid. The data grid needs to have all the basic features of a Mendix data grid - that is, the data grid needs to be sortable and searchable. Additional info: the Phone entity has an attribute called PhoneType. This attribute takes on the possible values ‘Home’ and ‘Cell’.

Example of a microflow that adds data to related entities

$
0
0
I am new to Mendix, I would like to create a Microflow that adds a record to a table and then also creates an associated record in the second table. For example: Recipes and Catalog are the two entities.  There is a one to one relationship between them (title).  So when I click  or "Add" from a view I want only one page to open that the user enters information into.  When completed the user clicks the 'Add' button.  A Recipe record is created and a Catalog record (associated) is created then the page closes. My though is that I could create two Sets (one for the Recipe) and another for the Catalog entity.  Then I would commit them and close the page.   Any assistince would be greatly appreciated.

Preventing Duplicates

$
0
0
Hello.  I am brand new to this platform and struggling with a few things so please bare with me on what may be obviously simple. Scenario: I have a MF that retrieves a list (emails from Exchange) into a non-persistable entity.  I originally wanted to then write conditionally these objects to a persistable table (condition is does not already exist via unique ID and has a matching value on a single attribute to another entity).  Anything with Commit or Create (in a loop) in the MF I could not figure out how to infer to write to the persistable table as it is not part of the MF.  Instead I changed the non-persistable entity to a persistable entity. Figured an association to the table with a potential matching value would handle one of the above requirements and adding a validation rule on an attribute for unique would handle the duplication issue (only want it to keep newly fetched emails, not ones that have already been stored) .  What occurs is the validation error is triggered and the entire commit is aborted.  Having a function that allows the keeping of uniquely retrieved objects I would think would be basic but for the life of me, cannot figure it out and thinking perhaps I am going about this entirely wrong.

How does getresponsecookies work in Mendix Stuido Pro 8.0 since RestServices module is not supported nor required anymore?

$
0
0
I have a rest service that I need to consume. The login would return some cookie parameters. One of the cookie needs to be retrieved and presented in later transaction as httpheader. Parsing “set-cookie” headers is tedious since it normally contains multiple keys. Thanks!

Add Records To Associated Entities From Import

$
0
0
Hi – I’m trying to add records from a file import to associated entities. I saw this post https://forum.mendixcloud.com/link/questions/85692 that explains how to do it on an individual record basis, but in this case I need to do it from a flat file import to see if new records are imported, and if so, add records to associated entities. How can I accomplish this in a microflow, and more important, where can I trigger it (ideally via a button on my Navigation)? Example:   I am importing into an “Archive” entity from a file import For any records in “Archive” that don’t exist in associated “Accounts” entity, add records to “Accounts” entity   Thanks for any tips … I have been searching the forums and studying the tutorials but am a bit stuck. In Microsoft Access, I would do this via an “append” query. Not sure how to do this in Mendix.  

Filter a drop down list

$
0
0
I have the following entity model:   An employee may work on different projects but not all employees work on every project, thus there is a select few employees who can be chosen to work on a task. In addition, employees who have worked on a project in the past, may no longer be working on the project.  Therefore, in the list of employees to work on a task it must show only employees that are associated with the project that are active.  I currently have an input reference set selector inside of a data view attached to the task entity. I have attempted through microflow and Xpath constraint and not entirely achieved my goal – the XPath Constraint : “[MyFirstModule.ProjectMember_Registration_Employee/MyFirstModule.ProjectMember_Registration]” returns only employees that are assigned to any project but it is not limiting them to the task’s specific project, nor the people assigned to the project. Thanks in advance for your help!

Designing mendix profile menu for my application who the current user logged in

$
0
0
Hi I wanted to design profile avatar for my application.. In this scenario I have used “Mendix profile menu”,but how to pass the current users data into that profile menu. Also I wanted to design the avatar profile to the right of my application. Required your suggestions and ideas.

Javascript Action - Iterate List of Lists (MxObject[] inside another MxObject[])

$
0
0
Hi Team, I have MxObject[] called rowList which contains another MxObject[] called valueList[]. I am able to iterate the rowList and got the valueList. var valueList = [];     for(var i=0;i<rowList.length;i++){         valueList = rowList[i].get("CompareDOE.row_Value")     } I am not able to Iterate the valueList as it is printing the GUIDs only. Can you please provide me an example to iterate valueList[] and get the values.
Viewing all 83469 articles
Browse latest View live


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