|
|
|
|
<%
boolean IsAgraggate = false;
if (paramObject !=null) {
ObjectsBean objetBean =null;
try{
objetBean = dico.getTable("sql",paramObject);
} catch (FrontlineException ex) {
IsAgraggate = true;
}
if (objetBean != null){
Vector vectFields = dico.getTableFields("sql", paramObject, true, false);
Vector Champs = new Vector();
for (int i = 0; i < vectFields.size(); i++) {
FieldBean fldBean = (FieldBean) vectFields.elementAt(i);
String fldID = null;
try {
fldID = fldBean.getID();
} catch (FieldNotInitializedException ex) {}
String fldSQL = null;
try {
fldSQL = fldBean.getFldSql();
} catch (FieldNotInitializedException ex) {}
boolean horsCible = false;
try {
horsCible = fldBean.isFldCriteria();
} catch (FieldNotInitializedException ex) {}
if (!horsCible) {
String fldDisplay = null;
try {
fldDisplay = fldBean.getFldDisplay();
} catch (FieldNotInitializedException ex) {
fldDisplay = "";
}
try {
fldDisplay = Utils.getMessage(session, fldBean
.getFldDisplayLabel(), false, true, fldDisplay);
} catch (FieldNotInitializedException fnie) {
}
if ("".equals(fldDisplay)){
fldDisplay = fldSQL;
}
String[] Fields = {fldID,fldDisplay};
Champs.addElement(Fields);
}
}
String[] FieldsStat = {"","------------------------"};
// liste des conditions types
Champs.addElement(FieldsStat);
String condition="1";
String[] fieldCond = {"Se2ID", "Se2Name"};
String[][] queryCond = {{"Se2Condition = "+Utils.formatToSQL(context, condition), "Se2Model:SmdObjID = "+Utils.formatToSQL(context, paramObjectID)}};
Vector listCond = Selection2Bean.listSummary(session, fieldCond, queryCond);
if (listCond != null && listCond.size() > 0) {
for (int i = 0; i < listCond.size(); i++) {
Hashtable row = (Hashtable) listCond.elementAt(i);
String conditionID = (String) row.get("Se2ID");
String conditionName = (String) row.get("Se2Name");
String[] Fields= {"Condition|"+conditionID,conditionName};
Champs.addElement(Fields);
}
}
%>
|
|
<% }//fin de objBean
}//fin de paramaObject
%>
|