Adding data in fabcar.js - hyperledger-fabric

I have added a custom json ( say for ex: students details instead of cars) inside fabcar.js but when i ran ./startFabric.sh node i still able to see the old data gets loaded into the channel .
Any suggestions would be a great help.
Thanks in advance

I have just restarted the channel and it got worked me !. kudos

Related

node-adodb returns empty set from Access DB, but mdb-sql works

I have a Microsoft Access database, which mdb-ver says is version 'JET4'.
Using the mdb-sql tool, I can query the database. But executing the same SQL query using the node-adodb package returns no data.
Any thoughts on this issue would be much appreciated. Thank you!
[EDIT] -- Thanks for the responses. Sorry for the omission. But the query is really very basic:
SELECT id, dob FROM patients WHERE FirstName='x' AND LastName='y'
My bad! Completely!
The [npm package page][1] showed a number of examples, and I glanced over them without understanding that the "query" method had to be explicitly used to get any results back. I used "execute" instead.

Unable to create or update an Asset\Image when saving a Pimcore object

My goal is to create / update objects by using a csv file. csv file is fine and allready heavy used.
I wrote a complete script for that, most setSomething() works very well with text, structured Datas etc.. but i'm facing a trouble with the Images. I read the doc twice...
https://pimcore.com/docs/4.6.x/Development_Documentation/Objects/Object_Classes/Data_Types/Image_Types.html
$image = Asset\Image::getByPath("/examples/example1.jpg");
$object->setImage($image);
$object->save();
and that exactly what's i did to create / update $article
$marque = Pimcore\Model\Asset\Image::getByPath("/Catalog/Marques/".$image);
$article->setEarg($marque);
$article->save();
please note that :
$image exists,
$marque is found, and is an instance of Asset\Image
setEarg($marque) is properly defined to set an Image data field
in UI all works fine
cache cleared
Is it possible i misunderstood something ?
I also searched in passed Issues, no luck.
https://github.com/pimcore/pimcore/issues
Maybe someone did face the same problem ? Anc could a hint on how to solve that ?
Regards,
I'm confused...this code is working as it should.
It seems to a cache problem, even if i cleared it. In the UI image did appear after some minutes / hour. Now it appear immedialtly. This question can be closed, but this push me to another one... how did this cache / deffer problem happened. If i find something i will update here.

ApiAxle returning empty result

I am using API Axle for my node API.In that i am following this tutorial http://www.cubrid.org/blog/cubrid-appstools/apiaxle-open-source-api-management-analytics-proxy/.In that after i want to see how many hits for a particular API or particular keys..
For that i am using the following link:
http://127.0.0.1:3000/v1/apis/charts
http://127.0.0.1:3000/v1/keys/charts
But its returning results:{}.PLease help me to solve this.Thanks in advance.
Phil from ApiAxle helped me figure this out. It turns out you need to run apiaxle-proxy with the -q flag, or use their separate queue processor. There is some documentation about this here: https://github.com/apiaxle/apiaxle/blob/4b1a80ef576b3af9511c1239e99841b2d521eb63/proxy/apiaxle-proxy.coffee#L533-538

Android 3.0 and higher version issue

Thankyou for taking the time to look at my problem. I'm working on an android application and I keep getting an error in eclipse every time I use the parent="android.Theme.Holo.Light". I have my folder created using values-v11 indicating when to use the correct theme for the correct version but I just get the error:
No resource found that matches the given name 'android.Theme.Holo.Light' in my styles.xml file.
Any idea why this is happening? Thanks in advance.
Try this:
parent="#android:style/Theme.Holo.Light"

Jelly script to reset the issue resolution in JIRA

I am trying to run a jelly script in JIRA to set the resolution to null for all my issues. The following script runs without errors and returns this:
<JiraJelly xmlns:jira='jelly:com.atlassian.jira.jelly.JiraTagLib' xmlns:log='jelly:log' xmlns:core='jelly:core' xmlns:jx='jelly:xml' xmlns:util='jelly:util'>org.ofbiz.core.entity.GenericValue.NULL_VALUEorg.ofbiz.core.entity.GenericValue.NULL_VALUEorg.ofbiz.core.entity.GenericValue.NULL_VALUE.... </JiraJelly>
Here is the script.
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib" xmlns:util="jelly:util" xmlns:core="jelly:core" xmlns:jx="jelly:xml" xmlns:log="jelly:log">
<jira:RunSearchRequest var="issues" />
<core:forEach var="genericIssue" items="${issues}">
<core:invokeStatic className="com.atlassian.jira.issue.IssueImpl" method="getIssueObject" var="issue">
<core:arg type="org.ofbiz.core.entity.GenericValue" value="${genericIssue}"/>
</core:invokeStatic>
<core:invoke on="${issue}" method="setResolution">
<core:arg type="org.ofbiz.core.entity.GenericValue">org.ofbiz.core.entity.GenericValue.NULL_VALUE</core:arg>
</core:invoke>
</core:forEach>
</JiraJelly>
Does any one have any idea why this isn't working or have any ideas on how I might set the resolution to nothing?
Thank you!!
Updating issues via jelly in JIRA is a bit broken. The best example of how to make it work that I've seen is by using ActionDispatcher as shown on the docs page in a comment by Alastair King.
I know it can be done with Jelly runner, but i thinks that this would be easier to do so using the Jira remote API or the Jira CLI. A more elaborated example of the Jira remote API can be found here. If anyone wants me to post a working source code feel free to ask.

Resources