Tab select problem

I'm trying to reload a page and pre-select the tab panel that
will show. I'm using the 'defaultTab' setting when calling the
widget but it doesn't seem to be having any effect. Are there any
known circumstances when this could be the case? I'm currently
configuring 2 panels but this will grow as the code progresses.
Can't see any typos though(!):
<script language="JavaScript" type="text/javascript">
var tp1 = new Spry.Widget.TabbedPanels("tp1", { defaultTab:
2 });
</script>
I would post a link but the site is CF driven and contains
sensitive data.
Any help/advice would be greatly appreciated!

Hi Tyran,
You only have 2 panels?
Spry uses a zero based counting system, so {defaultTab:2} is
actually the 3rd panel.
Set it to 1 to get the second panel.
D

Similar Messages

  • Tabbed selection screen problem.

    Hi expert,
    I need some help in creating my selection screen.
    Right now i'm creating a tabbed selection screen as the code below follows.
    PARAMETERS: p_test AS CHECKBOX USER-COMMAND testrun DEFAULT 'X'.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
    PARAMETERS: p_offkdt TYPE sy-datum MODIF ID thr.
    SELECT-OPTIONS: s_konfe FOR p0002-konfe.
    SELECTION-SCREEN END OF SCREEN 100.
    SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
    SELECTION-SCREEN: BEGIN OF LINE,
                       COMMENT 1(20) text-005 MODIF ID yea
                        FOR FIELD p_lowdt,
                        POSITION POS_LOW.
    PARAMETERS: p_lowdt TYPE begda MODIF ID yea,
                p_updt TYPE endda MODIF ID yea.
    SELECTION-SCREEN: END OF LINE.
    PARAMETERS: p_keydt TYPE dats MODIF ID yea.
    SELECTION-SCREEN END OF SCREEN 200.
    SELECTION-SCREEN BEGIN OF SCREEN 300 AS SUBSCREEN.
    PARAMETERS: p_lvdat TYPE dats MODIF ID lv.
    SELECTION-SCREEN END OF SCREEN 300.
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK prog_selection FOR 4 LINES,
                      TAB (20) button1 USER-COMMAND push1,
                      TAB (20) button2 USER-COMMAND push2,
                      TAB (20) button3 USER-COMMAND push3,
                      END OF BLOCK prog_selection.
    Now as I'm using tab and subscreen, therefore i need to initialize the subscreen which i wanted to use which i did in the initialization event.
      prog_selection-dynnr = 100.
      prog_selection-activetab = 'PUSH1'.
    With the above code, my default tab would be screen 100 which is the first tab.
    My problem right now is, after i execute the program, and then i press the back button to go back to the selection screen, the default tab 100 is shown again while i wanted to show the last tab which was picked before the program was executed. Please kindly advise how can i solve this problem.
    Many Thanks!
    -Suwardi Nursalim-

    Hi,
    DATA: V_DYNNR TYPE SY-DYNNR VALUE '0100',
               V_ACTIVETAB(4).
    INITIALIZATION.
      MOVE 'PUSH1' TO V_ACTIVETAB.
    AT SELECTION-SCREEN OUTPUT.
      prog_selection-dynnr = V_DYNNR.
      prog_selection-activetab = V_ACTIVETAB.
    When the user clicks each tab of the tab strip.*
    CASE SY-UCOMM.
       WHEN 'PUSH1'.
            V_ACTIVETAB = 'PUSH1'.
            (rest of your code).
       WHEN 'PUSH2'.
            V_ACTIVETAB = 'PUSH2'.
            (rest of your code).
       WHEN 'PUSH3'.
            V_ACTIVETAB = 'PUSH3'.
            (rest of your code).
    ENDCASE.
    Hope this will help you.
    Regards,
    Smart Varghese

  • Jdev11 Tab selection and Enable User Customization on Session bug.

    When you have enabled User Customization for duration of session then what ever user changes on a page it remains the same through out the session,
    ie. Disclosed panel boxes, advanced query criteria, visible columns of tables in panel collections etc.
    The problem is that you cant customize which properties to be kept or not :
    ++Fusion Developer's Guide for Oracle ADF & 34.3 Configuring User Customizations:++
    ++Note+: If you've enabled just session persistence, then all attribute values shown in Table 34-1 will be persisted to the session.+
    There is no way to override this either globally or on an instance.
    The bigger problem is that if you have some business logic about these components appearance or behavior you can’t override user settings.
    Is this a bug?
    Shouldn’t business logic methods override user customization settings?
    Will User Customization for duration of session become configurable?
    details :[http://adfbugs.blogspot.com/2009/09/tab-selection-and-enable-user.html]

    Hi,
    Is this a bug?
    Don't think so. I assume your business logic is dependent on the disclosure state, which usually is reset after each navigation off and on to a page. Using change persistence you explicitly allow the user to keep the changes. So your business logic cannot rely on a changed state.
    The proposed enhancement request to prevent components from perisisting changes sound fair. I'll file one.
    But it isn't that you can't override the persisted information for a component. You can use teh ChangeManager API that is exposed on the ADFFacesContext to override persistence information
    http://download.oracle.com/docs/cd/E15051_01/apirefs.1111/e10684/oracle/adf/view/rich/change/ChangeManager.html
    For example, using a change disclosure event:
      boolean isDisclosed = < whatever you like to set >;
      //Record a Change for 'disclosed' attribute
      AttributeComponentChange aa =
      new AttributeComponentChange('disclosed', isDisclosed ? Boolean.TRUE : Boolean.FALSE);
      AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
      //set disclosed state to component. Here you override the user choice
      adfContext.getChangeManager().addComponentChange(getFacesContext(), event.getSource(), aa);Frank
    Edited by: Frank Nimphius on Sep 30, 2009 3:20 PM

  • JTabbedPane - Catching tab selection change

    I want to catch each tab selection change in my JTabbedPane.
    When I used ChangeListener, my program was unable to correctly
    indicate selected tab in some cases, i.e.:
    JTabbedPane contains two tabs: 0,1.
    Tab 0 was selected.
    Tab 0 was deleted.
    In this case JTabbedPane selects tab 1, but selected index remains
    unchanged and stateChanged is not called. How can I catch this?

    This trick is working, but you see, the problem is more
    complicated. The problem is that stateChanged() doesn't work
    when index remains unchanged. This is also true for insertTab().
    Both insertTab() and removeTabAt() (and maybe smth. else) causes this problem.
    Maybe, possible solution will be to override some method of
    JTabbedPane, responsible for activating a tab like this...?
    tabbedPane = new JTabbedPane {
        activateTab(...) {
            super.activateTab(...);
            firePropertyChange(...);
    }But what is the methods prototype and can it be overriden
    at all??
    In the deep sources of swing :) I've found such tricks:
    In JTabbedPane.insertTab():accessibleContext.firePropertyChange(
        AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY,
        null, component);In JTabbedPane.removeTabAt():accessibleContext.firePropertyChange(
        AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY,
        component, null);I'm almost convinced that this is the point. But!
    I've never worked with Accesibility :(
    And I couldn't find out what to do having only swing sources.
    Need help.

  • Selection Problem with JTable

    Hello,
    i have a selection problem with JTable. I want to allow only single cell selection and additionally limit the selection to the first column.
    I preffered the style from MS Outlook Express where you can select the email accounts to edit.
    It is a table like this:
    Account name  |   Type  |   ...
    --------------|---------|---------------------
    Hotmail       |   POP3  |
    GMX           |   IMAP  |The selection should be only avaibable at 'Hotmail' or 'GMX' - not at 'POP3', 'IMAP' or as complete row selection.
    Please help me!
    Thanks.
    Warlock

    Maybe this will helpimport java.awt.*;
    import javax.swing.*;
    public class Test3 extends JFrame {
      public Test3() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Container content = getContentPane();
        String[] head = {"One", "Two"};
        String[][] data = {{"R1-C1", "R1-C2"}, {"R2-C1", "R2-C2"}};
        JTable jt = new JTable(data, head);
        jt.getColumnModel().setSelectionModel(new MyTableSelectionModel());
        content.add(new JScrollPane(jt), BorderLayout.CENTER);
        jt.setCellSelectionEnabled(true);
        jt.setRowSelectionAllowed(false);
        jt.setColumnSelectionAllowed(false);
        setSize(300, 300);
        setVisible(true);
      public static void main(String[] arghs) { new Test3(); }
    class MyTableSelectionModel extends DefaultListSelectionModel {
      public void setSelectionInterval(int index0, int index1) {
        super.setSelectionInterval(0, 0);
    }

  • In PO invoice tab select tax code shown amount column KOMV-KBETR as 100%

    Hi,
    In PO invoice tab select tax code shown amount column KOMV-KBETR as 100% we need as 10% my alculation is correct but showing only 100%
    i have assigned tax rate in j1id as 10% and Ftxp as same tax code as 100% and condition is JM02 as non-deductable.
    in PO condition value is showing as 10% correct value but showing in amount column as 100%
    Please suggest
    Thanks
    Shital

    No reply

  • Select Problem For 'Back Menus' - Zen V P

    Just got the Zen V Plus and tried to set the time/date. Followed the 'guide' and after the time/date screen pressed the 'back button'. Got the Set Alarm/Date/Time (etc) menu but when I selected an option (moved joystick down to desired option then pressed the joystick) the time/date display came up and I was NOT ABLE to set the date. Same thing occurred trying to set the date (tried it several times and it worked once .... then attempted again - several times (4) but it only worked once). Turns out I have the same problem with any option in ANY 'back' menu. Suggestion?
    Do I have a defecti've unit (can't be the 'operator' who is defecti've! haha)? Should I return it and try another?
    Actually not that interested in playing music .... it's more for playing .wma(DRM) book files.

    Latest ... updated my firmware (to ZENVPlus_PCFW_P4S_L2___0.exe) and it fixed the select problem for SET DATE/TIME etc however
    the SELECT procedure doesn't always work for 'back button' menus. Example: tried to set a bookmark... following procedure in 'guide', pressed 'back button' and held it, from 'NOW PLAYING' screen - works 2 out of 5 times. Most of the time, pressing and holding takes you back to the previous menu - not to the 'back' (or in this case the SET BOOKMARK) menu. Sounds like something for the next version of firmware ... the code doesn't always set an internal timer correctly (am a programmer of 30 years ... part of that time pgmmng firmware).

  • Variants on tabbed selection screen for ALV reports

    Scenario: We use a tabbed selection screen for an ALV report. We create a variant, make a selection field on the second tab mandatory & save it without a value. When we run the report with the saved variant it does not check that the required field on the second tab is populated before it executes.
    Question: How can I code such a check?
    Edited by: Alridge Tom on Jul 4, 2008 3:43 PM

    Hi,
    try inserting this code apropietly in you program. (1 parameter + Initialization + At-selection-screen + 2 forms)
    START HERE
    PARAMETERS: pa_vari TYPE disvariant-variant.
    INITIALIZATION.
      g_repid = sy-repid.
      CLEAR e_variant.
      e_variant-report   = sy-cprog.
      e_variant-username = sy-uname.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save     = 'A'
        CHANGING
          cs_variant = e_variant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 0.
        pa_vari = e_variant-variant.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_vari.
      PERFORM alv_variant_f4 CHANGING pa_vari.
    *&      Form  ALV_VARIANT_F4
    FORM alv_variant_f4 CHANGING pa_vari.
      DATA: l_exit(1) TYPE c.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant       = e_variant
          i_tabname_header = 'ANYTHING'
          i_save           = 'A'
        IMPORTING
          e_exit           = l_exit
          es_variant       = e_variant
        EXCEPTIONS
          not_found        = 2.
      IF sy-subrc = 2.
        MESSAGE ID sy-msgid TYPE 'S'  NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        IF l_exit = space.
          pa_vari = e_variant-variant.
        ENDIF.
      ENDIF.
    ENDFORM.                               " ALV_VARIANT_F4
    END
    Hope iy helps!
    Alfonso

  • Table control on Tabbed selection-screen

    Hi All,
    My Requirement is: I have a tabbed selection-screen with 3 tabs.
    On one of the tabs I have to include a Table control.
    Currently I'm displaying Table control as Pop-up . But I want that on the screen itself.
    Please suggest me how to do this.

    Once i have done this. but only table control was there on the screen.
    design a screen and place one table control.
    y will declare one default subscreen in the selection screen tab declaration,
    and
    At selection-screen.
    change the value of the deflaut screen to ur designed screen.
    below is one example
    controls: tab type tableview using screen 201.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK object FOR 50 LINES.
    SELECTION-SCREEN TAB (60) tab_cls USER-COMMAND ut_cls
                          DEFAULT SCREEN 101.
    SELECTION-SCREEN TAB (60) tab_rcp USER-COMMAND ut_rcp
                          DEFAULT SCREEN 200.
    SELECTION-SCREEN END OF BLOCK object.
    SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN NESTING LEVEL 2.
    parameters: P_lifnr type lfa1-lifnr.
    SELECTION-SCREEN END OF SCREEN 0101.
    SELECTION-SCREEN BEGIN OF SCREEN 0200 AS SUBSCREEN NESTING LEVEL 2.
    parameters: p_ebele type ekko-ebeln.
    SELECTION-SCREEN END OF SCREEN 0200.
    AT SELECTION-SCREEN.
      CASE sy-dynnr.
        WHEN 1000.
          CASE sy-ucomm.
            WHEN 'PUSH1'.
              object-dynnr = 100.
            WHEN 'UT_RCP'.
              object-dynnr = 201.
            WHEN OTHERS.
          ENDCASE.
    here the defualt screen is 200 but for table control purpose i changed it to 201 which has the table control in it.

  • Print selection problem

    when i select a page to be print from my pc the page select in

    Hello. I feel your pain and frustration with the print selection problem in safari, especially in Snow Leopard. I have spent hours trawling help pages and forums etc. BUT YEE HAA (sorry got a bit excited, but it really was hours) I found the answer. So here goes.
    Click on Safari
    Scroll down to services then slide to right
    Scroll down to services preferences and click
    Scroll down to the Text section
    If you Tick the Text box it will choose all options for you. Or if you don't want all options in the Text list, then untick Text box and tick options you do want.
    BUT for your print selection problem make sure you tick NEW TEXT EDIT WINDOW CONTAINING SELECTION.
    Then when you want to select something in a web page you want to print (including pictures etc) then highlight it, then Right click. And low and behold, in the list is NEW TEXT EDIT WINDOW CONTAINING SELECTION. Click that, Then press cmd+p and your printing.
    I really hope that helps with your problem
    I can now go to sleep.

  • At Line selection problem

    hi,
    iam stuck up with AT LINE-SELECTION problem ie i designed a screen where they need month list on clicking F4. i got the month list using month_names_get in the screen but while clicking the relevant month no.it's not entering into the required parameter. i have attached the codings,
    MODULE MONTH_DIS OUTPUT.
      SUPPRESS DIALOG.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      SET PF-STATUS SPACE.
      NEW-PAGE NO-TITLE.
      WRITE:/ 'SELECT MONTH' COLOR COL_HEADING.
      ULINE.
      DATA: T_MNTH LIKE T247 OCCURS 12 WITH HEADER LINE.
      refresh t_mnth.
      CALL FUNCTION 'MONTH_NAMES_GET'
       EXPORTING
         LANGUAGE                    = SY-LANGU
    IMPORTING
      RETURN_CODE                 =
        TABLES
          MONTH_NAMES                 = T_MNTH
       EXCEPTIONS
         MONTH_NAMES_NOT_FOUND       = 1
         OTHERS                      = 2
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      loop at t_mnth.
        write:/ t_mnth-mnr, t_mnth-ltx.
      endloop.
      CLEAR T_MNTH-MNR.
    ENDMODULE.                 " MONTH_DIS  OUTPUT
    AT LINE-SELECTION.
      p_period = t_mnth-mnr.
      CHECK NOT p_period IS INITIAL.
      LEAVE TO SCREEN 0.
    here in the AT LINE-SELECTION, the selected month is not coming to the required parameter.
    pls help me in this issue,
    Thanks in advance,
    Premnath.

    You need to set a "Hide" after the write... I suggest you also set your own dialog PF-STATUS too so you can have just a PF2 "pick" button and a Cancel button ( this will look better to the user).
    loop at t_mnth.
      write:/ t_mnth-mnr, t_mnth-ltx.
      hide: t_mnth.  "needs this
    endloop.
    clear: t_mnth.

  • Weird BGP path selection problem

    Hi, all,
    I am seeing a weird BGP path selection problem on 4948 switch running cat4500-entservicesk9-mz.122-46.SG.bin code, this switch has two uplinks to the same ISP's different edge router, one circuit is primary the other one is strict backup, only default route is accepted from ISP. I am setting both local preference and weight to the default route advertised over backup link, however neither one is taking effect, BGP still thinks the backup link is better, what could be wrong?
    rtr#sh ip bgp 0.0.0.0/0
    BGP routing table entry for 0.0.0.0/0, version 105
    Paths: (3 available, best #2, table Default-IP-Routing-Table, not advertised to EBGP peer)
      Not advertised to any peer
      17675, (received & used)
        203.169.8.37 from 203.169.8.37 (61.211.160.150)
          Origin IGP, localpref 100, valid, external
          Community: 65001:0 no-export
      17675
        203.169.8.45 from 203.169.8.45 (61.211.160.151)
          Origin IGP, localpref 90, weight 90, valid, external, best <====
          Community: 65001:0 no-export
      17675, (received-only)
        203.169.8.45 from 203.169.8.45 (61.211.160.151)
          Origin IGP, localpref 100, valid, external
          Community: 65001:0 no-export
    Thanks

    Hi,
    On cisco routers , weight is having highest preference to decide best path. By default for received route, weight is 0 but you are setting weight 90 to backup path and that is why it is getting preferred (higher is better). Please remove weight and let local preference be 90 (lesser than route on primary path)
    --Pls dont forget to rate helpful posts--
    Regards,
    Akash

  • Q on GTX 660 not working in PremPro CS6 also SpeedGrade, heard of tab selection

    I have a newly configured PC with a new GTX 660 video card with a new load of Premiere Pro and can not operate Premiere correctly or load Tiffen Dfx .....so I thought I had purchsed a higher performance card than those recommended ....also I've heard there was a Playback tab selection for utilizing non-offical video cards...Edit>Preferences>Playback    I don't see anything to re-config...Thanks from a flustered Barry

    The feature you're talking about won't be available until the new version comes out June 17th.  For now, you will need to hack the file the old way to get CUDA acceleration working.

  • Tab Selection on odc:TabbedPanel

    Hi All,
    I have jsp with 4 panels in the tabbed panel.. Have got a single <h:form> tab for all panels. Each panel has 2 command buttons.
    Whenever i click a command button on tab 4 .. control comes to the tabl.which i donot want. i want the control to remain in tab 4 itself...
    I tried the solution of including separate form tags for each panel and then set a value in the backing to identify which form is submitted and then hade the below code on jsp
       <f:verbatim>
                                <script>
                                    panel = ODCRegistry.getClientControl('tabbedPanel1');
                                    panel.restoreUIState('bfpanelForm' +
                                        </f:verbatim><h:outputText value="#{masterPublList.submittedForm}"/><f:verbatim>);
                                </script>
    </f:verbatim>..default value of the submittedForm is tab1. but when the tabbed panel is rendered, nothing is selected. and even i click the a btn on tab 4 the control comes to tab 1.. so the solution doesnot seem to work.
    Can anyone help me on this issuse

    The ODC tabbedpanel component in RAD7 should have an option to maintain the tab selected. I don't run RAD6/7 and this was told me so, so I'm sorry I that can't tell you which option exactly it is. I recommend you to just read it's documentation.
    If you're really stuck in it, I recommend you to use the Venkman Javascript Debugger extension to debug the JS involved in maintaining the tab selection. This way I'd found out this hack which is specific for the ODC component as is in WSAD 5.x. The article in http://balusc.xs4all.nl/srv/dev-jep-tab.html also states that it is WSAD 5.x specific.

  • Tab selection property causing 100% CPU usage

    Hi,
    I've having some trouble with using property nodes to tab selection. After 1-2 hours the CPU usage is 100%. The VI is attached. I'm using LV 6.0.2 on win2000. Does anyone have a clue of what's happening?
    Attachments:
    tab_selector_property.vi ‏22 KB

    Every time the while loop executes, you open *new* pages reference array. Whitout closing them, you quickly fill the memory and hog the computer usage. As in the modified VI attached, get the references only once outside the while loop and reuse them. Close any reference after use. As much as possible, you shoud use the control terminal to read its value instead of reading the value property.
    LabVIEW, C'est LabVIEW
    Attachments:
    tab_selector_property.vi ‏25 KB

Maybe you are looking for

  • Query about Inventory Cost of Goods Sold Account Generator WF Customization

    Hi We are trying to Customize the 'Inventory Cost of Goods Sold Account Generator' workflow for our client in Oracle Applications 11.5.10 instance. We have successfully uploaded the modified workflow and changed the GL Account Generator Process to po

  • Seeburger AS2 -Message Dumping

    Hi All, We are able to receive and send  message from and to third party mail box successfully. But when we enable message dumping for debugging via J2EE Admin for AS2 Adapter we are not able to receive message from the third party mail box. As per 

  • InDesign CC Probleme mit Tags

    Guten Tag zusammen, Ich habe vor kurzer Zeit eine neue Stelle angefangen und arbeite seit dem mit einem neuen System - Tags. Die Daten werden automatisch aus einem externen Kundenverzeichnis geladen und über Tags in InDesign CC eingebunden. Wir haben

  • Table  for User Status Profile

    hi Please tell anybody what is the table for User Status Profile in Sales Orders? where it will stores? Regards Rajendra

  • Add Dynamic Content to ScrollPane

    I have created a Address Class that uses Remote Hosting to get addresses for site locations and creates the appropriate listings in a MovieClip. I am trying to use this class as the source for a scroll pane inside another movie clip. I get the site l