Please, i need help in get the specified T-List Element Value

i have a T-list Item contain 10 values
and i navigate on the values by mouse, and each value contain a form name ,
and i want to open the form which i select it by navigate in the T-list item
the question :- how can i get the index of the current which i navigate on

Hi!
I don't know, why you need the list-index.
Try something like this:
function list_index ( f_list_name in varchar2,
                      f_search_value in varchar2 ) return number is
l_list_id item := find_item ( f_list_name );
--> we use the id of the item because it said to be quicker to access
begin
if
  id_null ( l_list_id)  OR
  f_search_value is null
then
  return ( null );
end if;
for i in 1..get_list_element_count ( l_list_id ) loop
  if
    get_list_element_value ( l_list_id, i ) = f_search_value
  then
    return ( i );
  end if;
end loop;
return ( null );
end;Use this in a when-list-changed trigger

Similar Messages

  • Need Help in Getting the below output

    Hi All,
    The below is the table data.
    col1     col2     col3     col4     col5     col6
    Aa     1     Con     100     10     -1
    Ba     2     Cam     50     2     33
    Aa     1     Con     200     20     -2
    Ca     3     val     2     5     -10
    Aa     1     Con     150     30     -3
    Ba     2     Cam     20     3     11
    Ca     3     val     3     5     -20
    Ba     2     Cam     30     5     22
    Ca     3     val     5     4     -30
    I need the output as below. Please help me in getting the output.
    col1     col2     col3     col4     col5     col6
    Aa     1     Con     100     10     -1
    Aa     1     Con     200     20     -2
    Aa     1     Con     150     30     -3
    Aa-Con Subtotal          450     60     -6
    Ba     2     Cam     20     3     11
    Ba     2     Cam     30     5     22
    Ba     2     Cam     50     2     33
    Ba-Cam Subtotal          100     10     66
    Ca     3     val     2     5     -10
    Ca     3     val     3     5     -20
    Ca     3     val     5     4     -30
    Ca-val Subtotal          10     14     -60
    I am using Oracle 10g. Let me know if other details required.
    Thanks in Advance.
    Regards,
    Ravi Kumar Ankarapu.

    You can try using ROLLUP and GROUPING SETS like how some of the other forum members have suggested. Another way of getting the desired output would be :
    with t as
    select 'Aa' col1, 1 col2, 'Con' col3, 100 col4, 10 col5, -1 col6 from dual
    union all
    select 'Ba', 2, 'Cam', 50, 2, 33 from dual
    union all
    select 'Aa', 1, 'Con', 200, 20, -2 from dual
    union all
    select 'Ca', 3, 'val', 2, 5, -10 from dual
    union all
    select 'Aa', 1, 'Con', 150, 30, -3 from dual
    union all
    select 'Ba', 2, 'Cam', 20, 3, 11 from dual
    union all
    select 'Ca', 3 ,'val', 3, 5, -20 from dual
    union all
    select 'Ba', 2, 'Cam', 30, 5, 22 from dual
    union all
    select 'Ca', 3, 'val', 5, 4, -30 from dual
    select * from
        select * from t
        union all
        select distinct * from
            select col1 || '-' || col3 || ' Sub-total' col1, null col2, null col3,
            sum(col4) over (partition by col1 order by col1) col4,
            sum(col5) over (partition by col1 order by col1) col5,
            sum(col6) over (partition by col1 order by col1) col6
            from t
    order by col1, col2, col3
    Output:
    "COL1"     "COL2"     "COL3"     "COL4"     "COL5"     "COL6"
    "Aa"     "1"     "Con"     "150"     "30"     "-3"
    "Aa"     "1"     "Con"     "100"     "10"     "-1"
    "Aa"     "1"     "Con"     "200"     "20"     "-2"
    "Aa-Con Sub-total"     ""     ""     "450"     "60"     "-6"
    "Ba"     "2"     "Cam"     "50"     "2"     "33"
    "Ba"     "2"     "Cam"     "20"     "3"     "11"
    "Ba"     "2"     "Cam"     "30"     "5"     "22"
    "Ba-Cam Sub-total"     ""     ""     "100"     "10"     "66"
    "Ca"     "3"     "val"     "5"     "4"     "-30"
    "Ca"     "3"     "val"     "2"     "5"     "-10"
    "Ca"     "3"     "val"     "3"     "5"     "-20"
    "Ca-val Sub-total"     ""     ""     "10"     "14"     "-60"

  • I need help in getting the Enduser requirment collection in Quries..!

    Hello all,
          I am needed to go to the client site to get the end-user requirement on quires...!they have already sent me an xls file which has all the names/Descriptions of the reports they needed in BW module by module wise. These are not the SAP BC reports. now this something i have never worked on..(Gathering the requirement)...!and then when i come back form the site (1week)..we actually need to develop the BW modeling (from the scratch)to meet this. My client already has few other rollouts in BW like..Eg Europe/Asia ,this will help me 40% only and now this is a new rollout.
    I need ur help seriously to light success in my trip...
    1)What kind of information should i need to gather from end-user?(tell me in detail)
    2)there are around 180reports from all the modules...!and they may be or may not meet up the SAP BC.
    3)how to do the modelling based on this information?
    4)when i should go for Business contant Objects (Cubes/Datasources...etc)
    It will be kind enough for you all....!please share your experience with me..!I need it !
    Thanks to All.....!
    Have a nice day. ([email protected])

    Hi,
    For each and every report , try to get what are the restrictions to be consider and what is the logic of programming behind in the calulation of performance
    indicators.
    If you are able to get any relavent R/3 report take a look on that . and analyze the logic being used in the calcuations.
    Let us take report for Net sales(this is billing report):
    And assume the client wants to consider (total sales - value of returns) as net sales.
    So here all types of billing documents(wheher it may be sold document or return) will be extracte to BW.
    But in the report we need to differentiate the these billing documents on basis of Billing type or Billing category or Etc, to find out the value of net sales.After differentiating few documents come under sold documents and few comes under returns.
    So to differentiate the documents we should aware of what are the characterstics are crucial.
    And the logic in assigning the value of any document , each organization follows their own logic. So ask them how they are calculating them. This is important when they are following different calculation or logic for displaying values in any R/3 reports . It is important , because they will compare R/3 reports with BW reports later.
    And also try to tell them that BW is For analysis reports. It is very difficult(almost not possible) some times to built a report if they are looking pure OLTP oriented report in BW. So examine each report possibilities in BW.
    And donot worry for any thing . You will do it easily. Try to do the job with all your efforts.Then you will get success in that.
    with rgds,
    Anil Kumar Sharma .P

  • Need help on getting the column names of Tabletype

    I have a table Mapping with the following values: This Mapping table contains the table names (in Tabname) and the column names(colname) of various tables and values(ValuesTobeFilled) for the columns.
    I have to insert into the tables present in the Tabname field with the values present in the ValuesTobeFilled in the columns present in the Colname field.
    Note: The Mapping table need not contain all the columns of the base table. The columns that are not present can be filled with null. And this mapping table is not fixed i.e. rows can be inserted/deleted frequently.
    Sample values in mapping table:
    Tabname                        Colname        ValuesTobeFilled
    sample_items     Eno     Corresponding Expression to get the values from XML input
    sample_items     Ename     Corresponding Expression to get the values from XML input
    XXX     YYY     Corresponding Expression to get the values from XML input
    Before filling in the actual tables, I have to store the entire data temporarily and I have used a tabletype declared as follows:
    TYPE T_sample_items IS TABLE OF sample_items%ROWTYPE INDEX BY BINARY_INTEGER;
    l_sample_items T_sample_items;
    Where the table sample_items have the following columns:
    •     Eno
    •     Ename
    •     Eaddress
    •     Eemail
    So, the tabletype should be filled as:
    Eno     Ename     Eaddress     EEmail
    1     XXX     -     -
    I have declared a cursor to select the values from mapping table and I need to fill in the ValuesTobeFilled values to the corresponding table.
    CURSOR c_xpath (c_tname mapping.TABNAME%type)
    IS
    select * from mapping where tabname = c_tname;
    CURSOR c_tables
    IS
    SELECT DISTINCT TABNAME FROM mapping;
    FOR crsr IN c_tables
    LOOP
    p_tname := CRSR.TABNAME;
    FOR csr IN c_xpath(p_tname)
    LOOP
    IF l_xml_doc.EXISTSNODE(CSR.XPATH_EXP) = 1
    THEN
    l_node_value := l_xml_doc.extract(CSR.XPATH_EXP).getStringVal(); -- This is the value to be stored in the corresponding column
    ELSE
         l_node_value := NULL;
    END IF;
    IF CSR.COLUMN_NAME = ‘eno’
    THEN
         l_sample_items(1).eno := l_node_value;
    ELSIF CSR.COLUMN_NAME = ‘ename’
    THEN
         l_sample_items(1).name := l_node_value;
    END IF;
    END LOOP;
    END LOOP;      
    And I need to eliminate hard coding while comparing the column names (in the following piece of code) as the Mapping table values are subject to insertion/deletion:
    IF CSR.COLUMN_NAME = ‘eno’
    THEN
         l_sample_items(1).eno := l_node_value;
    ELSIF CSR.COLUMN_NAME = ‘ename’
    THEN
         l_sample_items(1).ename := l_node_value;
    END IF;
    I need to insert the values directly into the tabletype without this hardcoding. Please suggest me ways to compare the mapping table values with the field (column) names of the tabletype. If it is not possible using tabletype, please suggest any other ways of fixing the problem.
    Many thanks,
    Gopi

    I take it this isn't going to be a serious production system at the end of the day?
    Storing metadata in tables for extraction and insertion of data is just wrong in so many ways. It smells heavily of Entity Attribute Value modelling, which is the most wrong way to use a relational database and is known to have major performance implications and be liable to bugs and issues. The idea that EAV modelling allows for 'generic' databases where new data items can be added flexibly later on without having to change code is usually justified with an excuse of "it means we don't have to update all our tables when we want a new column" which is easily countered with "if you're adding a single column a good relational design wouldn't require you to add it to more than one table anyway in most cases".
    Just what exactly are you trying to do and why? There has to be a better way.

  • Please i need help to install the HP laserjet pro 100 color MFPm175 series

    hello sir,
                 please i need a help how to install hp laserjet pro 100 color mfp m175 series drive.
                 i just bought the printer today.

    Hi, which operating system are you running?
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

  • Update to 10.9.5 has destroyed my Macbook Pro, please can someone help just getting the spinning disk whenever I ask it to do anything

    Hi,
    Updated a couple of weeks back an since my Mac has been almost unusable.
    Running a 2012 MacBook Pro 4GB Ram, Intel I5 2.5Ghz with a 750GB Harddrive. This is a home PC not a work machine, typically accessing internet over WI-FI and for 2 years has run like a dream.
    Seen some threads on here already about deleting the Open Directory Folder but seems to make little difference.
    Sadly I haven't taken a back-up for ages as haen't had my external drive plugged-in.
    Short of copying any pictures and docs elsewhere and starting a fresh I'm running out of ideas, anyone able to help?

    But the Yosemite beta is not open to the general public, just people that signed up until they reached a million testers.  So it is unlikely you can get a legal beta copy.
    Please post the EtreCheck output
    <https://discussions.apple.com/docs/DOC-6174>
    There is a chance you have software that is not playing nice on Mavericks.

  • Need help to get the user entered value from a input field in Table in OA

    I have a table in my OA page.
    Here one column is there which should take in put from user.
    i.e an item quantity field text input is there which should take the updated value when the add to cart link which is next column in the table. On clicking of the link I am trying to get the updated value entered by user. for the respected row for which addto cart link get clicked.
    For that link I have defined some parameter through SPEL,( like this parameter name: item_quantity value : ${oa.MisibeItemSearchVO.ItemQuantity} ) which has fireaction. But when i am clicking the addto cart link I am not getting the current value entered by the user.
    Can any body guide me how to get that related value for which the add to cart link got clicked.
    for this when i am doing pageContext.getParameter("item_quantity"));
    I am not getting the value entered by user.
    please suggest me
    Thanks!
    Smarajeet

    The below is my Vo query for item quanity i am using a dummy query "(select null from dual) as ITEM_QUANTITY"
    in the below query and item type is number. and this is a messageTextINput in OA page and is maped to ItemQuantity vo attribute.
    SELECT idsi.section_item_id
    ,idsi.inventory_item_id
    ,(select concatenated_segments from mtl_system_items_kfv mstk
    where mstk.inventory_item_id = idsi.inventory_item_id
    and mstk.organization_id =idsi.organization_id) ITEM_NAME
    ,(select description from mtl_system_items_tl mtll
    where mtll.inventory_item_id = idsi.inventory_item_id
    and mtll.organization_id =idsi.organization_id
    and language = USERENV('LANG') ) ITEM_Description
    ,(SELECT CASE
    WHEN instr(msib.segment6,'NAMED USER') > 0 THEN 'NAMED_USER'
    WHEN instr(msib.segment6,'PROCESSOR')>0 THEN 'PROCESSOR'
    ELSE msib.segment6
    END
    FROM MTL_SYSTEM_ITEMS_B msib
    WHERE msib.INVENTORY_ITEM_ID = idsi.inventory_item_id
    AND msib.ORGANIZATION_ID = idsi.organization_id) LICENSE_TYPE
    ,(SELECT CASE
    WHEN instr(msib.segment6,'1 YR') > 0 THEN '1YR'
    WHEN instr(msib.segment6,'2 YR') > 0 THEN '2YR'
    WHEN instr(msib.segment6,'3 YR') > 0 THEN '3YR'
    WHEN instr(msib.segment6,'4 YR') > 0 THEN '4YR'
    WHEN instr(msib.segment6,'5 YR') > 0 THEN '5YR'
    WHEN instr(msib.DESCRIPTION,'Perpetual') > 0 THEN 'PERPETUAL'
    END TERM FROM MTL_SYSTEM_ITEMS_B msib
    WHERE msib.INVENTORY_ITEM_ID = idsi.inventory_item_id
    AND msib.ORGANIZATION_ID = idsi.organization_id) TERM
    ,(select qll.operand
    FROM qp_list_lines qll
    ,qp_pricing_attributes qpa
    WHERE qll.list_line_id = qpa.list_line_id
    AND qpa.product_attr_value = to_char(idsi.inventory_item_id)
    AND qll.list_header_id = 439381
    AND sysdate between NVL(qll.start_date_active, sysdate) and NVL(qll.end_date_active, sysdate+1)
    AND qpa.list_header_id = qll.list_header_id
    AND qpa.product_attribute = 'PRICING_ATTRIBUTE1'
    AND qpa.product_attribute_context = 'ITEM'
    AND NVL(qpa.pricing_attribute_context,'MIXED') = 'MIXED') ITEM_PRICE
    ,(select null from dual) as ITEM_QUANTITY
    ,(select currency_code from qp_list_headers_b where list_header_id =439381) currency_code
    ,(select segment1 from mtl_system_items_b msib
    where msib.inventory_item_id = idsi.inventory_item_id
    and msib.organization_id =idsi.organization_id) PART_NUMBER
    FROM ibe_dsp_section_items idsi
    ,ibe_dsp_msite_sct_items idmsi
    ,( select distinct child_section_id
    from IBE_DSP_MSITE_SCT_SECTS b
    connect by PRIOR child_section_id = parent_section_id
    start with parent_section_id =:1
    and mini_site_id =1
    UNION
    select distinct child_section_id
    from IBE_DSP_MSITE_SCT_SECTS b
    where child_section_id =:1
    and mini_site_id =1
    ) csi
    WHERE idsi.organization_id = 101
    AND idmsi.section_item_id = idsi.section_item_id
    AND idsi.section_id = csi.child_section_id
    AND idmsi.mini_site_id = 14409

  • Need help to get the Result

    Hi Guyz,
    Request from our client is go get sum and average of certain key figures in a single line, The result should  show only the sum of all key values and average of all key values , Am able to get the sum but unable get average of all values in a single line,
    Would appreciate if I can get the solution Quick.
    System : BW 3.5
    Regards,
    Ravi

    Hi,
    Craete seperate CKF's to get SUM and AVERAGE rather than using the overall result.
    Exception aggregation might help you.
    -Vikram

  • Need FM to get the last consumption date and value

    Hello Friends,
       i am developing a report for non moving material , i have got the relevant fields from MSEG,MKPF, MCHB, MCH1,,, but i need the last consumption date for that non moving material batch and value (total amount ) of that batch...
    so i need a Function Modules, to get this values .
    Please help me out
    Regards
    Mukesh

    You have to join MSEG and MKPF ( where MKPF has the posting date ) , ( day,month,year ) . You can calculate the month.moreover, also see S031,S032,S033
    else.
    check it at Mseg-lgort, and movement types for the given matnr.
    from there u can find the consumtion according to movement types .
    for particular period carry mblnr from mkpf and check the movement types which r equal to this mblnr and matnr in mseg.
    so u get the all movement types in that period for particular matnr.
    consumtion = issues - receipt.
    hope this helps u

  • IMPORTANT,, PLEASE I NEED HELP TO GET MY FLA FILE BACK.

    I lost my fla file!!! the due date of my project tomorrow... I need the script please. How to get my fla file back from my iPad? I published it before I lost my fla file pleaaaaaase HELP!!!!
    PLEASE EXPLAINE FOR ME HOW? It was a recovery file and I saved it then I lost it,, I work in mac.

    you should be able to reconstruct your fla file from a published non-encrypted swf version you have, by using sth like this:
    http://www.sothink.com/product/flashdecompiler/

  • Need help  to get the dID from a Webcenter TaskFlow

    Hi everyone,
    Here is a description of my need.
    I would like, in an ADF Fusion Web Application, to be able to browse the UCM content and then locate a file to get its dID. I saw that multiple ADF Task Flows exist for that, such as Documents - Document Explorer, Documents - Document Navigator, etc. None of them seems to offer this feature.
    The big picture here, is I want to select a file, within the UCM, to then link this file to a specific project in my application.
    For example :
    ProjectID 1, dID 3254234545
    ProjectID 2, dID 5465434564
    Does someone know a way for me to obtain the dID of a selected item on a "Documents - Document Explorer" taskflow?
    I have looked into taskflow customization but I don't think this could be the solution to my problem.

    I'm afraid the best available documentation is the one already provided. It is true that it does not mention explicitly if the parameter is input or output (unlike all the others it could be both), but searching for some more info and thinking about it I assume it must be an input one.
    What I found is this: http://docs.oracle.com/cd/E23943_01/web.1111/b31974/taskflows.htm
    In the text it states that: "An ADF bounded task flow consists of its own set of private control flow rules, activities, and managed beans. A caller requires no internal knowledge of such things as page names, method calls, child bounded task flows, managed beans, and control flow rules within the bounded task flow boundary. Input parameters can be passed into the bounded task flow, and output parameters can be passed out on exit of the bounded task flow. Data controls can be shared between task flows."
    This means, you could use either an output parameter (if the task flow is somehow exited - which it does not do at the moment; that's why I think the current param is an input one), or a data control.
    Read on in the document, and it seems that a data control might be a better option here. I'm afraid it leads more to the realm of ADF, so it might be better to search the ADF forum - even though, some forum users might be able to help even here.
    Another question is how to fill in this parameter. If it is not implemented, you will have to analyse the insides of the task flow. I think WebCenter Portal uses the RIDC Java API, so you will have to search where a DOC_INFO service is called (via RIDC or Web Services - note that there are few DOC_INFO services). See this link http://docs.oracle.com/cd/E23943_01/doc.1111/e11011/c04_core.htm#BABBCIEB and on for details. These services return result sets, particularly one called DOC_INFO where you can find dID to be copied to your output parameter/data control.
    I've been also thinking if dDocName would not be more appropriate - dDocName marks a content item, dID marks a revision (there might be more for one content item), but you seem to know what you need.

  • Calendar in iCloud deleted - need help to get the data back

    Hi,
    I just deleted one of my calendars in iCloud. Is there any chance to get this calendar (with all the data) back into iCloud?
    Thanks for your help.
    Pierre

    how? I should have a backup at my time machine from earlier today. Do I need to completely restore my MBP to also get my calender data back? Note that i only by accident deleted one calender (my others are ok)
    thank you

  • K1:Need help to get the tun tap driver for ICS

    Thanks khanning's ROM, my k1 is runnign ICS rooted.
    But I still cannot have cisco anywhere connection work.
    It's complained that lack of tun tap driver.
    I tried to download couple tun.ko from websites (tun.ko installer) and all of them make the ideapad crash/reboot.
    Anyidea how can I get one for my K1 on ICS?
    Thanks
    Daedal
    Solved!
    Go to Solution.

    There may be some way of adapting this to work for the K1. http://www.modaco.com/topic/313133-howto-compiling​-tuntap-driver-for-htc-hero/

  • When starting Firefox, error on missing profile comes up. Need help to get the profile

    After downloading Firefox version, can not start as error for missing profile comes up

    Try to delete the profiles.ini file to make Firefox create a new default profile or create a new profile yourself.
    * http://kb.mozillazine.org/profiles.ini_file
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_Manager
    *https://support.mozilla.org/kb/Managing+profiles

  • My daughter has spitefully changed my password and has refused to tell me. I have so much medical information that I can not lose. Is there anyway to get around this problem. Please I need Help fast.

    My daughter has spitefully changed my password and has refused to tell me. I have so much medical information that I can not lose. Is there anyway to get around this problem. Please I need Help fast.

    Connect the iPod to your syncing computer and restore it via iTunes.  However, if iTunes asks for the unknown passcode you need to place the iPod in recovery mode and then restore the iPod from backup.  For recovey mode see:
    iPhone and iPod touch: Unable to update or restore
    "If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone and iPod touch software."
    Above is from:
    http://support.apple.com/kb/ht1212

Maybe you are looking for