Mendix Meets Okta: A Guide to Single Sign-On Integration
Discover how integrating Okta Single Sign-On (SSO) with Mendix enhances security and boosts user convenience. This guide walks you through the key...
Explore the power of integrating Python with Mendix to create a unique dictionary that speaks word meanings aloud, enhancing user experience and accessibility.
What do we need?
In this blog, we will explore the steps of integrating Python with Mendix to achieve the Required Result.
Download and Install Python 3.8 or above.
Mendix 10.00 Version
Community Commons Module
Encryption Module
Autoload more Widget
Step 1: Using Python IDE, implement the logic using Py Dictionary where it displays the meaning of the Word.
Step 2: Create two entities with the name ‘Text’ as Persistable Entity and ‘User word’ as Non-Persistable Entity.
Step 3: Create a Java Action with the name “Dictionary” and mention the input and output parameters as in the below image. Here we are creating a constant as “File Name”, through which we are passing our python file “test.py”.
Java Action “Dictionary”: We are passing two parameters to the Java action and returning the meaning of words as string.
Step 4: Create a Microflow (ACT_ Retrieve Meaning) to call the Java Action and we are retrieving the Meaning in the form of a String, so we are splitting it using Split Java action which is reusable and implemented in Community Commons Module.
Step 5: Create a Nanoflow which retrieves the ‘List Of Words’ and uses Text to Speech JavaScriptAction to speak it.
Step 6: Here, we are implementing Different Features like “Speak” button which allows the user to speak the word and “Stop” button to stop Speech Synthesis. And “Reset” button to reset the displayed data.
Speak Button: Create a nanoflow and JavaScriptAction to implement logic for speak functionality which captures the voice of User.
Nanoflow for Speak button: When the user clicks or activates the Speak button, it allows the user to speak instead of typing and then it captures the voice of user and displays the meaning.
Stop Button: Create a Nanoflow and JavaScriptAction to implement the logic to stop the speech synthesis.
Nanoflow for Stop button: When the user clicks or activates the stop button, It works like a barrier to the speech synthesis i.e. when the user does not need to listen to spoken words, this logic works perfectly and stops the speech synthesis.
Reset Button: Create a Microflow to implement the logic for resetting of data which clears the recently displayed data.
Microflow for Reset Button: When a user clicks or activates the reset button, it triggers a predefined action that typically involves clearing memory.
Microflow ACT_ Retrieve History: This Microflow runs automatically when the main page loads and it displays all the previous data retrieved by the user.
Finally, the Main page where we implemented all the logics. Create the blank page, set the layout to “Responsive Layout Certificate (Encryption) “and drag the data view and connect it to “User word” entity and inside data view drag the list view and connect it to the microflow called “ACT_ Retrieve History" which displays the previous data the user has searched for. And Add “Autoload more” widget below the list view to display previous data.
Discover how integrating Okta Single Sign-On (SSO) with Mendix enhances security and boosts user convenience. This guide walks you through the key...
Integrate your Mendix business application with Square Payment API – a robust payment solution that automates financial transactions for your...
This latest guide explains how to seamlessly integrate Mendix data with Tableau dashboards. It also outlines step-by-step techniques for enhancing...