Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Problem creating multiple double list controls on one form ...

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Problem creating multiple double list controls on one form ...
 Login/Join
 
Member
posted
I am trying to create 2 “double list controls” on one form and bind them to Dynamic data sources. When I do so, the 2nd double list control becomes inactive. How do I get them both to work on the same form.


Webfocus relase 764
Linux
All mentioned including AHTML
 
Posts: 13 | Registered: July 10, 2009Report This Post
Gold member
posted Hide Post
Hello,

Please find below a complex example of an html form with multiple list controls depending on each other, each combo is "multiple" selection.
We have been obliged to use javascript, we didn't found a solution without using javascript.

I hope it will help you.

  
<HTML>
<HEAD>
<script id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>
 
<script id=IBI_OptionsScript type=text/javascript>
var rltVersion = "764";
var cgipath = "cgipath";
var ibirls = "ibirls2";
 
var rltdyncalendar = "rltdyncalendar";
var gmap = "ibigmap";
var olap="olap";
var olappanebase="olappanebase";
var olapdrill="olapdrill";
 
var ibixmltree="ibixmltree";
 
var ibiOptions = new Array(cgipath,ibirls,rltdyncalendar);
</SCRIPT>
 
<script id=IBI_nls src="/ibi_html/javaassist/nls.js" type=text/javascript></SCRIPT>
 
<script id=IBI_ibigbl src="/ibi_html/javaassist/ibi/html/js/ibigbl.js" type=text/javascript></SCRIPT>
 
<script id=IBI_ibigblloadCss type=text/javascript>
ibigblloadCss(null);</SCRIPT>
<TITLE>HtmlPage</TITLE>
<script id=clientEventHandlersJS type=text/javascript>
 
 //-----------------------------------------------------------------------------
//Begin function window_onload
function window_onload() {
UpdateData();
// TODO: Add your event handler code here
//add onInitialUpdate() function to make changes before initial run of the reports
 
  var now = new Date();
  var day = now.getDate();
  var month = now.getMonth() + 1;
  var year = now.getFullYear();
 
   form1.DAT_DEB.value = "01/01/" + year;
   if (day < 10)
     {var jour = '0' + day;}
   else
     {var jour = day;}
   if (month < 10)
     {var mois = '0' + month;}
   else
     {var mois = month;}
 
   form1.DAT_FIN.value = jour + '/' + mois + '/' + year;
   //form1.DAT_FIN.value = "31/12/" + year;
 
 if (WB.value=='O') {
  form1.TYP_SORT.selectedIndex = 0;
 
 }
 else {
 
    form1.TYP_SORT.options[1]=null;
    form1.TYP_SORT.options[form1.TYP_SORT.options.length - 2]=null;
    form1.TYP_SORT.options[form1.TYP_SORT.options.length - 1]=null;
    form1.TYP_SORT.selectedIndex = 0;
 
 }
 
 switch (UT_NIV.value){
 
  case '0':
   form1.NIV1.readOnly = false;
   form1.NIV2.readOnly = false;
   form1.NIV3.readOnly = false;
   form1.NIV4.readOnly = false;
 
   break;
  case '1':
   form1.NIV1.selectedIndex = 0;
   form1.NIV1.readOnly = true;
   form1.NIV2.readOnly = false;
   form1.NIV3.readOnly = false;
   form1.NIV4.readOnly = false;
 
   break;
  case '2':
   form1.NIV1.selectedIndex = 0;
   form1.NIV1.readOnly = true;
   form1.NIV2.selectedIndex = 0;
   form1.NIV2.readOnly = true;
   form1.NIV3.readOnly = false;
   form1.NIV4.readOnly = false;
 
   break;
  case '3':
   form1.NIV1.selectedIndex = 0;
   form1.NIV1.readOnly = true;
   form1.NIV2.selectedIndex = 0;
   form1.NIV2.readOnly = true;
   form1.NIV3.selectedIndex = 0;
   form1.NIV3.readOnly = true;
   form1.NIV4.readOnly = false;
 
   break;
  case '4':
   form1.NIV1.selectedIndex = 0;
   form1.NIV1.readOnly = true;
   form1.NIV2.selectedIndex = 0;
   form1.NIV2.readOnly = true;
   form1.NIV3.selectedIndex = 0;
   form1.NIV3.readOnly = true;
   form1.NIV4.selectedIndex = 0;
   form1.NIV4.readOnly = true;
   break;
 }
  if(parseInt(UT_NIV.value) <= 1){
     form1.ENTNIV2.style.visibility='hidden';
     form1.NIV2.style.visibility='hidden';
     form1.btnVersNiv2.style.visibility='hidden';
     form1.btnVider2.style.visibility='hidden';
     form1.ENTNIV3.style.visibility='hidden';
     form1.NIV3.style.visibility='hidden';
     form1.btnVersNiv3.style.visibility='hidden';
     form1.btnVider3.style.visibility='hidden';
     form1.ENTNIV4.style.visibility='hidden';
     form1.NIV4.style.visibility='hidden';
     form1.btnVersNiv4.style.visibility='hidden';
     form1.btnVider4.style.visibility='hidden';
 
  }
  else if(parseInt(UT_NIV.value) <= 2){
     form1.btnVersNiv2.style.visibility='hidden';
     form1.btnVider2.style.visibility='hidden';
     form1.ENTNIV3.style.visibility='hidden';
     form1.NIV3.style.visibility='hidden';
     form1.btnVersNiv3.style.visibility='hidden';
     form1.btnVider3.style.visibility='hidden';
     form1.ENTNIV4.style.visibility='hidden';
     form1.NIV4.style.visibility='hidden';
     form1.btnVersNiv4.style.visibility='hidden';
     form1.btnVider4.style.visibility='hidden';
 
  }
  else if(parseInt(UT_NIV.value) <= 3){
     form1.btnVersNiv2.style.visibility='hidden';
     form1.btnVider2.style.visibility='hidden';
     form1.btnVersNiv3.style.visibility='hidden';
     form1.btnVider3.style.visibility='hidden';
     form1.ENTNIV4.style.visibility='hidden';
     form1.NIV4.style.visibility='hidden';
     form1.btnVersNiv4.style.visibility='hidden';
     form1.btnVider4.style.visibility='hidden';
   }
  else if(parseInt(UT_NIV.value) <= 4){
     form1.btnVersNiv2.style.visibility='hidden';
     form1.btnVider2.style.visibility='hidden';
     form1.btnVersNiv3.style.visibility='hidden';
     form1.btnVider3.style.visibility='hidden';
     form1.btnVersNiv4.style.visibility='hidden';
     form1.btnVider4.style.visibility='hidden';
   }
 
   ENTITES();
   form1.DETAIL.selectedIndex = 0;
 
   if (parseInt(UT_NIV.value)<= 1){
      NIVDETAIL.value=form1.DETAIL.selectedIndex + 1;
   if (parseInt(UT_NIV.value)== 0){
   //Si utilisateur de niveau 0, proposer le choix de tri par entité
     if (form1.TRI.options.length==1){
          AjoutTriEntite(form1.TRI, 'ENTITE');
     }
   }
   }
   else{
     NIVDETAIL.value=parseInt(UT_NIV.value);
 
   }
   form1.SAFF.style.visibility='visible';
   form1.btnVersSAFF.style.visibility='visible';
   LBLSAFF.style.visibility='visible';
   form1.btnViderSaff.style.visibility='visible';
 
 
 
}
//End function window_onload
 
//-----------------------------------------------------------------------------
function ENTITES() {
 
//Remplir la liste des entités pour permettre la sélection du niveau de détail
 
 if ((form1.ENTNIV1.value!='*****')){
  if (parseInt(UT_NIV.value) <= 1){
   var oOption = document.createElement("OPTION");
           form1.DETAIL.options.add(oOption);
           oOption.value = form1.ENTNIV1.value;
           oOption.text = form1.ENTNIV1.value;
        }
 
  if ((form1.ENTNIV2.value!='*****')){
         if (parseInt(UT_NIV.value) <= 2){
             var oOption = document.createElement("OPTION");
             form1.DETAIL.options.add(oOption);
             oOption.value = form1.ENTNIV2.value;
             oOption.text = form1.ENTNIV2.value;
        }
 
   if ((form1.ENTNIV3.value!='*****')){
          if (parseInt(UT_NIV.value) <= 3){
                 var oOption = document.createElement("OPTION");
                 form1.DETAIL.options.add(oOption);
                 oOption.value = form1.ENTNIV3.value;
                 oOption.text = form1.ENTNIV3.value;
              }
    if ((form1.ENTNIV4.value!='*****')){
            if (parseInt(UT_NIV.value) <= 4){
               var oOption = document.createElement("OPTION");
                  form1.DETAIL.options.add(oOption);
                  oOption.value = form1.ENTNIV4.value;
                  oOption.text = form1.ENTNIV4.value;
      if (parseInt(UT_NIV.value) == 4){
           HideIncNivInf()}
       }
 }
  else { if(parseInt(UT_NIV.value) >= 3){
    HideIncNivInf()}
  }
  }  
  else { if(parseInt(UT_NIV.value) >= 2){
    HideIncNivInf()}
  }
     }
  else { if(parseInt(UT_NIV.value) >= 1){
    HideIncNivInf()}
  }
     }
  else { if(parseInt(UT_NIV.value) >= 0){
    HideIncNivInf()}
  }
 
}
 
 
//End ENTITES
//-----------------------------------------------------------------------------
//Begin function btnRapport_OnClick
function btnRapport_OnClick(ctrl) {
// TODO: Add your event handler code here
 
 //Compteur des affectations selectionnées
 
    compteur(form1.AFF, COMPTEUR);
 
 //Compteur des sous-affectations selectionnées
  compteur(form1.SAFF, SCOMPTEUR);
  if (form1.SAFF.style.visibility!='hidden'){
    if ((form1.SAFF.length >=1 ) && (SCOMPTEUR.value == 0)){
 
        alert("Sélectionner au moins un élément dans la liste des sous-affectations");
        return;
    }
  }
  else { SCOMPTEUR.value = 0;}
 
 //Compteur des entités de niveau 1
 
  if (form1.NIV1.style.visibility!='hidden'){
 
      compteur(form1.NIV1, COMPTEUR1);
 
      if ((form1.NIV1.length >=1 ) && (COMPTEUR1.value == 0)){
 
         alert("Sélectionner au moins un élément dans la liste des " + form1.ENTNIV1.value + "s!");
         return;
       }
 
   }
   //Si entité NIV1 non affichée dans HTML, elle ne sera pas affichée dans le rapport
   else {
         COMPTEUR1.value = 0;
   }
 
 //Compteur des entités de niveau 2
  if (form1.NIV2.style.visibility!='hidden'){
 
     compteur(form1.NIV2, COMPTEUR2);
 
     if ((form1.NIV2.length >=1 ) && (COMPTEUR2.value == 0)){
 
        alert("Sélectionner au moins un élément dans la liste des " + form1.ENTNIV2.value + "s!");
        return;
      }
 
   }
   //Si entité NIV2 non affichée dans HTML, elle ne sera pas affichée dans le rapport
   else {
         COMPTEUR2.value = 0;
   }
 
 //Compteur des entités de niveau 3
  if (form1.NIV3.style.visibility!='hidden'){
 
 
     compteur(form1.NIV3, COMPTEUR3);
 
     if ((form1.NIV3.length >=1 ) && (COMPTEUR3.value == 0)){
          alert("Sélectionner au moins un élément dans la liste des " + form1.ENTNIV3.value + "s!");
          return;
     }
 
   }
   //Si entité NIV3 non affichée dans HTML, elle ne sera pas affichée dans le rapport
   else {
         COMPTEUR3.value = 0;
   }
 
 
//Compteur des entités de niveau 4
  if (form1.NIV4.style.visibility!='hidden'){
 
     compteur(form1.NIV4, COMPTEUR4);
 
     if ((form1.NIV4.length >=1 ) && (COMPTEUR4.value == 0)){
           alert("Sélectionner au moins un élément dans la liste des " + form1.ENTNIV4.value + "s!");
           return;
     }
 
   }
   //Si entité NIV4 non affichée dans HTML, elle ne sera pas affichée dans le rapport
   else {
         COMPTEUR4.value = 0;
   }
 
 OnExecute(ctrl);
}
//End function btnRapport_OnClick
 
//-----------------------------------------------------------------------------
//Begin function compteur(liste, cpt)
//Compte le nombre des éléments sélectionnés dans une liste
function compteur(liste, cpt, entniv) {
 
 var aList=liste.options;
 var cptr=0;
 
 for (var ix=0;ix<aList.length;ix++){
        var aOpt=aList[ix];
        if (aOpt.selected)
            {cptr++ ;}
 }
 
 cpt.value = cptr;
 
  //if ((aList.length >=1 ) && (cpt.value == 0)){
        //alert("Sélectionner au moins un élément dans la liste des " + entniv.value + "s!");
  //}
  return;
 
}
//End function compteur(liste, cpt, entniv)
//-----------------------------------------------------------------------------
//Begin function HideIncNivInf()
//Cacher la liste déroulante inclure niveau inférieur et son libellé
function HideIncNivInf() {
 
 L_INC_INF.style.display = 'none';
 form1.INC_NIV_INF.style.display = 'none'; 
 AFF_INC_INF.value = 'N';
        
}
//End function HideIncNivInf()
//-----------------------------------------------------------------------------
//Begin function DisplayIncNivInf()
//Afficher la liste déroulante inclure niveaux inférieurs et son libellé
function DisplayIncNivInf() {
 
 L_INC_INF.style.display = 'block';
 form1.INC_NIV_INF.style.display = 'block';
 AFF_INC_INF.value = 'O';
        
}
//End function DisplayIncNivInf()   
//-----------------------------------------------------------------------------
//Begin function btnAide_onclick
function btnAide_onclick(ctrl) {
 
 msg=open("","NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=700,height=600");
 msg.location = "../approot/standard_v8/aide_w8st02e.htm"
}
//End function btnAide_onclick
//-----------------------------------------------------------------------------
//Begin function AffVersSAFF
function AffVersSAFF(objSelect,objFill) {
 // on va charger la 2ème listbox en fonction de la sélection sur la listbox 1 sans ouverture d une nouvelle fenêtre
 
 var Clause_Where = "";
 var aList=objSelect.options;
 
 var cpt = 0;
 var lg = 0;//nombre éléments sélectionnés
 
//Compter le nombre des éléments sélectionnés
 
 for (var ix=0;ix<aList.length;ix++)
 {
 var aOpt1=aList[ix];
 if (aOpt1.selected)
    {lg++;}
 }
 
//Construire la chaîne des valeurs du filtre
 
  for (var ix=0;ix<aList.length;ix++)
  {
 var aOpt1=aList[ix];
    if (aOpt1.selected)
    {
  cpt++;
  //si on est positionné sur le premier élément sélectionné de la liste
        if (cpt == 1)
        {
   //si le nombre des éléments sélectionné est 1
   if(lg == 1)
   {
    Clause_Where = Clause_Where + aList[ix].value ;
   }
   else
   //si le nombre des éléments sélectionnés est > 1
   {
     Clause_Where = Clause_Where + aList[ix].value + "\'" ;
   }
  }
  //si on est positionné sur un élément suivant de la liste 
        else 
  {
   //si le nombre des éléments sélectionné est 2
   if(lg == 2)
    {Clause_Where = Clause_Where + " OR " + "\'" + aList[ix].value ;}
   else
   {
    //si on est positionné sur le dernier élément de la liste
    if (cpt == lg)
     {Clause_Where = Clause_Where + " OR " + "\'" + aList[ix].value ;}
    //si on est positionné sur un autre élément de la liste
    else
     {Clause_Where = Clause_Where + " OR " + "\'" + aList[ix].value + "\'" ;}
   }
  }
      }
   }
 
 
 fillSelect(objSelect,objFill,"TABSSAFF","SAF_CODE","SAF_LIBELLE","SAF_CMAJ","AFF_CODE",Clause_Where," "," ");
 
 
}
//End function AffVersSAFF_onclick
 
//-----------------------------------------------------------------------------
 
//Begin function btnVersSAFF_OnClick
function btnVersSAFF_OnClick(ctrl) {
// TODO: Add your event handler code here
 // on va charger la 2ème listbox en fonction de la sélection sur la listbox 1 sans ouverture d une nouvelle fenêtre
 
  AffVersSAFF(form1.AFF,form1.SAFF);
}
//End function btnVersSAFF_OnClick
 
//-----------------------------------------------------------------------------
//Begin function NivnVersNivp
function NivnVersNivp(objSelect,objFill, nivFill) {
 // on va charger la 2ème listbox en fonction de la sélection sur la listbox 1 sans ouverture d une nouvelle fenêtre
 
  var Clause_Where = "";
  var aList=objSelect.options;
 
  var cpt = 0;
 
 for (var ix=0;ix<aList.length;ix++)
      {var aOpt1=aList[ix];
        if (aOpt1.selected)
          {cpt++;
           if (cpt == 1)
               {Clause_Where = Clause_Where + "\'" + aList[ix].value + "\'" ;}
           else
               {Clause_Where = Clause_Where + " OR " +  "\'" + aList[ix].value + "\'" ;}
 
    }
 }
 
 var FIELDNAME = "ENNIV"+nivFill.toString();
 var FILTERVALUE = nivFill.toString();
 var nivSelect = nivFill-1;
 var FILTERFIELD2 = "ENNIV"+nivSelect.toString();
 
  fillSelect(objSelect,objFill,"TABENTITES",FIELDNAME,"ENLNOM","ENCMAJ","ENNIVE",FILTERVALUE,FILTERFIELD2,Clause_Where);
 
}
//End function NivnVersNivp_onclick
 
//-----------------------------------------------------------------------------
//Begin function btnVersNiv2_onclick
function btnVersNiv2_onclick(ctrl) {
 // on va charger la 2ème listbox en fonction de la sélection sur la listbox 1 sans ouverture d une nouvelle fenêtre
 
  NivnVersNivp(form1.NIV1,form1.NIV2,2);
 
}
//End function btnVersNiv2_onclick
//-----------------------------------------------------------------------------
//Begin function btnVersNiv3_onclick
function btnVersNiv3_onclick(ctrl) {
 // on va charger la 3ème listbox en fonction de la sélection sur la listbox 2 sans ouverture d une nouvelle fenêtre
 
 
  NivnVersNivp(form1.NIV2,form1.NIV3,3);
 
}
//End function btnVersNiv3_onclick
//-----------------------------------------------------------------------------
//Begin function btnVersNiv4_onclick
function btnVersNiv4_onclick(ctrl) {
 // on va charger la 4ème listbox en fonction de la sélection sur la listbox 3 sans ouverture d une nouvelle fenêtre
 
  NivnVersNivp(form1.NIV3,form1.NIV4,4);
 
}
//End function btnVersNiv4_onclick
 
//-----------------------------------------------------------------------------
// Fonction initiale pour charger une listbox
// objSelect= nom de la liste de niveau inférieur (= name)
// objFill = nom de la listbox à charger (= name)
// FILENAME = nom du master source
// FIELDNAME = nom du champ sélectionné dans la lise box (= code)
// FIELDVALUE = nom du champ qui apparaît dans la listbox (= libellé)
// FIELDVALUE2 = nom du champ sur lequel on teste pour afficher telle ou telle valeur dans la listbox
// FILTERFIELD = si clause where, champ sur lequel porte la clause where
// FILTERVALUE = contenu de la clause where (= champ Clause_where)
// FILTERFIELD2 = au cas où, un deuxième champ pour la clause where. si besoin de plus, on en ajoute
// FILTERVALUE2 = contenu de la clause where pour le 2ème champ
// ==> ça se construit comme dans une instruction SQL, il faut gérer les AND, OR et les parenthèses
 
function fillSelect(objSelect,objFill,FILENAME,FIELDNAME,FIELDVALUE,FIELDVALUE2,FILTERFIELD,FILTERVALUE,FILTERFIELD2,FILTERVALUE2) {
 
    var urlString =getURL(FILENAME,FIELDNAME,FIELDVALUE,FIELDVALUE2,FILTERFIELD,FILTERVALUE,FILTERFIELD2,FILTERVALUE2);
    xml_to_select(urlString,objSelect,objFill);
 
  return;
}
 
//-----------------------------------------------------------------------------
function xml_to_select(urlString,objSelect,objFill) {
// Use the XMLDOM Parser to submit the FOCUS request and parse out the values
    var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.async="false";
    xmlDoc.load(urlString);
    var ElemList = xmlDoc.getElementsByTagName("td");
 
    // Affiche message en cas de liste vide
    function message(cpt, entFill, entSelect){
        var msg = "Sélection supérieure à la limite autorisée \n";
     var car = " ";
 
        car=(entFill.value).charAt(0);
 
        car=car.toUpperCase();
 
        if ((car == 'A') || (car == 'E') || (car == 'I') || (car == 'O') || (car == 'U') || (car == 'Y') || (car == 'H')){
           msg = msg + "ou pas d'";
        }
        else{
           msg = msg + "ou pas de ";
        }
 
        compteur(objSelect, cpt);
 
        if (cpt.value > 1){
 
           msg = msg + (entFill.value).toLowerCase() + " pour les " + (entSelect.value).toLowerCase() + "s sélectionné(e)s";
        }
        else {
 
           msg = msg + (entFill.value).toLowerCase() + " pour la/le " + (entSelect.value).toLowerCase() + " sélectionné(e)";
        }
        alert(msg);
        return;
    }
 
 
    if (ElemList.length > 0) {
  
        remove_choices(objFill);
      //just loop through all the returned values
        for (i=0;i < ElemList.length;i+=3){
           var oOption = document.createElement("OPTION");
           objFill.options.add(oOption);
           oOption.value = ElemList.item(i).text;
         //Afficher dans la liste : codes + " - " + libellés
      if (ElemList.item(i+2).text != 'S')
      //Si sous aff non supprimée
            {oOption.text = ElemList.item(i).text + " - " + ElemList.item(i+1).text}
      else
      //Si sous aff supprimée, afficher avec (*S*)
      {oOption.text = ElemList.item(i).text + " - " + ElemList.item(i+1).text + " (*S*)"};
         }
 
     }
     else {
             if (objSelect.selectedIndex == -1){
                 alert("Aucun élément sélectionné dans la liste!");
             }
             else{
 
             if (objFill.name == 'NIV2'){
 
                     message(COMPTEUR1, form1.ENTNIV2, form1.ENTNIV1);
 
             }
             else if (objFill.name == 'NIV3'){
 
                     message(COMPTEUR2, form1.ENTNIV3, form1.ENTNIV2);
 
                 }
             else if (objFill.name == 'NIV4'){
 
                     message(COMPTEUR3, form1.ENTNIV4, form1.ENTNIV3);
 
                 }
             }
     }
 
    xmlDoc = null;
    return;
}
 
//-----------------------------------------------------------------------------
//Begin function messages(cpt, entFill, entSelect)
 
//End function message(cpt, entFill, entSelect)
 
//-----------------------------------------------------------------------------
// remove_choices clears all options from a given objSelect Select control
function remove_choices(objSelect){
 
 for (i=objSelect.options.length;i >= 0;i--){
             objSelect.options.remove(i);
 }
    return;
}
//-----------------------------------------------------------------------------
//Build the url that will be submitted to WebFOCUS
function getURL(FILENAME,FIELDNAME,FIELDVALUE,FIELDVALUE2,FILTERFIELD,FILTERVALUE,FILTERFIELD2,FILTERVALUE2) {
/* FOCUS request will be submitted as an adhoc request. Syntax of request is:
   TABLE FILE FILENAME
   PRINT FIELDNAME FIELDNAME
   WHERE FILTERFIELD EQ FILTERVALUE;
   ON TABLE PCHOLD FORMAT XML
   END
-* FIELDNAME is referenced twice: for Text/Display and Value of option
*/
 
     //var urlString = "https://www.cotiletdons.com:9080/ibi_apps/WFServlet?";
 
 
     var urlString = SAFIG_URL.value + "ibi_apps/WFServlet?";
 
 
     urlString += "IBIC_user=" + IBIC_user.value + "&IBIF_adhocfex=";
 
 
     var CRLF = "\n\r" ;
     focusString  = "TABLE FILE " + FILENAME + CRLF;
     //focusString += "PRINT " + FIELDNAME + " " + FIELDVALUE + " " + FIELDVALUE2 + CRLF;
  focusString += "PRINT " + FIELDVALUE + " " + FIELDVALUE2 + CRLF;
     focusString += "BY " + FIELDNAME  + CRLF;
 
     if (FILTERFIELD != " ")
        {focusString += "WHERE " + FILTERFIELD + " EQ '" + FILTERVALUE + "';" + CRLF}
     if (FILTERFIELD2 != " ")
        {focusString += "WHERE " + FILTERFIELD2 + " EQ " + FILTERVALUE2 + ";" + CRLF}
 
     focusString += "ON TABLE SET HOLDLIST PRINTONLY" + CRLF;
     focusString += "ON TABLE PCHOLD FORMAT XML" + CRLF;
     focusString += "END";
     // escape function properly formats the string in unicode format for transferring to webserver
 
     urlString += escape(focusString);
 
    return(urlString);
}
//-----------------------------------------------------------------------------
//Begin function btnViderSaff_onclick
function btnViderSaff_onclick(ctrl) {
  remove_choices(form1.SAFF);
 
}
//End function btnViderSaff_onclick
 
 
//-----------------------------------------------------------------------------
//Begin Clear items of the list of level 2
function btnVider2_onclick(ctrl){
 
  remove_choices(form1.NIV2);
 
}
//End Clear items of the list of level 2
//-----------------------------------------------------------------------------
//Begin Clear items of the list of level 3
function btnVider3_onclick(ctrl){
 
  remove_choices(form1.NIV3);
 
}
//End Clear items of the list of level 3
//-----------------------------------------------------------------------------
//Clear items of the list of level 4
function btnVider4_onclick(ctrl){
 
  remove_choices(form1.NIV4);
 
}
//End Clear items of the list of level 4
 
//-----------------------------------------------------------------------------
 
//Begin function NIV1_Visible
function NIV1_Visible(){
   form1.ENTNIV1.style.visibility='visible';
   form1.NIV1.style.visibility='visible';
   if (form1.NIV1.length == 1){
       form1.NIV1.selectedIndex=0;
   }
}
//End function NIV1_Visible
//-----------------------------------------------------------------------------
 
function NIV2_Visible(){
   form1.ENTNIV2.style.visibility='visible';
   form1.NIV2.style.visibility='visible';
   if (parseInt(UT_NIV.value)< 2){
       form1.btnVersNiv2.style.visibility='visible';
       form1.btnVider2.style.visibility='visible';
   }
 
   if (form1.NIV2.length == 1){
       form1.NIV2.selectedIndex=0;
   }
}
//-----------------------------------------------------------------------------
 
function NIV3_Visible(){
   form1.ENTNIV3.style.visibility='visible';
   form1.NIV3.style.visibility='visible';
   if (parseInt(UT_NIV.value)< 3){
        form1.btnVersNiv3.style.visibility='visible';
        form1.btnVider3.style.visibility='visible';
   }
 
   if (form1.NIV3.length == 1){
       form1.NIV3.selectedIndex=0;
   }
}
//-----------------------------------------------------------------------------
 
function NIV4_Visible(){
   form1.ENTNIV4.style.visibility='visible';
   form1.NIV4.style.visibility='visible';
   if (parseInt(UT_NIV.value)< 4){
       form1.btnVersNiv4.style.visibility='visible';
       form1.btnVider4.style.visibility='visible';
   }
 
   if (form1.NIV4.length == 1){
       form1.NIV4.selectedIndex=0;
   }
}
//-----------------------------------------------------------------------------
 
function NIV2_Hidden(){
    if (parseInt(UT_NIV.value)< 1){
        remove_choices(form1.NIV2);
    }
    else {
         form1.NIV2.selectedIndex = -1
    }
    COMPTEUR2.value = 0;
    form1.ENTNIV2.style.visibility='hidden';
    form1.NIV2.style.visibility='hidden';
    form1.btnVersNiv2.style.visibility='hidden';
    form1.btnVider2.style.visibility='hidden';
}
//-----------------------------------------------------------------------------
 
function NIV3_Hidden(){
    if (parseInt(UT_NIV.value)< 2){
        remove_choices(form1.NIV3);
    }
    else {
        form1.NIV3.selectedIndex = -1
    }
    COMPTEUR3.value = 0;
    form1.ENTNIV3.style.visibility='hidden';
    form1.NIV3.style.visibility='hidden';
    form1.btnVersNiv3.style.visibility='hidden';
    form1.btnVider3.style.visibility='hidden';
}
//-----------------------------------------------------------------------------
 
function NIV4_Hidden(){
    if (parseInt(UT_NIV.value)< 3){
        remove_choices(form1.NIV4);
    }
    else {
        form1.NIV4.selectedIndex = -1
    }
    COMPTEUR4.value = 0;
    form1.ENTNIV4.style.visibility='hidden';
    form1.NIV4.style.visibility='hidden';
    form1.btnVersNiv4.style.visibility='hidden';
    form1.btnVider4.style.visibility='hidden';
}
//-----------------------------------------------------------------------------
 
//Begin function SupprTriEntite
//Supprimer un élément de liste
function SupprTriEntite(liste, position){
 
  liste.options.remove(position);
 
}
//End function SupprTriEntite
//-----------------------------------------------------------------------------
 
//Begin function AjoutTriEntite
//ajouter un élément dans une liste
function AjoutTriEntite(liste, optionTri){
 
 var oOption = document.createElement("OPTION");
 liste.options.add(oOption);
 oOption.value = optionTri;
 oOption.text = optionTri;
 
}
//End function AjoutTriEntite
 
//-----------------------------------------------------------------------------
 
//Begin function DETAIL_onclick
function DETAIL_onclick(ctrl) {
 
 //Si utilisateur de niveau 0 ou 1, la liste de détail contient 4 entités
 if (parseInt(UT_NIV.value)<= 1){
    if (form1.DETAIL.selectedIndex == 0){
   //Si utilisateur niveau 1 et détail rapport suivant entité de niveau 1, ne pas proposer le choix de tri par entité
   if (parseInt(UT_NIV.value)== 1){
    if (form1.TRI.options.length > 1){
         SupprTriEntite(form1.TRI, 1);
    }
   }
   //Si utilisateur de niveau 0 et détail rapport suivant entité de niveau 1, proposer le choix de tri par entité
   else if (form1.TRI.options.length==1){
          AjoutTriEntite(form1.TRI, 'ENTITE');
      }
       if (form1.CHOIX_ENT.selectedIndex == 0){
           NIV1_Visible();
           NIV2_Hidden();
           NIV3_Hidden();
           NIV4_Hidden();
         }
   }
    else if (form1.DETAIL.selectedIndex == 1){
    if (form1.TRI.options.length==1){
         AjoutTriEntite(form1.TRI, 'ENTITE');
    }
       if (form1.CHOIX_ENT.selectedIndex == 0){
            NIV1_Visible();
            NIV2_Visible();
            NIV3_Hidden();
            NIV4_Hidden();
        }
   }
    else if (form1.DETAIL.selectedIndex == 2){
     if (form1.TRI.options.length==1){
          AjoutTriEntite(form1.TRI, 'ENTITE');
   }
         if (form1.CHOIX_ENT.selectedIndex == 0){
              NIV1_Visible();
              NIV2_Visible();
              NIV3_Visible();
              NIV4_Hidden();
         }
   }
   else if (form1.DETAIL.selectedIndex == 3){
     if (form1.TRI.options.length==1){
          AjoutTriEntite(form1.TRI, 'ENTITE');
   }
         if (form1.CHOIX_ENT.selectedIndex == 0){
              NIV1_Visible();
              NIV2_Visible();
              NIV3_Visible();
              NIV4_Visible();
         }
   }
   NIVDETAIL.value=form1.DETAIL.selectedIndex + 1;
 
 }
//Si le niveau utilisateur est de niveau 2, la liste de détail contient 3 entités
 else if (parseInt(UT_NIV.value)== 2){
      if (form1.DETAIL.selectedIndex == 0){
   if (form1.TRI.options.length > 1){
     SupprTriEntite(form1.TRI, 1);
   }
         if (form1.CHOIX_ENT.selectedIndex == 0){
             NIV1_Visible();
             NIV2_Visible();
             NIV3_Hidden();
             NIV4_Hidden();
          }
     }
       else if (form1.DETAIL.selectedIndex == 1){
     if (form1.TRI.options.length==1){
            AjoutTriEntite(form1.TRI, 'ENTITE');
     }
           if (form1.CHOIX_ENT.selectedIndex == 0){
                NIV1_Visible();
                NIV2_Visible();
                NIV3_Visible();
                NIV4_Hidden();
           }
     }
       else if (form1.DETAIL.selectedIndex == 2){
     if (form1.TRI.options.length==1){
            AjoutTriEntite(form1.TRI, 'ENTITE');
     }
           if (form1.CHOIX_ENT.selectedIndex == 0){
                NIV1_Visible();
                NIV2_Visible();
                NIV3_Visible();
                NIV4_Visible();
           }
       }
       NIVDETAIL.value=form1.DETAIL.selectedIndex + 2;
 }
//Si le niveau utilisateur est de niveau 3, la liste de détail contient 2 entités
 else if (parseInt(UT_NIV.value)== 3){
      if (form1.DETAIL.selectedIndex == 0){
   if (form1.TRI.options.length > 1){
    SupprTriEntite(form1.TRI, 1);
   }
         if (form1.CHOIX_ENT.selectedIndex == 0){
              NIV1_Visible();
              NIV2_Visible();
              NIV3_Visible();
              NIV4_Hidden();
         }
       }
       else if (form1.DETAIL.selectedIndex == 1){
      if (form1.TRI.options.length==1){
             AjoutTriEntite(form1.TRI, 'ENTITE');
    }
            if (form1.CHOIX_ENT.selectedIndex == 0){
                 NIV1_Visible();
                 NIV2_Visible();
                 NIV3_Visible();
                 NIV4_Visible();
             }
     }
       NIVDETAIL.value=form1.DETAIL.selectedIndex + 3;
 }
//Si le niveau utilisateur est de niveau 4, la liste de détail contient 1 entité
 else if (parseInt(UT_NIV.value)== 4){
      if (form1.DETAIL.selectedIndex == 0){
   if (form1.TRI.options.length > 1){
           SupprTriEntite(form1.TRI, 1);
   }
          if (form1.CHOIX_ENT.selectedIndex == 0){
              NIV1_Visible();
              NIV2_Visible();
              NIV3_Visible();
              NIV4_Visible();
           }
      }
      NIVDETAIL.value=form1.DETAIL.selectedIndex + 4;
 }
 if (form1.DETAIL.selectedIndex == 0){
     if(form1.DETAIL.options.length > 1){
   DisplayIncNivInf();
     }
  else {
    HideIncNivInf();
  }
 }
 else {if (form1.DETAIL.selectedIndex == 1){
      if(form1.DETAIL.options.length > 2){
    DisplayIncNivInf();
      }
   else {
     HideIncNivInf(); 
   }  
    }
    else {if (form1.DETAIL.selectedIndex == 2){
         if(form1.DETAIL.options.length > 3){
      DisplayIncNivInf();
         }
      else {
       HideIncNivInf();
      }  
      }
    else {if (form1.DETAIL.selectedIndex == 3){
           if(form1.DETAIL.options.length > 4){
       DisplayIncNivInf();
           }
      else {
        HideIncNivInf();        
      }  
          }
      }
    }
 }
}
//End function DETAIL_onclick
//-----------------------------------------------------------------------------
 
//Begin function CHOIX_ENT_onclick
function CHOIX_ENT_onclick(ctrl) {
 
     if (form1.CHOIX_ENT.selectedIndex == 0){
     // Si "OUI" : sélection d'entité
      DETAIL_onclick(form1.DETAIL);
 
     }
     else if (form1.CHOIX_ENT.selectedIndex == 1){
       // Si "NON" : ne pas sélectionner d'entité
        form1.NIV1.selectedIndex = -1;
        //remove_choices(form1.NIV1);
        COMPTEUR1.value = 0;
        form1.ENTNIV1.style.visibility='hidden';
        form1.NIV1.style.visibility='hidden';
 
        //form1.NIV2.selectedIndex = -1;
        if (parseInt(UT_NIV.value)< 1){
           remove_choices(form1.NIV2);
        }
        else {
           form1.NIV2.selectedIndex = -1
        }
        COMPTEUR2.value = 0;
        form1.ENTNIV2.style.visibility='hidden';
        form1.NIV2.style.visibility='hidden';
        form1.btnVersNiv2.style.visibility='hidden';
        form1.btnVider2.style.visibility='hidden';
        //form1.NIV3.selectedIndex = -1;
        if (parseInt(UT_NIV.value)< 2){
           remove_choices(form1.NIV3);
        }
        else {
           form1.NIV3.selectedIndex = -1
        }
        COMPTEUR3.value = 0;
        form1.ENTNIV3.style.visibility='hidden';
        form1.NIV3.style.visibility='hidden';
        form1.btnVersNiv3.style.visibility='hidden';
        form1.btnVider3.style.visibility='hidden';
 
        //form1.NIV4.selectedIndex = -1;
        if (parseInt(UT_NIV.value)< 3){
           remove_choices(form1.NIV4);
        }
        else {
           form1.NIV4.selectedIndex = -1
        }
        COMPTEUR4.value = 0;
        form1.ENTNIV4.style.visibility='hidden';
        form1.NIV4.style.visibility='hidden';
        form1.btnVersNiv4.style.visibility='hidden';
        form1.btnVider4.style.visibility='hidden';
 
     }
 
}
//End function CHOIX_ENT_onclick
 
//-----------------------------------------------------------------------------
 
//Begin function CHOIX_SAFF_onclick
//ajouter un élément dans une liste
function CHOIX_SAFF_onclick(){
 
    if (form1.CHOIX_SAFF.selectedIndex == 0){
     // Si "OUI" : sélection de sous affectation
 
       form1.SAFF.style.visibility='visible';
       form1.btnVersSAFF.style.visibility='visible';
       LBLSAFF.style.visibility='visible';
       form1.btnViderSaff.style.visibility='visible';
    }
    else{
 
       form1.SAFF.style.visibility='hidden';
       form1.btnVersSAFF.style.visibility='hidden';
       LBLSAFF.style.visibility='hidden';
       form1.btnViderSaff.style.visibility='hidden';
       remove_choices(form1.SAFF);
 
    }
}
//End function CHOIX_SAFF_onclick
 
 
 
 
//Begin function AFF_onclick
function AFF_onclick(ctrl) {
 if(form1.SAFF.style.visibility!='hidden'){
  btnViderSaff_onclick();
 }
 
}
//End function AFF_onclick
 
//Begin function NIV1_onclick
function NIV1_onclick(ctrl) {
 if(form1.NIV2.style.visibility!='hidden'){
  btnVider2_onclick();
  NIV2_onclick();
  NIV3_onclick();
 }
 
}
//End function NIV1_onclick
//Begin function NIV2_onclick
function NIV2_onclick(ctrl) {
 if(form1.NIV3.style.visibility!='hidden'){
  btnVider3_onclick();
  NIV3_onclick();
 }
 
}
//End function NIV2_onclick
 
//Begin function NIV3_onclick
function NIV3_onclick(ctrl) {
 if(form1.NIV4.style.visibility!='hidden'){
  btnVider4_onclick();
 }
 
}
//End function NIV3_onclick
 
</SCRIPT>
 
<script for=window eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>
</HEAD>
<BODY style="OVERFLOW: auto" edaconnectionrequired="true">
<FORM id=form1 style="BORDER-RIGHT: #00bfce thin solid; BORDER-TOP: #00bfce thin solid; Z-INDEX: 28; LEFT: 10px; BORDER-LEFT: #00bfce thin solid; WIDTH: 1670px; BORDER-BOTTOM: #00bfce thin solid; POSITION: absolute; TOP: 10px; HEIGHT: 730px; BACKGROUND-COLOR: #ccffff" tabIndex=58 name=form1 onsubmit="OnExecute[this);return false;" method=post form_dist_between_desc_and_input="10" form_hor_dist_between_controls="10" vert_dist_between_controls="10" form_number_of_columns="4" form_number_of_visible_rows="4" form_prompt_location="1" default_slider_type="4">
<SELECT language=java_script id=CHOIX_SAFF style="Z-INDEX: 76; LEFT: 280px; WIDTH: 130px; POSITION: absolute; TOP: 260px" onclick=CHOIX_SAFF_onclick[this) tabIndex=73 name=CHOIX_SAFF operation="NONE"> 
<OPTION value=OUI selected displaytext="OUI">OUI</OPTION> 
<OPTION value=NON displaytext="NON">NON</OPTION></SELECT> 
<SPAN id=LBLSAFF style="FONT-WEIGHT: bold; Z-INDEX: 80; LEFT: 850px; WIDTH: 190px; COLOR: #00bfce; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 80px; HEIGHT: 20px" tabIndex=72>Sous-Affectation</SPAN> 
<INPUT language=java_script id=btnViderSaff style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; Z-INDEX: 81; LEFT: 1135px; WIDTH: 60px; COLOR: black; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 75px; HEIGHT: 30px; BACKGROUND-COLOR: #00b7ce" onclick=btnViderSaff_onclick[this) tabIndex=71 type=button size=6 value=Effacer name=btnViderSaff StyleBack_rtFileName="bd21300_.gif"> 
<SPAN id=text1 style="FONT-WEIGHT: bold; Z-INDEX: 44; LEFT: 20px; WIDTH: 120px; COLOR: #00bfce; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 170px; HEIGHT: 20px" tabIndex=16>Type de sortie</SPAN> 
<SPAN id=text7 title="" style="FONT-WEIGHT: bold; Z-INDEX: 64; LEFT: 20px; WIDTH: 195px; COLOR: #00bfce; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 260px; HEIGHT: 20px" tabIndex=62>
<DIV>Choix Sous-Affectation</DIV></SPAN>
<SPAN id=L_INC_INF style="FONT-WEIGHT: bold; Z-INDEX: 83; LEFT: 20px; WIDTH: 260px; COLOR: #00bfce; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 230px; HEIGHT: 20px" tabIndex=74>Inclure les niveaux inférieurs ?</SPAN> 
<SPAN id=text4 style="FONT-WEIGHT: bold; Z-INDEX: 67; LEFT: 20px; WIDTH: 120px; COLOR: #00bfce; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 290px; HEIGHT: 20px" tabIndex=65>Choix entités</SPAN> 
<SPAN id=text2 style="FONT-WEIGHT: bold; Z-INDEX: 65; LEFT: 20px; WIDTH: 120px; COLOR: #00bfce; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 200px; HEIGHT: 20px" tabIndex=63>Détail par</SPAN> 
<SELECT language=java_script id=TRI style="Z-INDEX: 70; LEFT: 280px; WIDTH: 130px; POSITION: absolute; TOP: 320px" onclick="" name=TRI operation abIndex="68"> 
<OPTION value=AFFECTATION selected displaytext="AFFECTATION">AFFECTATION</OPTION></SELECT> 
<SELECT language=java_script id=CHOIX_ENT style="Z-INDEX: 68; LEFT: 280px; WIDTH: 130px; POSITION: absolute; TOP: 290px" onclick=CHOIX_ENT_onclick[this) tabIndex=66 name=CHOIX_ENT operation ElementToPaste="true"> 
<OPTION value=OUI selected displaytext="OUI">OUI</OPTION> 
<OPTION value=NON displaytext="NON">NON</OPTION></SELECT> 
<SELECT language=java_script id=INC_NIV_INF style="Z-INDEX: 82; LEFT: 280px; WIDTH: 130px; POSITION: absolute; TOP: 230px" onclick="" tabIndex=75 name=INC_NIV_INF operation="NONE"> 
<OPTION value=OUI displaytext="OUI">OUI</OPTION> 
<OPTION value=NON selected displaytext="NON">NON</OPTION></SELECT> 
<SELECT language=java_script id=DETAIL style="Z-INDEX: 66; LEFT: 280px; WIDTH: 130px; POSITION: absolute; TOP: 200px" onclick=DETAIL_onclick[this) tabIndex=64 name=DETAIL operation ElementToPaste="true"></SELECT> 
<INPUT language=java_script id=btnVider2 style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; Z-INDEX: 62; LEFT: 590px; WIDTH: 60px; COLOR: black; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 680px; HEIGHT: 30px; BACKGROUND-COLOR: #00b7ce" onclick=btnVider2_onclick[this) tabIndex=60 type=button size=6 value=Effacer name=btnVider2 StyleBack_rtFileName="bd21300_.gif" requests_list="1"> 
<INPUT language=java_script id=btnVider4 style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; Z-INDEX: 51; LEFT: 1430px; WIDTH: 60px; COLOR: black; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 680px; HEIGHT: 30px; BACKGROUND-COLOR: #00b7ce" onclick=btnVider4_onclick[this) tabIndex=29 type=button size=6 value=Effacer name=btnVider4 requests_list="0"> 
<INPUT language=java_script id=btnVider3 style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; Z-INDEX: 63; LEFT: 1010px; WIDTH: 60px; COLOR: black; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 680px; HEIGHT: 30px; BACKGROUND-COLOR: #00b7ce" onclick=btnVider3_onclick[this) tabIndex=61 type=button size=6 value=Effacer name=btnVider3 requests_list="2"> 
<INPUT language=java_script id=btnRapport style="FONT-SIZE: medium; Z-INDEX: 51; LEFT: 20px; WIDTH: 100px; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 60px; HEIGHT: 30px; BACKGROUND-COLOR: #00b7ce" onclick=btnRapport_OnClick[this) tabIndex=32 type=button size=10 value=Rapport name=btnRapport ElementToPaste="true" requests_list="1" autoExecute="True"> 
<INPUT language=java_script id=btnVersNiv2 style="FONT-SIZE: medium; Z-INDEX: 56; LEFT: 400px; WIDTH: 28px; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 520px; HEIGHT: 30px; BACKGROUND-COLOR: #00b7ce" onclick=btnVersNiv2_onclick[this) tabIndex=23 type=button size=2 value=">" name=btnVersNiv2 StyleBack_rtFileName="bd21300_.gif" ElementToPaste="true" requests_list="0"> 
<INPUT language=java_script id=btnVersNiv3 style="FONT-SIZE: medium; Z-INDEX: 51; LEFT: 814px; WIDTH: 29px; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 520px; HEIGHT: 30px; BACKGROUND-COLOR: #00b7ce" onclick=btnVersNiv3_onclick[this) tabIndex=26 type=button size=2 value=">" name=btnVersNiv3 ElementToPaste="true" requests_list="0">   
<SPAN id=text8 style="FONT-WEIGHT: bold; Z-INDEX: 34; LEFT: 450px; WIDTH: 90px; COLOR: #00bfce; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 80px; HEIGHT: 20px" tabIndex=18 ElementToPaste="true">Affectation</SPAN> 
<SPAN id=text9 style="FONT-WEIGHT: bold; Z-INDEX: 35; LEFT: 20px; WIDTH: 120px; COLOR: #00bfce; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 140px; HEIGHT: 20px" tabIndex=14 ElementToPaste="true">Date fin</SPAN>   
<SPAN id=text10 style="FONT-WEIGHT: bold; Z-INDEX: 38; LEFT: 20px; VERTICAL-ALIGN: middle; WIDTH: 120px; COLOR: #00bfce; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 110px; HEIGHT: 20px; TEXT-ALIGN: left" tabIndex=35>Date début</SPAN>   
<INPUT id=calendar1 style="Z-INDEX: 40; LEFT: 280px; WIDTH: 130px; POSITION: absolute; TOP: 110px; HEIGHT: 22px" tabIndex=13 size=16 name=DAT_DEB operation elementtype="14" calendardata="1/01/1980;12/31/2024" calendardatatype="0" ibiformat="DMYY"> 
<INPUT id=calendar2 style="Z-INDEX: 41; LEFT: 280px; WIDTH: 130px; POSITION: absolute; TOP: 140px; HEIGHT: 22px" tabIndex=15 size=16 name=DAT_FIN operation elementtype="14" calendardata="1/01/1980;11/31/2024" calendardatatype="0" ibiformat="DMYY"> 
<SELECT language=java_script id=AFF style="Z-INDEX: 42; LEFT: 450px; WIDTH: 350px; POSITION: absolute; TOP: 110px; HEIGHT: 230px" onclick=AFF_onclick[this) tabIndex=20 multiple size=3 name=AFF operation="OR" ElementToPaste="true" displayfield labelid="text1" accept="0" addalloption="0" selectedvalue="['A','B','C')" boundtovariable="1" datasource datatype="0" sourcetype="typeMaster">!IBI.FIL.TMP_AFF;</SELECT> 
<SELECT id=SAFF style="Z-INDEX: 79; LEFT: 850px; WIDTH: 370px; POSITION: absolute; TOP: 110px; HEIGHT: 230px" tabIndex=70 multiple size=3 name=SAFF operation="OR" displayfield labelid="text1" accept="0" addalloption="0" selectedvalue="['A','B','C')" boundtovariable="1" datasource datatype="0" sourcetype="typeMaster">!IBI.FIL.TMP_SAFF;</SELECT> 
<INPUT language=java_script id=btnVersSAFF style="FONT-SIZE: medium; Z-INDEX: 71; LEFT: 810px; WIDTH: 30px; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 190px; HEIGHT: 30px; BACKGROUND-COLOR: #00b7ce" onclick=btnVersSAFF_OnClick[this) tabIndex=68 type=button size=3 value=">" name=btnVersSAFF ElementToPaste="true"> 
<SELECT id=TYP_SORT style="Z-INDEX: 43; LEFT: 280px; WIDTH: 130px; POSITION: absolute; TOP: 170px" tabIndex=17 name=TYP_SORT operation ElementToPaste="true"> 
<OPTION value=HTML selected displaytext="HTML">HTML</OPTION> 
<OPTION value=AHTML displaytext="AHTML">AHTML</OPTION> 
<OPTION value=EXCEL displaytext="EXCEL">EXCEL</OPTION> 
<OPTION value=PDF displaytext="PDF">PDF</OPTION> 
<OPTION value=GRAPHE displaytext="GRAPHE">GRAPHE</OPTION></SELECT> 
<INPUT language=java_script id=btnVersNiv4 style="FONT-SIZE: medium; Z-INDEX: 64; LEFT: 1230px; WIDTH: 29px; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 520px; HEIGHT: 30px; BACKGROUND-COLOR: #00b7ce" onclick=btnVersNiv4_onclick[this) tabIndex=62 type=button size=2 value=">" name=btnVersNiv4 ElementToPaste="true" requests_list="3"> 
<INPUT language=java_script id=btnAide style="DISPLAY: block; FONT-WEIGHT: bold; FONT-SIZE: 14pt; Z-INDEX: 52; LEFT: 40px; BACKGROUND-IMAGE: none; WIDTH: 50px; COLOR: black; POSITION: absolute; TOP: 10px; HEIGHT: 40px; BACKGROUND-COLOR: #00b7ce" onclick=btnAide_onclick[this) tabIndex=33 type=button value=? name=btnAide requests_list="1" autoExecute="True"> 
<INPUT id=ENTNIV1 style="FONT-WEIGHT: bold; Z-INDEX: 61; LEFT: 20px; WIDTH: 140px; COLOR: #00bfce; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; POSITION: absolute; TOP: 370px; HEIGHT: 20px; BACKGROUND-COLOR: #ccffff; BORDER-BOTTOM-STYLE: none" tabIndex=59 readOnly accept=0 size=336 value=!IBI.AMP.ENTNIV1; name=ENTNIV1 operation addalloption="0" selectedvalue="O" boundtovariable="1" datasource datatype="0" sourcetype="typeMaster"> 
<INPUT id=ENTNIV2 style="FONT-WEIGHT: bold; Z-INDEX: 61; LEFT: 435px; WIDTH: 140px; COLOR: #00bfce; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; POSITION: absolute; TOP: 370px; HEIGHT: 20px; BACKGROUND-COLOR: #ccffff; BORDER-BOTTOM-STYLE: none" tabIndex=59 readOnly accept=0 size=336 value=!IBI.AMP.ENTNIV2; name=ENTNIV2 operation addalloption="0" selectedvalue="O" boundtovariable="1" datasource datatype="0" sourcetype="typeMaster"> 
<INPUT id=ENTNIV3 style="FONT-WEIGHT: bold; Z-INDEX: 61; LEFT: 850px; WIDTH: 140px; COLOR: #00bfce; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; POSITION: absolute; TOP: 370px; HEIGHT: 20px; BACKGROUND-COLOR: #ccffff; BORDER-BOTTOM-STYLE: none" tabIndex=59 readOnly accept=0 size=336 value=!IBI.AMP.ENTNIV3; name=ENTNIV3 operation addalloption="0" selectedvalue="O" boundtovariable="1" datasource datatype="0" sourcetype="typeMaster"> 
<INPUT id=ENTNIV4 style="FONT-WEIGHT: bold; Z-INDEX: 61; LEFT: 1265px; WIDTH: 140px; COLOR: #00bfce; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; POSITION: absolute; TOP: 370px; HEIGHT: 20px; BACKGROUND-COLOR: #ccffff; BORDER-BOTTOM-STYLE: none" tabIndex=59 readOnly accept=0 size=336 value=!IBI.AMP.ENTNIV4; name=ENTNIV4 operation addalloption="0" selectedvalue="O" boundtovariable="1" datasource datatype="0" sourcetype="typeMaster"> 
<SELECT language=java_script id=NIV1 style="LEFT: 20px; WID

This message has been edited. Last edited by: Cati - France,


7.7.02 (Html, Excel, Ahtml, Pdf,Graph,.....)
OS400 V5R3, V5R4
Windows 2000/2003/2007/2010
 
Posts: 68 | Location: France | Registered: February 27, 2008Report This Post
Member
posted Hide Post
Do you have a simpler example. This one got truncated at the end, and it kinda crashes my client (not hard to do).


Webfocus relase 764
Linux
All mentioned including AHTML
 
Posts: 13 | Registered: July 10, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Problem creating multiple double list controls on one form ...

Copyright © 1996-2020 Information Builders