Hi i am going with custom widget , in that widget i need to get my SQL data and need to compare with the another data. for that i am using php to get my sql data and use in it in js file. but i cant able to call my php file in the js file. The below one in my PHP file , <?php $username = "******"; $password = "******"; $host = "localhost"; $database="tc"; $server = mysql_connect($host, $username, $password); $connection = mysql_select_db($database, $server); $myquery = "SELECT '*' FROM `TBL_STUDENTS`"; $query = mysql_query($myquery); if ( ! $query ) { echo mysql_error(); die; } $data = array(); for ($x = 0; $x < mysql_num_rows($query); $x++) { $data[] = mysql_fetch_assoc($query); } header("Access-Control-Allow-Origin: *"); echo json_encode($data); mysql_close($server); ?> this code will return JSON format data and i want to use it in d3.js to show as a table… But while using it showing like cant able to load the data, this is the error am getting, GET http://localhost:8080/NewWidget/widget/ui/data.php 404 (Not Found), any leads will be helpful , thanks in advance
↧
Query external database in mendix custom widget
↧
Problem with Attributes
Hello, i have the following problem. i cant select the Atribute “Deck” (which shoudl be a Object Containing several other entities (Person, Alliance, HeroClass) → see Domain Model. Why is that. Its basically 90% the same as the LearNow_Training App from the tutorial. I checked everything, but i cant find the error in my model. The only difference is, that i have a entity that groups. However also i cant even access “Number(Autonumber)” from the Deck entity.
↧
↧
Long running process as System User can't Kill
We have a long running process. When we go into the console. Look under the Advanced button, Selecting Show active server actions. We see a process that has been running for over 6 hours. It is running under the user System with a type of CUSTOM. No other information is available. When we try to kill it we get an error message. The server encountered an error. An unhandled exception occurred! Java.lang.NullPointerException. Any ideas of what this process may be? Any suggestions in how to kill this process?
↧
Change the state color of a custom glyphicon
Hello, I asked a question a few days ago that was answered and I was able to fix the problem (yay!) but now I have another, similar issue I’m hoping someone can help me with. I have a sidebar menu where the icons and text are grey, and when clicked on, they turn green. Before my issue was changing the active state for the text and standard glyphicons, which I was able to solve by going into the SCSS variables and add one called $navsidebar-color-active (the default was white). My new problem is, I have a custom svg icon, and it doesn’t adhere to this rule (not that I wouldn’t expect it to). In the picture above, Vehicles is the active button, but the icon stays the same color. I’m not sure how to add an active state to the HTML without using a seperate CSS stylesheet, which doesn’t help me since I need to upload a single file to the images folder. I don’t have much experience with html or CSS though (which is terrible, I know – I plan to learn these, but for now, I’m kind of lost). Can I use inline CSS along with the inline SVG? And if so, could someone point out where I would do this? This is what I have: <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="512" height="448" viewBox="0 0 512 448"> <title></title> <g id="icomoon-ignore"> </g> <path fill="#656359" d="M120 272c0-22-18-40-40-40s-40 18-40 40 18 40 40 40 40-18 40-40zM129 192h254l-22.25-89.25c-0.75-2.75-5.75-6.75-8.75-6.75h-192c-3 0-8 4-8.75 6.75zM472 272c0-22-18-40-40-40s-40 18-40 40 18 40 40 40 40-18 40-40zM512 248v96c0 4.5-3.5 8-8 8h-24v32c0 26.5-21.5 48-48 48s-48-21.5-48-48v-32h-256v32c0 26.5-21.5 48-48 48s-48-21.5-48-48v-32h-24c-4.5 0-8-3.5-8-8v-96c0-31 25-56 56-56h7l26.25-104.75c7.75-31.5 38.25-55.25 70.75-55.25h192c32.5 0 63 23.75 70.75 55.25l26.25 104.75h7c31 0 56 25 56 56z"></path> </svg>
↧
Data disappears temporarily
Hello, Every so often, on one (sometimes multiple) pages, the data disappears. I’m not seeing an error in the console and I’m not seeing a pattern as to when and where this is occurring. I’m using a master detail setup and the list view (on the right, see below) is using the database as the source so there’s no microflows or xpaths involved that could be causing it. I figured this is some kind of Mendix server glitch. I’m thinking that maybe the session times out for a moment and when it comes back up, only some entities are displaying data. If you have any ideas as to the cause of the problem and/or how I can fix it, it would be greatly appreciated. Thank you!
↧
↧
Import date/time fields in CSV importer
Hi, We have large csv files that we want to import. All works great and it’s very memory friendly. One issue that we have is that we can’t manage to import dates. I don’t want to import date/time fields as a string and convert them to date format later. This takes too much processing time. Is there a proper date/time notation that the CSV importer will accept as a date/time field?
↧
Menu Bar instead of button
Hi, I like to use a self created menu bar instead a button to open a page. For this I have to pass the current object using microflow to the page to be opened. I’ve got the error: Parameter 'Interaction' of the selected microflow does not match available arguments. No arguments are available. Property 'On click' of menu item ''Menu 'Interaction_0_Menu'CoreModule Shall I retrieve the Entity “Interaction” with an Xpath constrain for current object? What is the right expression then? The reason why I like to use menu bar is: The menu placed in the header will not disappear by scrolling the page. Thanks for your help. Alex
↧
Images displaying on sandbox
I am attempting to upload then view images. The images are displayed using the default imageViewer. When I run locally the functionality works 100%. When I initially deployed to sandbox the functionality showed me the images I had uploaded. When I now log into sandbox (after a deploy) I can no longer see the images. Instead, a blank white box is displayed. When I display information about the image entity then hasContents = true and the size attribute is populated indicating that an image should be displayed. Since the functionality works locally could his issue perhaps be linked to Sandbox in someway? Might it even be linked to the cloud outage yesterday (07 Aug 19) or does this seem more like a code bug on my side? Any ideas will help. Thank you.
↧
Show Username in top region (layout)
Hi, I like to show the user name in the header / top region after login. How can I do this? THX for your help. Alex
↧
↧
Mendix Studio Pro View Project
I’m using Mendix Studio Pro 8.0. After I run the project locally, I can’t view the app on browser. It just shows a login window but I can’t login. I’m doing the practice project in the learning path. When I run other template projects, there is no such problem. What can I do to solve this problem? Thank you in advance!
↧
overflow : scroll CSS on the HTML element in Mendix 8
In Mendix 8 I’m seeing this HTML element for all pages <html class="dj_webkit dj_chrome dj_contentbox" lang="es-MX" style="overflow: scroll;"> So all pages have scroll bars even when not necessary. Is anyone else seeing that and if so how do I change it? I tried editing the index.html in my theme (I don’t want to edit the theme but I will if I have to), but Mendix is overwriting my change and changing the overflow back to scroll. Does anyone have any idea why Mendix has done this, it makes no sense?
↧
No constructor found for widget SprintrFeedbackWidget.SprintrFeedback
I am getting this error on my application. Error is intermittent i.e. occurs few times and some time it does not. When the error is shown, the default feedback widget is invisible on my app.
↧
Query external database in mendix custom widget
Hi i am going with custom widget , in that widget i need to get my SQL data and need to compare with the another data. for that i am using nodejs oracledb module to get my sql data and use in it in js file. but i dont kow how to link my nodejs file with my js file… The below one is my node js code which is working fine externally if use in cmd , The below one is my dojo js file for my custom widget, any leads will be much helpful , thanks in advance
↧
↧
Mendix custom widget with React
Hi, I have a complex problem, so I hope I can explain it properly. We have an application with tons of JS files on front-end. We’d like to create a Mendix custom widget to replicate one of our app’s functionalities. For this I followed a tutorial, which is not available anymore, but it used dojo. In the end I could achieve the goal by copying all the required JS files into a lib folder while maintaining their original structure (2000+ files). This lib folder can be found in the widget, so after build, the mpk contains it. However all the <script> tags are placed in the index.html of the Mendix app. It’s a mess. Now we’d like to isolate all the dependencies in the widget itself and we thought it’d be nice to use React which I am completely new to. So now I want to create a new widget with the same behavior, but with React and I can’t figure it out where to place my lib folder and how to import the required JS files from it. I’ve followed this tutorial: https://docs.mendix.com/howto/extensibility/create-a-pluggable-widget-one Also I can’t use TypeScript. Does anyone know how to include these resources into my new widget? Thanks
↧
Best Practices - Digital Signature
Hi All, I am about to start a new process that requires Digital Signatures for official documents. (Bank documents, contracts, etc.) I already know that some of the Banks will accept DOCUSIGN as a method of signing electronically. I have implemented the Mendix Digital Signature add-on for some other internal forms, but am concerned that it may be difficult to have third-party businesses accept this. I am looking for recommendations on implementing a trust worthy Digital Signature process within Mendix. Has anyone used the Docusign module? (It seems old and there aren't many downloads) Thanks in advance!
↧
How can I change the schedule event interval from UI?
Hi Community, I have a schedule event configured in the modeler which will fire every day and check for the criteria. If it meets the criteria defined, it will send an email notification. Now I want to change the schedule event interval to 2 hrs. I don't want to goto modeler every time to change the schedule event interval. Is there any way to configure the schedule event interval in the UI? So that I can change easily without any changes in the modeler. Please help me with this. I want the interval to be dynamic and it should be from UI. Any ideas how I can achieve this? Thanks in advance.
↧
Building apps for iOS - free of charge
Hello, I’m wondering if there is a free way how I can build apps for iOS and deploy it to my own iPhone (and that of a friend). If I follow the instructions given in the Mendix documentation, Apple wants to charge me 99 € per year just for an “enrollment” into the Apple developer program. Is there a different way to build iOS apps, free of charge? Thanks you!
↧
↧
Why not have the Mendix AI assistent on my Mendix Studio Pro 8.0.0(Beta 1)
Why not have the Mendix AI assistent on my Mendix Studio Pro 8.0.0(Beta 1) The official documentation is as follows https://docs.mendix.com/refguide/mx-assist-studio-pro#add-activities
↧
Trying to use an external module using Javascript action
Hello, I am trying to use a simple external Javascript module (test/test.js) I made in a Javascript action I created. I tried to follow the steps from this link (Section 2.2.6 Using External Dependencies in the Browser). Here is my module (test.js in a ‘test’ folder in the ‘theme’ folder of the project) :
module.exports = {
hello: function() {
return "Hello";
}
} Here is the Javascript action :
// BEGIN USER CODE
const myModule = require(["test/test.js"]);
let val = myModule.hello(); // val is "Hello"
return myModule;
// END USER CODE Here is the index.html :
<body dir="ltr">
<div id="content"></div>
<script>
dojoConfig = {
baseUrl: "mxclientsystem/dojo/",
cacheBust: "{{cachebust}}",
rtlRedirect: "index-rtl.html"
};
</script>
<script>
if (!document.cookie || !document.cookie.match(/(^|;)originURI=/gi))
document.cookie = "originURI=/login.html";
</script>
<script src="mxclientsystem/mxui/mxui.js?{{cachebust}}"></script>
<script src="test/test.js?{{cachebust}}"></script>
</body> And the components.json :
{
"files": {
"css": ["styles/web/css/main.css"],
"js": ["mxclientsystem/mxui/mxui.js","test/test.js"]
},
"cachebust": "{{cachebust}}"
} I then put the Javascript action in a nanoflow and simply put a nanoflow call button on the Homepage to test my Javascript action. The result is the following after two clicks on the button : It looks like the Javascript action manages to find the module and the module is exported on the first click, however it cannot then find the function in the module. I am probably doing something wrong but I don’t know where, if someone can explain to me how and why it works on Noty, or help me on resolving this issue, it would be awesome ! Thank you very much !
↧
Getting a error(not recognized in the modeler) when a microflow is used in a snippet
I get a pop up error with Stack trace details when i try to run my app in the modeler. It looks like the Mendix Modeler doesn't recognize a mistake i made by choosing the wrong microflow behind a button. The microflow(behind a button) required a parameter the snippet didn't have. After selecting a microflow that was build for it, it worked fine again. Is this a known problem?
↧