Treeview and gridview demo project

1
You would expect that when Mendix published a new version of the app that you would also check what it did in Mx5. When you convert the treeview demo project you get the error below. And there is no java code in the project :) It crashes on the system java files. It seems that the conversion proces still needs some refinement..... Regards, Ronald Buildfile: C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\deployment \build_core.xml compile: [javac] Compiling 42 source files to C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\deployment\run\bin [javac] C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\javasource\system\actions\ActivateLicenseJava.java:13: error: cannot find symbol [javac] import system.proxies.UserLimitation; [javac] ^ [javac] symbol: class UserLimitation [javac] location: package system.proxies [javac] C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\javasource\system\actions\ActivateLicenseJava.java:23: error: cannot find symbol [javac] private system.proxies.LicenseInformation licenseInformation; [javac] ^ [javac] symbol: class LicenseInformation [javac] location: package system.proxies [javac] C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\javasource\system\actions\ResetLicenseJava.java:22: error: cannot find symbol [javac] private system.proxies.LicenseInformation licenseInformation; [javac] ^ [javac] symbol: class LicenseInformation [javac] location: package system.proxies [javac] C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\javasource\system\actions\ActivateLicenseJava.java:27: error: constructor UserAction in class UserAction<R> cannot be applied to given types; [javac] super(); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] where R is a type-variable: [javac] R extends Object declared in class UserAction [javac] C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\javasource\system\actions\ActivateLicenseJava.java:34: error: cannot find symbol [javac] this.licenseInformation = __licenseInformation == null ? null : system.proxies.LicenseInformation.initialize(getContext(), __licenseInformation); [javac] ^ [javac] symbol: class LicenseInformation [javac] location: package system.proxies [javac] C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\javasource\system\actions\ActivateLicenseJava.java:37: error: cannot find symbol [javac] addRefreshClass(UserLimitation.getType()); [javac] ^ [javac] symbol: variable UserLimitation [javac] location: class ActivateLicenseJava [javac] C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\javasource\system\actions\ResetLicenseJava.java:26: error: constructor UserAction in class UserAction<R> cannot be applied to given types; [javac] super(); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] where R is a type-variable: [javac] R extends Object declared in class UserAction [javac] C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\javasource\system\actions\ResetLicenseJava.java:33: error: cannot find symbol [javac] this.licenseInformation = __licenseInformation == null ? null : system.proxies.LicenseInformation.initialize(getContext(), __licenseInformation); [javac] ^ [javac] symbol: class LicenseInformation [javac] location: package system.proxies [javac] Note: C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\javasource\com\mendix\core\Core.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 8 errors BUILD FAILED C:\Users\Ronald\Mendix\TreeView and GridView Demo Project\deployment\build_core.xml:27: Compile failed; see the compiler error output for details. Total time: 5 seconds
asked
2 answers
2

It painfully to notice that Mendix did not release a version for Mendix 5, I have a fixed the widget to be compatible with Mx 5. (experimental), But fixed months ago! This is why I also addressed the topic at https://forum.mendix.com/questions/5984/Post-All-your-Widgets-on-GitHub

But I am not sure if i am allowed to post it on public GitHub. With permission with Mendix I will.

Though it still based on the previous version (2.1) of the tree viewer

https://www.dropbox.com/s/m01ajlhqrkph08v/TreeViewDemoMx5.mpk

answered
0

@Ronald: Please do file a ticket! I think this should be covered by the automated conversion indeed.

@Andries: (too long for a comment) (most) Appstore widgets are not proprietary or something, but more or less a side effect of other in house development or requests. The gridview for example is the result of a widget which we initially build for the home.mendix.com admin functions only, but seemed so useful that we shared it. So feel free to publish any patches and share it further.

But, to make things easier, i'll share the original project with you, if you can build the patches in your own branch we can merge them back. That is at least the closests the teamserver gets to a git pull request ;-). If you prefer github, that is fine as well :).

Edit: since there are multiple users with your name, can you send an email to me (michel.weststrate@mendix.com with the email adress you want to receive the invite on?)

answered