How to click one tab to trigger 5 ExecuteWithParams?

Is this a challenging question?
I am using JDeveloper 10.1.3.4 and what I am trying to do is otherwise pretty simple. In the application there is a page that displays row counts in tables. With one statistic, the page would look like this:
200902 | 200906
   Total Number of Students    12066  The "Total Number of Students" is a read-only form, from a view object named TotalStudents whose query is:
SELECT COUNT(*) AS TOTAL_STUDENTS
FROM BILL
WHERE HOURS_ATTM > 0
AND TERM = :SelectedTermThe value of the :SelectedTerm is supplied by clicking either of the two tabs (200902 or 200906). The page layout is created by using af:panelPage. Following the example in a tutorial, the tabs on the menubar are created by dragging and dropping the ExecuteWithParams action of the TotalStudents view object in the data control palette into the menubar node in the structure window as a commandLink. The setActionListener of the commandLink puts the value #{'200902'} into the #{requestScope.semester} vairable. Then in the page definition xml file, #{requestScope.semester} is assigned to the SelectedTerm bind variable of the ExecuteWithParams action in the bindings node.
That works fine in the one statistic page. When the 200902 tab is clicked, Total Number of Students is 12066. When 200906 tab is clicked, the number is 590.
The problem is that the page needs to display not just this one statistic, but five of them:
200902 | 200906
     Total Number of Students    12066 
   Students Already Validated    11482
             Validated Online      974
      Validated Traditionally    10508
   Students Not Yet Validated      584These five statistics are five view objects with five different sql queries. They have one thing in common though: each query has only one bind variable named SelectedTerm, which is assigned '200902' or '200906' depending on which tab is clicked. Following the way the tutorial demonstrates, I will have to drag and drop the ExecuteWithParams action two times each for the five view objects to create 10 tabs, which will make the page quite messy.
What I want to do is that, when the 200902 tab is clicked, the page displays all the five 200902 semester statistics. When the 200906 tab is clicked, the page displays all the five 200906 semester statistics, i.e., the five view objects share one ExecuteWithParams action.
Is there a way to achieve that? And How?
Thank you very much for helping me out!
Newman

Hi, John:
I tried doing it in the backing bean and it works out great. I wrote a method refreshSummaryStats(String term) that retrieves all the five VOs, sets the bind variable of each VO query to the term passed to it, and executes the query. On the page in the visual editor click each commandLink on the menu bar to create a commandlink action. In the action method, call the refreshSummaryStats() with the term argument.
Thank you very much for the direction. That helps a lot!
Newman

Similar Messages

  • Is there a way to move a group of tabs to a new window? I know how to move one tab to a new window, but is there a way to mark a group of tabs and move them to a new window?

    Is there a way to move a group of tabs to a new window? I know how to move one tab to a new window, but is there a way to mark a group of tabs and move them to a new window?

    * Tab Mix Plus: https://addons.mozilla.org/firefox/addon/tab-mix-plus/

  • Help Me please How to combine one tab press and continuesly press on keyboard

    Hy all, I am new here... Btw I have a problem when I making a game Flash with action script 3,. I want to
    make my character move when the key helding and I want  my character attack
    with one tab press either ,.. how to make  it work?? please give me sample to make it ... Thanks before

    yea thats correct but.. how to combine it with continuesly press.. I have script like this :
    package
        import flash.display.MovieClip;
        import flash.events.KeyboardEvent;
        import flash.ui.Keyboard;
        import flash.events.Event;
        public class Main extends MovieClip
            var vx:int;
            var vy:int;
            var attack:Boolean=true;   
            public function Main()
                init();
            function init():void
                vx=0;
                vy=0;
                attack=false;
                stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDownF);
                stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUpF);
                stage.addEventListener(Event.ENTER_FRAME, onEnterframe);
             function onKeyDownF(event:KeyboardEvent):void
                if (event.keyCode == Keyboard.LEFT)
                    vx = -5;
                    Player.gotoAndStop(2);
                    Player.scaleX = -0.3;
                else if (event.keyCode == Keyboard.RIGHT)
                    vx = 5;
                    Player.gotoAndStop(2);
                    Player.scaleX = 0.3;
                else if (event.keyCode == Keyboard.DOWN)
                    vy = 5;
                    Player.gotoAndStop(2);
                else if (event.keyCode == Keyboard.UP)
                    vy = -5;
                    Player.gotoAndStop(2);
              else if (event.keyCode == Keyboard.SPACE)
                   Player.gotoAndStop(3);
            function onKeyUpF(event:KeyboardEvent):void
                if (event.keyCode == Keyboard.LEFT || event.keyCode == Keyboard.RIGHT)
                    vx = 0;
                    Player.gotoAndStop(1);
                else if (event.keyCode == Keyboard.UP || event.keyCode == Keyboard.DOWN || event.keyCode == Keyboard.SPACE)
                    vy = 0;
                    Player.gotoAndStop(1);
            function onEnterframe(event:Event):void
                Player.x+=vx;
                Player.y+=vy;
    when I try to include key code SPACE to moving character to attack.... It will going continuesly attack when I helding the key,.. and It stop when I relase the key.. I need one press to attack.. please help me.. :'(

  • How to add one new tab at item label in me21n

    hi experts,
    i  am very new in badi .can any one please tell me how to add
    one tab in me21n at item label. i already checked  sample code for
    badi me_gui_po_cust. i create one implementation and write same code.
    this code is coming in debugging mode but cant see that tab while executing 
    me21n.
    please help me out.
    thanks in advance
    manasi

    Hi Manasi,
    acording to me you are on the right path.Some help
    1.ME_GUI_PO_CUST.
    For Creating Customer own Screen - Purchase Order..
    Details :
    Go to the sample code of this BADI.
    For this create a Function group with the screen that u want in PO.
    In the First method u want to append the screen . There is one parameter im_element.
    In this parameter u can mention that in which part u want the screen .Header/Item.
    2. ME_PROCESS_PO_CUST
    In this BADI u can Check the Complete PO at various Level.
    ie Header Level ,Item Level, At the time of Save, Post .
    Now Create a Include in your Function group and paste the below code.
    DATA: call_subscreen TYPE sy-dynnr, "#EC NEEDED
    call_prog TYPE sy-repid, "#EC NEEDED
    call_view TYPE REF TO cl_screen_view_mm, "#EC NEEDED
    call_view_stack TYPE REF TO cl_screen_view_mm OCCURS 0, "#EC NEEDED
    global_framework TYPE REF TO cl_framework_mm, "#EC NEEDED
    global_help_view TYPE REF TO cl_screen_view_mm, "#EC NEEDED
    global_help_prog TYPE sy-repid. "#EC NEEDED
    FORM SET_SUBSCREEN_AND_PROG *
    --> DYNNR *
    --> PROG *
    --> VIEW *
    --> TO *
    --> CL_SCREEN_VIEW_MM *
    FORM set_subscreen_and_prog USING dynnr TYPE sy-dynnr
    prog TYPE sy-repid
    view TYPE REF TO cl_screen_view_mm.
    call_subscreen = dynnr.
    call_prog = prog.
    call_view = view.
    ENDFORM. "set_subscreen_and_prog
    Hope to solve ur probs.....
    Regards
    Renu

  • How to select one line in TextArea?

    does anybody know how to click one line in TextArea and get the contents of the line(string)? How can I implement the action?
    any hints would be appreciated.
    thanks in advance.

    The term 'line' might mean a displayed line of text or it might mean text delimited by a newline character.
    If you mean text delimited by a newline character, then sylvain.barbot has an approach that may work. A MouseListener would know when a click occurs and could determine the 'line' of text between \n's from the current Caret position.
    If you mean a displayed line of text, that will be difficult unless you put restrictions on the TextArea. If you allow the TextArea to be resized or use a variable-width font, then I can't think of a way to do what you want. The number of characters per line changes depending on the current size and the character content of the TextArea. You might as well write your own TextArea.
    If you use a fixed-width font, then you should be able to calculate the number of characters per line. With a ComponentListener, you should be able to re-calculate the number of characters per line when the TextArea is resized. It would be easiest if you did not allow resizing of the TextArea and used a fixed-width font. Then getCaretPosition() would give you the position in the whole TextArea and you could calculate the line start and end.

  • How to open a new tab in case of exception in one tab

    I have created a custome exception class which extends JBP EXCEPTION class..
    ANd I am fetching data by calling procedure in my app module.If i have any exception in my db call i am throwing cusatom exception .
    Oo UI level I am using dynamic shell and in case of exception i am able to see the exception on the page fragment.But when i try to open a new tab
    I am not able to open or i should say i am not able to perform any action after the exception...
    SO just wanted to knwo what can be done in this case?
    Can i remove the exception some how? Or is there any other way that even we have an exception on one tab i can move to next tab?

    After further looking inti this issue i found that this scenario occurs if i have an error in my first tab.
    FOr example
    I have 3 tabs - I opened first tab ,opened second and click on submit on second page an exception occurs .. I am able to open a third tab ...
    I have 3 tabs I opened first tab click on submit an exception occurs now i will not be able to open any other tab ... now i will not able to do anything in the application.
    Any idea??

  • GUI - How do i merge two diffrent layout managers into one tab?

    Hello
    I want to create a cellphone, and when you click a button it will be displayed in a textfield
    the buttons are in a grid layout (4,3) and the textfield is in a border layout (NORTH)
    I have the layouts in two seperate tabs, but how do i merge two diffrent layouts in to one tab ?
    textfield:
    package guitelefon;
    import java.awt.*;
    import javax.swing.*;
    public class BorderPanel extends JPanel
       public BorderPanel()
          setLayout (new BorderLayout());
          setBackground (Color.green);
          JTextField output = new JTextField(5);
          add (output, BorderLayout.NORTH);
    }Buttons:
    package guitelefon;
    import java.awt.*;
    import javax.swing.*;
    public class GridPanel extends JPanel
        public GridPanel()
          setLayout (new GridLayout (4, 3));
          setBackground (Color.green);
          JButton b1 = new JButton ("1");
          JButton b2 = new JButton ("2");
          JButton b3 = new JButton ("3");
          JButton b4 = new JButton ("4");
          JButton b5 = new JButton ("5");
          JButton b6 = new JButton ("6");
          JButton b7 = new JButton ("7");
          JButton b8 = new JButton ("8");
          JButton b9 = new JButton ("9");
          JButton bs = new JButton ("*");
          JButton b0 = new JButton ("0");
          JButton bf = new JButton ("#");
          add (b1);
          add (b2);
          add (b3);
          add (b4);
          add (b5);
          add (b6);
          add (b7);
          add (b8);
          add (b9);
          add (bs);
          add (b0);
          add (bf);
    }driver:
    package guitelefon;
    //  LayoutDemo.java       Java Foundations
    //  Demonstrates the use of flow, border, grid, and box layouts.
    import javax.swing.*;
    public class LayoutDemo
         public static void main (String[] args)
          JFrame frame = new JFrame ("Cellhpone");
          frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
          JTabbedPane tp = new JTabbedPane();
          tp.addTab ("Grid", new GridPanel());
          tp.addTab ("Border", new BorderPanel());
          frame.getContentPane().add(tp);
          frame.pack();
          frame.setVisible(true);
    }

    a simple example with compilable code:
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import javax.swing.*;
    public class Main {
      public static void main(String[] args) {
        JFrame frame = new JFrame("Cellhpone");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JPanel panel = new JPanel(new BorderLayout());
        panel.add(new FooPanel(), BorderLayout.CENTER);
        panel.add(new BarPanel(), BorderLayout.NORTH);
        frame.getContentPane().add(panel);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    class FooPanel extends JPanel {
      private static final String[][] BTN_STRINGS = {
        {"1", "2", "3"},
        {"4", "5", "6"},
        {"7", "8", "9"},
        {"*", "0", "#"}};
      public FooPanel() {
        setLayout(new GridLayout(BTN_STRINGS.length, BTN_STRINGS[0].length, 5, 5));
        for (int row = 0; row < BTN_STRINGS.length; row++) {
          for (int col = 0; col < BTN_STRINGS[row].length; col++) {
            JButton btn = new JButton(BTN_STRINGS[row][col]);
            add(btn);
    class BarPanel extends JPanel {
      private JTextField field = new JTextField();
      public BarPanel() {
        setLayout(new BorderLayout());
        add(field, BorderLayout.CENTER);
    }Edited by: Encephalopathic on Oct 29, 2009 7:56 AM

  • I upgraded yesterday so why is the "close tab" no longer on the File menu? How do I close one tab without exiting Firefox?

    the "close tab" option is not on the File drop-down menu today. It was before I upgraded yesterday to the new version of firefox. So how do I close one tab?

    Ctrl W did the trick and I think I should be able to remember that. Right click menu when the document or site is open on the screen doesn't work, but it does from the taskbar menu above. Either way, I know what to do now. Thank you.

  • How to show view tab Main Report and all of Sub Report in one action through Visual FoxPro

    How to show all view tab (Main Report and all of Sub Report) in one action.
    I already know how to show Main Report with this code sample:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=this.Parent.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Inside the 'MyReport.rpt' it has 2 subreports:
    1. MySubReport_1
    2. MySubReport_2
    I try to show MySubReport_1 and MySubReport_2 together with their own Main Report with this code sample:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=this.Parent.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptSub1=oRptOpen.OpenSubreport('MySubReport_1')
    oRptSub2=oRptOpen.OpenSubreport('MySubReport_2')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Did I miss something because there was only view tab 'Preview' (Main Report) shown without view tab MySubReport_1 and MySubReport_2.
    Thank you.

    Your right, there is only one tab to view the report.
    To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
    http://diamond.businessobjects.com/robhorne</a>

  • How do I just close one tab when I have 3 open

    If I have more than one tab open, I want to close only one but when I try to close the one I don't want a message comes up to say it will close all the tabs I have open. How do I just close the one I don't want

    How did you close the tabs previously?
    If you use the close X on the title bar then you close the window with all tabs.<br />
    You need to use the close X on the tab.<br />
    You can also middle-click the tab with the mouse scroll wheel to close the tab.

  • How do you position tags in a spreadsheet? Can I eSign more than one tab in a spreadsheet?

    How do you position tags in a spreadsheet? Can I eSign more than one tab in a spreadsheet?

    Using text tags
    https://workspaces.acrobat.com/app.html#d=Bi-SZ3cbVCHwiWBBp-7G7g
    but spreadsheets are quite difficult to predict as they don't typically have a page size defined. If you can do this in Word it'll be easier.
    or convert to pdf before uploading to EchoSign.
    You an upload a spreadsheet with multiple tab and place tags on each tab and all will get converted.

  • How do I move tabs from one window to another window?

    With the previous version of firefox, I could drag a tab from one window to another window. (and if there was only one tab left in that window, it would automatically close that window because there were no more tabs open in it)
    With the latest version of firefox, '''How do you drag or move a tab from one window to another window'''

    Hi,
    To move to the next tab it's '''Ctrl''' + '''Tab''' or '''Ctrl''' + '''Pg Dn''' (Page Down). To go to the previous tabs (reverse order) it's '''Ctrl''' + '''Shift''' + '''Tab''' or '''Ctrl''' + '''Pg Up''' (Page Up) keys. More about this and other keyboard shortcuts [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts here.]

  • How can I only close one tab, not two or more tabs at a time?

    I would like to be able to close one tab, and go back to my email or original page, but I only get the message that I will close all tabs. I would like to be able to close one tab, and go back to the previous tab that I have open, not have to go back and sign in to my email when it should still be open. This works with Internet Explorer, why can it not work with Firefox?

    The dialog Firefox displays when you click the "close window" (X) button doesn't have the option to only close the current tab. Instead, you can use one of these methods to close just the current tab:
    * Click the "x" that should appear on the current tab itself
    * Right-click the current tab > Close tab
    * Press Ctrl+w to close the current tab
    (Note: If you accidentally press Ctrl+w twice, you can re-open the tab by pressing Ctrl+Shift+t to Undo Close Tab)

  • With more than one tab open in private browsing, how do I leave private browsing all at once?

    Before the latest Firefox update I was able to close a private browsing session by selecting the STOP menu item and checking the appropriate selection in a pop up dialogue box. Now, when I have more than one tab open in private browsing, I can't end the session by selecting STOP. The dialogue box opens and offers a START option instead of a STOP option. The same is true using CONTROL+SHIFT+P. To work around the situation I need to close all but one tab and then stop the session. I want to go back to the way it was before the update and opt out of a private session entirely, regardless of how many windows or table are open, with the former two-step process.

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • How to make more than one tab on safari

    How do you have more than one tab on sarfari?

    Create another from the File menu or by pressing Command and T.
    (63155)

Maybe you are looking for