Using FileChooser in Codename One - codenameone

I am trying to use FileChooser in cn1.
I have followed the instructions here:
Codename One
and
GitHub
I added the extension and then refreshed my cn1libs
Once this was done I added the code sample to my code but it underlines the word FileChooser in red and gives me the error that it cannot find symbol.
When I hover over the line it asks if I want to create a field called FileChooser
Normally when I add a new lib it will automatically import it - but I do not see an import statement at the top of my code. Perhaps I need the import? If so please can someone give me the path as I do not know whereabouts the actual lib resides?
Any advice is appreciated
Thanks

Check in your project lib folder to ensure the CNFileChooser.cn1lib exists.
If it does exist, clean and build your project to see if this will fix the import.
You could also try Ctrl+Shift+i to fix import on Windows Netbeans or Cmd+Shift+i on Mac Netbeans.
Before you do Refresh cn1lib files, make sure your code is error-free (i.e no red underline). Comment out erroneous codes and uncomment them after the refresh.
Be sure to import com.codename1.ext.filechooser.FileChooser and not javafx.stage.FileChooser.
If the problem persists, kindly share your operating system and IDE details here to get further assistance.

Related

IBM Knowledge Studio - Advanced Rules Workspace : cannot export advanced rules model zipfile

First of all, I want to greet and thank warmly this great community, you guys have helped me countless times with all kind of issues and problems.
Now, back to the issue part...
I'm trying to save a zip file containing my developed model to deploy it on NLU using IBM Knowledge Studio Advanced Rules Workspace, [full documentaint],1 but when I click on Export, selecting my developed extractor
it fails to save the zip file, so I cannot proceed anymore
No error is shown by the application itself, but I've seen that "Export as" and "Export to" options in Export Extractors window are not modifiable (the values that are visible in the screenshot are the only one that is present).
Then, I've seen through the console that when I click OK in the window to Export the zip file, the webpage get an error: https://i.imgur.com/8LehzYQ.png
It seems that it cannot read some zip checkbox inside the Export Extractors window...
Please help me because I'm completely stuck :(
WKS team has found an issue on the current Advanced Rule Editor and is working on fixing the issue. Sorry for your inconvenience.
Fix was deployed on IBM Cloud environment and we verified exporting extractor now works.
Please clear your browser cache before trying this.

New Gui does not accept placement "Right" on a command

I try to add a command on the new Gui with right placement but it adds automatically overflow to the .java file.
The Preview design shows it correct https://gyazo.com/eef78ee9d564c6957e62148db50e6bc4
but the simulator shows as overflowhttps://gyazo.com/a4023a18e48ee19a89bc86e294b5434f
Is it a bug?
Thanks in advance
This seems to be a bug in the GUI builder, we filed a lot of issues so please file this there too. It should work although might require you to go thru the steps again.
I would also suggest looking within the .gui file and seeing that the command generation looks correct.

How to create a blank ModernWindow using ModernUI?

I have followed the MUI guide provided here: http://mui.codeplex.com/wikipage?title=How%20to%20use%20your%20own%20navigation%20framework
but that doesn't work because the BlankWindow resource is not available.
Then someone aswked about it here: http://mui.codeplex.com/workitem/19663
and the developer replied that the user should recompile the library using the latest source code.
I've downloaded the latest source code from here: http://mui.codeplex.com/SourceControl/latest
but upon compilation, the resulting library is the same that's distributed online.
So at the moment I am confused in regard to solving this issue. Could anyone provide some support please?
Do you use Resharper?
Look here, this is maybe only designer problem.
I have the same issue... But I can normaly build and run my application.
They say:
Weird. I am having the same issue on my machine (VS2012 + Resharper).
It works fine when I run it but it's failing to build in TeamCity. Ill
keep investigating...
I am running a program created via the MUI template in VS. Try to
remove it from resharper error/warning. Resharper can force a simple
warning to an error if a wrong setting is set.

Can't create DotNetNuke module in VS2010, template issue?

I've been following the tutorial videos for DotNetNuke and i am at the part where i am now creating my own modules. I've installed everything i need to and put the template in the required folder, but whenever i try to create a project it comess up saying
"The local IIS URL http://dnndev/desktopmodules/... specified for Web project ... has not been configured"
It then asks me to create a virtual directory but says i cant because the server "http://dnndev" is not on the local machine.
I've searched for answers for a while now and have tried editing the template file and the host file but no matter what i try i always get the same message back. Does anyone know how i can fix this?
Thanks
If you follow these steps for setting up your Development environment than the templates should work as is.
http://www.dotnetnuke.com/Resources/Wiki/Page/development-environment.aspx
If you are using a different path for your website I would recommend customizing the templates.
http://www.dotnetnuke.com/Resources/Wiki/Page/Customize-Project-Template.aspx
I assume you are using dotnetnuke wiki page link which seems confusing. For better steps go to: http://www.dotnetnuke.com/Resources/Blogs/BlogID/16.aspx and locate "Let's Build a Module #1 - Project Introduction" which is a first video in step by step series of videos which will help you to clearly understand the process.
Let me know if you need more help.

Including a dynamic library in an Xcode 4 project

I apologise for the basic question. I've searched high an low for a simple answer but I have so far been unsuccessful, so I hope this helps other beginner programmers.
I've installed MacPorts and then installed the external library I was after: ImageMagick. From my research I know that MacPorts put the dylibs in the /opt/local/lib/folder: image. I also know that the header files are located in the /opt/local/include/ImageMagick/ folder.
I thought I'd start with an example program to see how it ran. I made a new project, a C command line tool, then copied the first example into main.c. I now want to add the ImageMagick libraries to my project.
How do I then link the files with my Xcode project so that #include <wand/MagickWand.h> works?
I have similar difficulty with external libraries with iPad projects. Can't seem to make both the simulator and device builds happy. However, for your test case you could try the following:
In the project navigator select your project. Should be top most item.
In the detail pane at the very top you should see a list of tab labels, select the "Build Settings" tab.
Scroll down till you find the "LLVM GCC 4.2 - Language" section.
Find the "Other C Flags", and expand it if needed. You will see two sub items Debug and Release.
For now just modify the Debug item and an include path directive like -
I/opt/local/include/ImageMagick
The above will allow your code to compile, but now you will need to get it to link. You will need to add an additional link option.
In the build settings panel find the "Linking" section.
Within the "Linking" section find the "Other Linker Flags" and expand it if needed.
For now modify the "Debug" sub item. There are couple ways to add your desired library:
With a library search path and library directive as follows
-L/opt/local/lib -lImageMagic
With a full path to library
/opt/local/lib/libImageMagic.dylib (note sure that is the actual file name)
These changes worked for me, at least until I find real XCode 4 way to do it. This is far to clumsy to be the proper approach. Hope some has figured out right way.

Resources