Can we add new attribute dynamically to entity? By any means either by Java actions
↧
Can we add new attribute dynamically to entity?
↧
Mendix driven Power BI reporting using Power BI row level security and Azure Active Directory Security.
Mendix driven Power BI reporting using Power BI row level security and Azure Active Directory Security. Solution Goal : Use light weight interactive Power BI reports inside a Mendix IFrame were the row level security, Multitenant Security and OData feeds are controlled through a Mendix Cloud application with its existing security. Be able to create Power BI reports on the fly and add them to Mendix clients dynamically in a blink of an eye. The current solution. We have a Mendix application were we can add Power BI licenses to the standard Mendix License. This adds a Menu Item were the Power BI reports can be viewed. With each one of these licenses a unique client id is created with a role that is later matched to the Power BI Security. We also create Client OData Extract Objects with a OData extract URL, username and password. This is used to extract all the different data feeds we may want to use. We use Matillion which is a ETL tool to extract all the OData(Any data source) that is specified in the client OData Extracts. So we first Extract the Mendix Power BI client extract data using OData. We loop through all the active clients and extract all the data that is need for the client. We then add row level security on to each row using the ClientName, ClientID and Site or LocationID. Once all the data is transformed from all the sources it is written to a Snowflake Data Base. We extract data from Mendix, Ikentoo which is a Food and beverage point of sale and Xero at the moment but it could be anything. Once this is done we create a work space and Data Set in power BI(This will be done once). All this information is stored in Mendix along with the Azure active directory user. The Azure active directory controls the access to the Power BI api. Now reports can be created from the Power BI desktop and published to the Power BI cloud. A role and filter must be created for each Mendix client in Power BI, these come from the ClientID and ClientName records in Mendix. The report name and Power BI ID is created in Mendix and the reports can be viewed in Mendix using the Power BI api. At the moment we create a html file and use a java action to copy it to the Mendix web directory on the server and use an iframe which points to that URL. We can’t use a custom string widget or html snipped as the html sting contains java script that cant be rendered by Mendix. As seen Below! By doing this we can quickly create reports in Power BI and share them with all our Power BI clients. When the clients view the reports they will only see their data. We do not have to create a report for each client. The Mendix application encapsulates and controls the Power BI reports. I am sure there are other Mendix partners or developers that see the value in using this Power BI and Mendix use case. We have gone through the whole process of getting this working. We are prepared to work with Mendix to create a Power BI widget that has all the necessary input variables and then just displays the power BI report. This would make the whole process easier and it can be made available for everybody in the community. Regards, Patrick
↧
↧
Scroll Down action Works as expected, but throw an error in ATS
Hi Guys, Last few days our scripts fails because of scroll down issue.We have passed several regressions without any issue in Scroll down action.Now we facing this issue,when we use scroll action we can see that scroll operation works fine in browser stack and failed in ats and through these errors Error Log: at 16: [Scroll down to element]: with Widget: [[RemoteWebDriver: chrome on XP (870f59e118abd05d3e7ed9760d9a0a1d7bdfad82)] -> css selector: [data-mendix-id="162_4_19"] .row] with Slow scroll: true Scroll down to element: at 1: slow scroll: with Script: TEXT: function getScrollParent(element, includeHidden) { var style = getComputedStyle(element); var excludeStaticParent = style.position === "absolute"; var overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/; if (style.position === "fixed") return document.body; for (var parent = element; (parent = parent.parentElement);) { style = getComputedStyle(parent); if (excludeStaticParent && style.position === "static") { continue; } if (overflowRegex.test(style.overflow + style.overflowY + style.overflowX)) return parent; } return document.body; } X = getScrollParent(arguments[0]); X1 = X.scrollHeight; X2 = $(X); X3 = X2.animate({ scrollTop: $(arguments[0]).offset().top }, 2000); with Argument0: ANY: [[RemoteWebDriver: chrome on XP (870f59e118abd05d3e7ed9760d9a0a1d7bdfad82)] -> css selector: [data-mendix-id="162_4_19"] .row] Execute Javascript String Caused by: com.mansystems.ATS.Runner.exceptions.RunnerException: at com.mansystems.ATS.Runner.definitions.functions.FunctionImpl.run(FunctionImpl.java:62) at com.mansystems.ATS.Runner.definitions.functions.FunctionImpl$1.run(FunctionImpl.java:36) at com.mansystems.ATS.Runner.execution.ExecutionContextRoutine.execute(ExecutionContextRoutine.java:172) at com.mansystems.ATS.Runner.execution.ExecutionContextTestStep.execute(ExecutionContextTestStep.java:140) at com.mansystems.ATS.Runner.execution.ExecutionContextActionComposition.run(ExecutionContextActionComposition.java:41) at com.mansystems.ATS.Runner.execution.ExecutionContextRoutine.execute(ExecutionContextRoutine.java:172) at com.mansystems.ATS.Runner.execution.ExecutionContextTestStep.execute(ExecutionContextTestStep.java:140) at com.mansystems.ATS.Runner.execution.ExecutionContextTestCase.executeTestSteps(ExecutionContextTestCase.java:153) at com.mansystems.ATS.Runner.execution.ExecutionContextTestCase.run(ExecutionContextTestCase.java:121) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.mansystems.ATS.Runner.execution.ExtendedFuture.run(ExtendedFuture.java:69) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.mansystems.ATS.Runner.definitions.functions.FunctionReflectionHelper.invokeRunInternalMethod(FunctionReflectionHelper.java:29) at com.mansystems.ATS.Runner.definitions.functions.FunctionImpl.run(FunctionImpl.java:59) ... 14 more Caused by: java.lang.NullPointerException Tried these Ways: 1)We 1st Assert the Element and call scroll action to scroll upto the element. 2)Getting css of the Element and call Scroll action.
↧
Published REST Example Project
Looking for a sample project, in 7.11 that demonstrates a REST API being published, does anyone have anything? Looking through the release notes it mentions a Message Definitions window but I cannot find this anywhere. Created a Published Rest Service, Resources & Operations. Created a microflow but the post shows an Export to JSON and Create HTTP Header & Response but no instruction on detail behind these. https://www.mendix.com/blog/mendix-7-11-offers-enhancements-rest-publish-api-creation-added-capabilities-web-modeler/
↧
Commit failed
Hi, Could someone please help me Committing my changes, please? I created new branch line and merged some changes in my new branch line without any errors/conflicts. I ran application locally and everything worked fine. but when I tried to commit my changes I got below error message: SharpSvn.SvnWorkingCopyLockException: Working copy 'C:\Users\Ikaur\Documents\WOM Backup\WorkOrderManagement-WOM_Merge_Sprint28AndSprint29' locked. ---> SharpSvn.SvnWorkingCopyLockException: 'C:\Users\Ikaur\Documents\WOM Backup\WorkOrderManagement-WOM_Merge_Sprint28AndSprint29' is already locked. --- End of inner exception stack trace --- at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets) at SharpSvn.SvnClient.InternalSetProperty(String target, String propertyName, svn_string_t* value, SvnSetPropertyArgs args, AprPool pool) I installed Tortoise SVN 1.9.7. I tried following: Right clicked on the Parent folder > SVN Upgrade Working Copy Right Clicked on Parent folder again>Tortoise SVN> Clean UP but after doing this I saw red escalation mark on my MPR file then I tried right click again on the parent folder > SVN Commit after doing the 4th step I am seeing below issue.
↧
↧
Retrieve username from login page
Hi everyone, I would like know, how i do retrieve username from login page to use in attribute... Any suggestions to this functionality? Thanks.
↧
Group digits option on report with dataset
I have a dataset which returns the sum of pieces by month. Is it possible to have a thousand seperator like in a data grid (Group Digits = true). For example : Current : 5080010 Future : 5.080.010 (or 5,080,010 is also fine)
↧
OQL query errors at runtime
Hello Mendix OQL gurus, This is the query I am trying to use for my report data set: Select CASE a.Status WHEN 'ClosedWon' THEN sum(a.BookingValue) ELSE 0 END won_amount, CASE a.Status WHEN 'ClosedWon' THEN 0 ELSE sum(a.BookingValue) END lost_amount, sum(a.BookingValue) total_amount, CASE a.Status WHEN 'ClosedWon' THEN count(1) ELSE 0 END won_count, CASE a.Status WHEN 'ClosedWon' THEN 0 ELSE count(1) END lost_count, count(1) total_count FROM SPXSalesManagerPersona.MyAccountManager AS sm JOIN Administration.Account AS useracct ON useracct/Name = sm.UserId JOIN SPXMain.Opportunity AS a ON a/SPXMain.OpportunityLeader/Administration.Account/Name = useracct/Name WHERE sm/SPXSalesManagerPersona.MyAccountManager_Account = '[%CurrentUser%]' AND a.Status != 'Open' When I generate the report, I get a runtime error. Caused by: java.sql.SQLSyntaxErrorException: unexpected token: INNER : line: 10 in statement [SELECT CASE "a"."status" WHEN ? THEN SUM("a"."bookingvalue") ELSE 0 END AS "won_amount", CASE "a"."status" WHEN ? THEN 0 ELSE SUM("a"."bookingvalue") END AS "lost_amount", SUM("a"."bookingvalue") AS "total_amount", CASE "a"."status" WHEN ? THEN COUNT(1) ELSE 0 END AS "won_count", CASE "a"."status" WHEN ? THEN 0 ELSE COUNT(1) END AS "lost_count", COUNT(1) AS "total_count" FROM "spxsalesmanagerpersona$myaccountmanager""sm" INNER JOIN "spxsalesmanagerpersona$myaccountmanager_account""c1spxsalesmanagerpersona$myaccountmanager_account" ON "c1spxsalesmanagerpersona$myaccountmanager_account"."spxsalesmanagerpersona$myaccountmanagerid" = "sm"."id" INNER JOIN "administration$account""acct" INNER JOIN "system$user""dj2system$user" ON "dj2system$user"."name" = "sm"."userid" INNER JOIN "spxmain$opportunity""a" INNER JOIN "spxmain$opportunityleader""a5spxmain$opportunityleader" ON "a5spxmain$opportunityleader"."spxmain$opportunityid" = "a"."id" INNER JOIN "administration$account""j3administration$account" ON "j3administration$account"."id" = "a5spxmain$opportunityleader"."administration$accountid" INNER JOIN "system$user""dj4system$user" ON "dj4system$user"."name" = "dj2system$user"."name" WHERE "c1spxsalesmanagerpersona$myaccountmanager_account"."administration$accountid" = 12666373951979728 AND ("a"."status" != ? OR "a"."status" IS NULL)] Line 10 is : INNER JOIN "administration$account""acct" . Administration.Account is a specialization of System.User, so I could use that in the query. However, when I do that, I get the same error, but on a different line: Caused by: java.sql.SQLSyntaxErrorException: unexpected token: INNER : line: 11 in statement [SELECT CASE "a"."status" WHEN ? THEN SUM("a"."bookingvalue") ELSE 0 END AS "won_amount", CASE "a"."status" WHEN ? THEN 0 ELSE SUM("a"."bookingvalue") END AS "lost_amount", SUM("a"."bookingvalue") AS "total_amount", CASE "a"."status" WHEN ? THEN COUNT(1) ELSE 0 END AS "won_count", CASE "a"."status" WHEN ? THEN 0 ELSE COUNT(1) END AS "lost_count", COUNT(1) AS "total_count" FROM "spxsalesmanagerpersona$myaccountmanager""sm" INNER JOIN "spxsalesmanagerpersona$myaccountmanager_account""c1spxsalesmanagerpersona$myaccountmanager_account" ON "c1spxsalesmanagerpersona$myaccountmanager_account"."spxsalesmanagerpersona$myaccountmanagerid" = "sm"."id" INNER JOIN "system$user""useracct" ON "useracct"."name" = "sm"."userid" INNER JOIN "spxmain$opportunity""a" INNER JOIN "spxmain$opportunityleader""a4spxmain$opportunityleader" ON "a4spxmain$opportunityleader"."spxmain$opportunityid" = "a"."id" INNER JOIN "administration$account""j2administration$account" ON "j2administration$account"."id" = "a4spxmain$opportunityleader"."administration$accountid" INNER JOIN "system$user""dj3system$user" ON "dj3system$user"."name" = "useracct"."name" WHERE "c1spxsalesmanagerpersona$myaccountmanager_account"."administration$accountid" = 12666373951979728 AND ("a"."status" != ? OR "a"."status" IS NULL)] Line 11 is: "spxmain$opportunity""a" INNER JOIN "spxmain$opportunityleader" How do I get around this?
↧
Error in the Log : M2EE: An error occurred while initializing the Runtime: null
Hi everyone, I'm trying to deploy my application on mendix cloud free apps. And my website doesn't load. When i checked my log, i could see the below error: M2EE: An error occurred while initializing the Runtime: null M2EE: com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: null Kindly help me out. Thank You, Kavya Aroor Log: APP INFO Started Mendix Cloud Foundry Buildpack v1.8.7 2:34:14 PM APP WARNING SERVER_ID is deprecated, please use LICENSE_ID instead 2:34:20 PM APP WARNING Runtime is being started in Development Mode. Set DEVELOPMENT_MODE to "false" (currently "true") to set it to production. 2:34:20 PM APP INFO S3 config detected, activating external file store 2:34:20 PM APP WARNING specified heap size 256M is larger than max memory of the container (2048M), falling back to a heap size of 256M 2:34:20 PM APP INFO Successfully updated backup service 2:34:20 PM APP INFO Trying to start the MxRuntime... 2:34:23 PM APP INFO Logging: Logging to file: /home/vcap/app/log/out.log, max size: 1024000KiB, max rotation: 10 2:34:23 PM APP INFO Core: Mendix Runtime 7.11.0 (build 31019). Copyright © 2003-2018 Mendix bv. All rights reserved. 2:34:23 PM APP INFO StorageS3: Endpoint set to: Some(s3-eu-west-1.amazonaws.com/cf-shared-prod-1-eu-west-1) 2:34:23 PM APP INFO Services: Adding 0 authority certificate(s) 2:34:24 PM APP INFO ConnectionBus: Starting uniqueness constraint violation diagnostics... 2:34:24 PM APP INFO at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:350) 2:34:24 PM APP ERROR M2EE: An error occurred while initializing the Runtime: null 2:34:24 PM APP ERROR M2EE: com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: null 2:34:24 PM APP INFO Caused by: java.lang.NullPointerException: null 2:34:24 PM APP INFO at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.validateConstraint(ModelSynchronizationUpdater.java:194) 2:34:24 PM APP INFO at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.shouldCreateColumn(ModelSynchronizationUpdater.java:228)
↧
↧
Problem with creating a theme for an App
Hello guys, I'm working on customization for an App and I have a problem. I have created a theme by consuming Theme creator. When I finished a theme, I regularly imported a theme (Settings/Runtime/Theme/Import) and when I run the application I have those errors: 404 - file not found for file: styles/css/custom/false 404 - file not found for file: styles/css/lib/false My styling can be seen (Changes that I made for this specific theme can be seen when I run and view the app) but I've those errors in console and they are preventing me from adding and using styling in custom.css file. I used theme creator by looking into introduction videos (https://www.youtube.com/watch?v=JeRVn9kpGY8 and and https://www.youtube.com/watch?v=Pc3XfkRU3qI) . I've been searching for solutions but unfortunately I didn't find anything that could help me. Do you have idea how I can resolve this problem? Thank you in advance, Aleksandar Alempic
↧
Having a list using a microflow data source update itself
Hello! Can I somehow make a list using a microflow as data source refresh itself? I like the to user to be able to choose products (left side) and add these to an order (right side). The product list should only show products not yet referenced by any order item (selected products). I now have a microflow as data source to filter out products already referenced. But the list does not call the microflow when products are selected and the view should change. I'm a newbie with Mendix so any ideas on how to accomplish this are more than welcome! (Order<--OrderItem<--Product)
↧
Performance issue
Here I have some screenshots of a Microflow. MF is include a loop and a nested loop. This MF works well and has no error. The Only problem is performance issue. Execution time escalates till more than 2 minutes. In my idea using of ‘Intersect' list operation and ‘sort’ of this list can be eventually a solution for this performance issue. But no idea how to implement that for this two loops. Any idea or better solution will be appreciated. In link below you can find the screenshots: https://mega.nz/#F!KcZzUZiD!EmMq-sKhb4pDnp7Re6fQsQ Thanks, Shahab
↧
Get name of button pressed
Looking to have a generic help screen that I can open from about 20 different buttons. Instead of creating a different microflow for each button, is it possible to get the Name of the button pressed within a microflow?
↧
↧
How to configure Mendix application with MySQL(Local Database) while application is running on cloud?
I am able to configure Mendix application with MySQL database when it is running locally, But when I am deploying it to cloud or while running from cloud I am not able to configure with MySQL which is installed in my local system. I want to configure Mendix application with MySQL(Local Database) while application is running on cloud.
↧
Load test Mendix
Hi all, I am simply looking for the most effective tool used to Load test the Mendix platform from a User perspective. We have tried solutions such as Parasoft Load Test which is able to record interactions, parameterise requests and perform the interaction without the context of a browser under load. But the software seems to battle to correctly reproduce the requests correctly under load. Any suggestions would be welcomed. Let's discuss it!
↧
Downloaded archived log only shows 20 lines.
My downloaded archived log only contains 20 lines on test and acceptance. From my experience the log file should contain 1000+ lines. I would like to ask te community if they experience the same problem. Am I forgetting something?
↧
Load non AMD library in Mendix 7 widget
Hi, I am converting a Mendix 6 widget to a Mendix 7 widget. Below is the relevant javascript code: define([ "dojo/_base/declare", "mxui/widget/_WidgetBase", "IFrameResizer/lib/jquery-1.11.2.min" // "dojo/text!IFrame/widget/templates/IFrameResizer.html" ], function (declare, _WidgetBase, _jQuery) { "use strict"; console.log("widget being initialized"); var $ = _jQuery.noConflict(true); In debugger mode, I see my console message, but on JQuery line I am getting a factory Threw error. This is due to the fact that the JQuery library is not an AMD JS library. See Console message: So my question is how do I use non-AMD libraries in a Mendix 7 widget ?
↧
↧
Clone if not empty
Hi all, I'm in the situation where I have two objects of the same entity, which I want to 'merge', where one of the objects has preference over the other. Let's call them object 1 and object 2. Object 1 has members a, b and c filled, Object 2 has members a, c and d filled. I'm looking for a functionality to overwrite/fill the members of Object 1 with the members of Object 2, only if the members of Object 2 are not empty. Then I would end up with Object 1 with members a (copied from Object 2), b, c (copied from Object 2) and d (copied from Object 2) Meaning, for every member of Object 1, a similar check must be made: Object1/MemberA:
if $Object2/MemberA != empty
then $Object2/MemberA
else $Object1/MemberA However, this is not convenient to write for all members of the object, even more so since the object also has associated objects that need the same functionality. Also, it is not easy to maintain on the long term. I was hoping a community commons java action catered for this function, something like 'clone if not empty', but that was not the case. Even shorter would be to only check the non empty members of Object 2 and fill the corresponding Object 1 members with these values. Does anyone have experience with a similar issue?
↧
Using Mendix Modeler on 2 screens
I wondering if it's possible to use mendix modeler on 2 screens (Laptop and 1other screen). I want something like eclipse. That open a new window when you drag and drop the class on the other screen. Thx for helping !
↧
Deploying Mendix 7.11 application on AWS missing felix configuration template
Hello, I'm trying to deploy an Mendix 7.11 deployement package on a newly created AWS environment. I installed the correct runtime using the 'download_runtime' command. But when trying to start the application I get the following error: felix configuration template is not a readable file: /srv/app/runtimes/7.11.0/runtime/felixconfig.properties.template This file does not exist on that location, any idea how can I fix this issue?
↧