Commit 48291ee9 authored by sdhaul's avatar sdhaul

Updated to fetch feed details from metadata

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@192057 ce508802-f39f-4f6c-b175-0d175dae99d5
parent da89eb86
......@@ -535,7 +535,30 @@ public class DashboardUtil
System.out.println("componentData final::::::::"+componentData);
// finalDataObj=getPivotTableData(componentData);
JSONObject feedJSON = componentData.optJSONObject("feed");
if(feedJSON != null) {
JSONArray tempFeedList = new JSONArray();
tempFeedList.put(feedJSON);
componentData.put("feed", tempFeedList);
}
JSONArray feedList = componentData.optJSONArray("feed");
if(feedList != null) {
for(int i = 0; i < feedList.length() ; i++) {
JSONObject detailJSON = feedList.getJSONObject(i).optJSONObject("detail");
if(detailJSON != null) {
JSONArray detailList = new JSONArray();
detailList.put(detailJSON);
feedList.getJSONObject(i).put("detail", detailList);
}
}
componentData.put("feed", feedList);
}
return componentData;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment