Combobox visible depending on the selection in a previous combobox

I've 5 Combo Box
please help me to find a way to resolve my problem :
i want that when I select in the first combobox, the second one becomes visible and the first one becomes invisible, and when i select in the second one, the third one becomes visible and the second invisible ...........etc
the code :
1st combobox :
search_motif.prompt = "Select Motif";
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
var xmlAry:Array = new Array();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("motif.xml"));
function LoadXML(e:Event):void {
    xmlData = new XML(e.target.data);
    trace(xmlData..motifName.length());
    for(var i:uint=0;i<xmlData..motifName.length();i++)
        xmlAry.push(xmlData..motifName[i]);
        search_motif.addItem( { label: xmlAry[i], data:xmlAry[i] } );
2nd combobox :
search_age.prompt = "Select age";
var xml2Loader:URLLoader = new URLLoader();
var xml2Data:XML = new XML();
var xml2Ary:Array = new Array();
xml2Loader.addEventListener(Event.COMPLETE, LoadXML2);
xml2Loader.load(new URLRequest("age.xml"));
function LoadXML2(e:Event):void {
    xml2Data = new XML(e.target.data);
    trace(xml2Data..ageName.length());
    for(var j:uint=0;j<xml2Data..ageName.length();j++)    {
        xml2Ary.push(xml2Data..ageName[j]);
        search_motif.addItem( { label: xmlAry[j], data:xmlAry[j] } );
and 3rd combobox, 4th combobox .....................

import fl.data.DataProvider;
    import flash.display.MovieClip;
import flash.events.Event;
import fl.events.ComponentEvent;
import fl.controls.ComboBox;
var allUserbase:Array = [];// contains all dgtc like in xml
var currentUserbase:Array = [];// contains dgtc that need to be displayed
var _loader:URLLoader = new URLLoader();
var _data:XML = new XML();
_loader.addEventListener(Event.COMPLETE, readXML);
_loader.load(new URLRequest("userbase.xml"));
function readXML(event:Event):void
_data = new XML(event.target.data);
for each (var usr in _data.user)
allUserbase.push({grv: usr.@grv, dgtc: usr.@dgtc, age: usr.@age, motif: usr.@motif, motif2: usr.@motif2, motif3: usr.@motif3, motif4: usr.@motif4, motif5: usr.@motif5, motif6: usr.@motif6, motif7: usr.@motif7, motif8: usr.@motif8, motif9: usr.@motif9, motif10: usr.@motif10, exneuro: usr.@exneuro, expleuro: usr.@expleuro, excardio: usr.@excardio ,exabdo: usr.@exabdo, pl: usr.@pl});
currentUserbase = allUserbase.concat();
updateList();
function updateList():void
userList.dataProvider = new DataProvider ();
for (var i:int = 0; i<currentUserbase.length; i++)
userList.addItem({label:currentUserbase[i].dgtc, data: currentUserbase[i].id});
// Combobox age:
search_age.prompt = "Select age";
var xml2Loader:URLLoader = new URLLoader();
var xml2Data:XML = new XML();
var xml2Ary:Array = new Array();
xml2Loader.addEventListener(Event.COMPLETE, LoadXML2);
xml2Loader.load(new URLRequest("age.xml"));
function LoadXML2(e:Event):void {
    xml2Data = new XML(e.target.data);
    trace(xml2Data..ageName.length());
    for(var j:uint=0;j<xml2Data..ageName.length();j++)    {
        xml2Ary.push(xml2Data..ageName[j]);
        search_motif.addItem( { label: xmlAry[j], data:xmlAry[j] } );
// Combobox motif:
search_motif.prompt = "Select Motif";
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
var xmlAry:Array = new Array();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("motif.xml"));
function LoadXML(e:Event):void {
    xmlData = new XML(e.target.data);
    trace(xmlData..motifName.length());
    for(var i:uint=0;i<xmlData..motifName.length();i++)
        xmlAry.push(xmlData..motifName[i]);
        search_motif.addItem( { label: xmlAry[i], data:xmlAry[i] } );
// Combobox exneuro:
search_exneuro.prompt = "Examen neurologique";
var xml3Loader:URLLoader = new URLLoader();
var xml3Data:XML = new XML();
var xml3Ary:Array = new Array();
xml3Loader.addEventListener(Event.COMPLETE, LoadXML3);
xml3Loader.load(new URLRequest("exneuro.xml"));
function LoadXML3(n:Event):void {
    xml3Data = new XML(n.target.data);
    trace(xml3Data..exneuroName.length());
    for(var d:uint=0;d<xml3Data..exneuroName.length();d++)
        xml3Ary.push(xml3Data..exneuroName[d]);
        search_exneuro.addItem( { label: xml3Ary[d], data:xml3Ary[d] } );
search_motif.visible=false;
search_exneuro.visible=false;
search_expleuro.visible=false;
search_excardio.visible=false;
search_age.addEventListener(Event.CHANGE,ageChangeF);
search_motif.addEventListener(Event.CHANGE,motifChangeF);
search_exneuro.addEventListener(Event.CHANGE,exneuroChangeF);
search_expleuro.addEventListener(Event.CHANGE,expleuroChangeF);
search_excardio.addEventListener(Event.CHANGE,excardioChangeF);
function ageChangeF(e:Event):void{
search_age.visible=false;
search_motif.visible=true;
function motifChangeF(e:Event):void{
search_motif.visible=false;
search_exneuro.visible=true;
search_expleuro.dataProvider = new DataProvider([{label:"RAS",data:"RAS"},{label:"Male",data:"Male"},{label:"Female",data:"F emale"}]);
search_excardio.dataProvider = new DataProvider([{label:"RAS",data:"RAS"},{label:"Souffle",data:"Souffle"},{label:"Tachycard ie",data:"Tachycardie"}]);
search_exabdo.dataProvider = new DataProvider([{label:"RAS",data:"RAS"},{label:"Hepatomegalie",data:"Hepatomegalie"},{labe l:"Splenomegalie",data:"Splenomegalie"}]);
search_pl.dataProvider = new DataProvider([{label:"RAS",data:"RAS"},{label:"Bacterie",data:"Bacterie"},{label:"Virus", data:"Virus"}]);
bt_search.addEventListener(MouseEvent.CLICK, search);
function search(MouseEvent):void
currentUserbase = [];
for (var n:int = 0; n<allUserbase.length; n++)
if ((allUserbase[n].motif == search_motif.selectedItem.data  || allUserbase[n].motif2 == search_motif.selectedItem.data || allUserbase[n].motif3 == search_motif.selectedItem.data  || allUserbase[n].motif4 == search_motif.selectedItem.data || allUserbase[n].motif5 == search_motif.selectedItem.data || allUserbase[n].motif6 == search_motif.selectedItem.data || allUserbase[n].motif7 == search_motif.selectedItem.data || allUserbase[n].motif8 == search_motif.selectedItem.data || allUserbase[n].motif9 == search_motif.selectedItem.data || allUserbase[n].motif10 == search_motif.selectedItem.data || search_motif.selectedItem.data=="Any") && (allUserbase[n].exneuro == search_exneuro.selectedItem.data || search_exneuro.selectedItem.data=="RAS") && (allUserbase[n].expleuro == search_expleuro.selectedItem.data || search_expleuro.selectedItem.data=="RAS") && (allUserbase[n].age == search_age.selectedItem.data || search_age.selectedItem.data=="Any") && (allUserbase[n].excardio == search_excardio.selectedItem.data || search_excardio.selectedItem.data=="RAS") && (allUserbase[n].exabdo == search_exabdo.selectedItem.data || search_exabdo.selectedItem.data=="RAS") && (allUserbase[n].pl == search_pl.selectedItem.data || search_pl.selectedItem.data=="RAS"))
currentUserbase.push(allUserbase[n]);
updateList();

Similar Messages

  • ALV GRID WITH SUMMATORIES DEPEND OF THE SELECTION

    Hi Experts.
    I have a form, in which depend of the selection, I show to user a fieldcatalog with the data (query) that the user want to see in that moment ...
    The problem is that the user want to see one field (amount, sum total (money) ...etc) with summatories, group by date, person...or other depend of the selection he has done in the select dynpro.
    How can I do it when I show the ALV??... The user don't want to use the option to make a lot of select dispositions in the ALV..., he want to see the disposition of the data depend the selection he do in the select dynpro.
    I see when I create the fieldcatalog to the ALV GRID, there is a field ... do_sum, I have marked it, in the field which I want to do a summatory but don't do anything in the ALV when display.... and don't find how indicate in the fieldcatalog the field which I wan't group by...
    Other options, that I have thought it's to make a lot of dispositions in ALV, and when display de ALV try to get the disposition that I want ... but I haven't did it.
    Thanks.

    Hi all,
    it is maybe too late to answer this question but I hope it can serve someone who bumps into this problem in the future.
    I managed to activate the functions with the following code:
    DATA alv       TYPE REF TO cl_salv_table.
    DATA: lo_functions TYPE REF TO cl_salv_functions_list.
    DATA: lo_funcs TYPE salv_t_ui_func.
    DATA: lo_func TYPE salv_s_ui_func.
      cl_salv_table=>factory(
           IMPORTING r_salv_table = alv
           CHANGING  t_table      = <fs> ).
    *   Default Functions
         lo_functions = alv->get_functions( ).
         lo_funcs = lo_functions->get_functions( ).
    * loop through all functions and enable them and set them visible.
    * here u can also activate separate functions if you check the name with the method from r_function (CL_SALV_FUNCTION->GET_NAME)
         LOOP AT lo_funcs INTO lo_func.
           lo_func-r_function->set_enable( value = 'X' ).
           lo_func-r_function->set_visible( value = 'X' ).
         ENDLOOP.
         alv->display( ).
    Cheers,
    Ilina

  • Problem in populating 2nd combo box depending upon the selection of 1st

    Hi all,
    I have 2 combo boxes on my jsp page ,say continent and country . obviously the data in 2nd box is dependant on selection made in the 1st . I'm using MySQL with tomcat 5.0.7 . and JSP.
    The first combo box in one form and the 2nd in another. After submitting first i 'm populating the second combo also.
    But the problem is after submitting the first form the page gets refreshing and i can't see the selected continent in the first combo box.
    The javascript code used follows:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    some one pls help me asap !

    Hi Reegz,
    that's what i'm also doing and i'm successfull till populating the second combo box but how do I keep the previous inputs on the page and reload the page based on the change of a selection box?
    Is their any mistake in the javascript code:
    Here is the code:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    Pls help me...

  • How to populate the second combo box by depending on the selection in 1st?

    I have two combo boxes, both of data in the lists come from the database. The list in the second will be changed when the selection is changed in the first one. I am trying to do query again in the ActionPerform function, unfortunately the list in second one doesn't change.
    I am learning Swing now, I really appreciate for any suggestions!
    Thanks

    camickr,
    I have another question for the tab pane. Now I have to remove the tab and add tab for updating the tab pane. I wonder if there is other way to do it. I really appreciate your help!
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import org.hibernate.Session;
    import org.hibernate.SessionFactory;
    import org.hibernate.Transaction;
    import org.hibernate.cfg.Configuration;
    import java.net.URL;
    import java.util.Iterator;
    import java.util.List;
    import java.util.StringTokenizer;
    public class test_tabpane extends JPanel implements ActionListener {
         private JPanel MainPane;
         private JComboBox combobox2;
         private JTabbedPane TabbedPane;
         private JComponent panel1;
         private JComponent panel2;
         private String [] resources ={"ZZAA", "ZZAB", "ZZAC", "ZZAD"};
         private String selected_resource = "";
         public test_tabpane() {
              MainPane = new JPanel();
            MainPane.setOpaque(true);
            MainPane.setPreferredSize(new Dimension(600, 70));
            MainPane.setBorder(BorderFactory.createRaisedBevelBorder());
            combobox2 = new JComboBox(resources);
            combobox2.addActionListener(this);
            MainPane.add(combobox2);
            add(MainPane);
            UIManager.put("TabbedPane.tabInsets", new Insets(5,5,5,5));
            TabbedPane = new JTabbedPane();
            panel1 = makeTextPanel(resources[0]);
            TabbedPane.addTab("Language/Notes", panel1);
            panel2= makeTextPanel(resources[0]);
            TabbedPane.addTab("Relations/Coverage", panel2);
            TabbedPane.setPreferredSize(new Dimension(600, 340));
            TabbedPane.setFont(new Font("ariel", Font.BOLD, 11));
            TabbedPane.setSize(600, 340);
            add(TabbedPane);
         protected JComponent makeTextPanel(String text) {
            JPanel panel = new JPanel(false);
            JLabel filler = new JLabel(text);
            filler.setHorizontalAlignment(JLabel.CENTER);
        //    panel.setLayout(new GridLayout(1, 1));
            panel.add(filler);
            return panel;
         public void actionPerformed(ActionEvent e) {
                   JComboBox cb = (JComboBox)e.getSource();
                   if ("comboBoxChanged".equals(e.getActionCommand()))
                   //   if ("comboBoxEdited".equals(e.getActionCommand()))
                   //     System.out.println("in action:" + (String)cb.getSelectedItem());
                        String selected_string = (String)cb.getSelectedItem();
                        StringTokenizer st = new StringTokenizer(selected_string, "|");
                        selected_resource = st.nextToken();
                        updateTabbedPanes(selected_resource);
        protected void updateTabbedPanes(String selected_string) {
             panel1 = makeTextPanel(selected_string + " in Language/Notes");
             int index = TabbedPane.indexOfTab("Language/Notes");
             TabbedPane.remove(index);
             TabbedPane.insertTab("Language/Notes", null, panel1, "", index);
             panel2 = makeTextPanel(selected_string + " in Relations/Coverage");
             index = TabbedPane.indexOfTab("Relations/Coverage");
             TabbedPane.remove(index);
             TabbedPane.insertTab("Relations/Coverage", null, panel2, "", index);
        * Create the GUI and show it.  For thread safety,
        * this method should be invoked from the
        * event-dispatching thread.
       private static void createAndShowGUI() {
               JFrame.setDefaultLookAndFeelDecorated(false);
           //Create and set up the window.
             JFrame frame = new JFrame("test");
           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           //Create and set up the content pane.
           JComponent ContentPane = new test_tabpane();
           ContentPane.setOpaque(true); //content panes must be opaque
           frame.setContentPane(ContentPane);
           //centers a frame onscreen // it is a problem for wide screen
           //   frame.setLocationRelativeTo(null);
           frame.setLocation(300, 120);
           frame.setSize(1024, 768);
           frame.setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);
           //Display the window.
          frame.pack();
           frame.setVisible(true);
          * @param args
          * This is main function.
         public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • Populating a Field depending on the selection of a dropdownlist in adobe fo

    Hi,
    I am not able to populate a Text Field based on the selection of a dropdownlist in Adobe forms in WebDynPro.
    Pls let me know how to do it????
    Thanks in Advance,
    Sameer

    Hi Sameer,
    There is one way to achieve this.
    You can write some javascript on event of selecting value in dropdown.
    Open your PDF form.Then goto menu "palettes" and then choose "script editor".
    Now, select your dropdwon element.
    It will show some line of scripting in Javascript of Formcalc.
    Here, you can write your JAVA script for displaying values in textview.
    If it helps then don't forget to award points
    Regards,
    Bhavik

  • Forms - Submitting to different recipients depending on the selection

    I have a form which I need to submit to different email
    addresses depending on an option selected in one of the dropdown
    boxes. This MUST be done on a client-side form.
    Any ideas on how to go about this?
    I want to avoid creating a different form for every scenario.
    Thankyou

    Of course, it completely fails if the computers have js
    disabled. For an
    environment where there is no access to server scripting, I'd
    guess that
    this is also a likely configuration.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "digitalus media" <[email protected]> wrote
    in message
    news:edqhi7$qnu$[email protected]..
    > You can set the url or address of a hyperlink with
    javascript.
    >
    > Try this:
    >
    >
    > <html>
    >
    > <head>
    > <script type="text/javascript">
    > function myHref(email){
    > document.getElementById('myLink').href='mailto:'+email;
    > }
    > </script>
    > </head>
    >
    > <body>
    >
    > <p>Select a recipient</p>
    >
    > <form>
    > <select name="select"
    onchange="myHref(this.value);">
    > <option
    value='[email protected]'>Administrator</option>
    > <option value='[email protected]'>Bill</option>
    > </select>
    > </form>
    >
    > <p><a id="myLink"
    href="mailto:[email protected]">send message</a></p>
    >
    > </body>
    >
    > </html>
    >

  • How do I make one enum depend on the selection of another?

    Suppose I have 5 enums, say A, B, C, D, E. Each has entries different from the others. I'd like to have a 2nd enum with the entries "A,B,C,D,E". When the user selects one of the 2nd enum entries, I'd like the user to be presented with the corresponding enum from the group of 5.
    The context is this: the 2nd enum has entries like "Status Register" and "Event Register", and 3 others. Each register has different bits, like "motion complete" and "forward limit". I'd like the user to be able to select the register in one enum, and show that register's bit names in the other enum.
    -Jeff

    You could also use Rings as the controls on th efront panel. When the user selects the group programmatically change the value of the ring. You would need to keep track of the current group selection so that when you actually use the value from the ring you can typecast it back to the correct ENUM type and value.
    Another option would be to show/hide the controls based on the group selection.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Create a form that can either end in "Submit" or "Process Payment" depending on the selected fields

    I have designed a Golf Tournament Registration form that includes a multiple choice field with 4 payment options
    1) Pay Online
    2) Mail a Check
    3) Direct Deposit
    4) Other
    When Option 1 is selected, the form should redirect the registee to the PayPal payments page that has already loaded personal information from the earlier fields
    When Option 2, 3, & 4 are selected, the form should redirect the registee to applicable information about how to proceed
    HOWEVER: the submission button at the bottom of Options 2-4 still reads "Proceed to Payment" which is confusing for golf participants who have elected to mail a check.
    *Is there a way to customize the submission button to elimate this possible confusion?

    So I see that I am not the only one with this question and that part of my question has been answered here: http://forums.adobe.com/message/4399918#4399918#4399918
    HOWEVER: is there no way to change the wording on the PayPal "Proceed to Checkout" button?  I just want it to say "Submit"

  • How to refresh one panel depending on the selection of other panel entry

    Hi All,
    I am new to swing technology. I should get a window on pressing add button (which contains 3 panels ).
    first one should contain library sets (Not in a tree structure). Second should display (on selection of library set)the libraries in library set in a tree structure. each library contains some files.when you expand tree in second panel it should show the files inside the library. Up on selection of file 3 panel should br refreshed to show the contents in the file.
    Can any one suggest the use full examples and articles regarding this.
    Thanks
    Raghu

    How to Use a Card Layout:
    http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html

  • Creating a dropdown list which is depending on the selections from 2 other dropdown lists

    Hi,
    I'm new to LiveCycle and JavaScript and I was hoping someone could help me with this form I am creating.
    This is what I want it to do:
    I have a dropdown list named 'Area' which drops down to 3 options.  Once the form filler selects an area, they will then select an option from dropdown list 2 which is named 'Brand'  (there is up to 5 options), I then I want dropdown list 3 named 'Address" to have all of the address of the area and brand selected.
    Is this possible?
    Thankyou for your help!!

    Hi,
    here is an example for three dropdowns with dependencies.
    You have to copy this code in the change-event of the fist dd:
    Number and Letter are the entries in my example in the first dd. You have to adapt to your entries. Then you have your object names change in the script.
    DropdownListe2.addItem("123"); - this phrase you could use several times (in your example 5x for the second dd)
    switch (xfa.event.newText)
        case "Number":
            DropdownListe2.clearItems();
            DropdownListe3.clearItems();
            DropdownListe3.rawValue = null;
            DropdownListe2.addItem(" ");
            DropdownListe2.addItem("123");
            DropdownListe2.addItem("456");
            DropdownListe2.selectedIndex = 0;
            break;
        case "Letter":
            DropdownListe2.clearItems();
            DropdownListe3.clearItems();
            DropdownListe3.rawValue = null;
            DropdownListe2.addItem(" ");
            DropdownListe2.addItem("A");
            DropdownListe2.addItem("B");
            DropdownListe2.selectedIndex = 0;
            break;
        default:
            break;
    This code you have to copy in the change-vent from the second dropdown:
    switch (xfa.event.newText)
        case "123":
            DropdownListe3.clearItems();
            DropdownListe3.addItem(" ");
            DropdownListe3.addItem("123_aa");
            DropdownListe3.addItem("123_bb");
            DropdownListe3.selectedIndex = 0;
            break;
        case "456":
            DropdownListe3.clearItems();
            DropdownListe3.addItem(" ");
            DropdownListe3.addItem("456_aa");
            DropdownListe3.addItem("456_bb");
            DropdownListe3.selectedIndex = 0;
            break;
        case "A":
            DropdownListe3.clearItems();
            DropdownListe3.addItem(" ");
            DropdownListe3.addItem("A_1");
            DropdownListe3.addItem("A_2");
            DropdownListe3.selectedIndex = 0;
            break;
        case "B":
            DropdownListe3.clearItems();
            DropdownListe3.addItem(" ");
            DropdownListe3.addItem("B_1");
            DropdownListe3.addItem("B_2");
            DropdownListe3.selectedIndex = 0;
            break;
        default:
            break;
    Here you will find an example:
    https://workspaces.acrobat.com/?d=WjPa976zd1Ekdahx9r9kUw
    Hope it will helps you,
    Mandy

  • How can I show a pop up menu based on the selection in a previous pop up menu?

    For example, if "Company" is selected in a pop up menu in C6, then show another pop up menu in C7. if "Bob" is selected in a pop up menu C7, show another pop up menu that contains the talks "Bob" has in C8.
    I am trying to create a talk scheduling spreadsheet with different talk outlines for different speakers. I'm not sure if there are any functions or formulas that can accomplish this. Can anyone help?

    Pop-up menus contain fixed values in Numbers. You might be able to do this using Steppers or sliders. These produce a numerical result, which could be used to direct a second slider or stepper's output to a specific column or table.
    If you can provide a map of the structure of your list(s), there may be someone here able to take on the task of constructing the tools to do the job.
    Regards,
    Barry

  • How to populate a dropdown based on the selection from a previous dropdown?

    I am currently trying to build a spreadsheet with three different dropdown menus to choose from.  Based on what is selected from the first drop down though affects what choices are displayed for the next dropdowns.  Is this possible in Numbers? Or should I look for other alternatives for what I'm trying to do.

    Dynamic dropdown (pop-up) menus is not possible in Numbers directly.  If you use scripts you may be able to cobble something together.
    If you REALLY want pop up menus then place ALL the choices in a single pop up grouped together

  • Can we hide column in a query depending upon the variable selected

    Hi all,
    let us say my report have 10 column.
    now i am giving user option to select the values (let us say 'a' or 'b')
    columns must be displayed depending upon the value selected by user ..
    for example if user has selected 'a' then first five columns should be displayed..and if user has selected 'b' last five column should be displayed..(it will be OK even if we can hide the columns depending upon the selection )
    Is it possible in BEx...please let me know

    I did it sometime back. A bit complicated process.
    Create an infoobject, manually enter the values "keyfig1" and "keyfig2".
    Include this infoobject in the filters and restrict it using a "ready for input" variable.
    Now create two formula variables.
    Write a customer exit such that when you select "keyfig1", first formula variable's value should be set to 1 and other one's to 0.
    Then in the query create two calculated key figures, multiply both with the formula variable. Also supress column (all active value == 0).
    Then it will show the key figure which you have selected.
    Pravender

  • How do I populate one dropdown list based on the selection in another dropdown list?

    I have one dropdown list that has 21 choices.  Depending on the selection of those 21 choices, I have another dropdown list that will select a different subset of choices from a pool of 96 choices.  How do I get this to happen?

    I have one dropdown list that has 21 choices.  Depending on the selection of those 21 choices, I have another dropdown list that will select a different subset of choices from a pool of 96 choices.  How do I get this to happen?

  • How do i prepopulate a listbox depending on the value of a textfield

    I am getting an custmerid value in a textfield depending on the selected customer name after getting this value i need to pass this customer id to a rowset query for populating the customer address listbox with that customers addresses only (he has multiple address ) iam doing so by doing setobject(1,custid) on that particular rowset.
    How ever on deploying iam getting invalid parameter binding exception.
    what do i do ? how do i get that customers addresses ?when does the creator look for the parameter bindings in the rowset.or trather when does it execute that particular rowset.?

    Hi,
    Check the following tutorial:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/listbox_components.html

Maybe you are looking for