Menu Bar using Nested Data Sets?

Hi all,
I was wondering if anyone has succesfully implimented a menu
bar widget using a dataset? I would like to control menu items by
changing items on the database. Is this possible? I think this may
be possible with nested data sets but I'm not sure.
Thanks in advance
Nelson

Hi, I know you're not a baby sitter, but would you be willing
to give me a little guidence as to how you came up with this? Your
sample seems to work exactly the way I want it.
Here's what I've done so far... correct me if I'm way off. I
have a db with 2 tables (menu1 and menu2).
menu1 = id, title, url, target (this was going to be the top
level menu items)
menu2 = id,menu1_id, title, url, target (this was going to be
the sub menu items)
I then created a menu_data page where I do two recordsets to
pickup the items from both tables. I then used the extension
"Export Record Set as XML" on that page for each of the recordsets.
S now I have my xml data.
Now I create a menu page where I try to bring in that data
into my menu bar. Was I really far off? Can you do a little hand
holding here? I'm kinda new to this stuff.
Thanks so much for the help!!!
Nelson

Similar Messages

  • Multiple Filtering of Nested Data Set Spry

    Hi,
    I am trying to use multiple filters on a nested data set using Spry but it does not work, no matter how many times I've re-read the code and verified that I'm using the code the right way. What is going on?
    When I use a single non-destructive filter (ie... ds.filter()) on the nested data set, the filter works beautifully. However, when I want to use multiple filters (I use ds.addFilter()), it looks like my filter function (FilterByState) is not being kicked off.
    I linked to the appropriate files, SpryData.js, xpath.js, SpryNestedXMLDataSet.js and SpryDataExtensions.js. These are the latest version, 1.6.1.
    Why will ds.filter work and not ds.addFilter? I haven't written the second filter code yet because this is stopping me from moving forward. Even though, I haven't written that, shouldn't addFilter work too?
    Please help, this is driving me crazy.
    Here is my code:
    <script type="text/javascript">          
         Spry.Utils.addLoadListener(function () {
              if (document.getElementById("stateSelect").selectedIndex != 0) {
                   document.getElementById("stateSelect").selectedIndex = 0;    
              if (document.getElementById("dateSelect").selectedIndex != 0) {
                   document.getElementById("dateSelect").selectedIndex = 0;    
         var dsTopics = new Spry.Data.XMLDataSet("compliance.xml", "compliance/subject", {useCache: false });         
         var dsDocuments = new Spry.Data.NestedXMLDataSet(dsTopics, "doc");
         var dsDates = new Spry.Data.XMLDataSet("compliance.xml", "compliance/subject/doc/date", {useCache: false, subPaths: "@num", distinctOnLoad: true, distinctFieldsOnLoad: ['date'], sortOnLoad: "@num", sortOrderOnLoad:"ascending"});
         dsDates.setColumnType("@num", "number");
         var currentSelection;
         //var FilterByState;
         function showDocuments(currentIndex) {
              dsTopics.setCurrentRowNumber(currentIndex);
              document.getElementById("stateSelect").selectedIndex = 0;
              document.getElementById("dateSelect").selectedIndex = 0;
              dsDocuments.removeAllFilters(true);
         function ToggleFilter(selected, f) {
              chosenState = selected;
              if (selected != "") {
                   alert("something's selected");
                   dsDocuments.addFilter(f, true);
              else {
                   alert("something is NOT selected");
                   dsDocuments.removeFilter(f, true);
              //dsDocuments.applyFilters();
         var chosenState;
         var chosenDate;
         function FilterByState(ds, row, rowNumber) {
              alert("Filtering by state");
              var currentSelection = document.getElementById("stateSelect").options[chosenState];
              if (row["state"].search(currentSelection.value) != -1) {
                   return row;
              else
                   return null;
         function FilterByDate(ds, row, rowNumber) {
              var currentSelectedDate = document.getElementById("dateSelect").options[chosenDate];    
              if (row["date"] == currentSelectedDate)
                   return row;
              else
                   return null;
    </script>
    <div class="articlePage articleContent">
         <h2 class="bodyCopyBold">Compliance Widget</h2>
         <form name="selectForm" action="">
              <div spry:region="dsTopics" id="topicSelector">
                   <label for="topicSelect" class="dataLabel">Topic:</label>
                   <select spry:repeatchildren="dsTopics" class="input" name="topicSelect" id="topicSelect" onchange="showDocuments(this.selectedIndex);">
                        <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{name}" selected="selected">{name}</option>
                        <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{name}">{name}</option>
                   </select>
              </div>
              <label for="stateSelect" class="dataLabel">State:</label>
              <select class="input" name="stateSelect" id="stateSelect" onchange="ToggleFilter(this.selectedIndex, FilterByState);">
                   <option value="" selected="selected">Please Select</option>
                   <option value="All States">All States</option>
                   <option value="AL">Alabama</option>
                   <option value="AK">Alaska</option>
                   <option value="AZ">Arizona</option>
                   <option value="AR">Arkansas</option>
                   <option value="CA">California</option>
                   <option value="CO">Colorado</option>
                   <option value="CT">Connecticut</option>
                   <option value="DE">Delaware</option>
                   <option value="DC">District of Columbia</option>
                   <option value="FL">Florida</option>
                   <option value="GA">Georgia</option>
                   <option value="HI">Hawaii</option>
                   <option value="ID">Idaho</option>
                   <option value="IL">Illinois</option>
                   <option value="IN">Indiana</option>
                   <option value="IA">Iowa</option>
                   <option value="KS">Kansas</option>
                   <option value="KY">Kentucky</option>
                   <option value="LA">Louisiana</option>
                   <option value="ME">Maine</option>
                   <option value="MD">Maryland</option>
                   <option value="MA">Massachusetts</option>
                   <option value="MI">Michigan</option>
                   <option value="MN">Minnesota</option>
                   <option value="MS">Mississippi</option>
                   <option value="MO">Missouri</option>
                   <option value="MT">Montana</option>
                   <option value="NE">Nebraska</option>
                   <option value="NV">Nevada</option>
                   <option value="NH">New Hampshire</option>
                   <option value="NJ">New Jersey</option>
                   <option value="NM">New Mexico</option>
                   <option value="NY">New York</option>
                   <option value="NC">North Carolina</option>
                   <option value="ND">North Dakota</option>
                   <option value="OH">Ohio</option>
                   <option value="OK">Oklahoma</option>
                   <option value="OR">Oregon</option>
                   <option value="PA">Pennsylvania</option>
                   <option value="RI">Rhode Island</option>
                   <option value="SC">South Carolina</option>
                   <option value="SD">South Dakota</option>
                   <option value="TN">Tennessee</option>
                   <option value="TX">Texas</option>
                   <option value="UT">Utah</option>
                   <option value="VT">Vermont</option>
                   <option value="VA">Virginia</option>
                   <option value="WA">Washington</option>
                   <option value="WV">West Virginia</option>
                   <option value="WI">Wisconsin</option>
                   <option value="WY">Wyoming</option>
              </select>
              <div spry:region="dsDates" id="dateSelector">
                   <label for="dateSelect" class="dataLabel">Date:</label>
                   <select class="input" name="dateSelect" id="dateSelect">
                        <option value="" selected="selected">Please Select</option>
                        <option spry:repeat="dsDates" value="{date}">{date}</option>
                   </select>
              </div>         
              <div class="spacer10"></div>
              <div id="documentListing" class="bodyCopy">
                   <ul spry:region="dsDocuments" spry:detailregion="dsTopics" class="list2">
                        <li spry:repeat="dsDocuments">{title}</li>
                   </ul>
              </div>
         </form>
    Here is the xml:
    <?xml version="1.0"?>
    <compliance>
         <subject>
              <name>Agent Termination</name>
              <doc id="91000038">
                   <title>Reminder: Agent Contract Termination Notification</title>
                   <date num="200907">July 2009</date>
                   <state>OR</state>
              </doc>
              <doc id="91000031">
                   <title>Reminder: Agent Contract Termination Notification 2</title>
                   <date num="200807">July 2008</date>
                   <state>OR</state>
              </doc>
              <doc id="91000031">
                   <title>Reminder: Agent Contract Termination Notification 2</title>
                   <date num="201001">January 2010</date>
                   <state>OR</state>
              </doc>
         </subject>
         <subject>    
              <name>Agent Training</name>
              <doc id="91000034">
                   <title>Oregon Agent Retraining</title>
                   <date num="200908">August 2009</date>
                   <state>OR</state>
              </doc>
              <doc id="91000060">
                   <title>Multi-State Corrective Action Plan - Training Courses – BLN Changes</title>
                   <date num="200902">February 2009</date>
                   <state>All States</state>
              </doc>
              <doc id="91000062">
                   <title>Required Training – Change for California Agents</title>
                   <date num="200902">February 2009</date>
                   <state>CA</state>
              </doc>
              <doc id="91000065">
                   <title>Required Training - BCLIC Agents</title>
                   <date num="200902">February 2009</date>
                   <state>NY</state>
              </doc>
              <doc id="91000071">
                   <title>Multi-State Corrective Action Plan - Training Courses – BLN Changes</title>
                   <date num="200901">January 2009</date>
                   <state>All States</state>
              </doc>
              <doc id="91000074">
                   <title>Multi-State Corrective Action Plan - Training Courses – BLN Changes 2</title>
                   <date num="200910">October 2009</date>
                   <state>All States</state>
              </doc>
         </subject>
         <subject>
              <name>Agents Licenses</name>
              <doc id="91000064">
                   <title>Georgia Agent Consent Orders</title>
                   <date num="200902">February 2009</date>
                   <state>GA</state>
              </doc>
              <doc id="91000066">
                   <title>New York State Correction Law</title>
                   <date num="200902">February 2009</date>
                   <state>NY</state>
              </doc>
         </subject>
         <subject>
              <name>DNC</name>
              <doc id="91000063">
                   <title>States Prohibit Unsolicited Calls</title>
                   <date num="200902">February 2009</date>
                   <state>AL, LA, RI, UT</state>
              </doc>
         </subject>
         <subject>
              <name>LTC Partnership</name>
              <doc id="91000056">
                   <title>Alabama Long Term Care and Long Term Care Partnership Compliance</title>
                   <date num="200903">March 2009</date>
                   <state>AL</state>
              </doc>
         </subject>
    </compliance>
    Thanks

    Hi Marlene,
    It isn't working right because you have a bug in your
    onchange attribute for your select:
    <select id="test"
    onChange="ds1.setCurrentRow(this.selectedIndex);">
    <option spry:repeat="ds1"
    id="{ds_RowID}">{@id}</option>
    </select>
    setCurrentRow() takes a rowID not a rowNumber. The
    "selectedIndex" of the select element is the equivalent of a row
    number, so if you want to change the current row by row number then
    use setCurrentRowNumber() instead:
    <select id="test"
    onChange="ds1.setCurrentRowNumber(this.selectedIndex);">
    <option spry:repeat="ds1"
    id="{ds_RowID}">{@id}</option>
    </select>
    After you make that change, you will see that things work as
    expected.
    --== Kin ==--

  • Download using open data set and close data set

    can any body please send some sample pgm using open data set and close data set .the data should get downloaded in application server
    very simple pgm needed

    Hi Arun,
    See the Sample code for BDC using OPEN DATASET.
    report ZSDBDCP_PRICING no standard page heading
    line-size 255.
    include zbdcrecx1.
    *--Internal Table To hold condition records data from flat file.
    Data: begin of it_pricing occurs 0,
    key(4),
    f1(4),
    f2(4),
    f3(2),
    f4(18),
    f5(16),
    end of it_pricing.
    *--Internal Table To hold condition records header .
    data : begin of it_header occurs 0,
    key(4),
    f1(4),
    f2(4),
    f3(2),
    end of it_header.
    *--Internal Table To hold condition records details .
    data : begin of it_details occurs 0,
    key(4),
    f4(18),
    f5(16),
    end of it_details.
    data : v_sno(2),
    v_rows type i,
    v_fname(40).
    start-of-selection.
    refresh : it_pricing,it_header,it_details.
    clear : it_pricing,it_header,it_details.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    FILENAME = 'C:\WINDOWS\Desktop\pricing.txt'
    FILETYPE = 'DAT'
    TABLES
    DATA_TAB = it_pricing
    EXCEPTIONS
    CONVERSION_ERROR = 1
    INVALID_TABLE_WIDTH = 2
    INVALID_TYPE = 3
    NO_BATCH = 4
    UNKNOWN_ERROR = 5
    GUI_REFUSE_FILETRANSFER = 6
    OTHERS = 7.
    WRITE : / 'Condition Records ', P_FNAME, ' on ', SY-DATUM.
    OPEN DATASET P_FNAME FOR INPUT IN TEXT MODE.
    if sy-subrc ne 0.
    write : / 'File could not be uploaded.. Check file name.'.
    stop.
    endif.
    CLEAR : it_pricing[], it_pricing.
    DO.
    READ DATASET P_FNAME INTO V_STR.
    IF SY-SUBRC NE 0.
    EXIT.
    ENDIF.
    write v_str.
    translate v_str using '#/'.
    SPLIT V_STR AT ',' INTO it_pricing-key
    it_pricing-F1 it_pricing-F2 it_pricing-F3
    it_pricing-F4 it_pricing-F5 .
    APPEND it_pricing.
    CLEAR it_pricing.
    ENDDO.
    IF it_pricing[] IS INITIAL.
    WRITE : / 'No data found to upload'.
    STOP.
    ENDIF.
    loop at it_pricing.
    At new key.
    read table it_pricing index sy-tabix.
    move-corresponding it_pricing to it_header.
    append it_header.
    clear it_header.
    endat.
    move-corresponding it_pricing to it_details.
    append it_details.
    clear it_details.
    endloop.
    perform open_group.
    v_rows = sy-srows - 8.
    loop at it_header.
    perform bdc_dynpro using 'SAPMV13A' '0100'.
    perform bdc_field using 'BDC_CURSOR'
    'RV13A-KSCHL'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'RV13A-KSCHL'
    it_header-f1.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_CURSOR'
    'KONP-KBETR(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KOMG-VKORG'
    it_header-f2.
    perform bdc_field using 'KOMG-VTWEG'
    it_header-f3.
    **Table Control
    v_sno = 0.
    loop at it_details where key eq it_header-key.
    v_sno = v_sno + 1.
    clear v_fname.
    CONCATENATE 'KOMG-MATNR(' V_SNO ')' INTO V_FNAME.
    perform bdc_field using v_fname
    it_details-f4.
    clear v_fname.
    CONCATENATE 'KONP-KBETR(' V_SNO ')' INTO V_FNAME.
    perform bdc_field using v_fname
    it_details-f5.
    if v_sno eq v_rows.
    v_sno = 0.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '=P+'.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    endif.
    endloop.
    *--Save
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '=SICH'.
    perform bdc_transaction using 'VK11'.
    endloop.
    perform close_group.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • How to use open data set in SAP

    Hi SAP Gurus,
            Could anyone help, how to use open data set in SAP.
          I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL).
    Thanks & Regards,
    Krishnau2026

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

  • How to show active page in Spry Menu Bar using images

    Hi,
    I have already read this answer "how to show active page in spry menu bar" but I am using images, not text.  I have mouse-over and mouse-out working in the Spry Menu Bar using image.png and image-over.png, but I cant' figure out how to get the image-over.png to appear on the active page since the spry menu bar is locked on the individual pages.  (I tried to put it in an editable comment, but spry wouldn't go for it. :-)
    Any ideas.  Here is the code:
    <ul id="MenuBar1" class="MenuBarHorizontal">
           <li><a href="../index.html" id="home" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','../images/all_pages/home-over.png',1 )"><img src="../images/all_pages/home.png" alt="Home Page" name="home" width="58" height="20" border="0" id="Image8" /></a></li>
           <li><a href="../show.html" id="show" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('show','','../images/all_pages/show-over.png',1)"><img src="../images/all_pages/show.png" alt="The Show" name="show" width="101" height="20" border="0" id="show" /></a></li>
            <li><a href="../team.html" id="team" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('team','','../images/all_pages/team-over.png',1)"><img src="../images/all_pages/team.png" alt="The Team" name="team" width="97" height="20" border="0" id="team" /></a></li>
            <li><a href="../company.html" id="company" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('company','','../images/all_pages/company-over.png',1)"><img src="../images/all_pages/company.png" alt="The Company" name="company" width="139" height="25" border="0" id="company" /></a></li>
            <li><a href="../beatles-tickets.html" id="tickets" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('tickets','','../images/all_pages/tickets-over.png',1)"><img src="../images/all_pages/tickets.png" alt="Tickets" name="tickets" width="75" height="20" border="0" id="tickets" /></a></li>
            <li><a href="../media.html" id="media" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('media','','../images/all_pages/media-over.png',1)"><img src="../images/all_pages/media.png" alt="Media" name="media" width="61" height="20" border="0" id="media" /></a></li>
            <li><a href="../news-reviews.html" id="news" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('news_reviews','','../images/all_pages/news_reviews-over.png',1 )"><img src="../images/all_pages/news_reviews.png" alt="News-Reviews" name="news_reviews" width="149" height="20" border="0" id="news_reviews" /></a></li>
            <li class="MenuBarHorizontal"><a href="../contact.html" id="contact" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','../images/all_pages/contact-over.png',1)"><img src="../images/all_pages/contact.png" alt="Contact Us" name="contact" width="79" height="20" border="0" id="contact" /></a></li>
         </ul>
    Thanks so much for helping!
    Cheers,
    Janell

    Just found this page:
    Persistent Page Indicator
    Update: Drat, it is for text menus only not using images. :-(
    Cheers,
    Susan

  • GetData() from nested data sets

    Hi,
    I've got nested data sets in the form of:
    var ds1 = new Spry.Data.XMLDataSet("products.xml",
    "items/item");
    var dsOptionSets = new Spry.Data.NestedXMLDataSet(ds1,
    "optionsets/optionset");
    var dsOptions = new Spry.Data.NestedXMLDataSet(dsOptionSets,
    "option");
    The application is an e-commerce store and I'm retrofitting
    E-Junkie's form <select> codes to allow the user to select
    "Color" and "Size" by clicking on images pulled from
    items/item/optionsets/optionset/option rather than selecting those
    options from a list. Trouble is, I can't get to the data in the
    nested data set. Help!
    I've tried poking at it thus:
    <img spry:repeat="dsOptions" spry:setrow="dsOptions"
    onclick="var rows = dsOptions.getData(); alert(rows[0].option);"
    spry:if="'{dsOptions::@image}' != 'undefined'"
    src="{dsOptions::@image}" alt="{dsOptions::option}"
    name="{dsOptions::option}" />
    .. but I've yet to get anything but "undefined" from the
    alert. I think it may have something to do with the data sets being
    more complexly nested than I imagine. I'm really looking forward to
    the day when I can refer to Spry data in javascript as easily as I
    can through {spry::tag}s.
    Here's one <item> from my <items>:
    <items>
    <item>
    <id>43522</id>
    <title>Gildan T-Shirts</title>
    <price>16.95</price>
    <images>
    <image description="Gildan T-Shirt in Charcoal
    Grey">images/products/shirts/tshirt_gildan_ss_charcoalgrey.jpg</image>
    </images>
    <optionsets>
    <optionset value="Colors" id="0">
    <option
    image="images/products/shirts/tshirt_gildan_ss_texasorange.jpg">Texas
    Orange</option>
    <option
    image="images/products/shirts/tshirt_gildan_ss_charcoalgrey.jpg">Charcoal</option>
    </optionset>
    <optionset id="1" value="Size">
    <option value="Small"
    image="images/products/sizes/size_s.gif">Small</option>
    <option value="Medium"
    image="images/products/sizes/size_m.gif">Medium</option>
    <option value="Small"
    image="images/products/sizes/size_l.gif">Large</option>
    <option value="Xtra Large"
    image="images/products/sizes/size_xl.gif">Xtra
    Large</option>
    <option value="XXtra Large"
    image="images/products/sizes/size_2x.gif">XXtra
    Large</option>
    </optionset>
    </optionsets>
    </item>
    </items>

    Hi Diana,
    I tried your suggestion of executing ds1.loadData()
    immediately after declaring ds1, but it has not fixed my problem.
    I've changed my image onClick behavior to:
    if (dsOptions.getDataWasLoaded())
    row = dsOptions.getRowCount();
    alert(row);
    On clicking any image, alert shows "0". This tells us that
    dsOptions IS being loaded, right? I'm able to work with the data
    through e.g. {dsOptions::option} tags as always, but for some
    reason I can't get to the data through dsOptions.
    I just tried replacing the onClick behavior above with
    ds1.getRowCount(), and that shows the correct number (6). Then I
    tried with dsOptionSets and got a zero count again.
    FYI, my declaration section is now:
    var ds1 = new Spry.Data.XMLDataSet("products.xml",
    "items/item");
    ds1.loadData(); // theoretically not necessary, but bug in
    this Spry version requires it
    ds1Rows = ds1.getData(true);
    var dsOptionSets = new Spry.Data.NestedXMLDataSet(ds1,
    "optionsets/optionset");
    dsOptionSets.loadData();
    dsOptionSetsRows = dsOptionSets.getData(true);
    var dsOptions = new Spry.Data.NestedXMLDataSet(dsOptionSets,
    "option");
    dsOptions.loadData();
    dsOptionsRows = dsOptions.getData(true);
    I've also just tried replacing the onclick with:
    onclick="if (ds1.getDataWasLoaded()) { ds1Rows=
    ds1.getData(true); dsOptionSetsRows = dsOptionSets.getData(true);
    dsOptionsRows =
    dsOptions.getData(true);alert(dsOptionsRows[0].option);}"
    As before, ds1Rows[0].<property> gives the correct
    result but dsOptionsRows[0].option says "dsOptionsRows[0] has no
    properties".
    Thanks,
    Dylan Oliver

  • Info needed on how to design xcelsius dashboards using SAS data sets.

    Is it possible to design a xcelsius dashboard using SAS data sets?  Any info on this subject is highly appreciated.  Thanks.

    Hi,
    I am not much aware of the SAS datasets, but i can definitely provide some pointers on what data Xcelsius could consume.
    Assuming you use Xcelsius 2008 - you can have static data within the embedded excel sheet..
    You can recieve dynamic data using
    1. QAAWS
    2. Web Services
    3. XML data
    4.Live Office
    and more....I am sure some of the Gurus could provide better pointers.

  • Spry Menu Bar using CSS background image without losing submenu ( V) indicators

    Spry menu bar sets the down and side submenu indicators using
    a positioned background image. I have a requirement to use a
    specific background image yet must retain the > and v submenu
    indicators. Without having to generate full width custom background
    images for each of the menu item types to include the side and down
    menu indicators, is there anyway to use a generic background image
    and show the indicators using just CSS?

    Don't use reserved words in JS
    var event = new Spry.Data.XMLDataSet("events.xml", "catalog/event", {sortOnLoad: "date", sortOrderOnLoad: "descending"});
    event is such a reserved word. If you change this to event1 then all is well.
    I hope this helps.
    Ben

  • Displaying menu bar using ADF - JSF

    scenario:
    there's a tabbed menu.each tabbed menu has its own menu bar
    objective:
    the menu bar displays the links according to the tab selected.
    how can i do it? is there any way dat i can play around with ADF binding feature? like is it possible to set the render of bar items such that it displays the bar links intelligently [depending on the tab selected]
    or last but not least.. shud i use javascript!
    any reference to such example available online will be appreciated.
    regards,
    Rabs

    hello,
    you might want to read section 11.2. "Using dynamic menus for navigation" It's in the ADF developers guide you can find at the start page of JDeveloper (the studio version anyway).
    kind regards,
    Nemata

  • Can menu bar use variants instead of hard coding in GUI Status?

    Hi Experts,
    I am trying to select data into a variant from one table. This variant will be used for text in Menu Bar of GUI Status. I used to hard coding in Menu Bar. Is it possible for variants instead of hard coding in Menu Bar?
    If not, any flexible way is also welcomed. Thanks for any reply and help!
    Regards,
    Ying

    Hi,
    Please refer following link.
    http://help.sap.com/saphelp_nw70/helpdata/en/c0/980389e58611d194cc00a0c94260a5/content.htm
    How to create variant for csutom screen
    New transaction - require variant selection to be disabled
    This may help you.
    Regards,
    Renuka.

  • Should word View blink in menu bar using keyboard controls

    When using Aperature should the word View Blink in menu bar when you use the V keyboard symbol

    Hi,
      Try doing this
    While defining your calss add this method.
      context menu
        METHODS handle_context_menu
          FOR EVENT context_menu_request OF cl_gui_alv_grid
          IMPORTING e_object.
    data :menu type ref to cl_ctmenu,
           submenu type ref to cl_ctmenu.
          CREATE OBJECT submenu.
    *--Add Display All.
        CALL METHOD e_object->add_function
          EXPORTING
            fcode = 'DALL'
            text  = 'Display All'.
          CALL METHOD e_object->add_submenu
          EXPORTING
            menu = submenu
            text =  'Display'.
    Regards,
    theja

  • SQL Update a Single Row Multiple Times Using 2 Data Sets

    I'm working in tsql and have an issue where I need to do multiple updates to a single row based on multiple conditions. 
    By Rank_
    If the column is NULL I need it to update no matter what the Rank is.
    If the Ranks are the same I need it to update in order of T2_ID.
    And I need it to use the last updated output.
    I've tried using the update statement below but it only does the first update and the rest are ignored. Here is an example of the data sets i'm working w/ and the Desired results. Thanks in advance!
    update a
    set Middle = case when a.Rank_> b.Rank_ OR a.Middle IS NULL then ISNULL(b.Middle,a.Middle) end,
    LName = case when a.Rank_> b.Rank_ OR a.Lname IS NULL then ISNULL(b.LName,a.LName) end,
    Rank_ = case when a.Rank_> b.Rank_ then b.Rank_ end
    from #temp1 a
    inner join #temp2 b on a.fname = b.fname
    where b.T2_ID in (select top 100% T2_ID from #temp2 order by T2_ID asc)

    The Merge clause actually errors because it attempt to update the same record.  I think this CTE statement is the closest I've come but I'm still working through it as I'm not too familiar w/ them.  It returns multiple rows which I will have to
    insert into a temp table to update since the resulting row I need is the last in the table.
    ;WITH cteRowNumber
    AS(
    Select DISTINCT
    Row_Number() OVER(PARTITION BY a.LName ORDER BY a.LName ASC, a.Rank_ DESC,b.T2ID ASC) AS RowNumber
    ,a.FName
    ,a.LName
    ,b.LName as xLname
    ,a.MName
    ,b.MName AS xMName
    ,a.Rank_
    ,b.Rank_ AS xRank
    ,b.T2ID
    FROM #temp1 a
    inner join #temp2 b
    ON a.fname = b.fname
    ), cteCursor
    AS(
    Select a.RowNumber,
    a.Fname
    ,a.LName
    ,a.xLname
    ,a.MName
    ,a.xMName
    ,a.xRank
    ,a.T2ID
    ,CASE WHEN a.Rank_ >= a.xRank THEN ISNULL(a.xRank,a.Rank_) else ISNULL(a.Rank_,a.xRank) end AS Alt_Rank_
    ,CASE WHEN a.Rank_ >= a.xRank THEN ISNULL(a.xMName,a.MName) else ISNULL(a.MName,a.xMName) end AS Alt_MName
    ,CASE WHEN a.Rank_ >= a.xRank THEN ISNULL(a.xLName,a.lname) else ISNULL(a.LName,a.xlname) end as Alt_Lname
    FROM cteRowNumber a
    where a.RowNumber = 1
    UNION ALL
    Select crt.RowNumber
    ,crt.FName
    ,crt.LName
    ,crt.xLname
    ,crt.MName
    ,crt.xMName
    ,crt.xRank
    ,crt.T2ID
    ,CASE WHEN Prev.Alt_Rank_ >= crt.xRank THEN ISNULL(crt.xRank,Prev.Alt_Rank_) else ISNULL(Prev.Alt_Rank_,crt.xRank) end AS Alt_Rank
    ,CASE WHEN Prev.Alt_Rank_ >= crt.xRank THEN ISNULL(crt.xMName,Prev.Alt_MName) else ISNULL(Prev.Alt_MName,crt.xMName) end AS Alt_MName
    ,CASE WHEN Prev.Alt_Rank_ >= crt.xRank THEN ISNULL(crt.xLName,Prev.Alt_Lname) else ISNULL(Prev.Alt_Lname,crt.xLName) end as Alt_Lname
    FROM cteCursor prev
    inner join cteRowNumber crt
    on prev.fname = crt.fname and prev.RowNumber + 1 = crt.RowNumber
    SELECT cte.*
    FROM cteCursor cte

  • Edit Spry Menu Bar using Mouse Click

    Hello…
    I created a Spry Menu Bar and it's working just fine. But on phones and Tablets the submenu doesn't work because it's a mouseover, is it possible to change it to a mouse click?
    Thanks!

    Yes, but it needs a lot of JS coding to do so.
    A better solution is to use a jQuery or pure CSS menubar or visit http://www.projectseven.com/ for a commercial version

  • Using Spry Data Set Variable in Recordset

    I have a page that contains a spry data set and a recordset. The recordset uses one of the variables from the spry data set to filter its results. how do I apply the spry data set variable to the recordset?

    I believe passing this the variable through the URL requires you to update the page, right?
    Yes
    Is there anyway to grab the spry data set variable direct and apply it to your recordset filter?
    The SpryDataSet variable can only be used on the clientside (JavaScript) so you will have to get your recordset using JS.
    A page refresh can be set in motion if you add {useCache: false, loadInterval: 500} to your dataset to then set an observer to your dataset to invoke the page refreash function.
    Gramps

  • Error message when using Spry Data set with XML

    Hi,
    I have what i see as a big problem, might just be me being
    dumm, but here we go.
    When I try to use the feature of spry XML Data Set and insert
    spry table I get error message when trying it in IE 7.
    There are even a problem when I use fireworks automated slide
    show function, where you can choose to use the Spry/XML gallery
    feature.
    The error message I get everytime (incl the auto gallery in
    fireworks) is:
    The tag: "html" doesn't have an attribute: "xmlns:spry" in
    currently active versions.[XHTML 1.0 transitional]
    The tag: "div" doesn't have an attribute: "spry:region" in
    currently active versions.[XHTML 1.0 transitional]
    The tag: "th" doesn't have an attribute: "spry:sort" in
    currently active versions.[XHTML 1.0 transitional]
    and so on.
    What´s wrong?!

    Hello barvid,
    Ok, let's take each problem step by step:
    1. The first error you see in the browser: " Exception while
    loading ..." normally appears when you try to load files that are
    not permitted by the browser security model. This means the XML
    file you try to load is located on a different server than your
    HTML which is not allowed. The browser is not permitting to load
    any files that are not in the same domain as the current page
    because of the complex security risks. You'll have to either get
    the XML file from its original location and save it in your website
    or use a proxy on your web server that should request that file
    from the external server and send it to the browser as an XML from
    the same domain as the HTML origin.
    1.2 The "Exception while loading ..." error you see is a
    generic error and my previous advise is based on my experience. In
    case this is not your scenario you'll have to open the SpryData.js
    and around line 112 you'll see the following code:
    Spry.Debug.reportError("Exception caught while loading " +
    url + ": " + e);
    Please change this line with the following line of code:
    Spry.Debug.reportError("Exception caught while loading " +
    url + ": " + (e.message?e.message:e));
    to obtain a more verbose error message that may clarify the
    reasons of your errors.
    2. The problems you describe are not browser errors but they
    are w3c validation errors. At this point the XHTML standard allows
    every application that define custom namespace attributes to also
    link a DTD to the page so the page to continue to be valid.
    Unfortunately at this point this feature is not correctly supported
    by the FF and IE so we wrote an articles about how you should
    link
    the Spry DTD to your page so the validator understand the
    custom attributes Spry use. You'll find inside the full description
    of the problems and all the technical details you'll need to know
    to solve this issue.
    Regards,
    Cristian

Maybe you are looking for

  • Mac Pro 2.66, New Memory & Repeated KPs

    Hi all I've had 4GB of RAM in my Mac Pro for some time now, in the following config Riser A - 2x1GB, EMPTY Riser B - 2x512MB, 2x512MB I recently upgraded to another 2x1GB, which I put in the empty slots of Riser A... I did this back in February or so

  • Data not captured in Report Painter

    Dear All, I have created a COPA Report by using the Report Painter,but when I execute the report the system showing as "No records were selected" Note that all the values are flowing properly in to KE24 report (standard line items report). I have che

  • Why don't  movies Previously purchased in iTunes via my PC show up in purchased view in iTune on my iPad?

    I had previously purchased movies via my PC iTunes which don't appear in iTunes on my iPad.  Previously purchased music and TV shows do appear in the iPad iTunes in my account?  Any ideas what I'm doing wrong?  Thanks.

  • Regarding Multiple pages in SAP Script Output

    Hi All, I have a requirement in SAP Script where i need to print data in multiple pages. I had created 1 page - FIRST with properties <b>Next Page</b> as FIRST , <b>Mode</b> as INC. In the output i have multiple line items, the data will carry upto 3

  • Renaming during import in LR 3 works, but not in catalogue

    When importing photos from my camera, I always rename my photos. In Lightroom 3, this works well, but now and then, the catalogue stills shows the old name, but isn't able to find the file (as it was renamed by lightroom) Example: Original name on ca