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

Screen Sharing

$
0
0
Hi team, I want to add a feature where I can share my screen with voice. Can you suggest how to achieve this functionality?  Regards, Ankit

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 .   [edit] Added Java code: //Code Start for Environment Map env = System.getenv(); String Output="" ; String Certval=""; for (Map.Entry entry : env.entrySet()) { if(entry.getKey().contentEquals("CLIENT_CERTIFICATES")) { Output = Output + entry.getValue(); } } int Index1 = Output.indexOf(":"); int Index3 = Output.indexOf(","); Certval=Output.substring(Index1+1, Index3); Certval=Certval.trim(); //Code finished from environment //Convert from Base64 to certificates byte encodedCert[] = Base64.getDecoder().decode(Certval); ByteArrayInputStream inputStream = new ByteArrayInputStream(encodedCert); CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); X509Certificate cert = (X509Certificate)certFactory.generateCertificate(inputStream); //Now cert will have the generated certificate String targetUrl = "https://xxx"; //the URL against which the client has to authenticate itself String storePath = ""; //the absolute file path to the keystore containing the certificate String password = ""; //the password of the certificate String alias = "1"; //the alias of the certificate (in PKCS, by default mostly "1") String storeType = ""; //the type of the Keystore (either JKS or PKCS12) try { CertificateKeyStorePair certKeyStorePair = CertificateManager.loadCertificateFromStore(storePath, password, alias, storeType); //the logger of the authentication steps // AuthenticationLogger is an Abstract Class so you can overwrite the Log Method to implement your own logging mechanisms // by default, the Log method will write messages to the default system.out and to a file AuthenticationLogger logger = new AuthenticationLogger(storePath){ @Override public void log(String message) { //--- YOUR LOGGING METHOD HERE System.out.println("OVERRIDE_LOGGING: " + message ); } };      

Documentation appstore module Microflow Scheduled Event Manager

Unable to login "The current license does not allow more users to sign in"

$
0
0
Hi All, i am facing this error while login the app “The current license does not allow more users to sign in.” even when i tried clearing the cache in the browser. Any help would be appreciated.  

Microflow with association between two entities

$
0
0
Hi! How can I create a microflow with association between two entities connected to an external database, as in the example video (from minute 3) https://www.youtube.com/watch?v=20jvsTS8-cA

web pluggable widget javascript

$
0
0
Hello,   I want to implement a javascript file into a web pluggable widget. Where do I put these and how/where to import this into the widget?   Kind regards, Steven Keersmaekers

REST service call to MindSphere

$
0
0
Hello, I have an app on MindSphere which reads data via a REST service from the MindSphere. The response data is then displayed in a time series widget and a data grid widget. The data should have a constant value but in my app every now and then the values are zero.  In the data grid whenever there are zeros as values it looks like the data with these timestamps was sent twice. This happens with running the app locally and when pushed to MindSphere. I’ve added a corresponding screenshot of the data grid with the described problem. The first and last row have the right values. Does anyone have an idea where the zeroes are coming from and where my mistake is? Thanks in advance

DB connector SELECT with an association

$
0
0
Good afternoon everyone, I have an association of two entities in Mendix as follows:  Now I would like to retrieve all these variables from a MySQL query using the database connector:  'SELECT Notification_ID, Triggering, Value, Variable, Severity, Device_Type, Num_Samples, TimeStamp_Creation, TimeStamp_last_update FROM Notifications t1 INNER JOIN Rules t2 ON t1.Rule_ID=t2.Rule_ID WHERE t1.Notification_Status = "ACTIVE" ORDER BY TimeStamp_Creation ASC'   The problem is that every Query returns a List of objects (list of notifications, in this case), but it gives me an error because the attributes “Value”, “Variable”, “Triggering”, “Device_Type” and “Severity” are attributes of the Entity “Rule”, not “Notification”. Advanced stacktrace:     at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:152) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: The entity type 'MyFirstModule.Notification' does not contain the primitive 'Device_Type' as specified in the query.     at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156)   Is there any way I can modify the query to return a list of Notifications, each of them containing a Rule (or vice versa) filled with those attributes?   Thank you!  

Is it possible to export a csv with a specialization from the Account entity?

$
0
0
I was trying to export a csv from an input object whose 2 of its columns were refering to a specialization of the Account entity, but everytime I select an attribute from the specialization entity it crashes and brings up the following error:    Caused by: com.mendix.datastorage.handler.QueryHandlingException: Entity 'General.Employee' is not a generalization nor specialization of entity 'General.ArchivedRegistration' while traversing association 'General.ArchivedRegistration_Account' from 'a0cb15828' and can't find entity by name 'a0cb15828' in domain model and can't find association with name 'a0cb15828' in entities 'aee294b26' (alias for 'General.ArchivedRegistration'), 'a0cb15828' (alias for 'Administration.Account') while parsing path 'a0cb15828/General.ArchivedRegistration_Account/General.Employee' But the employee is indeed a specialization of the Account entity.. Does anyone have any idea of what it might be or how to bypass this without having to write the attributes I need on the Account entity?  Thank you in advance

Documentation / Best practices appstore module Microflow Scheduled Event Manager

$
0
0
Is there some more documentation available for Microflow Scheduled Event Manager ? Who is using the module and what is the experience? First questions: You cannot download it to include in directly your 8.9 project. So I first I downloaded Scheduler_v1.4.0_8.3.0_20191118.mpk on my file system and  opened it using the 7.23.7 modeler, but there it says  However you can import the downloaded module from your filesystem into the 8.9 project, so that is what I did. I expected the imported module to appear in the App Store module node in my project, but it appeared as a (regular) module in my project, is there a way to change that? The documentation is not very clear to me, I tried several things , but I don’t have a clue of what I am doing, other than creating actions, refer to a microflow and add schedule info.  What are scheduler runtime instances and what can/needs to be configured? I see Maintenance, Restart, Delete buttons? What is the difference between a job and an action. On the job status page , the Evaluate button? On the Actions page, the Schedule and the Stop button?  I assume this is a great module to be able to maintain scheduled microflow info in a running system in order to replace the Scheduled Events in the Studio, right? What we learned from using scheduled events maintained in Studio, is that you need to stop/start the application in order for the changed schedule to become active Any feedback of best practices / experience with using the Scheduler module vs scheduled events in Studio is appreciated.

Best approach to backup data from an on-premise application to cloud

Best approach to backup data from an on-premise application to cloud

$
0
0
Hey all,   We've currently got 2 types of apps running for a customer. One app that's in the cloud which stores master data and retrieves analytical and operational data from the second app. This second app is running on-premise on multiple plants. Each of these plants use some parts of the master data and also have their own operational data and personal (default) settings. The master data app in the cloud is using the a regular backup method. For the ones in the plants (on-premise) this is not an option. We would like to make an event that makes a backup of all operational data of all of these plants every day, and uploads this to the central master data app. After backing up this data, it should then be possible (in case of a loss of data) for another service to then retrieve this data from the central app and re-install it into the on-premise on that's lost it's data. The re-installment of this data would then not only include the data itself, but also all of the associations these records once had. In order to make this happen, we thought it would be nice to have one table that records all GUID's of the owner and the child of all relationships . This way, we can use these GUID codes to re-install them when we get all the data back into the o-premise database. However, we've never done something like this before and would really appreciate some thoughts or even perhaps some examples from people who've already faced a certain case before. All questions and/or feedback would be great! Thanks in advance.

OpenId support

$
0
0
Does Mendix have any module or possibility for integration with an external authorization service based on OpenId? For example Forge Rock. Is there a chance to rework Mendix SSO module to use external authorization, if there are no othOpenId auth modules?

Datetime Variable Creation

$
0
0
Hi All,  I have a scenario that need to create a date time variable with fixed month and day (31/12) and the year is stored in another int variable, Any one has any idea? Datetime function couldn’t be used since i have the year value in a variable.   Any ideas?

Wordpress API Consume

$
0
0
Hi all! I'm trying to consume the Wordpress REST-API  and everything works according to plan, except for one thing: Property names in a JSON structure can't contain the character ‘ : ’. However, the wordpress api contains a property named ‘wp:featuredmedia’. Thus, the field is not mapped to the correct attribute. Does anyone know how I can overcome this and correctly map the unsupported property? Thanks in advance!   

Custom Export to Save Location - Excel Exporter Module

$
0
0
Hi Mendix folks out there. Is there a possibility to export the excel file and save it to a custom location on your desktop. Do we have an explicit “save as” option in Mendix?

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?

Datagrid search bar doesn't work on external SQL database data retrieved with Database Connector

$
0
0
I have done a SELECT * FROM [view] This works fine until I want to use the Datagrid search bar to search for a specific ID. When I click search, nothing happens. The search button should call a Nanoflow which is auto-generated by the Datagrid to filter the results inside the datagrid itself. I don't receive any errors or messages in console when clicking the Search button, nothing seems to happen at all. Data doesn't get filtered in the Datagrid. How do I filter / search for data inside a datagrid/dataview/listview when I use Microflow to retrieve external database data?

intro screen widget auto hide after app starting

intro screen widget auto hide after app starting

$
0
0
greeting everyone  I use intro screen widget in my mobile app how to make it disappear automatically when my app starts thanks in advance 
Viewing all 83469 articles
Browse latest View live


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