Commit 9cea9cb8 authored by dkasliwal's avatar dkasliwal

add code for after close drill down chart the parameter list save for parent metadataxml


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103796 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b2aadf0e
......@@ -60,8 +60,17 @@ public class FilterCreator extends Composite
public static ArrayList<String> parameterList = null;
public static ArrayList<String> parameterListDtl = null;
public FilterCreator(ArrayList<String> parameterList, JSONObject metaDataJsnObj)
public FilterCreator(ArrayList<String> parameterList, JSONObject metaDataJsnObj, String childID)
{
/*Add code for set ParameterList and metaDataJsnObj By Dhanendra on date 14-10-2016*/
//Window.alert("childID :"+childID);
if(childID.equalsIgnoreCase(""))
{
GWTDashBoardReport.parameterListGlobl = parameterList;
GWTDashBoardReport.metaDataJsnObjGlobl = metaDataJsnObj;
}
/*ENd code for set ParameterList and metaDataJsnObj By Dhanendra on date 14-10-2016*/
boolean isParameterPrsnt = false;
HorizontalPanel fltrImgPnl = new HorizontalPanel();
HorizontalPanel horizontlPnl = new HorizontalPanel();
......@@ -305,6 +314,7 @@ public class FilterCreator extends Composite
@Override
public void onClick(ClickEvent event)
{
CommonUtils.printOnConsole("******** filterList ******** :"+filterList);
getFltrSelectedData(filterList, mainPopupPnl);
}
});
......@@ -759,6 +769,9 @@ public class FilterCreator extends Composite
// Node viewNode = null;
// String view=null;
final String image = "<img align='top' src='FusionChart/images/menu_button.png' height='18px' width='25px'/>";
/*Add Code by Dhanendra on date 14-10-2016*/
final String metadataname = Window.Location.getParameter("metadataname") == null ? "" : Window.Location.getParameter("metadataname");
/*End Code by Dhanendra on date 14-10-2016*/
MenuBar menu = new MenuBar();
try
......@@ -796,10 +809,27 @@ public class FilterCreator extends Composite
{
ArrayList<String> selectedParamList = getParameterList();
selectedView = view;
/*add if else condition for after drilldown parent view open by Dhanendra 14-10-2016*/
//Window.alert("metadataname :"+metadataname+"-- selectedParamList.get(0) :"+selectedParamList.get(0));
if(metadataname.equalsIgnoreCase(selectedParamList.get(0)))
{
//Window.alert("in if");
selectedParamList.remove(parameterList.size() - 1);
selectedParamList.add(view);
E12DashBoardPage.initaliseGraphNGrid(selectedParamList,"",metaDataJsnObj);
}
else
{
//Window.alert("in else");
selectedParamList = new ArrayList<String>();
//Window.alert("GWTDashBoardReport.parameterListGlobl :"+GWTDashBoardReport.parameterListGlobl);
selectedParamList = GWTDashBoardReport.parameterListGlobl;
selectedParamList.remove(GWTDashBoardReport.parameterListGlobl.size() - 1);
selectedParamList.add(view);
E12DashBoardPage.initaliseGraphNGrid(selectedParamList,"",GWTDashBoardReport.metaDataJsnObjGlobl);
}
/*End if else condition for after drilldown parent view open by Dhanendra 14-10-2016*/
}
});
fileMenu.addItem(actionItem);
actionItem.setStyleName("popupMenuItem");
......@@ -1045,6 +1075,9 @@ public class FilterCreator extends Composite
/* Start add List for India Map Caption Dhanendra 06/05/2015 */
setParameterListDtl(popUpSendDtatListDtl);
/* End add List for India Map Caption Dhanendra 06/05/2015 */
GWTDashBoardReport.parameterListGlobl = popUpSendDtatList;
GWTDashBoardReport.metaDataJsnObjGlobl = metaDataJsnObj;
setTitleOnFilterSubmit(popUpSendDtatList, metaDataJsnObj);
CommonUtils.printOnConsole("************ metaDataJsnObj :"+metaDataJsnObj);
E12DashBoardPage.initaliseGraphNGrid(popUpSendDtatList,"",metaDataJsnObj);
......
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