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

How to pass list to custom widget / how to create custom list widget?

$
0
0
How do I need to configure the widget.xml to get a data source configuration – just as the list view, for example – so that the custom widgets receives the list of Entities? I tried something like <property key="entity" type="entity" isPath="optional" pathType="reference" allowNonPersistableEntities="true" required="false"> <caption>Data</caption> <category>Data source</category> <description>List</description> </property> but I cannot select children entities when the custom widget itself is in a data view:   What I want is to have the same options as the standard list view: Ideally, I would have the same options “Database”, “XPath”, … with the same functionality. I found no examples and documentation to solve this requirement. Any hints or ideas? I am using pluggable widgets and Studio Pro 8 beta 2.

Total no. of users created on perticular date.

$
0
0
Hello all,   I want to display date and total no. of users registered on that date where I have given date as current date for registration. so how to write microflow for that?

saml2-error-result - Try Again alternative

$
0
0
We have implemented a custom SSO extension which checks for the existence of a certain claim. If the claim is not present the user sees the saml2-error-result. That page offers a Try Again option which cycles the user back through the SSO process using the same user account.   I need to provide an additional option to the Try Again option which will permit the user to enter a different credential. I have attempted to redirect to the original application url but the flow gives an error saying the SAML response can not be empty. What is the best way to redirect the user to allow them to enter an different credential in this situation?       

Offline Hybrid App SSO -

$
0
0
I am running a hybrid app on an android device. When I go into airplane mode I receive a ERR_INTERNET_DISCONNECTED message when I try to open the app.  The app is attempting to load https://xxxxx.mendix.cloud.com/SSO/.  I don't get sso issues on he android device  when online. I believe I have followed the following instructions properly(https://docs.mendix.com/howto/mobile/implement-sso-on-a-hybrid-app-with-mendix-and-saml.) This was working fine before the SSO was implemented. I must be missing something but not sure what that might be. Thanks for your help.        

Google reCaptha is causing issue in Cancel page

$
0
0
 I am using Google reCaptcha in application login page,showing login button if Recaptach validated ,it is working fine during login but while doing Cancel between any pages it is giving error below error.In cancel button doing verified Boolean false and calling Login page again.    Error while applying context Error: Customer.Customer_EntryPG.dataView1: Error while applying context Error: Customer.Customer_EntryPG.reCaptcha1: Error while applying context Error: Customer.Customer_EntryPG.reCaptcha1: Error while applying context TypeError: Cannot use 'in' operator to search for 'innerHTML' in null . Please suggest any workaround.

Accessing the mendix database in mendix cloud

$
0
0
Hi, How can i access the mendix database related to my mendix cloud app from my local computer (via SQL, or Excel, or other querying tool)

Internal Server Error when trying to view an app

$
0
0
Hi all,  I’m a newbie, so forgive me if it’s a stupid Q. I’m in MX Studio in version 8.0.0. I’ve just updated my app with no errors, but when i hit “view app”, I get... Internal Server Error An unexpected exception occurred while handling request callback Try again or contact your app administrator if this problem persists This has been the case all morning. Is there an issue on the server side or is it me?  Thanks Maarten

Mendix Chart Widgets (context and source data)

$
0
0
Use Case Trying to create a homepage dashboard of fairly basic charts to replace the deprecated flash charts. Chart Types – bar charts Source Data – previously, in the deprecated chart widgets, I only needed to create data sets of: - Region and count of Clients - Region and count of Cases   Issues with New Mendix Chart Widgets It seems the chart widget needs to be placed in a data view to establish a context for a specific object. - but am I correct that the widget doesn’t actually reference the object named in the data view? The github doc shows what appears to be entities that act like the data sets in the old chart widgets: - do I in fact need to create separate entities that drive the charts or can i simply use the entities from my production app? - if i do need to pre-process the data, am I correct that I would need to do this via a microflow, or is there an equivalent to the data set specification tool? I’ve looked at the sample reports at https://charts102.mxapps.io/p/home, but what would really help would be a sample package that shows the linkage between entities and the chart specs. - does anyone have or know of a sample package? I tried installing testproject from githib and got a missing package.xml error...

imap pop3 server details

$
0
0
I am trying to use the imap pop3 module to collect email in my Mendix app from a gmail account. Can someone please help me with what to set for server details? I'm getting errors with everything I've tried so far.

How long is a chinese?

AnyChart update from version 1.1.1 to 1.2.0

$
0
0
I need to use the newest Plotly version. In order to do that, I tried to update AnyChart from version 1.1.0 to 1.2.0, but I cannot do it from the Mendix Modeler and by placing AnyChart_BuildingBlocks.mpk manually. Doing a deeper investigation, the package.xml at AnyChart.mpk (available at AnyChart_BuildingBlocks.mpk) claims to be version 1.1.1 (instead of 1.2.0). How should I proceed to update update Plotly version? Just by AnyChart update? When the AnyChart version will be available? Here follows some screenshots.

Retrieve and display data from a string in a cloumn

$
0
0
I want to retrieve data from a list of string which has the data displayed as “@@@@-@@-#####” where @ is an alphabet and # is a number. I want to get the first two numbers and make a column that will sort and display the data according to those numbers. Example of the string could be ABCD-EF-19002, I want to extract 19 and use it in another column called year and sort the data in the report according to the year. How should I do this? the string is an attribute in an entity.

SimpleDateFormat vs Mendix formatDateTime

$
0
0
Hi I’ve noticed that if get a date member value from IMendixObject using the getValue method, convert to string using something like SimpleDateFormat, then print it, it’s off by one day, but if you use com.mendix.core.Core.evaluateExpression, pass the member into the hashmap, then use the Mendix formatDate function it prints out correctly How exactly does this work? try{ if(obj_Foo!=null){ text= com.mendix.core.Core.evaluateExpression( this.getContext(), { 'date':obj_Foo.getValue(this.getContext(),"SomeDateField") }, "formatDateTime($date, 'YYYY-MM-dd')" ) }else{ text=null; } }catch(e){ text=null; }  

Mendix Java Scaffolder: ParameterN

$
0
0
Hello again If this issue first starts happening it seems to escalate. Now on every recompilation, and at cloud this random renaming of java parameters occurs. What is the remedy?  

ERROR:Map widget(Microflow)

$
0
0
Hi all, I'm struggling about the error "Microflow parameter 'EmployeeList' should be of type MyFirstModule.Employee." It occured when I had inserted the Map widget. I want to show the map on the screen via Microflow, and this is map settings. Please tell me that why this error causes... Thank you.

screenshot to PDF - custom widget, It takes screenshot of only chart type and not taking the rest of the charts

$
0
0
Hi, i am trying to take multiple screenshots of different charts  by using the custom widget -”SCREENSHOT TO PDF”. But it takes only the pie chart. I have set the visibility conditions for these charts and based  on the visiblity these charts will get rendered onto the page and while  pressing the print button it should take the screenshot of the chart. But it is taking  as a blank screenshots except the pie chart.  I tried many possible ways by  changing the width and height of the chart appearance and order of the charts and placing the “printscreen” widget inside the correct containers. I have included the images as well. Please help out on this.     column chart:   screenshot taken by Print screen widget:   For other charts: ===========   I am looking forward for your answer. Thanks in advance.

AnyChart JSON structure

$
0
0
Hi all,  Here is a JSON example of what will populate an anychart scatter and line plot var trace1 = { x: [0, 1, 2, 3, 4, 5, 6, 7, 8], y: [0, 1, 2, 3, 4, 5, 6, 7, 8], name: 'Name of Trace 1', type: 'scatter' }; var trace2 = { x: [0, 1, 2, 3, 4, 5, 6, 7, 8], y: [1, 0, 3, 2, 5, 4, 7, 6, 8], name: 'Name of Trace 2', type: 'scatter' }; var data = [trace1, trace2]; var layout = { title: { text:'Plot Title', font: { family: 'Courier New, monospace', size: 24 }, xref: 'paper', x: 0.05, }, xaxis: { title: { text: 'x Axis', font: { family: 'Courier New, monospace', size: 18, color: '#7f7f7f' } }, }, yaxis: { title: { text: 'y Axis', font: { family: 'Courier New, monospace', size: 18, color: '#7f7f7f' } } } }; Plotly.newPlot('myDiv', data, layout);   I’m still a bit unclear about Mendix’s JSON Structure feature. Does anyone know if the above can be put into a string attribute that the graph widget will read? With the “Name of trace” , X and Y values being pulled from the database? 

Datagrid Styling

$
0
0
Hi All I am trying to style a row in my datagrid based on an attribute.  I want to change the color of a row when the date is older than 10 days. 

how do i change table width to pixels?

$
0
0
I would like the first 3 cells to be pixels, but when i select percentage I cant change it? (I dont want all of them to be fixed pixel width, just the first 3)

Feedback is not showing up in Portal anymore

$
0
0
Hello,  feedbacks are not send to Dev Portal anymore with the new Feedback Widget. It says Feedback submitted but with no number.  I send the feedback in the preview mode, but this used to work in the past.  I´m using the Blank App Template.    Thank you  D.C.
Viewing all 83469 articles
Browse latest View live


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