How to make one of the columns in my tabular an text item with popup lov

Hello,
I want to manually make one of the columns say for the deptno in my tabular form as on text item popup lov using apex_item package
and whenever user clicks on the text item popup lov, it should open up an dept table report and from which he/she needs to select
the deptno and this deptno should be returned into the text item popup lov column.
like for example: say if i have an emp table tabular form with all the columns and deptno column as an popup lov and when user clicks on this column
it should open up an new sql report(similar to popup lov window), the select statement for this would be
select deptno,dname,loc from dept order by 1;
And from this popup lov report whenever an user selects a particular deptno, the same deptno should be returned to my text item popup column in emp tabular form.
something like this
select
"EMPNO",
"EMPNO" EMPNO_DISPLAY,
"ENAME",
"JOB",
"MGR",
"HIREDATE",
"SAL",
"COMM",
APEX_ITEM.TEXT(3,deptno,20,50,'readonly=true') || '<img height="16" align="middle" width="16" style="vertical-align: middle;" alt="Popup Lov" src="/i/lov_16x16.gif"/>' deptno
from "#OWNER#"."EMP"
like i made my column as an text item lov and now I want to write an onclick event for the text item lov so that an popup window is displayed which is a sql report of the table dept (select deptno,dname,loc from dept order by 1;) and in this report i want to make deptno as an link so that when ever an user clicks on it
-- this value should be returned to my text item popup lov column deptno in the emp tabular form.
can anyone help me out with this issue.
thanks,

Hi,
Refer to the link for the detailed information on ALV Grid.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
Hope it helps.
Regards,
Rajesh Kumar
Edited by: Rajesh Kumar on May 25, 2009 9:13 AM

Similar Messages

  • LOVS - How to make one of the values the default value ?

    Greetings,
    This is a very basic question so, anyonw who has some experience witrh loves can surely help me.
    I have a lov which i populate like this:
    select 0 as never,00 as nunca from dual
    UNION
    select rownum,rownum from man_cod_pos where rownum <= 24
    UNION
    select 36 as never,36 as nunca from dual
    UNION
    select 48 as never,48 as nunca from dual
    UNION
    select 60 as never,60 as nunca from dual
    UNION
    select 72 as never,72 as nunca from dual
    UNION
    select 84 as never,84 as nunca from dual
    UNION
    select 96 as never,96 as nunca from dual
    UNION
    select 108 as never,108 as nunca from dual
    UNION
    select 120 as never,120 as nunca from dual
    order by 1 ASC
    This will be the number of months, so 1-24 and after every year hence 36 and so on.
    So far so good.
    I however have one of this values kept in a database record and after populating the lov i want the value that is selected to be the one which is in the database record.
    How do i achieve that?
    So far i have been doing it with ajax but i am kinda tired of having to make an ajax call everytime i need to update a LOV and i am sure APEX can handle this.
    Thanks
    My Homepage
    Best Regards

    First of all thanks to both for the time taken.
    I'm gonna be honest here I am unfamiliar with LOVS within apex and pl sql altogether.
    In this case the list of possible values will be the one i mentioned earlier so it is static, the only thing that will change will be the default seleced value wich has to reflec the value of the database record.
    So are static more beneficial in this case? if so why?
    Varad i have atempted to place this in the default value:
    select 10 as never,10 as nunca from dual
    This is only for testing purposes but it won t place the 10 as the selected value....
    I have tried pl sql function body pl sql expression and it doesn t accept any, it only works when i choose a static value.
    what am i doing wrong?
    My Homepage
    Best Regards
    Edited by: Igor Carrasco on May 8, 2009 4:08 PM

  • How to make one OR the other parameter required? (but not both)

    Hi all,
    I've got a report showing expenditures by budget code. There's a multi value parameter allowing the user to choose any codes they want, but this can be tedious, since there's a couple hundred of them.
    I would like to offer as an alternative a couple of "pre-packaged budget code groups" on another parameter. How can I set it up so that the user must choose EITHER something out of the full multi value set, OR one of the 2 or 3 pre-packaged options?
    thanks for any tips,
    sff

    Hi sherifffruitfly2,
    In Reporting Services, we can make a parameter optional by setting default values for the parameter. Based on your scenario, you can set one parameter to have no default values and set default values for the other parameter.
    As Josh posted, another approach is to add "All" value to each parameter and set "All" as the default value for each parameter. Then, we can set the visibility of the report to hide when both of the parameter contains "All". That way, the user can get the
    report to run by changing the values of only one parameter. For more information about add a "All" value to a parameter, please see the following thread with a similar topic:
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/7773eb1f-445e-461c-a315-e2e3d1161ae7/
    Hope this helps.
    Regards,
    Mike Yin
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Mike Yin
    TechNet Community Support

  • How to make one of the chart ignore series grouping..

    I need to create a dashboard where i have
    X- axis -- Months
    Y-axis 1 -- Units
    Y-axis 2 - Percentage..
    Series Group -- State
    Now i have to group the percentage by state which is a line chart ...where as the units is stacked area which shouldn't be grouped by state...So is there a way to not group the units by state and group the % by state in the same chart ?
    I will have stacked area over which i need to have the % with line chart ..
    Is there a way to achieve this in SSRS 2008 R2 ?

    Hi Sri,
    In chart, when we add the fields in the data drop zones, Reporting Services calculates an aggregate for the field based on the category group and series group. The scenario you post is not support in chart data region.
    To work around this issue and meet your requirement, please refer to the following steps.
    1. Specify the values expression of the “Units” filed as follows:
    =SUM(Fields!units.Vlaue,”Chart_CategoryGroup”)
    (note: specify the scope with the name of the category group in chart instead of the label of the category group, for example,”Months”)
    2. Hide the duplicate columns or bars in the stacked area: right-click the “Units” filed and open the series properties dialog box, in the visibility page, set expression for hidden as follows:
    =IIF(Fields!units.Vlaue=First(Fields!units.Vlaue,”DataSet”),false,true)
    3. Specify the series displayed in legend, type the custom legend text as follows:
    =”Uints for this Month”.
    When preview the chart, the report shows only one aggregate value for each category group in the stacked area.
    The following screen shot the designer structure and the preview of a similar report, please take as reference.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to make one Mac the "master", and the other Macs "secondary"?

    When using ISync to my DotMac account, and using three or four Macs all synching to one DotMac account, is it possible to designate one particular Mac to be the "most important" or "parent" Mac, and then all others, (laptops), be less important?
    I just want the Address Book on the main machine, the G5 Desktop, to always take precedence, and never get overwritten in any way, by a less refined Address Book on a laptop traveling machine.
    Thank you.

    iSync (or rather .Mac Sync is what you are referring to) does not work like that.
    There is no master and slave relationship in synchronising. All devices are equal and all devices sync their data to all other devices equally. That is what true synchronising is.
    What you are proposing is not synchronising - it is a simple copy and replace operation from one source, and the SyncServices framework is not designed for that.
    The whole point of synchronising is to get away from having a Master data source. You can change data on ANY device (Mac, phone or PDA) and the changes will be synced to all other devices.

  • I have an Ipod 1st gen, and I can't seem to make an Apple ID without giving my credit card number. I even looked up how to make one without the credit card number, but it doesn't show up as an option when i follow the instructions. Help anyone?

    help me please.

    If you only want the free iPhone/iPod apps, take a look here:
    http://support.apple.com/kb/HT2534
    Read the steps carefully as the order in which you follow them is apparently critical. This seems to come and go, or only apply to App Stores in specific countries, so you may not see the option for "None" when asked for a payment type.
    You will of course not be able to get anything other than the free content without entering in some sort of payment method (credit card, prepaid iTunes card, gift certificate, etc.)
    Regards.

  • How to set one of the elements in contributable mode to non editable in oracle site studio

    Hi,
    I am using oracle site  studio and webcenter content.In contributable mode for a cdf I have a static element and 4 columns in that(4 elements). I want to enter data in all 4 columns and after that I want to make one of the column as non editable. Is it possible? If yes, kindly let know how this can be achieved.
    Thanks in advance

    If you don't need to actually display the non-editable region in the editor, then you could do the following:
    Add all 4 elements to the region definition.
    Add your content/data.
    Remove the non-editable element from the region definition.
    The content/data will still be stored in the CDF and should be retrievable.
    Jonathan
    https://jonathanhult.com

  • How to give more relevance to one of the column in multicolumn datastore

    Hi Gurus,
    While using multicolumn datastore needed to give more importance to one of the column than the other one. How can we achieve the same ?
    SQL> create table test_sh4 (text1 clob,text2 clob);
    Table created.
    SQL> alter table test_sh4 add (text3 clob);
    Table altered.
    SQL> begin
    2 ctx_ddl.create_preference ('nd_mcd', 'multi_column_datastore');
    3 ctx_ddl.set_attribute
    4 ('nd_mcd',
    5 'columns',
    6 'replace (text1, '' '', '''') nd, text1 text1,replace (text1, '' '', '''') nd, text1 text1');
    7 ctx_ddl.set_attribute ('nd_mcd', 'delimiter', 'newline');
    8 ctx_ddl.create_preference ('test_lex1', 'basic_lexer');
    9 ctx_ddl.set_attribute ('test_lex1', 'whitespace', '/\|-_+');
    10 end;
    11 /
    PL/SQL procedure successfully completed.
    SQL> create index IX_test_sh4 on test_sh4 (text3)
    indextype is ctxsys.context
    parameters
    ('datastore nd_mcd
    lexer test_lex1')
    / 2 3 4 5 6
    Index created.Here while querying how can I give more relevance to text1 column than text2 column ?

    Every time that you post code, whatever you are using eliminates all formatting and changes any multiple spaces to single spaces, so it makes it hard to tell what your code really is. Within the function, you need to remove the special characters and double spaces before you use the string for anything else. In the first part of your output string, you were only putting a % in front of the first word and after the last word. I fixed it so that it puts % before and after every word. I also added some code to return a score of 100 when an exact match is found in any column. You can use the function in a select from dual to see what it is returning. Please see the demonstration below. I will provide a copy of the function in a separate post that you can copy and paste. You may want to adjust the values that you multiply by. The values of 10 and 5 and .5 and .1 were just examples.
    SCOTT@orcl_11gR2> create table test_sh (text1 clob,text2 clob);
    Table created.
    SCOTT@orcl_11gR2> alter table test_sh add (text3 clob);
    Table altered.
    SCOTT@orcl_11gR2> insert all
      2  into test_sh (text1, text2, text3)
      3    values ('staple card', 'word2', 'word3')
      4  into test_sh (text1, text2, text3)
      5    values ('word4', 'staple card', 'word5')
      6  into test_sh (text1, text2, text3)
      7    values ('staplecard', 'word2', 'word3')
      8  into test_sh (text1, text2, text3)
      9    values ('word4', 'staplecard', 'word5')
    10  into test_sh (text1, text2, text3) values
    11    ('Weber Genesis S-310 Gas Grill',
    12       'Weber Genesis S-310 Gas Grill',
    13       'Weber Genesis S-310 Gas Grill')
    14  select * from dual
    15  /
    5 rows created.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference ('nd_mcd', 'multi_column_datastore');
      3    ctx_ddl.set_attribute
      4        ('nd_mcd',
      5         'columns',
      6         'replace (text1, '' '', '''') nd1,
      7          text1 text1,
      8          replace (text2, '' '', '''') nd2,
      9          text2 text2');
    10    ctx_ddl.create_preference ('test_lex1', 'basic_lexer');
    11    ctx_ddl.set_attribute ('test_lex1', 'whitespace', '/\|-_+');
    12    ctx_ddl.create_section_group ('test_sg', 'basic_section_group');
    13    ctx_ddl.add_field_section ('test_sg', 'text1', 'text1', true);
    14    ctx_ddl.add_field_section ('test_sg', 'nd1', 'nd1', true);
    15    ctx_ddl.add_field_section ('test_sg', 'text2', 'text2', true);
    16    ctx_ddl.add_field_section ('test_sg', 'nd2', 'nd2', true);
    17  end;
    18  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> create index IX_test_sh on test_sh (text3)
      2  indextype is ctxsys.context
      3  parameters
      4    ('datastore     nd_mcd
      5        lexer          test_lex1
      6        section group     test_sg')
      7  /
    Index created.
    SCOTT@orcl_11gR2> create or replace function text_format
      2    (p_string in varchar2)
      3    return         varchar2
      4  as
      5    v_string     varchar2 (32767);
      6    v_string_out varchar2 (32767);
      7    v_string_in1 varchar2 (32767);
      8    v_string_in2 varchar2 (32767);
      9    V_TOKEN         VARCHAR2 (32767);
    10  BEGIN
    11    -- remove special characters and double spaces before using in anything else:
    12    v_string := trim (translate (p_string, '/\|-_+&', '      '));
    13    v_string := replace (v_string, '''', '');
    14    while instr (v_string, '  ') > 0 loop
    15        v_string := replace (v_string, '  ', ' ');
    16    end loop;
    17    -- fixed 2 lines below:
    18    v_string_out := '(%' || replace (v_string, ' ', '% %') || '%) ' || ',';
    19    v_string_out := v_string_out || '(' || v_string || ')' || ',';
    20    -- first search string with spaces:
    21    v_string_in1 := v_string || ' ';
    22    -- second search string without spaces:
    23    v_string_in2 := replace (v_string_in1, ' ', '') || ' ';
    24    if v_string_in2 = v_string_in1 then
    25        v_string_in2 := null;
    26    end if;
    27    -- format search string one token at a time:
    28    while v_string_in1 is not null loop
    29        v_token := substr (v_string_in1, 1, instr (v_string_in1, ' ') - 1);
    30        v_string_out := v_string_out
    31        || '('
    32        || '?' || v_token || ' or '
    33        || '!' || v_token || ' or '
    34        || '$' || v_token
    35        || '),';
    36        v_string_in1 := substr (v_string_in1, instr (v_string_in1, ' ') + 1);
    37    end loop;
    38    while v_string_in2 is not null loop
    39        v_token := substr (v_string_in2, 1, instr (v_string_in2, ' ') - 1);
    40        v_string_out := v_string_out
    41        || '('
    42        || '%' || v_token || '% or '
    43        || '?' || v_token || ' or '
    44        || '!' || v_token || ' or '
    45        || '$' || v_token
    46        || '),';
    47        v_string_in2 := substr (v_string_in2, instr (v_string_in2, ' ') + 1);
    48    end loop;
    49    -- return formatted string (added score of 100 for exact match in any column:
    50    return
    51        '(' || v_string            || ') * 10 * 10 or
    52         (' || rtrim (v_string_out, ',') || ' within text1) * 10 or
    53         (' || rtrim (v_string_out, ',') || ' within nd1) * 5 or
    54         (' || rtrim (v_string_out, ',') || ' within text2) * .5 or
    55         (' || rtrim (v_string_out, ',') || ' within nd2) * .1';
    56  end text_format;
    57  /
    Function created.
    SCOTT@orcl_11gR2> show errors
    No errors.
    SCOTT@orcl_11gR2> select text_format ('STAPLE CARD') from dual
      2  /
    TEXT_FORMAT('STAPLECARD')
    (STAPLE CARD) * 10 * 10 or
         ((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
    !CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
    hin text1) * 10 or
         ((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
    !CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
    hin nd1) * 5 or
         ((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
    !CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
    hin text2) * .5 or
         ((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
    !CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
    hin nd2) * .1
    1 row selected.
    SCOTT@orcl_11gR2> column text1 format a11
    SCOTT@orcl_11gR2> column text2 format a11
    SCOTT@orcl_11gR2> column text3 format a11
    SCOTT@orcl_11gR2> SELECT SCORE(1), t.* FROM test_sh t
      2  WHERE  CONTAINS (text3, text_format ('STAPLE CARD'), 1) > 0
      3  ORDER  BY 1 DESC
      4  /
      SCORE(1) TEXT1       TEXT2       TEXT3
           100 staple card word2       word3
           100 word4       staple card word5
           100 staplecard  word2       word3
            10 word4       staplecard  word5
    4 rows selected.

  • I use more than one computer to access my four business email accounts. When one computer is on (and mail is open) emails do not get through to the other computers. This is fine, but how do I make one of the other computers the dominant one?

    I use more than one computer to access my four business email accounts. When one computer is on (and mail is open) emails do not get through to the other computers. This is fine, but how do I make one of the other computers the dominant one?

    I assume these are POP accounts and all computers are set to remove from Server after downloading.
    So on the non dominant ones... Mail Preferences>Accounts, highlight an account, Advanced tab, uncheck remove from Server, just have the main dominant one remove from server.
    Or get/setup IMAP accounts.

  • Have multiple email accounts. How to make one the default account when using Send to Mail Recipient?

    We have multiple email accounts. How do I make one of the accounts the default sender address when we Send to a document to Mail Recipient? Or how can I change the order of the email accounts on Thunderbird that they appear?

    To change the default account, Tools/Account Settings, select the account in the left pane, then Account Actions/Set as Default.

  • How to store data file name in one of the columns of staging table

    My requirement is to load data from .dat file to oracle staging table. I have done following steps:
    1. Created control file and stored in bin directory.
    2. Created data file and stored in bin directory.
    3. Registered a concurrent program with execution method as SQL*Loader.
    4. Added the concurrent program to request group.
    I am passing the file name as a parameter to concurrent program. When I am running the program, the data is getting loaded to the staging table correctly.
    Now I want to store the filename (which is passed as a parameter) in one of the columns of staging table. I tried different ways found through Google, but none of them worked. I am using the below control file:
    OPTIONS (SKIP = 1)
    LOAD DATA
    INFILE '&1'
    APPEND INTO TABLE XXCISCO_SO_INTF_STG_TB
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    COUNTRY_NAME
    ,COUNTRY_CODE
    ,ORDER_CATEGORY
    ,ORDER_NUMBER
    ,RECORD_ID "XXCISCO_SO_INTF_STG_TB_S.NEXTVAL"
    ,FILE_NAME CONSTANT "&1"
    ,REQUEST_ID "fnd_global.conc_request_id"
    ,LAST_UPDATED_BY "FND_GLOBAL.USER_ID"
    ,LAST_UPDATE_DATE SYSDATE
    ,CREATED_BY "FND_GLOBAL.USER_ID"
    ,CREATION_DATE SYSDATE
    ,INTERFACE_STATUS CONSTANT "N"
    ,RECORD_STATUS CONSTANT "N"
    I want to store file name in the column FILE_NAME stated above. I tried with and without constant using "$1", "&1", ":$1", ":&1", &1, $1..... but none of them worked. Please suggest me the solution for this.
    Thanks,
    Abhay

    Pl post details of OS, database and EBS versions. There is no easy way to achieve this.
    Pl see previous threads on this topic
    SQL*Loader to insert data file name during load
    Sql Loader with new column
    HTH
    Srini

  • How to find the ID of the text item of the column in an tabular form

    Hello,
    I have created a tabular form report on emp table and made ONE OF THE COLUMN department_id as an text item using APEX_ITEM.TEXT APIs.
    My select query is
    select
    "EMPLOYEE_ID",
    "EMPLOYEE_ID" EMPLOYEE_ID_DISPLAY,
    "FIRST_NAME",
    "LAST_NAME",
    "HIRE_DATE",
    "JOB_ID",
    "SALARY",
    "MANAGER_ID",
    APEX_ITEM.TEXT(3,department_id,20,50,'readonly=true') department_id
    from "#OWNER#"."OEHR_EMPLOYEES"
    now how can i find the item ID?
    one more thing is that how would i reference this item in an javascript function.
    anyone plz help me out with this.
    thanks.

    Hi,
    Firstly, your link must include "this" to ensure that any javascript knows which link has been clicked. So, change:
    onclick="javascript:report();"to
    onclick="javascript:report(this);"Next, your javascript code must take this value and find the related DEPTNO item on the same row. The URL must pass to the popup page the name of the ID that needs to be updated - this is held in the f10 variable in the following script. This means that you popup page must be able to receive this value so that it can use it to update the DEPTNO item when a value is selected. Your popup page seems to be page number 4, so I will assume that you have a P4_ITEM_ID hidden item on that page for this purpose. So, the javascript on the main page would be something like:
    function report(x)
    var f10;
    var p = x.parentNode;
    while (p.tagName != "TR")
      p = p.parentNode;
    var inputs = p.getElementsByTagName("INPUT");
    var zz;
    for (zz = 0; zz < inputs.length; zz++)
      if (inputs[zz].name = 'f10')
       f01 = inputs[zz].id;
    var url;
    url = 'f?p=&APP_ID.:4:&APP_SESSION.::::P4_ITEM_ID:' + f10;
    var w = open(url,"winLov","Scrollbars=1,resizable=1,width=450,height=600");
    if (w.opener == null)
       w.opener = self;
    w.focus();
    }So, when the user clicks a link, the report() function is called and the object clicked is passed as a parameter. The script then starts from this object and goes up to the TR tag that the link is on. From here, it finds all INPUT items and then looks at those to find one that has a name attribute of "f10". When it finds it, it stores the ID of that in the "f10" variable. It then constructs a URL using this variable which is set into the P4_ITEM_ID hidden item on the popup page.
    I don't know what your javascript is on the popup, but it would need to get the value out of P4_ITEM_ID to see which main page item needs updating. This could be something like:
    function passBack(val)
      var id = $v('P4_ITEM_ID');
      opener.document.getElementById(id).value = val;
      window.close();
    }This script looks in the P4_ITEM_ID hidden item and gets its value - this will be the ID of the item to update on the main page. It then does the update and closes the popup.
    Andy

  • How to make use of the FM EDIT_TEXT_FORMAT_DOC

    Hi frnz,
    How to make use of the FM
    EDIT_TEXT_FORMAT_DOC
    Could anyone explain with an example how to use this
    regards

    hi
    I need an example please....
    did any one use that FM
    Regards

  • How to make iTunes read the song's name/singer from the file's name itself?

    Hi everyone,
    So I have this file with songs from everywhere. I spent quite some time now to make sure that the structure of each file's name is as such : "Singer - Song name", hoping that everything would be read by iTunes accordingly. However, either iTunes read it well, or it didn't read it at all ("Singer - Song name" appearing in Title alone), or iTunes read the "media" of the file (ie. what the guy I downloaded it from wrote for it in the Preferences, which usually is in capital letters or with a bunch of weird underscores). As I'm OCD and need everything to be neat, I'm highly tensed right now. I really want everything to be neat and clear!
    So, how do I make sure that iTunes reads the files' names such that it knows the structure is "Singer - Song name"? Thanks.

    iTunes doesn't use file names to determine how music appears in your library,  Rather, it uses metadata that is split between:
    data elements that are embedded within the media files
    data elements that are included in the entries in the iTunes database
    No amount of reorganization, renaming or other manipulation at the file level will make any difference to how songs will appear in iTunes.  Using your example:
    the value of the track number element is 1
    the value of the artist element is "Elvis Presley"
    the value of the song name element is "Blue Suede Shoes"
    Depending on how you configure iTunes then the file name is either:
    completely independent of iTunes (i.,e., the file containing this song could be xyz.mp3)
    dependent on the metadata managed by iTunes, (i.e., when you have these two options set:
    then iTunes will set the file name to be 1-01 Blue Suede Shoes.mp3 where:
    the file is in a folder called "Elvis Presley" (the name of the album)
    that folder is in one called "Elvis Presley" (the name of the artist) which is in iTunes Media\Music
    Going back to your question "How to make iTunes read the song's name/singer from the file's name" the answer is simple - you can't, as this is not how iTunes works.  There are some third-party utilities that you can use to set some metadata element values based on parsing of file names which might be a useful first step.  However, to use iTunes effectively you should really forget about / ignore file names - manage your media using appropriate metadata and allow iTunes to look after file names behind the scenes.

  • Retrieve as many duplicate records as a value stored in one of the columns

    Hi,
    I have a peculiar requirement where I want multiple copies of rows the count of which is determined by one of the column values:
    create table test (id number, value number, data varchar2(100));
    insert into test values (1,5,'one');
    insert into test values (2,2,'two);
    insert into test values (3,3,'three');
    insert into test values (4,4,'four');
    insert into test values (5,5,'five');
    select * from test where id=3;
    I get:
    id,value,data
    3,3,three
    I want:
    id,value,data
    3,3,three_1
    3,3,three_2
    3,3,three_3
    i.e. Althought there is ONLY ONE row for the id=3, but as the column value=3, i want 3 rows from this table (all identical) except the last column to which I append a running sequential number.
    How to do that?
    Thanks.

    You have still pipelined function :
    SQL> create or replace type TypeTest as object (id number, value number, data varchar2(100));
      2  /
    Type created.
    SQL>
    SQL> create or replace type ListTest as table of TypeTest;
      2  /
    Type created.
    SQL>
    SQL> create or replace function TblTest(p_id number default null)
      2  return ListTest
      3  pipelined
      4  is
      5  begin
      6      for x in (select id, value, data from test where id = nvl(p_id,id)) loop
      7          for i in 1.. x.value loop
      8              pipe row (TypeTest(x.id, x.value, x.data||'_'||to_char(i)));
      9          end loop;
    10      end loop;
    11      return;
    12  end;
    13  /
    Function created.
    SQL> show err
    No errors.
    SQL>
    SQL> select * from table(TblTest(3));
            ID      VALUE DATA
             3          3 three_1
             3          3 three_2
             3          3 three_3
    SQL> select * from table(TblTest);
            ID      VALUE DATA
             1          5 one_1
             1          5 one_2
             1          5 one_3
             1          5 one_4
             1          5 one_5
             2          2 two_1
             2          2 two_2
             3          3 three_1
             3          3 three_2
             3          3 three_3
             4          4 four_1
             4          4 four_2
             4          4 four_3
             4          4 four_4
             5          5 five_1
             5          5 five_2
             5          5 five_3
             5          5 five_4
             5          5 five_5
    19 rows selected.
    SQL> Nicolas.

Maybe you are looking for

  • No colors when printing through AirPort Express?

    I knew I couldn't use all the features (e.g. scanning) of my HP all-in-one printer F2180 through AirPort Express instead of USB. But is it normal I can't print in colors? Can it be fixed?

  • Is there any way to write  error show in a operator to a file??

    Hi Team, I want to write errors whatever comes during execution of scenario in a file that shown in operator window. error like 'invalid number','no data found' such type of message generally show in operator window. such type of message i want to ri

  • Rfc To PI box

    HI, I Want post a RFC from my ECC system to PI box for testing. In general we process a IDOC through WE19. Now how to Post my RFC to PI box. Please help me Guys Thanks Hari

  • Error in SSO test

    Hi all,   I have implemented the SSO by using SSO configuration between SAP Portal 7.3 and ECC 6.0 Ehp 6 document.   The system object test is successful and trust is established.   For  SSO testing system admin-->support-->Application integration an

  • Unsure of Flash Player update version 11.9.900.152

    This morning an Adobe box popped on my screen.  It showed I needed to update Adobe Flash Player version 11.9.900.152.   I clicked on START. The next page came up and a box from Norton Security popped up saying it did not recognize this! On the second