How to select nodes for passing to a template

How can I write an xpath to select only the row contained in rowset that has a child node language with the value of en-us
ie something like
select=rowset/row where rowset/row/child='en-us'
Tks
Rob

Assuming that your xml looks like:
<rowset>
<row>
<language>en-us</language>
:Then it would be:
select="rowset/row[language='en-us']"
For a good introduction and tutorial to XML, XPath and XSLT, among other things, you can check out my book Building Oracle XML Applications.
Steve Muench
Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
Author, Building Oracle XML Applications
null

Similar Messages

  • How to select range for dater in BAPI_DOCUMENT_GETLIST2

    Hi All
    I have following problem with this FM BAPI_DOCUMENT_GETLIST2. I was looking a lot on different forums but I cannot find answer which corresponds to my problem.
    I have in DMS saved files for our customer and Iu2019m using object linking as
    Objlinkselection-DOKOB  =  KNA1
    Objlinkselection- OBJKY   = KUNNR.
    It works well, but it takes all doc from beginning.  Iu2019d like to make selection that final table documentdata is in range of defined range date with values 20111201 to 20111231
    Now I have to select all documents for this customer and after that I have to make loop to get correct files. And it takes a huge time and in a few years it will collaps
    LOOP AT LT_DOCUMENTDATA INTO <FS> WHERE CREATEDATE IN  rn_DATE.
    ENDLOOP.
    Any hint how to make this faster? 
    Just to avoid any misunderstandings, I'm not asking on loop speed but how to select by FM less rows based on create date.
    Thank a lot fo any hint
    Petr

    Hello Deepak,
    Thanks a lot for your answer. I have read this thread already, but it is not realy what I need. But anyway in the night I have found solution.
    I will go through table DRAW where I will get just DOCNUMS for current date range.
    Than I will select correct rows from table DRAD for selected KUNNR.
    Final set od DOCNUMS I will use as selection criteria for BAPI.
    It should help, now I go to try it.
    Thansk anyway
    Petr

  • How to select data for nested object (Object based on another objects)

    Hi,
    I have written the following code, but I am not able to fetch data as I fetch from normal table, Plz help.
    Following is the sample code -
    CREATE TYPE A_OBJ IS OBJECT (
    A_NAME VARCHAR2 (100),
    A_DESC VARCHAR2 (100)
    CREATE TYPE A_TAB IS
    TABLE OF A_OBJ
    CREATE TYPE B_OBJ IS OBJECT (
    B_NAME VARCHAR2 (100),
    B_DESC VARCHAR2 (100)
    CREATE TYPE B_TAB IS
    TABLE OF B_OBJ
    CREATE TYPE H_OBJ IS OBJECT (
    A A_TAB,
    B B_TAB
    create type H_TAB is table of H_OBJ
    -- Created the function to fill the data into my objects.
    Create or Replace Function ABC RETURN H_TAB IS
         l_data H_TAB := H_TAB();
         v_loop_count BINARY_INTEGER := 1;
         obj1 A_TAB;
         obj2 B_TAB;
    begin
         for i in(SELECT AG_PROD_MOD_NR, COMM_NM FROM BV_PRODUCT WHERE AG_PROD_MOD_NR = 'E4440A') loop
              obj1 := A_TAB();
              obj1.extend;
              obj1(obj1.last) := A_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
              obj2 := B_TAB();
              obj2.extend;
              obj2(obj2.last) := B_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
              l_data.extend;
              l_data(l_data.last) := H_OBJ(obj1,obj2);
         end loop;
         Return l_data ;
    end;
    -- used this SQL for fetching the data using the function -
    select *
    FROM the ( SELECT cast(ABC ()
    as H_TAB) FROM dual )
    the above SQL not gives me the data in the as a normal table returns, plz suggest me how to write SQL for above case.
    Thanks in Advance,
    Deepak

    First try to move your obj1 and obj2 initialization outside of the for loop. Not sure if this is even the issue, but it can't be helping.
    obj1 := A_TAB();
    obj2 := B_TAB();
    for i in(SELECT AG_PROD_MOD_NR, COMM_NM FROM BV_PRODUCT WHERE AG_PROD_MOD_NR = 'E4440A')
    loop
      obj1.extend;
      obj1(obj1.last) := A_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
      obj2.extend;
      obj2(obj2.last) := B_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
      l_data.extend;
      l_data(l_data.last) := H_OBJ(obj1,obj2);
    end loop;

  • How to select node in JTree without firing event?

    I have got standard situation. JTree in the left panel, and several edit boxes in right panel. Certainly, I have TreeSelectionListener, which on every tree node selection shows corresponding model values in edit boxes.
    I'd like to implement next logic:
    1. Something was changed in any edit box in right panel. Model has been changed.
    2. User clicks on different node in tree.
    3. Dialog "Message was not saved. Save?" with Yes/No/Cancel buttons are shown.
    Yes/No buttons are easy to handle.
    Question is about Cancel. I'd like on Cancel button left all edit boxes in their present state (do not restore values from saved model) and select back node, which wasn't saved.
    Problem is next. If I select node by setSelectionPath or smth like that, but... JTree fires event and my listener receives onTreeItemSelected back, which checks that node wasn't saved and ......
    Who does have any idea, or have done similar tasks? How can I select node and do not allow tree fire event this time?
    Thanks in advance.

    First, as soon as the model changes (when editing any
    combo box) some flag will be set. Now the logic which
    updates the combo boxes will do it only on a change of
    the current node and (this is new) if the flag wasn't
    set. You should have some flag anyway because somehow
    you must determine when to show the dialog, shouldn't
    you?Yes, I have got this logic implemented. But it's only the half :)
    I know exactly when my model has been changed, but if it was changed, i'd like to ask user what to do next - svae/loose changes/cancel
    And on cancel i'd like to select last edited tree node and do not get event from tree at that moment.
    >
    Second way, prevent selecting a new node if that flag
    has been set. You could do this by subclassing
    DefaultTreeSelectionModel and overriding some methods
    (setSelectionPath() et al).Ok. I'll investigate this.
    >
    MichaelThanks.

  • Creating a Job for publication in Sql Server with select statement for passing a parameter

    I am creating a job for adding article to a publication.  the second step (e.g. for adding article) gives me error. I pass the name of the table as follow:
         EXEC sp_addarticle
               @publication = 'TTB', --THE NAME OF MY PUBLICATION
               'select top (1)' @article = 'Name from TableAdded Order by create_date Desc',
               'select top (1)' @source_object = 'Name from TableAdded Order by create_date Desc',
                @force_invalidate_snapshot = 1;
    TableAdded is a table I have in my publisher which contains the name of the newly added table.
    I believe it fails because the way I pass the name of the article to the store procedure is not correct. Can anyone please help me on that?
    Kind regards
    Amin

    Yes, the way you add article is wrong.
    you may try the below and let us know if you have any issues:
    while loop begin (Get the values from TableAdded with status IsAdded=0)
              Assign the values to variables like @article = Select top 1 Name from TableAdded where IsAdded=0
              Call the sp_addarticle assigning the variable
              update the Isadded flag in tableAdded for the name to 1 
     end while 
    BTB, Article configuration is supposed to be a one time configuration. Having said, you can easily configure through API. Caution, not sure what are you trying here, for adding new article, you may need to synch the data first in the above approach and should
    carried out in the downtime.

  • How can Select tables for master item

    Hello
    We have EBS R12
    and i have reports builder, i just want to view all master items using reports builder since many tables are in the database
    how can check or select exact tables
    thanks

    If you tried to make a purchase from Apple.com, they offer you the opportunity to add a second credit card if you have one. If you do not have one, then you need to contact the back or institution that handles your credit card for them to approve the purchase.
    Just so you know, you are not addressing Apple here, we are users like you.

  • How to select measurements for scaling

    How i can select millimeters or other measurements for scaling (PS CC 64bit)?
    p.s. previously did it with the right mouse button.
    Thanks! 

    Thanks, SRiegel!
    When object is selected ruler are not active.
    When i change ruler units there are not change top menus box units.
    Ah, you mean that dialog? That not stable bu much better!

  • Reg:how disaplay selection range for date field

    hi all
    can you please  let me know how to write  the code in wdabap  to display a date field with range option.i mean in abap we use at selection screen  ,but coming to wdabap can you  help how to write the code in wdabap.
    Thanks in advance
    Deepika

    To simplify the requirement, let me consider the followign understanding:
    1. You need few fields in the selection screen. They need to be select options and some parameter fields.
    2. The user clicks the button. You need to read teh user entered data.
    Once, you have teh data in your code, assign it to the context node - attributes. later, you need to decide what you shoudl do with that data.
    Sol: 1. To obtain fields into selection screen, use the component "wdr_select_options" and *** the interface view into your window. Make the view as default.
    Now,  you need to build the select options. Firstly create a method or insert the code in init().
    DATA: lr_componentcontroller TYPE REF TO ig_componentcontroller,
            l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
    create the used component
      l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
    init the select screen
      wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
      wd_this->m_handler->set_global_options(
                                  i_display_btn_cancel  = abap_false
                                  i_display_btn_check   = abap_false
                                  i_display_btn_reset   = abap_true
                                  i_display_btn_execute = abap_false ).
    Adding a block (type Tray) to the select-options
      wd_this->m_handler->add_block(
        i_id         = `BSC01`
        i_block_type = if_wd_select_options=>mc_block_type_tray
        i_title      = `Selection Screen` ).
    Adding a parameter field to the created block
    Create a reference to the type of customer number KUNNR
      CREATE DATA lr_field TYPE kunnr.
    Sets the airline code initial value
      ASSIGN lr_field->* TO <fs_field>.
    Add the parameter to the group
      wd_this->m_handler->add_parameter_field(
        i_id           = `KUNNR`
        i_within_block = `BSC01`
        i_obligatory   = abap_true
        i_value        = lr_field ).
    FREE lr_field.
    Adding a select-options field to the created block
    Create a reference to the material number range table
      lr_field = wd_this->m_handler->create_range_table( `MATNR` ).
    Add the select-option to the group
      wd_this->m_handler->add_selection_field(
        i_id           = `MATNR`
        i_within_block = `BSC01`
        it_result      = lr_field ).
      FREE lr_field.
    The code with method "set_global_options" is used to make the buttons visible or disappear.
    Its convinient to create your own button with an action instead or subscribing to the action of exceute button.
    Sol. 2: Read the data.
      FIELD-SYMBOLS:
        <fs_sel_item> LIKE LINE OF lt_sel_item,
        <fs_kunnr>   TYPE kunnr,
        <fs_matnr>   TYPE ranges_matnr.
        wd_this->m_handler->get_value_of_parameter_field(
          EXPORTING i_id = 'KUNNR'
          RECEIVING r_value = p_kunnr ).
    Get the selection-screen items
          wd_this->m_handler->get_selection_fields(
            IMPORTING et_fields = lt_sel_item ).
    Retrieve the values from the select-options items
          LOOP AT lt_sel_item ASSIGNING <fs_sel_item>.
            CASE <fs_sel_item>-m_id.
              WHEN `MATNR`.
                ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_matnr>.
             WHEN < Other sel-option'
           ENDCASE.
         ENDLOOP.
    Obtain a reference to your context node and assign the field symbols to the attributes.
    Finally, you would have the data in your nodes. Now, you need to handle the coe as per your req.
    Regards,
    Sharath
    Edited by: Sharath M G on Aug 27, 2010 9:45 AM

  • How to select values for different fields in a report

    Beginner needs help!  I have five columns of linked data.  I want to show the counts of the number of "true" values in each column.  However when I set the first one to true none of the other rows which might be true for that instance when the first column is false show up anymore?  Any help appreciated.

    1st off how do you have your tables joined, suggest outter left joins.
    create a formula
    if (field) =true then 1 else 0 
    use manual running totals to calcualte your values
    RESET
    The reset formula is placed in a group header report header to reset the summary to zero for each unique record it groups by.
    whileprintingrecords;
    Numbervar  X := 0;
    CALCULATION
    The calculation is placed adjacent to the field or formula that is being calculated.
    (if there are duplicate values; create a group on the field that is being calculated on. If there are not duplicate records, the detail section is used.
    whileprintingrecords;
    Numbervar  X := x + ; ( or formula)
    DISPLAY
    The display is the sum of what is being calculated. This is placed in a group, page or report footer. (generally placed in the group footer of the group header where the reset is placed.)
    whileprintingrecords;
    Numbervar  X;
    X

  • How to select revenue for Individual accounts/cost centers

    Hi All,
    Can any one help me in creating a report where we have to include the revenue and cost as row details. and revenue will be related to individual cost centers. I got confused because the revenue will be in accounts (revenue) POV and cost centers will be another POV.
    Please help me in this.
    Thanks
    Edited by: user8021111 on Nov 10, 2009 10:28 AM

    Hi ,
    As per my understanding of this requirement try this thing if you have not already tried it.
    Take Revenue and cost centers in Rows section of dimension layout through grid properties ,and do the specific member selection for these dimension in rows as per the requirement.

  • How to select slides for exporting as QuickTime movie?

    Is there a way to select only a range of slides for exporting as a QuickTime movie? I can hide the slides I don't want the movie to contain, then show them after the export, but this is very tedious. Is there a function like the "print range" when printing that will let me do this easier?
    (My presentation is 100+ slides, all with animations, which I want to export as a series of short movies of 3-6 slides each.)

    Probably easiest to open a new Keynote and drag the thumbnail of the slides you want in the Quicktime to the new presentation.

  • How to select settings for pdf version when combining files

    Hi all, I was wondering if anyone can tell me if there is a way to set the settings of the resultant pdf, like you can do for word and such (see screenshot). I have pdf's that are 1.4 compliant but when i merge them together they become v1.6 compliant. Ideally i'd like ability of right clicking the files and selecting the combine option from the context menu and the resultant file keeping to v1.4.
    Any help would be appreciated thx

    Thanks, we already do this but I would like to set it and forget it... Theres always someone that will forget the extra step

  • How to select chords for lead sheet

    In the score editor, just looking for a simple way to write the chord names for each measure without having to build each chord with the pencil tool. I wanna just double click on the measure and type 'Bm' or something to generate a lead sheet. Any suggestions?

    Hi
    Create an empty region in a Software Instrument or MIDI track.
    Open then Score Editor and choose the Lead Sheet staff style
    Select the Text ( Chord) function from the PartBox.
    Click in the score with the pencil tool and type the name of the chord. Press Tab to advance
    CCT

  • How to select thumbnails for viewing

    Sir: I used to be able to click on a thumbnail and it would be on the big side for viewing. I could then hit the down or up button to scroll. Somehow with the new version, this is not happening. I click on a thumbnail and nothing happens. I have to scroll through each page now.
         What commands do I need to do to correct this?
    Thanks, Johnevans1

    Hi John,
    If I understand your question correctly, it should work in Acrobat (or Reader 9). In the pages panel, you can click on a thumbnail of the page and you will see the page in the main viewer window. However, if you use the arrow key to select a different thumbnail, you will need to hit the Return key to move to that, different page. This allows you to skip to a page later in the document without having to wait for Acriobat to render it each time you hit the arrow key.
    Tim

  • I have videos and books on my ipad. when i do sicronize, this there are not pass to PC. How can i do for pass this information to my PC?

    Hi. I need help about the sincronize information that i obtain directly from the ipad. i need to pass these to PC.
    And i need to configure icloud in outlook. I´m triyng, but the outlook send me and error.
    Thanks.
    Eduardo

    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
     Cheers, Tom

Maybe you are looking for

  • Report to inform potential material shortages for shipment

    Hi Everyone: I need some suggestions from you with regards to a report which i am going to develop. The report consist of the following fields: 1. Material # 2. Material Description 3. PO # 4. PO Quantity open 5. Related vendor with which the PO is a

  • Webpart won't show tasks related to the list item

    Hi I have a 'Complaints' task webpart that's displayed under a (list) display form. The tasks are created by a workflow, when a complaint is created. I can get all of the tasks to appear in the webpart, but I can't filter it - I'm wanting the tasks r

  • Dynamic class loading when CODEBASE is unreachable. A bug?

    Let us suppose that we have a large-scale distributed application with ca. 1000 participants communicating via RMI and utilizing dynamic class loading. As we all know, a HTTP code server must be available for this purpose in order to provide dynamica

  • Simple "hello world" program

    I have the following code: public class hello public static void main(String[] args) System.out.println("Hello World"); I get the following message when I try to run this program: Exception in thread "main" java.lang.NoClassDefFoundError: hello Does

  • Optical drive troubleshoot

    Hello, I have a 15 inch late 2011 mac book pro with mac os x 10.7.3. It seems my optical drive is no longer coopreating, any suggestions how I can restore it? Many thanks, Caroline Eriksson