So I'm trying to make an quiz program from scratch for school with my team. We can already make questions and quizez. But we are stuck, we don't know how to answer the questions with a form of text.
Can someone help me?
thanks
So I'm trying to make an quiz program from scratch for school with my team. We can already make questions and quizez. But we are stuck, we don't know how to answer the questions with a form of text.
Can someone help me?
thanks
And how should I view branch lines and merges? I've now branched twice, once from the main-line and once from that branch. I'm used to Github where I'd eventually merge back to the master but there doesn't seem to be an option for that. I had a conflict trying to merge 13 to 23 but I've solved that now
Should I make a new branch from main-line then merge what I the changes from revision 22 to 23 to that branch? How should I "merge branch to master"? Or does it not work that way?
While my application works in Chrome & Edge, it gives a 'constructor not found' for every widget on the page, for all users.
The error is unfortunately not very descriptive:
{description: "evalModuleT...", info: Object {...}, message: "evalModuleT...", name: "Error", src: "dojoLoader"}
Loading module widgets/widgets failed! Check script file for syntax errors.
No constructor found for widget CheckboxSelector.widget.checkboxselectormf undefined
No constructor found for widget HTMLSnippet.widget.HTMLSnippet undefined
No constructor found for widget Rota.widget.Rota undefined
Anyone knows what might be causing this on Internet Explorer?
How can i install a wigdet
Hi all, sorry if this has been asked before, I'm trying to update to 7.1.0. So far I have done two things to try and solve this issue: reinstall appcloudservices & update all widgets via right click -> update all widgets function in modeler. Here's my log whe I try to deploy locally any help is appreciated:
Buildfile: C:\Users\TRON 2\Documents\Mendix\PITHOS-main\deployment\build_core.xml
compile:
[javac] Compiling 670 source files to C:\Users\TRON 2\Documents\Mendix\PITHOS-main\deployment\run\bin
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\emailtemplate\mail\EmailModule.java:12: error: package com.mendix.util.classloading does not exist
[javac] import com.mendix.util.classloading.Runner;
[javac] ^
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\googlemaps\actions\GeoCoder.java:10: error: package org.json does not exist
[javac] import org.json.JSONArray;
[javac] ^
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\googlemaps\actions\GeoCoder.java:11: error: package org.json does not exist
[javac] import org.json.JSONObject;
[javac] ^
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\imap_pop3_email\actions\EmailHandler.java:33: warning: Log is internal proprietary API and may be removed in a future release
[javac] import sun.rmi.runtime.Log;
[javac] ^
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\smtpemailmodule\mail\EmailModule.java:12: error: package com.mendix.util.classloading does not exist
[javac] import com.mendix.util.classloading.Runner;
[javac] ^
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\appcloudservices\SessionInitializer.java:118: error: cannot find symbol
[javac] Microflows.invokeOnFirstLoginAppCloudUser(c, openID);
[javac] ^
[javac] symbol: method invokeOnFirstLoginAppCloudUser(IContext,String)
[javac] location: class Microflows
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\audittrail\log\CreateLogObject.java:94: error: cannot find symbol
[javac] IContext sudoContext = context.getSudoContext();
[javac] ^
[javac] symbol: method getSudoContext()
[javac] location: variable context of type IContext
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\deeplink\actions\ExecuteDeeplink.java:121: error: cannot find symbol
[javac] IContext sudoContext = getContext().getSudoContext();
[javac] ^
[javac] symbol: method getSudoContext()
[javac] location: interface IContext
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\deeplink\actions\ExecuteDeeplink.java:122: error: cannot find symbol
[javac] link.setHitCount(sudoContext, link.getHitCount(getContext().getSudoContext()) + 1);
[javac] ^
[javac] symbol: method getSudoContext()
[javac] location: interface IContext
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\deeplink\actions\StartDeeplinkJava.java:294: error: cannot find symbol
[javac] response.addCookie(XAS_SESSION_ID, session.getId().toString(), "/", "", -1, true);
[javac] ^
[javac] symbol: variable XAS_SESSION_ID
[javac] location: class StartDeeplinkJava.DeepLinkHandler
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\emailtemplate\mail\EmailModule.java:130: error: cannot find symbol
[javac] new Runner<Object>()
[javac] ^
[javac] symbol: class Runner
[javac] location: class EmailModule
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\googlemaps\actions\GeoCoder.java:58: error: cannot find symbol
[javac] JSONObject json = new JSONObject(sb.toString());
[javac] ^
[javac] symbol: class JSONObject
[javac] location: class GeoCoder
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\googlemaps\actions\GeoCoder.java:58: error: cannot find symbol
[javac] JSONObject json = new JSONObject(sb.toString());
[javac] ^
[javac] symbol: class JSONObject
[javac] location: class GeoCoder
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\googlemaps\actions\GeoCoder.java:60: error: cannot find symbol
[javac] JSONArray jsonresults = (json.getJSONArray("results"));
[javac] ^
[javac] symbol: class JSONArray
[javac] location: class GeoCoder
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\googlemaps\actions\GeoCoder.java:70: error: cannot find symbol
[javac] JSONObject jsongeometry = (jsonresults.getJSONObject(0).getJSONObject("geometry"));
[javac] ^
[javac] symbol: class JSONObject
[javac] location: class GeoCoder
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\googlemaps\actions\GeoCoder.java:74: error: cannot find symbol
[javac] JSONObject jsonlocation = (jsongeometry.getJSONObject("location"));
[javac] ^
[javac] symbol: class JSONObject
[javac] location: class GeoCoder
[javac] C:\Users\TRON 2\Documents\Mendix\PITHOS-main\javasource\smtpemailmodule\mail\EmailModule.java:130: error: cannot find symbol
[javac] new Runner<Object>()
[javac] ^
[javac] symbol: class Runner
[javac] location: class EmailModule
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 16 errors
[javac] 1 warning
After Mendix 6.5.1, it seems it is impossible to set the language for an anonymous session manually, either by login microflow or a deeplink since the session is created beforehand. I'm not sure why. Is it because the session is stored client-side now or is there another suggested way of setting the language?
What options are available to style a boolean field?
It seems that the way the default checkbox works it's immune to many of the styling techniques to make nice big colored checkboxes. I'd love to have my boolean display as a big green check for Yes and a red X for No. I know that I can do this by dropping two images with visibility rules on them, but that is so messy vs. CSS.
What options are available?
What about changing what the Text for a boolean says when it's Text (e.g. not Yes or No, but rather Valid or Invalid)
Hi
I get the following error message when trying to compile on v7.0.02. This was an app that I have been testing extensively and only got the compile issue after adding a new module that has no java actions. I have refreshed all the app store modules with the latest versions from the app store. I have even tried updating the community commons more than once just in case it had not worked correctly the first time.
Any Ideas?
compile:
[javac] Compiling 190 source files to C:\Users\dtown\OneDrive\Documents\Mendix Projects\Pxi-main\deployment\run\bin
[javac] C:\Users\dtown\OneDrive\Documents\Mendix Projects\Pxi-main\javasource\communitycommons\Misc.java:656: error: unreported exception COSVisitorException; must be caught or declared to be thrown
[javac] overlay.overlay(new HashMap<Integer, String>()).save(baos);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 1 error
BUILD FAILED
C:\Users\dtown\OneDrive\Documents\Mendix Projects\Pxi-main\deployment\build_core.xml:25: Compile failed; see the compiler error output for details.
Total time: 3 seconds
Hi there,
Today I am trying to connect to a third party using a consumed soap webservice. They have some issues concerning an unused name space which is created by Mendix. They state that the xml namespace is a reserved namespace.
Below you see a part of the created soap including the created name space.
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:SubmitJob xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://tempuri.org/"
xmlns:xml="http://www.w3.org/XML/1998/namespace">
</ns2:SubmitJob>
</S:Body>
</S:Envelope>
I wonder: is it possible to remove this namespace?
Kind regards,
Wouter.
Hi, I currently have a project in version 5.21.4 and experience an issue with outgoing webservice calls. I am consuming a third party webservice and mendix is adding --xmlns:xml="http://www.w3.org/XML/1998/namespace"-- to the outgoing webservice call. Funny thing is that in the modeler logging this extra namespace declaration is not visible, but when capturing the message with wireshark, it is.
The third party is returning an syntax error due to this extra namespace. I don't know if the declaration is specifically wrong, but does someone understand why this extra declaration is made and why this is not visible in the logging?
Mendix modeler log shows that the outgoing Soap request is:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><ns1:Authenticate xmlns:ns1="http://www.loyaltyinabox.com/giftcard_5_7/" xsi:type="ns1:Authenticate"><ns1:UserName>xxxx</ns1:UserName><ns1:Password>xxxx</ns1:Password></ns1:Authenticate></soapenv:Header><soapenv:Body><ns1:BlockCard xmlns:ns1="http://www.loyaltyinabox.com/giftcard_5_7/"><ns1:CardId>xxxx</ns1:CardId></ns1:BlockCard></soapenv:Body></soapenv:Envelope>
While catching the ougoing message with Wireshark it shows this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><ns1:Authenticate xmlns:ns1="http://www.loyaltyinabox.com/giftcard_5_7/" xsi:type="ns1:Authenticate"><ns1:UserName>xxxx</ns1:UserName><ns1:Password>xxxx</ns1:Password></ns1:Authenticate></soapenv:Header><soapenv:Body><ns1:BlockCard xmlns:ns1="http://www.loyaltyinabox.com/giftcard_5_7/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ns1:CardId>xxxx</ns1:CardId></ns1:BlockCard></soapenv:Body></soapenv:Envelope>
In the block card operation, extra declarations are made. The one that is causing the issue is: xmlns:xml
The used WSDL can be found here: http://demo.luntronics.com/liabwebservice/giftcard57.asmx?WSDL
Please note that there is also an 'AnyAttribute' used. Mendix already states that it is not supported during WSDL import but apart from that it seems to be working normally.
Hi,
I need suggestions for what are the best option for document generation for alternate to built in funcitonality within mendix. Something which is more wisywig and can help create docs on the fly. What are tools/hacks alternates you have used that can help customer create custom documents on request. I am looking for a citizen developer approach bit like email templates where they can manage it themselves with little intervention. Ideally something like page designed in the web modeller with access to end users would be great (as suggested in ideas forum) but untill than what are good options?
Please let me know with any suggestions.
Thanks,
Savan
Hi guys,
We have some email templates reusing each time. This time i copied and changed the tokens and some styling in the html body of the content.
Now when trying to make the html into plain text I got an error;
An error of type org.postgresql.util.PSQLException occurred for customer with e-mail:123@123.nl
ERROR: invalid byte sequence for encoding "UTF8": 0x00
Stacktrace:
com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.systemwideinterfaces.connectionbus.ConnectionBusException: Exception occurred while inserting data. (SQL State: 22021, Error Code: 0)
at Admin.User_CreateEmail (Change : 'Set email data based on user and template')
at Purchase.Confirmation_SendEmail (SubMicroflow : 'User_CreateEmail')
I did not change anything then copying pasting the old html file in note pad. Is it possible that I paste some other stuff which he tries to make plain but simpilly can not?
Anyone an idea how I can check the plain texts validaty?
Hi
Can someone help? This is a simple test widget to send the ID to Mendix microflow. It is giving an error
Error - Invalid JSONRequest: JSONObject["actionname"] not a string
Execute microflow call event handler
this.connect(this.saveHotspotNode, "click", function (e) {
// Only on mobile stop event bubbling!
this._stopBubblingEventOnMobile(e);
// If a microflow has been set execute the microflow on a click.
if (this.mfToExecute !== "") {
this._execMf(this.mfToExecute, this._contextObj.getGuid());
//this._execMf(this.mfToExecute, this._contextObj.jsonData.attributes.HotspotResult.value);
}
});
Execute function
_execMf: function (mf, guid, cb) {
logger.debug(this.id + "._execMf");
var _params = {
actionname: mf,
applyto: "selection",
guids: [guid]
};
var mfAction = {
params: _params,
callback: lang.hitch(this, function (objs) {
if (cb && typeof cb === "function") {
cb(objs);
}
}),
error: function (error) {
console.debug(error.description);
}
};
if (mf && guid) {
mx.ui.action(mfAction, this);
}
},
Full error
org.json.JSONException: JSONObject["actionname"] not a string.
at org.json.JSONObject.getString(JSONObject.java:684)
at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:65)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:311)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:143)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:145)
at scala.util.Try$.apply(Try.scala:192)
at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:139)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:135)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
My widget
Domain Model:
Microflow:
Questions:
1. What's wrong with the code to fix error 'Invalid JSONRequest: JSONObject["actionname"] not a string'
2. Can I also ask that i have an array list which i want to send back to microflow as string. what is the best way to get string and send it back. Is there any string length limit? I am thinking to use dojo/json.stringify() function to get string.
Thanks for the help in advance
After migrating we're getting java compile errors. Anyone run into this or know where to go from here?
compile:
[javac] Compiling 437 source files to C:\Users\SEDJ494\Documents\Mendix\CMFG Consumer Claims-main\deployment\run\bin
[javac] C:\Users\SEDJ494\Documents\Mendix\CMFG Consumer Claims-main\javasource\apmagent\actions\ExecuteJDBCQueryToMetricList.java:61: error: method executeJDBCQueryToMetricList in class JDBCConnector cannot be applied to given types;
[javac] return nl.mansystems.query.JDBCConnector.executeJDBCQueryToMetricList(connection, globalSettings, context, StatementPar, multipleRows, QueryMaxRows, JDBCQueryTimeOut);
[javac] ^
[javac] required: GlobalSettings,IContext,String,boolean,String,String,String,Long,Long
[javac] found: Connection,GlobalSettings,IContext,String,boolean,Long,Long
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\SEDJ494\Documents\Mendix\CMFG Consumer Claims-main\javasource\apmagent\actions\ExecuteJDBCQueryToString.java:66: error: method executeJDBCStatementsToString in class JDBCConnector cannot be applied to given types;
[javac] return
I'm trying to print the full page using the print screen to PDF widget. In the page I've created a container with the class canvas and within the widget I've specified the canvas container to be printed. This means it should print all the content on one page.
As expected the print screen option takes a screen shot of the content that is visible within the screen. I'm searching for a solution that will also print all the content, also the part which becomse visible when you'll scroll down the page.
Hi everyone,
1. I am wondering why in TeamServer API, we use AppId (Subdomain name of an app), but in MendixSDK, we use AppId as a long hashed string. Why doesn't Mendix use only one AppId?
(I guess that the Subdomain name could be not uniqued but we could use the second AppId in both cases, now it's kind of confusing)
2. Another question is that, how to calculate the AppID used in TeamServer API?
For now, we downcase of all characters in AppName to get that AppId but we are not so sure if that is the right way. (e.g TestProject -> testproject)
Best regards,
I must have messed something up with Tortoise or merging. When I open/download the mainline, it only gives me the Team options to download/upload to teamserver or manage branch lines. Mainline shows up as a local copy.
Uploading to the teamsever returns the error "Teamserver is not emtpy". Downloading results in the same as above, a local copy with only the download/upload and manage options available under Team.
In the graph below, the furthest branch has been brought to the first branch. Due to the issue, I can't bring the first branch to mainline. How do I get the mainline back to normal?
Tortoise graph:
I am working with a WSDL and schema that was provided to me and some of the fields are "nilllable" so I don't populate them. When I capture the output from the execution of the WebService (SOAP) it always puts the tag and xsi:null="true" in the xml instead of just not showing the tag. How can I get it so that it won't show the tag if it's empty and/or null.
Our application has a page with about 10 tabs with a total of 200 fields on the page. It seems that Mendix is trying to re-fresh the fields and we when we take a look at it from the Browswer debugger (FireBug) we see that there are thousands of Ajax requests that are going off every second such that in a minute we may have over 6 thousand requests. It's really taxing the browswer and creating performance issues as we add more fields.
Should we upgrade to 7.x ? Will it help the situation? Are there any solutions in 6.10.x to fix the problem? Can we adjust the refresh interval in any case?
so im building an app to manage automated scheduled alerts and reports based on data stored in our HR system.
we currently have a tool provided by the supplier but it's fairly clunky and limited which is why I'm designing something better. We currently write an SQL query which I would like to do in the new solution.
When the end user is creating a new alert in the app they will need to store the SQL which will be run at the scheduled time, does anyone know how I can achieve this?
open to suggestions of trying a different approach, I've connected the app up to our database to pull table details through so perhaps I could build a more visual approach to report building? The results will need to be emailed as an excel via when the schedule runs.