Search Support
-
Ramesh BangaramJune 6, 2016 at 11:27 pm #2071
Hi All,
i am getting json object from BPM Service.
is there any way to display the json data directly to spark table.
please help me out.
Thanks,
Ramesh.
SPARK SupportJune 7, 2016 at 10:35 am #2078Ramesh,
One way to do this is to use the table’s appendElement method. For example:
#{Table1}.appendElement({“str1”: someValue, “str2”: someOtherValue});
Here is the full documentation for appendElement(s)
http://support.salientprocess.com/docs/enterprise/ServiceDataTable.html#appendElementRamesh BangaramJune 8, 2016 at 6:43 am #2083${Table1}.appendElement(..) working fine for single record.
Since we need to pass multiple records to table, we tried below API:
${Table1}.appendElements([{..},{..},{..}])
but we are getting appendElements is not a function.
Kindly provide more information on this API.
SPARK SupportJune 8, 2016 at 10:08 pm #2090Ramesh,
All the information about the API is available via the JSDoc as linked above. It is likely that it is not available in the version of SPARK that you are using, which would explain the response you are getting.
Regards,
Rackley
Ramesh BangaramJune 9, 2016 at 9:50 pm #2099Hi Rackley,
I am using below versions:
Spark UI: 4.2.1.1
IBM BPM : 8.5.6
which versions support below API ?
${Table1}.appendElements([{..},{..},{..}])
Kindly provide more information on how to pass json object/data to spark table ? if it is possible tell me step by step it’s more helpful.
Thanks,
Ramesh .
SPARK SupportJune 13, 2016 at 9:15 am #2117Hey Ramesh,
Could you provide me with the code you are trying to use to append the JSON object to the table?
Thanks,
Elliot
Ramesh BangaramJune 14, 2016 at 6:57 am #2122Hi Elliot,
My JSON Object like below:
var json=(‘[[{“name”:”M.S”,”value”:[“Dhoni,sakshi,ranchi”]}],[{“name”:”Sachin”,”value”:[“Tendulkar,ramesh,sachin,mumbai”]}]]’);
i need to append this data to table
please help me out.
Thanks Advance,
Ramesh
EQuintanillaJune 14, 2016 at 9:24 am #2127Hey Ramesh,
You should try formatting your JSON object like this:
var json = [{“name”:”M.S”,”value”:[“Dhoni”,”sakshi”,”ranchi”]}, {“name”:”Sachin”,”value”:[“Tendulkar”,”ramesh”,”sachin”,”mumbai”]}]
-Erick Quintanilla
-
|
You must be logged in to reply to this topic.