I'm trying birt to generate report from a JSON Data .
I followed this tutorial : http://blogs.actuate.com/use-json-as-a-scripted-data-set/
And i have done all steps but when i click on Data Set --> Edit --> Preview Results ; i got nothing .
I suspect that i didn't include correctly apache commons library, i added the jar in properties-->report design--> Class path is that correct ?
so i'm kind of at loss since when i don't get any error and results are not showing in the preview of the Data set.
JARs files that are intended to be used in scripts should be located at:
[eclipse root]/plugins/org.eclipse.birt.report.viewer_/birt/scriptlib
Eclipse has to be restarted to take new scriptlib JARs into consideration. Another option would be to put a JAR in the resource path and declare it as a resource of the report:
Outline view -> click report root -> Properties -> Resources -> Jar Files -> Add
But i highly recommend the "scriptlib" folder approach. If you still face issues, then you should run the report in debug perspective to find out why scripts don't work. There is a short description of the javascript debugger here.
In the dataset open() the line
fisTargetFile =newFileInputStream(newFile("C:/Users/kclark/Desktop/test.json"));
should be
fisTargetFile =new FileInputStream(new File("C:/Users/kclark/Desktop/test.json"));
Related
basically opening this question again because the answer is outdated, as the link now redirects to Firebase:
Gradle fails building with "Missing project_info object"
I want to attach the google-services.json file to my Android Studio project, and every time I try to download it from the developers API from Google, it gives me a json file with a large name that does't correspond to the tutorial's simple "google-services" and renaming it won't work because of this error.
Downloading it creating a new project doesn't seem possible for me now as it the page gives me another error when I click Configure a Project (I already did that before but left the project there without downloading the json file directly from there, which seems to be the problem).
Where can I safely get this file, and should I rename it or? Thanks in advance.
Apparently the solution is just following the link and creating the project with Firebase:
Then create or select a project and fill it with your app data that shoul look like this (the SHA-1 key should be found in your console log when clicking the button in the image:
Then add the lines of code that should be in your build.gradle(app level one and project level one), editing them with notepadd. Finally you need to sync these Gradle files, in Android Studio : File->Sync project with Gradle Files
The tutorial is very self explatanory, but for beginners like me, this could help.
I am trying to see configuration page of the KNIME node which i just published to my KNIME analytics tool.
Getting error "Error while creating node dialog for 'Readadwords': The configName must be a non-empty string" where Readadwords is my node dialog class which i created in eclipse.
Either in my Nodemodel or Nodedialog there is not a single config and i have defaulted it some or other string value.
Can some one help me where to look to fix my error and also please let me know if i can debug my knime plugin from eclipse rather than doing it in Analytics tool.
Debugging is explained in their developer guide, this page is the most relevant for that.
When you save your settings you have not specified the key for your config, that is what this error message is about. Like in this place assuming "" were used instead of "colName", I would expect a similar error message.
Issue is KNIME is not picking up the changes i have done to the code and i had to change version in plugin.xml file then it started working after copying new jar file to dropins folder of KNIME
I have a Nightwatch + BrowserStack configuration on my project and I'm trying to add custom commands to my project to compare 2 screenshots using resemble.js .
I configure my nightwatch.json file with this :
"custom_commands_path": "./node_modules/nightwatch/commands",
"custom_assertions_path": "./node_modules/nightwatch/assertions"
I put the commands file in the folder and I tried to run my test in every directory possible to see if it was a path problem. I've also tried with different commands, some of them I get online and even the default example one. Whatever I run it returns nameOfTheCommand is not a function. So I guess it does not even find the path to the customs commands in the nightwatch.json file.
Is there anything I'm missing here? I'm quite new so the answer could be very simple but I tried every .json file of my project in case there was a special configuration linked to BrowserStack.
Path to the custom commands should be analogous to the path to custom commands. You should point a folder where you added them.
I've found that if I put them in the suite configuration file, it picks them up:
nightwatch_config = {
src_folders: ["tests/suite/product/"],
page_objects_path: "pages/product",
custom_commands_path: "./custom_commands"
}
I am trying to run a basic html Page in VS code.
Expected: I want to see my code output in browser window opened within VS code
Actual : I was not able to see anything happening
when I try to find the answers, it was mentioned to modify tasks.json file which I was not able to find anywhere
I found the solution
The reason why I was not able to find the tasks.json file/workspace settings is I created the file in this way
Open VS code>>file>>new>>save as html extension -- Wrong way of creating a file
Actual way we should create the file is
Open VS code>>file>>Open folder>>(you can create a folder and html file inside)>>file>>preference>>settings>>workspace setting(right corner this is enabled now)>>you can also type ctrl+shift+p and type "Configure Task Runner">>Other>>tasks.json(this is available now)
Conclusion -- You should create a working folder (workspace) to write or save files
I had an SAP UI5 application project in which one of the pages is product.html and a xsjs file getProductCat.xsjs.
Now I made some changes in HTMl page from notepad. When I try to open in HANA's web browser the changes are there but it is not able to connect to xsjs file. However, if I try to open through browser it connects to xsjs but the changes are not there, it seems it's opening the old file.
As I am new to SAP UI5 so I think I am missing some basic step.
Go to HANA client installation folder, run the following command line to get the help for HANA content activation:
C:\Program Files\sap\hdbclient>regi help activate
Action:
activate
What:
inactiveObjects (all inactive objects in the current workspace)
package (all objects in a package)
packages (all objects in a package and its sub-packages)
trackedPackages (all objects in all tracked packages and their sub-packages)
object (specific objects)
Call "regi help activate <WHAT>" for more information.
after you changed the xsjs file, did you activate it? You need to setup your workspace for the xs app. Did you?
Actually, this is not sapui5 question. This is a HANA XS application related question.
-D