Commit 0843db2b authored by dkasliwal's avatar dkasliwal

GraphComponent : Changes in buildChart method for unique id

DOM.createUniqueId() for Smart filter
ChartCreator : Add code for open link metadatadata from pie chart
GwtDashboardPage.css :Add outerVPanel class to smart filter popup
 SmartFiltrCreator : change in initPopUpPnl method add uniqueID to smartfilterDivID
And popup add to Rootpanel
CustomGrid :In createTableComponent method add personName to set on title for sardia dashboard


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99334 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 687a4795
...@@ -351,43 +351,109 @@ public class ChartCreator ...@@ -351,43 +351,109 @@ public class ChartCreator
String url=Window.Location.getParameter("titleName"); String url=Window.Location.getParameter("titleName");
String prdFilter=""; String prdFilter="";
/*Added code to open new chart in frame by swati 25 Nov 2015*/
String propertyStr="";
int count=0;
for (FilterInfo filterInfo : filterList)
{
if(count==0)
{
propertyStr = "&"+filterInfo.getFieldName()+"@"+parameterList.get(count+1);
}
else
{
propertyStr = propertyStr+"&"+filterInfo.getFieldName()+"@"+parameterList.get(count+1);
}
count++;
}
if(prdFilterName.length()>0) if(prdFilterName.length()>0)
{ {
prdFilter=prdFilterName; prdFilter=prdFilterName;
} }
if(url=="undefined" || url.equals("undefined") || url.equalsIgnoreCase("undefined")) if(url=="undefined" || url.equals("undefined") || url.equalsIgnoreCase("undefined"))
{ {
if((FilterCreator.title).size()>0)
url="&titleName@"+(FilterCreator.title).get(0)+(""+jsnStringValue).replace('"', ' ').trim(); url="&titleName@"+(FilterCreator.title).get(0)+(""+jsnStringValue).replace('"', ' ').trim();
} }
else else
{ {
url="&titleName@"+url+":"+(FilterCreator.title).get(0)+(""+jsnStringValue).replace('"', ' ').trim(); url="&titleName@"+url+":"+(FilterCreator.title).get(0)+(""+jsnStringValue).replace('"', ' ').trim();
} }
if((prevUrl).trim().length()>1) if((prevUrl).trim().length()>1)
{ {
if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("n")) if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("n"))
{ {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt)+"-"+"/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); if(linkLMetadataList.get(seriesCnt).trim().contains("/"))
{
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}else {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-"+"/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}
} }
else if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("p")) else if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("p"))
{ {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt)+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); if(linkLMetadataList.get(seriesCnt).trim().contains("/"))
{
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-detailsPopUp,"+linkedProperties+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}else {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
} }
} }
/*Added code to open new chart in frame by swati 25 Nov 2015*/
if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("f"))
{
String cellValue=(""+dataStringValue).replace('"', ' ');
String urlStr="";
String parameterListString=yAxisColunList.get(seriesCnt)+"&"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim();
if(linkLMetadataList.get(seriesCnt).trim().length()>0 )
{
linkStringValue=new JSONString("JavaScript: isJavaScriptCall=true;linkFunction('"+linkLMetadataList.get(seriesCnt)+"', '"+cellValue+"', '"+propertyStr+"','"+ urlStr+"', '"+parameterListString+"', 'Y')");
}
}
/*ended code to open new chart in frame by swati 25 Nov 2015*/
}
else else
{ {
if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("n")) if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("n"))
{ {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt)+"-"+"/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); if(linkLMetadataList.get(seriesCnt).trim().contains("/"))
{
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}else {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-"+"/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
} }
else if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("p")){
linkStringValue=new JSONString(linkTypeList.get(seriesCnt)+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
} }
else if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("p"))
{
if(linkLMetadataList.get(seriesCnt).trim().contains("/"))
{
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-detailsPopUp,"+linkedProperties+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}else {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
} }
categoryMap.put(linkStringKey, linkStringValue); }
/*Added code to open new chart in frame by swati 25 Nov 2015*/
if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("f"))
{
String metadataName=parameterList.get(0);
String cellValue=(""+dataStringValue).replace('"', ' ');
String urlStr="";
String parameterListString=yAxisColunList.get(seriesCnt)+"&"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim();
if(linkLMetadataList.get(seriesCnt).trim().length()>0 )
{
linkStringValue=new JSONString("JavaScript: isJavaScriptCall=true;linkFunction('"+linkLMetadataList.get(seriesCnt)+"', '"+cellValue+"', '"+propertyStr+"','"+ urlStr+"', '"+parameterListString+"', 'Y')");
}
} }
/*ended code to open new chart in frame by swati 25 Nov 2015*/
}
categoryMap.put(linkStringKey, linkStringValue);
}
/*ended for serdia*/
/*ended link code fpr poup,new tab,frame by swati date 25 Nov 2015*/
barValueList.add(categoryMap); barValueList.add(categoryMap);
barDataVal = JSONParser.parseStrict(barValueList.toString().replace('=', ':')); barDataVal = JSONParser.parseStrict(barValueList.toString().replace('=', ':'));
} }
......
...@@ -384,6 +384,9 @@ public class CustomGrid extends AbstractDataGrid<DataGridTableRowModel> ...@@ -384,6 +384,9 @@ public class CustomGrid extends AbstractDataGrid<DataGridTableRowModel>
/* add code for Compliance Dashboard JNJ by Dhanendra 16/06/15*/ /* add code for Compliance Dashboard JNJ by Dhanendra 16/06/15*/
String salesPers = Window.Location.getParameter("SALES_PERS") == null ? "" : Window.Location.getParameter("SALES_PERS"); String salesPers = Window.Location.getParameter("SALES_PERS") == null ? "" : Window.Location.getParameter("SALES_PERS");
/*End code for Compliance Dashboard JNJ by Dhanendra 16/06/15*/ /*End code for Compliance Dashboard JNJ by Dhanendra 16/06/15*/
/* add code for epa Dashboard by Dhanendra 29/09/15*/
String empCode = Window.Location.getParameter("EMP_CODE") == null ? "" : Window.Location.getParameter("EMP_CODE");
/*End code for epa Dashboard by Dhanendra 29/09/15*/
if(caption.trim().length()==0 && cellVal.trim().length()>0) if(caption.trim().length()==0 && cellVal.trim().length()>0)
{ {
if(brandName.trim().length()>0) if(brandName.trim().length()>0)
...@@ -396,6 +399,10 @@ public class CustomGrid extends AbstractDataGrid<DataGridTableRowModel> ...@@ -396,6 +399,10 @@ public class CustomGrid extends AbstractDataGrid<DataGridTableRowModel>
caption = salesPers.trim()+" - "+cellVal.trim(); caption = salesPers.trim()+" - "+cellVal.trim();
} }
/* add code for Compliance Dashboard JNJ by Dhanendra 16/06/15*/ /* add code for Compliance Dashboard JNJ by Dhanendra 16/06/15*/
else if(empCode.trim().length()>0)
{
caption = "Employee Code : "+empCode.trim();
}
else else
{ {
caption = cellVal.trim(); caption = cellVal.trim();
...@@ -574,7 +581,8 @@ public class CustomGrid extends AbstractDataGrid<DataGridTableRowModel> ...@@ -574,7 +581,8 @@ public class CustomGrid extends AbstractDataGrid<DataGridTableRowModel>
try { try {
$wnd.createFrameContainer(); $wnd.createFrameContainer();
document.getElementById('frameContainer').innerHTML = "<iframe scrolling='no' id='frame1' width='99%' height='230' frameborder='0' src='/ibase/dwh/GwtDashboardPage.html?metadataname="+metadataName+propertyStr+"&"+parameterListString+"&CELL_VAL="+cellValue.trim()+"&P1="+urlStr+"&FLAG=N'></iframe>"; // set height 430 and width 100% by dhanendra on date 21-10-2015
document.getElementById('frameContainer').innerHTML = "<iframe scrolling='no' id='frame1' width='100%' height='430' frameborder='0' src='/ibase/dwh/GwtDashboardPage.html?metadataname="+metadataName+propertyStr+"&"+parameterListString+"&CELL_VAL="+cellValue.trim()+"&P1="+urlStr+"&FLAG=N'></iframe>";
//document.getElementById('frameContainer').innerHTML = "<iframe scrolling='no' id='frame1' width='99%' height='230' frameborder='0' src='/ibase/dwh/GwtDashboardPage.html?metadataname="+metadataName+propertyStr+"&"+parameterListString+"&CELL_VAL="+cellValue.trim()+"&P1="+urlStr+"&FLAG="+dispFilterStatus+"'></iframe>"; //document.getElementById('frameContainer').innerHTML = "<iframe scrolling='no' id='frame1' width='99%' height='230' frameborder='0' src='/ibase/dwh/GwtDashboardPage.html?metadataname="+metadataName+propertyStr+"&"+parameterListString+"&CELL_VAL="+cellValue.trim()+"&P1="+urlStr+"&FLAG="+dispFilterStatus+"'></iframe>";
} catch (e) { } catch (e) {
...@@ -768,12 +776,22 @@ public class CustomGrid extends AbstractDataGrid<DataGridTableRowModel> ...@@ -768,12 +776,22 @@ public class CustomGrid extends AbstractDataGrid<DataGridTableRowModel>
displayPager.setRangeCommand( setRowCmd ); displayPager.setRangeCommand( setRowCmd );
String cellVal = Window.Location.getParameter("CELL_VAL") == null ? "" : Window.Location.getParameter("CELL_VAL"); String cellVal = Window.Location.getParameter("CELL_VAL") == null ? "" : Window.Location.getParameter("CELL_VAL");
String brandName = Window.Location.getParameter("brand") == null ? "" : Window.Location.getParameter("brand"); String brandName = Window.Location.getParameter("brand") == null ? "" : Window.Location.getParameter("brand");
/*Add Code for sardia Dashboard to set on title by Dhanendra on Date 03-12-2015*/
String personName = Window.Location.getParameter("personName") == null ? "" : Window.Location.getParameter("personName");
/*End Code for sardia Dashboard to set on title by Dhanendra on Date 03-12-2015*/
if(caption.trim().length()==0 && cellVal.trim().length()>0) if(caption.trim().length()==0 && cellVal.trim().length()>0)
{ {
if(brandName.trim().length()>0) if(brandName.trim().length()>0)
{ {
caption = brandName.trim()+" - "+cellVal.trim()+" (Stock Quantity) "; caption = brandName.trim()+" - "+cellVal.trim()+" (Stock Quantity) ";
} }
/*Add Code for sardia Dashboard to set on title by Dhanendra on Date 03-12-2015*/
else if(personName.trim().length()>0)
{
caption = personName.trim()+" - "+cellVal.trim();
}
/*End Code for sardia Dashboard to set on title by Dhanendra on Date 03-12-2015*/
else else
{ {
caption = cellVal.trim(); caption = cellVal.trim();
......
...@@ -12,6 +12,7 @@ import com.google.gwt.event.dom.client.KeyUpEvent; ...@@ -12,6 +12,7 @@ import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler; import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.i18n.client.DateTimeFormat; import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.json.client.JSONObject; import com.google.gwt.json.client.JSONObject;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Window; import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.CheckBox; import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.Composite;
...@@ -22,6 +23,7 @@ import com.google.gwt.user.client.ui.HorizontalPanel; ...@@ -22,6 +23,7 @@ import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PopupPanel; import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.RadioButton; import com.google.gwt.user.client.ui.RadioButton;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.ScrollPanel; import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.VerticalPanel;
...@@ -36,8 +38,9 @@ public class SmartFiltrCreator extends Composite ...@@ -36,8 +38,9 @@ public class SmartFiltrCreator extends Composite
{ {
LinkedHashMap<String, ArrayList<String>> datsSourceDtlMap = null; LinkedHashMap<String, ArrayList<String>> datsSourceDtlMap = null;
LinkedHashMap<String, JSONObject> componentDataMap = null; LinkedHashMap<String, JSONObject> componentDataMap = null;
PopupPanel mainPopupPnl = new PopupPanel(); PopupPanel smartFltrPopupPnl = new PopupPanel();
final VerticalPanel popUpHPnl = new VerticalPanel(); /*Change veriavle name popupPnel to outerPnl by Dhanendra 03-12-2015*/
final VerticalPanel outerPnl = new VerticalPanel();
JSONObject jsonObjMetaData = null; JSONObject jsonObjMetaData = null;
ArrayList<String> fltrColumnDataList = null; ArrayList<String> fltrColumnDataList = null;
HashMap<String, ArrayList<String>> fltrDataMap = null; HashMap<String, ArrayList<String>> fltrDataMap = null;
...@@ -79,13 +82,28 @@ public class SmartFiltrCreator extends Composite ...@@ -79,13 +82,28 @@ public class SmartFiltrCreator extends Composite
private void initPopUpPnl() private void initPopUpPnl()
{ {
/*Add Code by Dhanendra to add unique id to smart filter 03-12-2015*/
String uniqueid = DOM.createUniqueId();
/*End Code by Dhanendra to add unique id to smart filter 03-12-2015*/
//mainPopupPnl.setPopupPosition(30, 60);
/**Change veriable name mainPopupPnl to smartFltrPopupPnl on 03-12-2015 **/
smartFltrPopupPnl.setPopupPosition(10, 12);
smartFltrPopupPnl.setStylePrimaryName("vPanelCSS");
/*Add uniqueid to smartfilter Id by Dhanendra 03-12-2015*/
smartFltrPopupPnl.getElement().setId("smartFilterMainOuterDiv"+uniqueid);
/*End uniqueid to smartfilter Id by Dhanendra 03-12-2015*/
mainPopupPnl.setPopupPosition(30, 60);
mainPopupPnl.setStylePrimaryName("vPanelCSS");
mainPopupPnl.getElement().setId("smartFilterMainOuterDiv");
this.buildSmrtFiltr(); this.buildSmrtFiltr();
mainPopupPnl.add(popUpHPnl); smartFltrPopupPnl.add(outerPnl);
mainPopupPnl.show(); outerPnl.setStyleName("outerVPanel");
/** comment popup panel to show on load its add to rootpanel by Dhanendra on 02-12-2015 **/
//smartFltrPopupPnl.show();
RootPanel.get("chartContainer").add(smartFltrPopupPnl);
/** comment popup panel to show on load its add to rootpanel by Dhanendra on 02-12-2015 **/
this.filtrClickActn(fltrDtlList); this.filtrClickActn(fltrDtlList);
} }
...@@ -227,13 +245,13 @@ public class SmartFiltrCreator extends Composite ...@@ -227,13 +245,13 @@ public class SmartFiltrCreator extends Composite
fltrComponentPnl.add(inputTxtBox); fltrComponentPnl.add(inputTxtBox);
outerVPanel.add(fltrComponentPnl); outerVPanel.add(fltrComponentPnl);
popUpHPnl.add(outerVPanel); outerPnl.add(outerVPanel);
} else if ("2".equals(fltrSelectnMode)) } else if ("2".equals(fltrSelectnMode))
{ {
new InputListWidget(fltrColumnDataList, fltrComponentPnl, smrtFilterInfo); new InputListWidget(fltrColumnDataList, fltrComponentPnl, smrtFilterInfo);
outerVPanel.add(fltrComponentPnl); outerVPanel.add(fltrComponentPnl);
popUpHPnl.add(outerVPanel); outerPnl.add(outerVPanel);
} else if ("4".equals(fltrSelectnMode)) } else if ("4".equals(fltrSelectnMode))
{ {
...@@ -245,7 +263,7 @@ public class SmartFiltrCreator extends Composite ...@@ -245,7 +263,7 @@ public class SmartFiltrCreator extends Composite
dateBox.setStylePrimaryName("textBoxCss"); dateBox.setStylePrimaryName("textBoxCss");
fltrComponentPnl.add(dateBox); fltrComponentPnl.add(dateBox);
outerVPanel.add(fltrComponentPnl); outerVPanel.add(fltrComponentPnl);
popUpHPnl.add(outerVPanel); outerPnl.add(outerVPanel);
} else if ("5".equals(fltrSelectnMode) || "3".equals(fltrSelectnMode)) } else if ("5".equals(fltrSelectnMode) || "3".equals(fltrSelectnMode))
{ {
if ("3".equals(fltrSelectnMode)) if ("3".equals(fltrSelectnMode))
...@@ -257,7 +275,7 @@ public class SmartFiltrCreator extends Composite ...@@ -257,7 +275,7 @@ public class SmartFiltrCreator extends Composite
} }
outerVPanel.setHeight("200px"); outerVPanel.setHeight("200px");
outerVPanel.add(fltrComponentPnl); outerVPanel.add(fltrComponentPnl);
popUpHPnl.add(outerVPanel); outerPnl.add(outerVPanel);
} }
} }
} }
...@@ -432,11 +450,11 @@ public class SmartFiltrCreator extends Composite ...@@ -432,11 +450,11 @@ public class SmartFiltrCreator extends Composite
{ {
fltrInfo = smrtFltrDtlList.get(i); fltrInfo = smrtFltrDtlList.get(i);
colName = fltrInfo.getFltrColName(); colName = fltrInfo.getFltrColName();
for (int scrlPnlCnt = 0; scrlPnlCnt < popUpHPnl.getWidgetCount(); scrlPnlCnt++) for (int scrlPnlCnt = 0; scrlPnlCnt < outerPnl.getWidgetCount(); scrlPnlCnt++)
{ {
if (popUpHPnl.getWidget(scrlPnlCnt) instanceof VerticalPanel) if (outerPnl.getWidget(scrlPnlCnt) instanceof VerticalPanel)
{ {
verticalPanel = (VerticalPanel) popUpHPnl.getWidget(scrlPnlCnt); verticalPanel = (VerticalPanel) outerPnl.getWidget(scrlPnlCnt);
if (verticalPanel.getWidget(1) instanceof HorizontalPanel) if (verticalPanel.getWidget(1) instanceof HorizontalPanel)
{ {
horizontalPanel = (HorizontalPanel) verticalPanel.getWidget(1); horizontalPanel = (HorizontalPanel) verticalPanel.getWidget(1);
...@@ -540,11 +558,11 @@ public class SmartFiltrCreator extends Composite ...@@ -540,11 +558,11 @@ public class SmartFiltrCreator extends Composite
HorizontalPanel horizontalPanel = null; HorizontalPanel horizontalPanel = null;
VerticalPanel verticalPanel = null; VerticalPanel verticalPanel = null;
HashMap<String, ArrayList<String>> selectedDataMap = new HashMap<String, ArrayList<String>>(); HashMap<String, ArrayList<String>> selectedDataMap = new HashMap<String, ArrayList<String>>();
for (int scrlPnlCnt = 0; scrlPnlCnt < popUpHPnl.getWidgetCount(); scrlPnlCnt++) for (int scrlPnlCnt = 0; scrlPnlCnt < outerPnl.getWidgetCount(); scrlPnlCnt++)
{ {
if (popUpHPnl.getWidget(scrlPnlCnt) instanceof VerticalPanel) if (outerPnl.getWidget(scrlPnlCnt) instanceof VerticalPanel)
{ {
verticalPanel = (VerticalPanel) popUpHPnl.getWidget(scrlPnlCnt); verticalPanel = (VerticalPanel) outerPnl.getWidget(scrlPnlCnt);
if (verticalPanel.getWidget(1) instanceof HorizontalPanel) if (verticalPanel.getWidget(1) instanceof HorizontalPanel)
{ {
horizontalPanel = (HorizontalPanel) verticalPanel.getWidget(1); horizontalPanel = (HorizontalPanel) verticalPanel.getWidget(1);
......
...@@ -87,11 +87,7 @@ function outerDiv(outerDivId,type, cssName) ...@@ -87,11 +87,7 @@ function outerDiv(outerDivId,type, cssName)
iDiv.appendChild(headDiv); iDiv.appendChild(headDiv);
outerDiv.appendChild(iDiv); outerDiv.appendChild(iDiv);
/*Change code outerdiv append on body tag by Dhanendra on Date 23-11-2015*/ document.getElementById('chartContainer').appendChild(outerDiv);
document.getElementsByTagName('body')[0].appendChild(outerDiv);
/*Change code outerdiv append on body tag by Dhanendra on Date 23-11-2015*/
//document.getElementById('chartContainer').appendChild(outerDiv);
} }
function innerDiv(innerDivId,groupName) function innerDiv(innerDivId,groupName)
{ {
......
...@@ -493,7 +493,7 @@ ul.token-input-list { ...@@ -493,7 +493,7 @@ ul.token-input-list {
overflow: hidden; overflow: hidden;
height: auto !important; height: auto !important;
height: 20px; height: 20px;
width: 190px; width: 250px;
border: 1px solid lightgray; border: 1px solid lightgray;
cursor: text; cursor: text;
font-size: 12px; font-size: 12px;
...@@ -1414,3 +1414,36 @@ color: #999; !important; ...@@ -1414,3 +1414,36 @@ color: #999; !important;
} }
/**ended css for ss grid title and subtitle by swati on 08-sep-2015*/ /**ended css for ss grid title and subtitle by swati on 08-sep-2015*/
.popupScrlPnl
{
overflow-x:hidden;
height: 400px;
width: 285px;
padding: 0px;
cellspacing: 0px;
background-color: white;
border: 1px solid lightgray;
border-radius: 2px;
}
.drpDownBoxCss {
height: 25px;
width: 250px;
}
/* Start Added new Code by sachin on 28 sep 15 for Showing scroll bar to auto suggest box of autocomplete filter */
.suggestPopupMiddleCenterInner
{
overflow-y: scroll;
height: 250px;
}
/*End Added new Code by sachin on 28 sep 15 for Showing scroll bar to auto suggest box of autocomplete filter */
/*Start Added New CSS class for smartFilter Panel padding by Dhanendra on 03-12-2015 */
.outerVPanel
{
padding-left: 10px;
padding-top: 10px;
}
/*End Added New CSS class for smartFilter Panel padding by Dhanendra on 03-12-2015 */
\ No newline at end of file
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