Hierarchical expanding list contracts when link is klicked

I've got a hierarchical expanding list (a menu) with parent and child entries located on page zero.
Two things are wrong with it.
1. I dont want the parent entries (the ones that are displayed from the start) to be links. If I klick the + -sign next to them the list expands and show the child entries that are links to different pages. But if i klick the parent entries I get kicked to the login screen. I've set the parent entries to have Target type: -no target- but it doesn't work.
2 When I klick a child entry I'm linked to the right page but the hierarchical expanding list contracts... I'd like it to be expanded the way it was when I cklicked the link.
Could this be realated to the fact that it's located on page zero??? I've had some problems with page 0 before... But shouldn't you put a meny on page zero?
I would appreciate any help you could give me.
Edited by: andypandy on 2009-jun-16 06:21

I've moved the menu from page zero to another page temporarily but it still misbehaves. Anyone have any ideas??
Regards
Andreas

Similar Messages

  • Hierarchical Expanding List respecting open level

    I am running into a perplexing problem.. I am trying to use a Hierarchical Expanding List as a page 0 menu in a side region. Works great EXCEPT for the fact the current link is CLOSED in the list when you click on the page called by the link.
    Does anyone have some javascript that can go through and reopen the currently open link/page?
    Thank you,
    Tony Miller
    LuvMuffin Software

    Bump to see if ANYONE is awake..

  • HELP: Hierarchical expanding list nodes do not remain expanded

    h2. The Setup
    - Have a "hierarchical expanding" list on page zero
    - Set a child list item to be current for page 10
    h2. The Steps
    - Go to page 1, expand the hierarhical list, click on the child item
    - takes me to page 10
    h2. The Problem
    - The list collapses and only shows the top-level items
    - In other words, the child link that is supposed to be 'current' for page 10 is hidden
    h2. The Solution?
    Any thoughts on how to solve either using the baked in hierarchical expanding list template, or modifying it?
    Related thread: Re: Lists - hierarchical expanding

    Hi Michael,
    Have a look at: making the tree nodes which are clicked into bold
    That describes what I have done here: http://apex.oracle.com/pls/apex/f?p=33642:293
    This uses a Tree item but you might be able to use it for a multi-level list item. In the code (which is shown near the end of the thread) jQuery is used to find the correct "node", highlight it, then traverse up through the tree ensuring that all parent nodes are "open" (ie, expanded).
    Andy

  • How to maintain the state(opened/closed) of a Hierarchical expanding list

    Hi,
    I've created a list with template "hierarchical expanding". When I click on the list node to go to a page, page related to the node appears but the tree doesn't remain expanded. It always shrinks back to the highest level.
    Please suggest a solution.
    Regards,
    Gaurav.

    Hi,
    use a setPropertyListener to save the row key of this select item and then restore this key as the current selected key.
    Frank
    Ps.: I don't ask why you call clearForRecreate() on the iterator. I am sure you have a reason.

  • Bug in rendering static list with Hierarchical Expanding template?

    Hi,
    on http://apex.oracle.com/pls/apex/f?p=23910 I prepared test case for my problem. It is static list with template Hierarchical Expanding and following structure:
    1
      1.1
        1.1.1
      1.2
        1.2.1
    2
    Entry 1.2 has condition set to never. And the problem is, as you can see, that entry 2 seems to be under entry 1.1. But really it isn't. Reason of this strange look is that in some cases, when condition for last entry in sublist is evaluted as false, there isn't generated tag </ul> closing that sublist, in this case are not closed even two sublists - under entries 1 and 1.1.
    In my real application it is more complicated, I have static list with about 80 entries (report menu) and every user sees some reports based on his position in organization structure and other conditions. And as you can imagine, this bug produces really confusing results, almost unique for every user.
    Did anybody meet this problem too? We are on ApEx 4.1.0, it is present in 4.1.1 too (as seen on apex.oracle.com)... And I think it wasn't problem in 4.0 (at least nobody noticed for few months and I believe somebody would notice that reports for one department are under reports for another one). Used theme is standard theme 2 - Builder Blue.
    Jirka

    update:
    I tried deriving the full path for the image file by viewing the source when I embedded it in an HTML region on the same page and it gives me something similar to the following URL:
    wwv_flow_file_mgr.get_file?p_security_group_id=502133210878128108&p_fname=myImage.gif
    (p.s. it is a .gif file - not sure if this should make any material difference)
    As a result, I tried embedding this into the code:
    <fo:block>
    <fo:external-graphic src="wwv_flow_file_mgr.get_file?p_security_group_id=502133210878128108&p_fname=myImage.gif)"/>
    </fo:block>
    but this time, instead of merely not rendering, when Acrobat opens, an error message appeared reported that the file was corrupted or invalid. When trying different formats, I seem to get a generic: "500 Internal Server Error".
    I'm going to try putting the image file in the server directory tree to see if that will work. I'll post later either way.

  • Lists - hierarchical expanding

    Hi,
    I created a hierarchical list with template "hierarchical expanding". When I click on a list entry to go to a page, the tree will not remain expend to the List entry current. The tree will always shrink back to the hightest level. Is there a way to preserve tree expaned to current entry when go to a page?
    Thanks.

    Hi,
    What version of APex you are using?
    Do you mean the LIST template name is "hierarchical expanding" this?
    Thanks,
    Logaa

  • How do I go back to my old version of Firefox. 4 does not allow me to use two finger mousepad control to expand or contract my screen. Also I don't like the lack of a drop-down arrow next to the back/forward buttons.

    I don't like to have to click and drag to see the drop down history of the back/forward buttons - this requires two fingers or a double tap and hold finger motion. MUCH easier to click and release and take my time to pick the screen I want to go back to, then click on that link with a separate motion.
    I especially don't like that I can no longer expand and contract the screen with two finger motion on my mousepad!!!
    Generally, I don't see any advantage to the new layout - and I have a slight preference to having my tabs closer to the screen rather than above the address bar, since I more frequently click on tabs than on the address bar. If you want to improve the view I would recommend combining the very topmost bar which is part of the window surround with the File Edit etc bar (and please keep File, Edit, View History, etc separated instead of putting them into a dropdown). This will allow the viewer one more line of text on a given webpage, and eliminate the wasted space which is only used to identify the window as FF and provide the close window buttons
    PLEASE help me go back to the old version. It was perfect.

    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

  • Expandable list - Table of Contents -  Please Help

    I used the code found on the following page to create an expandable list that worked great:        Expandable list :  at www.learningmovabletype.com
    I created a table of contents for our Policies and Procedures that showed the main topics and when clicked listed each policy subcategory.  The following link is for this page:http://bsacapheadstart.com/PoliciesandProcedures.html
    My company bought the Adobe CS4 package that included Dreamweaver several months ago and I am trying to create this same page using it.                          http://grantee.bsacapheadstart.com/Policies%20and%20Procedures.htm
    The problem as you will notice if you go to this page and click on the categories, is that only the first topic will expand and all the others will not.
    I have reviewed the code several times and do not see any differences between the first topic heading and the others; nor between the code that works on the first page and the page I am creating using Dreamweaver.
    I have thought about using the Spry Collapsible Panel or Accordian but it is not exactly what we want.  Besides everyone is already comfortable with this layout.
    If anyone could please help, it would be greatly appreciated! Thanks!

    Start with valid code.  It makes trouble shooting much simpler.
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.grantee.bsacapheadstart.com%2 FPolicies%2520and%2520Procedures.htm
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Expandable Lists

    I'm having trouble with an expandable list that displays more
    information when an icon/link is clicked on. I'm trying to get an
    icon pointing right to appear next to the test "Dispensers" when
    the list is closed and then show an icon pointing down when the
    list is expanded, but I'm getting two different icons appearing at
    the same time (
    http://www.cleanfuelsohio.org/e85tools.php)
    Here's my code:
    <html>
    <head>
    <title>Clean Fuels Ohio | E85 Marketers Tools
    </title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1">
    <?
    include($DOCUMENT_ROOT."includes/menu_interior_css.php"); ?>
    <link href="css/cfo.css" rel="stylesheet" type="text/css"
    />
    <script>
    function toggle(toggleId, e)
    if (!e) {
    e = window.event;
    if (!document.getElementById) {
    return false;
    var body = document.getElementById(toggleId);
    if (!body) {
    return false;
    var im = toggleId + "_toggle";
    if (body.style.display == 'none') {
    body.style.display = 'block';
    if (document.images[im]) {
    document.images[im].src = "images/action_right.gif";
    } else {
    body.style.display = 'none';
    if (document.images[im]) {
    document.images[im].src = "images/action.gif";
    if (e) {
    // Stop the event from propagating, which
    // would cause the regular HREF link to
    // be followed, ruining our hard work.
    e.cancelBubble = true;
    if (e.stopPropagation) {
    e.stopPropagation();
    </script>
    </head>
    <body>
    <?
    include($DOCUMENT_ROOT."includes/menu_interior_divs.php"); ?>
    <table width="941" height="268" border="0" cellpadding="0"
    cellspacing="0">
    <tr>
    <td width="45" rowspan="3"> </td>
    <td width="896" height="205" valign="top"
    bgcolor="#FFFFFF">
    <? include($DOCUMENT_ROOT."includes/interior_header.php");
    ?>
    </td>
    </tr>
    <tr>
    <td valign="top" bgcolor="#FFFFFF"><table
    width="877" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="312" align="left" valign="top"><table
    width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><img src="new_images/titles/fuelmarketers.jpg"
    width="314" height="89"></td>
    </tr>
    <tr>
    <td bgcolor="#47642E"><?
    $pid = $_GET['pid'];
    $m=$_GET['m'];
    include($DOCUMENT_ROOT."menu/menu.php");
    ?></td>
    </tr>
    <tr>
    <td
    background="new_images/sub_menu_gradient_bottom.jpg"><img
    src="new_images/sub_menu_gradient_bottom.jpg" width="312"
    height="215" /></td>
    </tr>
    </table></td>
    <td width="48" align="left" valign="top"><img
    src="new_images/Interior_04.jpg" width="26" height="400"
    /></td>
    <td width="546" align="left"
    valign="top"><p><br />
    <span class="sub_headA">E85 Fuel Marketer Tools
    </span><br />
    <p class="body_copy"><a href="#A"
    class="body_copy_link"><u>Fuel
    Distributors</u></a><br>
    <a href="#B" class="body_copy_link"><u>Fueling
    Equipment</u></a><br>
    <a href="#C" class="body_copy_link"><u>Success
    Stories</u></a></p>
    <img src="new_images/divider.jpg">
    <p class="sub_headB"><a name="A"></a>Fuel
    Distributors</p>
    <p class="body_copy"></p>
    <p class="sub_headB"><a
    name="B"></a>Fueling Equipment</p>
    <div>
    <p class="body_copy"><img
    src="images/action_right.gif" name="one_toggle"
    onClick="toggle('one', event)">Dispensers</p>
    </div>
    <div id="one" style="display:none;">
    <div onClick="toggle('one_a', event)">
    <img src="images/action.gif" name="one_a_toggle">
    <table width="400" border="1" class="body_copy">
    <tr>
    <th
    scope="col"><strong>Company</strong></th>
    <th
    scope="col"><strong>Contact</strong></th>
    <th
    scope="col"><strong>Phone</strong></th>
    <th
    scope="col"><strong>Fax</strong></th>
    </tr>
    <tr>
    <td><a href="
    http://www.bennetpump.com"
    class="body_copy_link" target="_blank">Bennett Pump
    Company</a><br>
    1218 E. Pontaluna Rd.<br>Spring Lake, MI
    49456</td>
    <td><a href="mailto:[email protected]"
    class="body_copy_link">Gary Hanks</a></td>
    <td>231-798-1310</td>
    <td>231-799-6202</td>
    </tr>
    <tr>
    <td><a href="
    http://www.cleanfuelusa.com"
    class="body_copy_link" target="_blank">Clean Fuel
    USA</a><br>
    116 Halmar Cove<br>Georgetown, TX 78628</td>
    <td> </td>
    <td>512-942-8300</td>
    <td> </td>
    </tr>
    <tr>
    <td><a href="
    http://www.gasboy.com"
    class="body_copy_link" target="_blank">Gasboy International,
    Inc.</a><br>707 N. Valley Forge Road<br>Lansdale,
    PA 19446</td>
    <td><a href="mailto:[email protected]"
    class="body_copy_link" target="_blank">Doug
    Smith</a></td>
    <td>215-855-4631<br>800-444-5529</td>
    <td>215-855-0341</td>
    </tr>
    <tr>
    <td>Tokheim Corporation<br>1600 Wabash
    Avenue<br>Fort Wayne, IN 46801</td>
    <td>Don Peaks</td>
    <td>219-470-4600</td>
    <td>219-471-2001</td>
    </tr>
    </table>
    </div>
    </div>
    <p class="sub_headB"><a
    name="C"></a>Success Stories</p>
    <p class="body_copy"></p>
    </body>
    </html>
    Also, (I'm quite new to the expandable function) I want to
    add another category like "Dispensers" under "Fuel Equipment"
    called "Filters" but when I enter the code, nothing new is
    displayed. How do I do this? Thanks!

    The easiest and fastest thing to do would be to invest in
    ProjectSeven's
    Tree
    Menu Magic. It's wonderful, clean, simple and worth every
    penny.
    I don't know enough about js to know if your code needs help,
    but if TMM is too much for the budget then here is some code a
    friend gave me that I've been using for a couple years that hasn't
    failed yet. HTH.

  • When usung google search I get a listing but when I click on it gets replace with spam

    When usung google search I get a listing but when I click on a link it gets replace with spam. I notice a half blue spiral in front of the link that pops up.
    == This happened ==
    Every time Firefox opened
    == every time I use use the Google Search in firefox

    This seems to be going around. I haven't studied it in detail, but here is an example of a removal guide:
    http://malwaretips.com/blogs/trovi-com-removal/
    ''There are many other removal guide sites, but often they are designed to confuse you so you purchase paid support services. Most likely you won't need to do that in this case.''
    Please also see our support article on cleaning up malware, and the specialized forums listed toward the end: [[Troubleshoot Firefox issues caused by malware]].
    In the short run, assuming an extension is to blame, you may want to use Firefox in its Safe Mode. That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    Not all add-ons are disabled: Flash and other plugins still run
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).

  • ALV grid list  report when selected  from  selection screen

    Hi folks,
                I need to get ALV grid display in my list report when selected the interval values from  the selection screen. If I change the values in list of ALV grid it needs to be updated when I press UPDATE pushbutton. The output of list should be in ALV grid display.I need sorting ,flitering,totaling functionality in the list output.
    For example if I selected BUKRS = 100 and 200 in the selection screen ,I need to display the ALV grid list in below the selection screen as ALV grid display...
    Its urgent as  I am new to ALV grid functionality...
    Thanks in advance..

    hi raja,
    check with the folllowing code.
    REPORT zca0m_zca0fcstftop NO STANDARD PAGE HEADING
                                    MESSAGE-ID zcsv_usrtbl_maintain.
    Type pools                                                           *
    TYPE-POOLS : slis.                          " Used for ALV display
    Tables
    TABLES: zca0fcstftop,
            dd04t,                         "R/3 DD: Data element texts
            tactt.                         "Activities that can be protected
    internal tables
    DATA: BEGIN OF wa_zca0fcstftop .
            INCLUDE STRUCTURE zca0fcstftop.
    DATA: END OF wa_zca0fcstftop.
    DATA: t_zca0fcstftop LIKE STANDARD TABLE OF wa_zca0fcstftop.
    DATA: BEGIN OF i_fcode OCCURS 0,
            fcode LIKE sy-ucomm,
          END OF i_fcode.
    *Record for variant selection
    DATA : BEGIN OF ws_variant,
             selected TYPE c,
             variant  LIKE ltdx-variant,  "Variant name
             text     LIKE ltdxt-text,    "Variant description
           END OF ws_variant.
    *Table for variant selection
    data : itab_variant LIKE STANDARD TABLE OF ws_variant WITH HEADER LINE.
    Variant selection pop-up global variables
    DECLARATION OF TABLECONTROL 'VARIANT_CNTL' ITSELF
    CONTROLS: variant_cntl TYPE TABLEVIEW USING SCREEN 0200.
    LINES OF TABLECONTROL 'VARIANT_CNTL'
    DATA:     g_variant_cntl_lines  LIKE sy-loopc.
    DATA:grid1 TYPE REF TO  cl_gui_alv_grid ,
         g_custom_container TYPE REF TO cl_gui_custom_container.
    Work fields
    DATA: table_name LIKE dd02l-tabname,   "To store table name
          field_name LIKE dd03l-fieldname, "To Store Field Name
          act_auth LIKE tactz-actvt,       "To pass Activity ID
          tab_maint LIKE dd02l-tabname,    "To pass Table Name to be Maintd.
          wg_confirm_ind,                  "To trap User responses
          flag,                            "To trap changes made to an entry
          f_copy,                          "To Identify 'COPY' Command Use
          f_select,                        "To decide between Select-options
                                           " and Internal Table
          l_transaction_code LIKE tstc-tcode,
          v_langu LIKE sy-langu,
          v_repid LIKE sy-repid,
          s_variant TYPE disvariant.
    DATA: ok_code LIKE sy-ucomm.
    DATA:selected_rows TYPE lvc_t_row  ,
         sel_rows TYPE lvc_t_row WITH HEADER LINE.
    DATA:t_lines TYPE i.
    Constants                                                            *
    CONSTANTS :
               c_x TYPE c VALUE 'X',             " Constant 'X'.
               c_f TYPE c VALUE 'F'.             " Constant 'F'.
    Parameters and Selection Options
    *Selection Screen for table maintenance
    *Selection option for Plant
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-b01.
    PARAMETERS:  p_werks   LIKE zca0fcstftop-werks OBLIGATORY.
    SELECT-OPTIONS: s_prdfml  FOR zca0fcstftop-product_family,
                    s_bmach   FOR zca0fcstftop-base_machine,
                    s_factop FOR zca0fcstftop-factory_top,
                    s_optval  FOR zca0fcstftop-option_value,
                    s_week    FOR zca0fcstftop-week.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-b02.
    PARAMETERS     : p_varant LIKE ltdx-variant.          " ALV variant
    SELECTION-SCREEN END OF BLOCK block2.
    At selection screen                                                  *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_varant.
      PERFORM alv_variant_f4 CHANGING p_varant.
    AT SELECTION-SCREEN ON p_werks .
    Validating Plant on the selection screen
      PERFORM validate_plant.
    Initialization
    INITIALIZATION.
    Check Authorization for the Transaction
    Authorization Check For T Code
      SELECT tcode
         INTO l_transaction_code
         FROM tstc UP TO 1 ROWS
         WHERE pgmna = sy-repid.
      ENDSELECT.
      AUTHORITY-CHECK OBJECT 'S_TCODE'
                          ID 'TCD' FIELD l_transaction_code.
      IF sy-subrc NE 0.
        MESSAGE e001 WITH l_transaction_code.
      ENDIF.
      v_langu = sy-langu.                             " language
      v_repid = sy-repid .                            " abap Program name
    Start Of Selection
    START-OF-SELECTION.
      CALL SCREEN 0050.
    *&      Form  validate_plant                                           *
          Validating Plant on the selection screen                       *
    FORM validate_plant .
      DATA : l_werks LIKE t001w-werks.                          " Plant
      IF p_werks IS NOT INITIAL.
        SELECT SINGLE werks
            FROM t001w
            INTO l_werks
            WHERE werks EQ p_werks.
        IF sy-subrc NE 0.
          MESSAGE e100(ra) WITH text-001 .
        ENDIF.
      ENDIF.
      AUTHORITY-CHECK OBJECT 'Z_PP_PLANT'
               ID 'ACTVT' FIELD '03'
               ID 'WERKS' FIELD p_werks
               ID 'TCD' FIELD l_transaction_code.
      IF sy-subrc NE 0.
        MESSAGE e000(oo) WITH 'No authorization for plant:'(e80) p_werks.
      ENDIF.
    ENDFORM.                    " validate_plant
    *&      Form  get_data                                                 *
          Get data                                                       *
    FORM get_data .
      SELECT * FROM zca0fcstftop
        INTO TABLE t_zca0fcstftop
        WHERE werks           = p_werks
          AND product_family IN s_prdfml
          AND base_machine   IN s_bmach
          AND factory_top    IN s_factop
          AND option_value   IN s_optval
          AND week           IN s_week.
    ENDFORM.                    " get_data
    *&      Form  fill_fcode
    FORM fill_fcode USING    value(p_0029).
      i_fcode-fcode = p_0029.
      APPEND i_fcode.
      CLEAR i_fcode.
    ENDFORM.                               " fill_fcode
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'UPDATE'.
      CLEAR flag.
    ENDMODULE.                             " STATUS_0100  OUTPUT
    *&      Module  MODIFY_0100  OUTPUT
    MODULE modify_0100 OUTPUT.
      IF sy-ucomm = 'CHNG' OR
           sy-ucomm = 'PICK'.
        LOOP AT SCREEN.
          CHECK screen-group1 = 'CHG'.
          screen-required = '0'.
          screen-output   = '1'.
          screen-input    = '0'.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    Check if you are in create mode & if yes then set the screen elements
    as mandatory
      IF ok_code = 'CREA'.
        LOOP AT SCREEN.
          CHECK screen-group1 = 'CHG'.
          screen-required = '1'.
          screen-output   = '1'.
          screen-input    = '1'.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                             " MODIFY_0100  OUTPUT
    *&      Module  Check_Exit  INPUT
          text
    MODULE check_exit INPUT.
      IF ( sy-ucomm = 'BACK' OR sy-ucomm = 'CANC' OR sy-ucomm = 'EXIT' ) AND
           ( flag = 'Y' ).
        CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
          EXPORTING
            defaultoption  = 'Y'
            textline1      = text-008
            textline2      = text-009
            titel          = text-004
            cancel_display = ' '
          IMPORTING
            answer         = wg_confirm_ind.
        CASE wg_confirm_ind.
          WHEN 'J'.                                             "Yes
            sy-ucomm = 'SAVE'.
            CLEAR flag.
          WHEN 'N'.                                             "No
            sy-ucomm = 'BACK'.
            CLEAR flag.
        ENDCASE.
      ENDIF.
    ENDMODULE.                             " Check_Exit  INPUT
    *&      Module  Exit_0100  INPUT
          text
    MODULE exit_0100 INPUT.
      SET SCREEN 0. LEAVE SCREEN.
    ENDMODULE.                             " Exit_0100  INPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'SAVE'.                       "Save
        Check to see if the user has the appropriate authorization
          IF p_werks NE zca0fcstftop-werks.
          could not update - not in selection
            MESSAGE e000(oo) WITH 'Entry not within selection'.
            SET SCREEN 0. LEAVE SCREEN.
            PERFORM get_data.
          ENDIF.
          IF f_copy = 'X'.
            INSERT zca0fcstftop.
            IF sy-subrc = 0.
              MESSAGE s004.
              PERFORM initialize.
              SET SCREEN 0. LEAVE SCREEN.
              PERFORM get_data.
            ELSE.
              MESSAGE w005.
            ENDIF.
          ELSE.
            MODIFY zca0fcstftop.
            IF sy-subrc = 0.
              MESSAGE s004.
              PERFORM initialize.
              SET SCREEN 0. LEAVE SCREEN.
              PERFORM get_data.
            ELSE.
              MESSAGE w005.
            ENDIF.
          ENDIF.
          PERFORM get_data.
        WHEN 'BACK'.                       "Back
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'CANC'.                       "Cancel
          SET SCREEN 0. LEAVE SCREEN.
        WHEN OTHERS.
      ENDCASE.
      COMMIT WORK.
    ENDMODULE.                             " USER_COMMAND_0100  INPUT
    *&      Form  Initialize
    FORM initialize.
      CLEAR :   table_name,
                field_name,
                wg_confirm_ind,
                f_copy,
                flag,
                t_zca0fcstftop,
                zca0fcstftop,
                wa_zca0fcstftop,
                i_fcode.
      REFRESH: t_zca0fcstftop.
    ENDFORM.                               " Initialize
    *&      Form  alv_variant_f4
          text
         <--P_VARIANT  text
    FORM alv_variant_f4  CHANGING variant.
      DATA: rs_variant LIKE disvariant.
      DATA nof4 TYPE c.
      CLEAR nof4.
      LOOP AT SCREEN.
        IF screen-name = 'VARIANT'.
          IF screen-input = 0.
            nof4 = 'X'.
          ENDIF.
        ENDIF.
      ENDLOOP.
      rs_variant-report   = sy-repid.
      rs_variant-username = sy-uname.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant = rs_variant
          i_save     = 'A'
        IMPORTING
          es_variant = rs_variant
        EXCEPTIONS
          OTHERS     = 1.
      IF sy-subrc = 0 AND nof4 EQ space.
        variant = rs_variant-variant.
      ENDIF.
    ENDFORM.                               " ALV_VARIANT_F4
    *&      Module  STATUS_0050  OUTPUT
          text
    MODULE status_0050 OUTPUT.
    In this module Initialize the container and put the grid in it
      DATA:grid_layout  TYPE lvc_s_layo,
           fieldcat TYPE lvc_t_fcat,
           wa_fieldcat LIKE LINE OF fieldcat.
      PERFORM set_auth.
      SET PF-STATUS 'UPD_0050' EXCLUDING i_fcode.
      SET TITLEBAR 'UPD_0050'.
      IF g_custom_container IS INITIAL .
        CREATE OBJECT g_custom_container
           EXPORTING
              container_name = 'FTDATA'.
        CREATE OBJECT grid1
           EXPORTING
            i_parent = g_custom_container.
      ELSE.
        CALL METHOD grid1->free.
        CALL METHOD g_custom_container->free.
        CREATE OBJECT g_custom_container
           EXPORTING
              container_name = 'FTDATA'.
        CREATE OBJECT grid1
           EXPORTING
            i_parent = g_custom_container.
      ENDIF.
    Every time refresh The variables
      PERFORM initialize.
      PERFORM get_data.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'ZCA0FCSTFTOP'
        CHANGING
          ct_fieldcat      = fieldcat.
      grid_layout-grid_title = text-t01.
      grid_layout-sel_mode = 'A'.
      grid_layout-stylefname = 'CT'.
      s_variant-report   = sy-repid.
      s_variant-username = sy-uname.
      s_variant-variant  = p_varant.
      CALL METHOD grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'ZCA0FCSTFTOP'
          is_layout        = grid_layout
          is_variant       = s_variant
          i_save           = 'A'
        CHANGING
          it_outtab        = t_zca0fcstftop
          it_fieldcatalog  = fieldcat.
      Create Object to receive events and link them to handler methods.
      When the ALV Control raises the event for the specified instance
      the corresponding method is automatically called.
    CREATE OBJECT event_receiver.
    SET HANDLER event_receiver->handle_button_click FOR grid1.
    ENDMODULE.                 " STATUS_0050  OUTPUT
    *&      Module  USER_COMMAND_0050  INPUT
    MODULE user_command_0050 INPUT.
      CALL METHOD grid1->get_selected_rows
        IMPORTING
          et_index_rows = selected_rows.
      DESCRIBE TABLE selected_rows LINES t_lines.
      IF t_lines > 1 .
        MESSAGE e048(zcsv_sfdr).
      ENDIF.
    Clear Header
      CLEAR wa_zca0fcstftop.
      sel_rows[] = selected_rows .
      READ TABLE sel_rows INDEX 1.
      READ TABLE t_zca0fcstftop INTO wa_zca0fcstftop INDEX sel_rows-index.
      CASE ok_code.
        WHEN 'EXIT'.
          PERFORM exit_program.
        WHEN 'CREA'.
          CLEAR zca0fcstftop.
          ok_code = sy-ucomm.
          zca0fcstftop-werks = p_werks.
          CALL SCREEN 100.
        WHEN 'COPY'.
          MOVE wa_zca0fcstftop TO zca0fcstftop .
          CLEAR wa_zca0fcstftop.
          f_copy = 'X'.
          CALL SCREEN 100.
        WHEN 'CHNG'.
          CHECK NOT wa_zca0fcstftop IS INITIAL.
          MOVE wa_zca0fcstftop TO zca0fcstftop .
          CLEAR wa_zca0fcstftop.
          ok_code = sy-ucomm.
          CALL SCREEN 100.
        WHEN 'DELE'.
          CHECK NOT wa_zca0fcstftop IS INITIAL.
          CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
            EXPORTING
              defaultoption  = 'N'
              textline1      = text-005
              textline2      = text-006
              titel          = text-007
              cancel_display = ' '
            IMPORTING
              answer         = wg_confirm_ind.
          IF wg_confirm_ind EQ 'J'.
            DELETE zca0fcstftop FROM wa_zca0fcstftop .
            IF sy-subrc EQ 0.
              MESSAGE s004.
            ELSE.
              MESSAGE e005.
            ENDIF.
          ELSEIF wg_confirm_ind EQ 'N'.
          ENDIF.
      ENDCASE.
      CLEAR ok_code.
    ENDMODULE.                 " USER_COMMAND_0050  INPUT
    *&      Form  exit_program
    FORM exit_program .
      CALL METHOD g_custom_container->free.
      CALL METHOD cl_gui_cfw=>flush.
      SET SCREEN 0.
      LEAVE SCREEN.
    ENDFORM.                    " exit_program
    *&      Form  set_auth
    FORM set_auth.
      REFRESH: i_fcode.
    Check authorization for change
      MOVE '02' TO act_auth.        "02 --> Change
      MOVE 'ZCA0FCSTFTOP' TO tab_maint.
      AUTHORITY-CHECK OBJECT 'ZZ:TABLMNP'
        ID 'ACTVT' FIELD act_auth
        ID 'TABLE' FIELD tab_maint.
      IF sy-subrc NE 0.
        PERFORM fill_fcode USING 'CHNG'.
      ENDIF.
    Check for authorization for create
      MOVE '01' TO act_auth.        "01 --> Create
      MOVE 'ZCA0FCSTFTOP' TO tab_maint.
      AUTHORITY-CHECK OBJECT 'ZZ:TABLMNP'
        ID 'ACTVT' FIELD act_auth
        ID 'TABLE' FIELD tab_maint.
      IF sy-subrc NE 0.
        PERFORM fill_fcode USING 'CREA'.
        PERFORM fill_fcode USING 'COPY'.
      ENDIF.
    Check for authorization for delete
      MOVE '06' TO act_auth.        "06 --> Delete
      MOVE 'ZCA0FCSTFTOP' TO tab_maint.
      AUTHORITY-CHECK OBJECT 'ZZ:TABLMNP'
        ID 'ACTVT' FIELD act_auth
        ID 'TABLE' FIELD tab_maint.
      IF sy-subrc NE 0.
        PERFORM fill_fcode USING 'DELE'.
      ENDIF.
    ENDFORM.                    " set_auth
    *&      Module  check_change  INPUT
    MODULE check_change INPUT.
      flag = 'Y'.
    ENDMODULE.                 " check_change  INPUT
    regards,
    vikas.
    plz reward if helpful

  • How to get into /Expanded/ List View

    I have a bunch of metadata that I have turned on for Expanded List View and I am in Browser View with the little "List" icon checked (I guess this is next to "grid view") but I can't seem to find a pulldown or tab or checkbox that lets me know I am in expanded view. Since I am not seeing the data I checked I am thinking I missed this somewhere.
    TIA

    When you are in Expanded View, the menu option that shows is "Switch to Basic View".
    When you are in Basic View, the menu option that shows is "Switch to Expanded View".
    It's not a deft bit of UI design, but it is foolproof.
    Here -- from the User Manual.
    To switch to the expanded metadata overlay view in the Browser in filmstrip view, grid view, and list view 
    Do one of the following: 
    Choose View > Metadata Display, then choose Switch to Expanded View from the Browser section of the submenu (or press Shift-U).
    In the tool strip, choose Switch to Expanded View from the Browser section of the Metadata Overlays pop-up menu.
    Note: Switching to the expanded view increases the number of columns displayed in list view.
    To switch to the basic metadata overlay view in the Browser in filmstrip view, grid view, and list view
    Do one of the following:
    Choose View > Metadata Display, then choose Switch to Basic View from the Browser section of the submenu (or press Shift-U).
    In the tool strip, choose Switch to Basic View from the Browser section of the Metadata Overlays pop-up menu.
    Note: Switching to the basic view decreases the number of columns displayed in list view.

  • Problem in Hierarchical Sequential List

    Hi All,
    I am developing an Hierarchical ALV List using OOABAP. In the output list, I have a checkbox to be displayed. I have taken the cell type as "CHECKBOX", it is displaying as disabled. I searched some sites for the resolution, it is mentioned if we take cell type as "CHECKBOX_HOTSPOT" then it will be disabled.
    So I tried that as well. When I used that program is giving me a dump. Please find the dump below. Request you all to provide a faster solution for this.
    Thanks.
    Error analysis
        An exception occurred which is explained in detail below.
        The exception, which is assigned to class 'CX_SALV_METHOD_NOT_SUPPORTED', was
         not caught and
        therefore caused a runtime error.
        The reason for the exception is:
        Class COLUMNCLASS, method SET_CELL_TYPEMETHOD not supported for
        CL_SALV_HIERSEQ_TABLEOBJECT KEY
    Information on where terminated
        Termination occurred in the ABAP program "CL_SALV_COLUMN================CP" -
         in "RAISE_METHOD_ONLY_VALID_FOR".
        The main program was "ZZSMB004_FSE_FILLUP_TEST ".
        In the source code you have the termination point in line 95
        of the (Include) program "CL_SALV_COLUMN================CM01Q".
    SourceCde
              read table t_valid
                with key model  = if_salv_c_model=>table
                         object = if_salv_c_table_objects=>list
                transporting no fields.
              if sy-subrc ne 0.
                l_exit = abap_false.
              endif.
              l_key = text-k03.
          endcase.
        when if_salv_c_model=>hierseq.
          read table t_valid with key model = if_salv_c_model=>hierseq
            transporting no fields.
          if sy-subrc ne 0.
            l_exit = abap_false.
          endif.
          l_object = text-o03.
        when if_salv_c_model=>tree.
          read table t_valid with key model = if_salv_c_model=>table
            transporting no fields.
          if sy-subrc ne 0.
            l_exit = abap_false.
          endif.
          l_object = text-o04.
      endcase.
      check l_exit eq abap_false.
      raise exception type cx_salv_method_not_supported
        exporting
          class  = l_class
          method = l_method
          object = l_object
          key    = l_key.

    Hi Smitha ,
    After the Cell Style (you mean CELLTAB) that you have taken as checkbox.
    Now pass this while editing the cell styles.
              X_CELL-STYLE     = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.
    hope this helps.

  • Setting the session when link is clicked in JSP

    I have a jsp page which recieves a Map from a java class function. It retireves the element from the map and displays it onto the page as a link. Now what I want to do is whenever any link is clicked then I want to put the map in the session. How can I do that in the same page????
    I do not want to already set the session becoz that gives me problem later on.

    Ok, I understand what you are trying to do now. Unfortunately, I still don't think you have much choice. Essentially you will only ever have 4 ways of persisting the data:
    1. In memory on the server (eg Session)
    2. On disk on the server (eg database)
    3. In memory on the client (eg Applet or maybe Javascript)
    4. On disk on the client (eg signed applet writing to local file system)
    The "standard" approach is to store all of this sort of stuff on the server, so you have a choice between 1 and 2.
    I assume your "Employee" data is in a database or LDAP directory? (or some form of "on disk" persistence), and you are querying this data store to populate the objects in memory?
    If so, there is a way you can avoid persisting in memory for a long time, but because you will have to persist "somewhere" you will only have option 2 left.. on disk.
    In the code where you initially retrieve the data from the data store for the first JSP, you can put the Map in the HttpServletRequest object rather than the session (request.setAttribute()), then access this in the first JSP to render the list. When you get to the second JSP however, this object will be out of scope and you won't have access to it anymore so you will have to query the datastore again for the specific record (based on an ID passed from the first JSP). So when you hit "back", the first JSP should execute again and requery the entire list again.
    This approach "shifts" the load from a memory load to a disk load (and you will also be affected by database performance issues), so you may not solve your performance desires.
    Alternatively, if the list of Employees is the same for all users (ie, it is an entire list and not a "filtered" list based on some search criteria), then you could store the list in memory at "application scope". Basically you would just load the Map on application start-up and put it into a static variable somewhere. I suspect this won't meet your needs as typically the list you generate would be based on a specific query (I am guessing here).
    All that being said, your concerns about memory usage and performance may be unwarranted. If you do some quick calculations about the memory usage of each Employee object, you may find it is a trivial amount. (Of course you won't be able to tell definatively how much memory it is using, but you may be able to hazard an educated guess). Remember also that things like Strings are "immutable" (never change) and are drawn from a "pool" of Strings. So, if you have two objects which contain the String "Java", they will actually both be using the same bit of memory.
    Also, a word of warning: If you choose to maintain your "in memory" model, you may run into concurrency issues. Consider the situation where the initial query generates a list of Employees. The user traverses the list looking at the details of each employee. Meanwhile, another user is changing the details of an Employee on disk, but the first user hasn't looked at the details of this Employee from their list yet. Because the list the first user is viewing is in memory, it won't reflect any alterations made since it was generated. So when the first user views the details of the Employee that the second user altered on disk, they will see the "old" details for that Employee.
    So, in summary the only two choices I can think of that are reasonable are:
    1. Keep things the same but don't destroy the Map in the session so the first page always has it, and suffer the memory issues. (remembering the warning above)
    2. Limit the scope of the data to the "request" only, and re-query every time. This will have poorer performance from a "response-time" perspective but avoids concurrency issues.
    My recommendation:
    If the list is "small" (sub 100 items), and you don't care about the risk of viewing "old" data, keep it in the Session. If the list is too big, perhaps you could look at only storing the first X number or records in the session and only displaying the first X number of records in the first JSP (like a search engine does)
    If the list is big, and/or you DO care about viewing old data, maintain the persistence on disk. If you choose this option, performance can be enhanced by using connection pools, stored procedures etc.
    At the end of the day, memory will only cause a performance issue if you "run out". Maybe the solution is to simply add more memory to the server?
    Hope some of this helps.

  • Pages Changes expands or contracts after saving

    I have a document in Pages and I selected a blank page as my format 2 column. I have written a 97 page book My Life Story including many pictures.
    When I save the document and open it later I find that pictures have shifted positions and the text may expand or contract enough for the pictures to be out of position.
    I may have selected the wrong format in the beginning. I have never come across this problem in any other application. I drag a picture into the document it is much larger than the original and I have to resize it to fit the column. I have to include the caption with the jpg picture in order for it to retain its position. The text wraps around the picture when I add text I always have to start from the new text point and move all the pictures to the new position within the text. I opened my document today and it had changed from the last save. I am afraid to print it for it may not appear as I last saved it. Normally saving a document keeps it as it was when it was last saved.
    Going crazy with the Application Pages
    Dick

    As it is described in the Pages User Guide, if you export to PDF you may rule the output resolution.
    PDF files can be created using an image quality of good, better, or best. When the
    image quality is set to best, the resolution of images isn’t scaled down. When the
    image quality is set to better, images are downsampled to 150 dpi. When the image
    quality is set to good, images are downsampled to 72 dpi. Images without an alpha
    channel are JPEG compressed with a compression level of 0.7 at the good setting
    and 0.9 at the better setting.
    Inserting picture with a res higher than 300 is useless.
    it seems they could at least make the Screen Shots contemporary display resolution.
    Are you ready to pay for a 300 dpi display monitor ?
    Yvan KOENIG (VALLAURIS, France) dimanche 13 décembre 2009 11:47:11

Maybe you are looking for