Htmldb_item

Hi,
just a small question. I want to build an updatable report by myself. My only problem is one column, that should be not updatable and with lov for value translation(i.e. value is '1' shown is 'open'). In a normal report I would select 'Display as Text (based in query, does not save state)'. But how can I do this with the htmldb_item? I know that there is something like wwv_flow_item.display_and_save, but there is no lov behind to translate the value.
Is there something to manage this????
Thanks

Hi Scott,
sorry you seem to be the one who have to answer all my stupid questions ...
When I'm using htmldb_item.text_from_lov (it's working like I want), but can I access this column by using later htmldb_application.g_fxx ???
Because if I look in documentation, for htmldb_item.text(p_iidx, value, ...) is written for p_idx: Number to identify the item you wish to generate. The number will determine which G_FXX global is populated. For htmldb_item.text_from_lov, there is no p_idx, so I think I can't access it, or can I?
Thanks
chrissy

Similar Messages

  • HTMLDB_ITEM report with 'Drill Down'

    I have created a report using the HTMLDB_ITEM Package and I would like to link to a form to add more detail. I have tried to create this using the tools but it assigns the value of the hyperlink to #column heading# which is not working. Am I missing something or is there another way of doing it?
    Thanks
    Simon

    Simon,
    Have you tried to contruct the link manually like so:
    select 'detail' link,
    htmldb_item.text (1, ename)
    from emp

  • Reports not retaining carriage returns from htmldb_item.textarea

    I’m created a tabular form for multi row updates using htmldb_item.textarea for one of the fields. When I update the tabular form it keeps any carriage returns in this field, which is good. I then created a “PL/SQL function body returning a SQL Query” report for printing purposes. The problem is that the field populated by the htmldb_item.textarea does not retain any of the carriage returns in the report.
    I enter the following in the textarea on the tabular form:
    Line 1
    Line 2
    Line 3
    The report I created then displays the data as:
    Line 1 Line 2 Line 3
    I need the report to display the data the same as it appears on the tabular form.
    I tried this in my report from reading other similar situations on this forums, but didn’t work.
    replace("TEXTAREA",''||chr(13)||'',''||
    ||'') as title
    Anyone know of a solution?

    How about this?
    Go the page where you can edit the report column attribute - here is the bread crumb to help you figure out what I am talking about
    Home>Application Builder>Application 99999>Page Definition>Report Attributes>Column Attributes
    The second box in this page is Column formatting, you will find 4 text boxes (Number / Date Format, CSS Class, CSS Style, Highlight words) and a text area (HTML Expression). In the text area replace #COLUMN_ALIAS# with <PRE>#COLUMN_ALIAS</PRE>. You will get your newlines without tweaking the query or removing Strip HTML. Strip HTML is a security feature that I would not disable. On the down side you will loose some of the ability to format like fonts etc (:-(,
    Here is why you loose the newlines in the report. When browsers render html they have the liberty to reformat it. When reformating they can play around with whitespaces including new lines. To force a new line you have to use the BR tag or you can say the text is preformated using the PRE tags.

  • HTMLDB_ITEM.SELECT_LIST_FROM_QUERY - not found error

    Hi!
    I am trying to use HTMLDB_ITEM.SELECT_LIST_FROM_QUERY in a page source and getting the error message: ORA-06550: line 2, column 4: PLS-00221: 'SELECT_LIST_FROM_QUERY' is not a procedure or is undefined.
    This is HTMLDB 2.0 on Oracle 10.2.0.1.0 on Windows 2000.
    All help is appreciated.
    Thanks!
    Dave Venus

    Chet, I am still having trouble making this work. Let me cover each of the fields in the form and lets see where I am going wrong...... Sections with only a header have the default values.
    Name Section:
    Page: 4
    Name: P4_GROUP_ID
    Display As: Select List
    Displayed Section:
    Sequence: 20
    Region:
    Begin on new line: YES Field: YES ColSPan: 1 RowSpan: 1
    Label Section:
    Element Section:
    Source Section:
    Source Used: Only when current value is session state is null
    Source Type: Static Assignment (value equals source attribute)
    Source Value or Expression: P4_GROUP_ID
    Post Calculation Computation:
    Format Mask:
    Default Section:
    List of Values Section:
    Named LOV: Group_Names
    Display Extra Values: No
    Columns: 1
    Display Null: Yess
    Null Display Value: -- Select Group --
    List of Values definition: select group_name display, group_id return
    from #OWNER#.ittp_group
    ordeer by 1
    Security Section:
    Conditions Section:
    Condition Type: - Item Not Conditional
    Read Only Section:
    Read Only Condition Type: Value of Item in Expression 1 is NOT NULL
    Expression 1: P4_GROUP_ID
    Expression 2:
    Help Text Section:
    Configuration Section:
    Comments Section:
    I really appreciate your time, patience and help!
    Dave Venus

  • Values for htmldb_item.text  field do not display in CSV output

    HTML DB experts,
    I have a report query with the following 2 items in the SELECT statement:
    wwv_flow_item.display_and_save(2, DOC_CD, 10) DOC_CD,
    htmldb_item.text(3, DOC_DESC, 50, 255) DOC_DESC
    I have enabled the CSV output for this report. The problem is, when I generate a csv file, only the DOC_CD (wwv_flow_item.display_and_save) displays. The values for the DOC_DESC (htmldb_item.text) do not display. What do I need to do to get the DOC_DESC to display?
    Thanks for your help.
    Message was edited by:
    [email protected]

    Items rendered using htmldb_item generate HTML tags on the form, not plain text. You are right, the CSV export excludes them.
    Your best best is to create another report region on some other page with the same query except replace all the htmldb_item() calls with regular columns i.e. make it a read-only report and use the "export: CSV" template and put up a link to this page at the bottom of your editable report (instead of the builtin CSV link). This way when you click on this link, it will generate your report and immediately offer to export it to CSV
    Hope this helps.

  • Htmldb_item.date_popup and sort options in reports

    I use the htmldb_item.date_popup in a report (PLSQL returning SQL). Everything works fine unless I provide the option to sort columns. If I allow a column to be sorted, the date_popup does not return the date to the corresponding field but to another field of the same column. However, the users want to be able to sort the report due to several columns. Can anyone provide a work-around?
    The query is as follows:
    DECLARE
    statement VARCHAR2(32767);
    BEGIN
    statement := '
    select
    htmldb_item.checkbox(47, ID, ''onClick="javascript:doSubmit()"'', :P3_FREISTELLUNG_SELECTED, '':'') as CHECKBOX,
    htmldb_item.hidden(11,ID)||
    htmldb_item.hidden(12,ID_VERTRAG)||
    htmldb_item.date_popup(13,null,VON,''DD.MM.YYYY'',13,10) as BEGINN,
    htmldb_item.date_popup(14,null,BIS,''DD.MM.YYYY'',13,10) as ENDE,
    htmldb_item.date_popup(15,null,ERTEILT,''DD.MM.YYYY'',13,10) as ERTEILT,
    htmldb_item.select_list_from_lov(16,decode(FLAG_CANCELED,null,0,FLAG_CANCELED),''LOV_FREISTELLUNG_NULL'',null,''NO'') as FLAG_CANCELED,
    decode(FLAG_DELETED,1,''direkt gelöscht'',2,''indirekt gelöscht'',''aktiv'') as WERT_DELETED,
    htmldb_item.text(17,BEMERKUNG,20,4000) as BEMERKUNG
    from VERTRAG_FREISTELLUNG where ID_VERTRAG = :P3_KOPF_ID';
    if :P3_FREISTELLUNG_NEU = 2 then
    statement := statement||'
    union all
    select
    null as CHECKBOX,
    htmldb_item.hidden(11,null)||
    htmldb_item.hidden(12,null)||
    htmldb_item.date_popup(13,null,null,''DD.MM.YYYY'',13,10) as BEGINN,
    htmldb_item.date_popup(14,null,null,''DD.MM.YYYY'',13,10) as ENDE,
    htmldb_item.date_popup(15,null,null,''DD.MM.YYYY'',13,10) as ERTEILT,
    null as FLAG_CANCELED,
    null as WERT_DELETED,
    htmldb_item.text(17,null,20,4000) as BEMERKUNG
    from dual';
    end if;
    RETURN statement;
    END;
    PS: I know that the problem already has been discussed in the forum, but I did not find a solution for the problem.

    I have this issue as well with popup_from_query compunded with sorting.
    Wondering if there is any workaround from anyone ?

  • HTMLDB_ITEM.POPUP_FROM_QUERY Populating Previous Text Field

    I have manually created an updateable report from an SQL Query in which I manually index each editable field. I also include some hidden values which I also attempt to control the index values. The rows to be displayed on this page are the result of an adhoc search page (P30). Everything works fine except when I have more than one row returned and try to edit any row other than the first. When I do, the previous row's corresponding field is affected and the last row popup fields can never be changed. My listboxes work fine and appear to be indexed correctly. Am I missing something? Thanks in-advance.
    A condensed version of my SQL:
    select
    NULL "CHECK$01", -- index 01? -- Checkbox for multiple updates is first index
    "TRANSACTION_NUMBER",
    "H_RID", -- index 02?
    "DUTY", -- index 03?
    "IC", -- index 04?
    "IS_NEW", -- index 05?
    "SUBMIT" -- index 06?
    from(
    select
    '0' AS "TRANSACTION_NUMBER", -- to be replaced with dynamic value
    HTMLDB_ITEM.HIDDEN(2,PE||FO) AS "H_RID", -- could hiddens be the problem?
    HTMLDB_ITEM.SELECT_LIST_FROM_QUERY_XL(3,DUTY,'SELECT DUTY||'' - ''||NVL(TITLE,''None Selected'') a, DUTY b FROM PDM.DUTY ORDER BY b') AS "DUTY",
    HTMLDB_ITEM.POPUP_FROM_QUERY(4,IC,'SELECT IC||'' - ''||NVL(TITLE,''None Selected'') a, IC b FROM PDM.INFRA_STRUCTURE ORDER BY b') AS "IC",
    HTMLDB_ITEM.SELECT_LIST(5,'N','Yes;Y,No;N') AS "IS_NEW",
    HTMLDB_ITEM.SELECT_LIST(6,'N','Yes;Y,No;N') AS "SUBMIT",
    HTMLDB_ITEM.MD5_CHECKSUM(duty,ic)
    from fd.pe
    /* Where condition to address previous search page values to determine number of rows to return for editing */
    where (:P30_DUTY = DUTY OR :P30_DUTY IS NULL)

    Scott,
    I had indicated the example was throwing errors associated with the HTMLDB_ITEM.POPUP_FROM_QUERY items. Although this is not the same error I am encountering in version 2.0 it does indicate that either there is an issue with my SQL or a bug with version 3. The SQL used to generate the reports is almost identical to the query I am running on my development site. The table and column names are different and I have provided a "Reader's Digest" version of my actual SQL.
    I can eliminate the LOV errors on this site by replacing the POPUPs with LISTs, but that defeats the point. For efficiency of time, I need to implement POPUPs because the data behind them can potentially result in hundreds of records. Compound this with the number of fields per record which might also employ POPUPs and I could very quickly exceed memory limitations of HTMLDB.
    Again, any assistance would be appreciated. Thanks.
    Ed
    PS. I have edited my SQL for the POPUPs. Apparently, the init LOV errors associated with them were generated by a simple concatenation of data fields within the inner select. I originally had:
    HTMLDB_ITEM.POPUP_FROM_QUERY(4,IC,'SELECT IC||'' - ''||NVL(TITLE,''No Title Available'') as a, IC as b FROM BORG_CUBE.IC ORDER BY b') AS "IC",
    by changing the above to read:
    HTMLDB_ITEM.POPUP_FROM_QUERY(4,IC,'SELECT IC as a, IC as b FROM BORG_CUBE.IC ORDER BY b') AS "IC",
    the init LOV errors went away. Now, there are no errors and no ability to replicate my error for you. Upgrading is not an option at this point, so I will begin recoding. :-(
    Message was edited by: MovingTarget
    MovingTarget

  • HTMLDB_item.Date with row selector

    Hi :
    In my application i am using htmldb_item.datepicker and row selector to insert the date object wise
    the problem wht i am facing is if suppose 10 rows are generated when i select 3rd row date and insert date picker date get populated in 2nd row similarly 2nd rows to 1st and so on
    please try this query
    SELECT
    HTMLDB_ITEM.DISPLAY_AND_SAVE(2,NULL) "Project Objects",
    HTMLDB_ITEM.DATE_POPUP(3,rownum,null,'dd-mon-yyyy',12,15) "date"
    FROM
    DUAL
    UNION
    SELECT
    HTMLDB_ITEM.DISPLAY_AND_SAVE(2,SYSDATE) "Project Objects",
    HTMLDB_ITEM.DATE_POPUP(3,rownum,null,'dd-mon-yyyy',12,15) "date"
    FROM
    DUAL
    first change this query to sql updatable report and add row selector then try to select date from 2nd row ull find the problem wht i am facing
    please suggest how to resolve this
    thanks
    sudhir

    ya we it wont update when we use a rownum when we resort and update i did like this see if you can understand the code
    DECLARE
    vRow binary_integer;
    BEGIN
    for i in 1..htmldb_application.g_f01.count
    loop
    vRow := htmldb_application.g_f01(i);
    UPDATE SCHEDULE_VARIANCES
    SET
    REVISED_START = htmldb_application.g_f02(vRow),
    REVISED_END = htmldb_application.g_f03(vRow),
    ACTUAL_START = htmldb_application.g_f04(vRow),
    ACTUAL_END = htmldb_application.g_f05(vRow),
    STATUS = htmldb_application.g_f06(vRow),
    -- ACCEPTANCE = htmldb_application.g_f07(vRow),
    COMMENTS = htmldb_application.g_f08(vRow)
    where
    PROJECT_NAME = :P25_PROJECTS AND
    OBJECT_NAME = htmldb_application.g_f09(vRow) ;
    end loop;
    End;
    here i am relating object name to row selector that is the check box so that when u sort the row also based on the object name that u select it will update this worked for me
    thanks
    sudhir

  • Only use htmldb_item once per page?

    Not sure how to word this correctly.
    Am I correct in assuming that I can only use the htmldb_item once per page? I know it can be used multiple times within the tabular report, but if I used it again on the same page in a different region, how would it be distinguishable from a previous iteration?
    Say I have two regions on a page, both with manually created tabular reports using the htmldb_item syntax. It's not apparent to me (if there is a way), on how using the htmldb_application syntax to distinguish between region 1 and region 2. They both would wind up with g_f01, etc. variables, but I don't see any other characteristics to differentiate between them, like maybe passing a region (or any other) name to the htmldb_item construct so the the arrays could be distinguished more?
    This is all new to me, I've been out of loop for the last 8 years doing manual data cleanup from an old database that was basically a spreadsheet (a real mess!), so forgive me again if I'm missing anything obvious or just way off base.
    Thanks.

    Bill,
    You are correct that you want to avoid populating values in the same global arrays g_f0n more than once by creating tabular forms in two regions. It would be hard to distinguish from which region values in a particular array came. You can, however use g_f01..g_f10 for one region and then g_f11..g_f20 for another region.
    This assumes you're doing manual process of these arrays, because the processes used by the wizard can only deal with one tabular form per page.
    Sergio

  • CSV output selects all values returned by htmldb_item.select_list_from_lov

    I have a report with several columns using htmldb_item.select_list_from_lov. When I enable CSV Output (export to Excel) All the values in each of the columns get exported to Excel, not only the one selected in the report. For example. A value of ABC is selected in the report (stored in the database and this is a valid value in the LOV). In the drop down I also have values of DEF, GHI and IJK. I would expect only ABC to be exported, but I actually get ABC, DEF, GHI, IJK (all possible values) instead all displayed in the same column.
    Any ideas?

    I was able to work through this problem. Thank You.

  • Why I cannot process a disabled field when using htmldb_item

    I have a report that has this in the select statement
    case when c.sec_lic_status in (1,2,7,505,1002,1004,1005) then
    htmldb_item.text(2,sum( distinct a.fee_variable),8,20)
    else
    htmldb_item.text(2,sum( distinct a.fee_variable),8,20,'disabled')
    end "Quantity 1"
    The above shows correctly. If there are 2 records one field is disable and the other is enabled.
    I have a process that fires on submit - after Computations and Validations. But the records don't changed when updating the enabled one.
    In debugging and writing to a file using the UTL_FILE package, I'm able to pinpoint that the disable fields are the problem.
    Is there a trick on manually processing disabled fields?
    I've found that when I uncheck the show box in the report, I cannot use the fields either. This is not a problem, just another comment.
    My main problem is what do I have to do to manually process a disabled field.
    Thanks for your help, comments, pointers, or anything that could help me or give me ideas.
    juan

    Juan - HTML items with the disabled attribute are not POSTed with the form so your after-submit processes never see them. Try 'readonly="readonly"' instead. Others may be able to suggest how to also give those cells a greyed-out appearance.
    Scott

  • Change Value of HTMLDB_ITEM using HTMLDB_ITEM.CHECKbox

    Hello,
    I've got a region with a 'pl/sql function returning sql query'
    declare
    q varchar2(4000);
    begin
    q:=' select htmldb_item.checkbox(1,t.jedi_ean_id) as Auswahl, ';
    q:=q||' t.ean, j.artikelbezeichnung, ';
    q:=q||' t.artikelmengeneinheit, ';
    q:=q||' htmldb_item.text(2,t.iln) as ILN, ';
    q:=q||' from malus.jedi_ean t; ';
    return q;
    end;
    My Query return for example 10 rows. Now I want to check 5 of this 10 rows using the checkbox.
    With the following PROCESS i am able to save the new values of the field ILN to the Database.
    for i in 1..HTMLDB_APPLICATION.G_F01.COUNT
    loop
    update jedi_ean j
    set j.iln = HTMLDB_APPLICATION.G_F02(i),
    where j.jedi_ean_id = HTMLDB_APPLICATION.G_F01(i);
    end loop;
    Now to my Problem:
    I want to have an input field outside of this report where the user can manually set the value of the field ILN.
    Afterwards the user checks 5 of the 10 rows and then he should have the possibility to click on a button
    to assign these values to the 5 checked rows in the report, not in the database.
    After this step the user should click on a submit button an start the existing process above.
    Is this possible??

    Hi,
    I do not know can you do that with dynamic action or is there of of box solution.
    But see this example
    https://apex.oracle.com/pls/apex/f?p=40323:30
    You can bind onchange event to text field, and call Ajax to get emp name.
    Then use sample JavaScript to set value to display only item
    Regards,
    Jari

  • Issue with CSV export while using HTMLDB_ITEM.SELECT_LIST_FROM_LOV in SQL

    Hi,
    I have created a SQL report with HTMLDB_ITEM package. IN that report, I have generated a report column using SELECT_LIST_FROM_LOV, which can be used by the admin to update the column entry.
    Here is the link:-
    http://apex.oracle.com/pls/apex/f?p=50508:8:
    The update is working fine, The issue is, if you download this report as a CSV, it will export all the values of the select list for that particular column. Is there any way to restrict the export to the single value of that column( or the current value in the database). Please help/ suggest.
    thanks
    VG

    Brian,
    This example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:176
    and this example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:160
    may help you.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Htmldb_item.text_from_lov madness (bug)?

    <br>Application shared LOV "TESTOVI_USERA" query looks like:
    <br>SELECT NAZIV, TESTOVI.ID
    FROM TESTOVI, TESTOVI_USERS
    WHERE TESTOVI_USERS.TEST_ID=TESTOVI.ID AND TESTOVI_USERS.USER_ID = :G_USER_ID
    ORDER BY 1<br>where ":G_USER_ID" is global application item assigned after login and certainly has some number value-reference of that variable works OK all over app!
    <br>Result of that quewry looks like:
    NAZIV     ID
    Op&#263;i test  1
    56346      2 <br>In Web app, I use radio group (called "P6_TEST_ID") based on that LOV-works OK!
    <br>On next page I want to reference text value from that LOV (radio grup called "P6_TEST_ID"). For that I use "Before Header" process with code:
    <br>:P7_TIP_TESTA := htmldb_item.text_from_lov(:P6_TEST_ID,'TESTOVI_USERA');<br>but I get error:
    ORA-06550: line 1, column 113: PL/SQL: ORA-00911: invalid character ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored<br><br>I have checked on that page "P6_TEST_ID" value and it has correct value (1 or 2 as expected).
    <br><br>Have to say that I use htmldb_item.text_from_lov function with great success on other pages, but here all went wrong!
    <br>On this page there is another call of that function which works OK. What I can say that really distincts these two LOVs is that "problematic" one has call of application variable and "correct" LOV reference only table fields!
    <br><br>I think I get in some Appex "trouble generation" and do not know how to get out of that?
    <br><br>THX
    <br><br>P.S.
    <br>Haven't explain that in "Before Header" process 2 hidden items are assigned. They are used on the form in "Label" part of "Display as Text (does not save state)" control as. Here is example of problematic one (the correct one is similar):
    _label: <_li>Test value: &P7_TIP_TESTA.<_/li"> Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

    Code is placed in "Assign Wizzard Result" Before header process:
    BEGIN
      IF :VRSTA_TESTA = 0 THEN
        :P7_VRSTA_TESTA := 'Novi test'; 
        :P7_TIP_TESTA := htmldb_item.text_from_lov(:TIP_TESTA,'TIPOVI_TESTA_WIZZARD');
      ELSIF :VRSTA_TESTA = 1 THEN
        :P7_TIP_TESTA := htmldb_item.text_from_lov(:TEST_ID,'TESTOVI_USERA');   
        IF :TIP_TESTA = 0 THEN
          :P7_VRSTA_TESTA := 'Riješavani test';
        ELSIF :TIP_TESTA = 1 THEN
          :P7_VRSTA_TESTA := 'Riješavani test (randomiziran)';
          :TEST_ID := -1*to_number(:TEST_ID);
        ELSE
          pkg_pragma_core.log_error(:TIP_TESTA,'','Nepravilna vrijednost u wizzardu (tip_testa)!!');
        END IF;
      ELSE
        pkg_pragma_core.log_error(:VRSTA_TESTA,'','Nepravilna vrijednost u wizzardu (vrsta_testa)!!');
      END IF;
    EXCEPTION
      WHEN OTHERS THEN
        pkg_pragma_core.log_error (SQLCODE,SQLERRM,'WEB problem u wizzardu odabirta testa');
        RAISE;
    END;Bold underline call makes error. When I return ":TEST_ID" instead this function - all OK! LOV is valid and exist on page 6.
    Image of complete page 7 is:
    http://i2.tinypic.com/x4n5uf.png
    Variables ("P7_TIP_TESTA" and "P7_VRSTA_TESTA") assigned in previous process are used on Page 7 in "Display as Text (does not save state)" label part of items:
    <br>P7_TIP_TESTA is used in "P7_TIP_TESTA_DISPLAY": http://i1.tinypic.com/x4n6af.png
    <br>P7_VRSTA_TESTA is used in "P7_VRSTA_TESTA_DISPLAY": http://i2.tinypic.com/x4n6fb.png
    Hope this will be enough to get the point.
    THX for your time

  • Horizontal radiogroup with HTMLDB_ITEM.radiogroup

    How can I render a horizontal radiogroup when I use
    HTMLDB_ITEM.radiogroup(1,rightid,'',description) in an SQL region ?
    Thanks Tobias

    Hi,
    Maybe I do not understand correctly your requirement.
    But for testing try create new page and report from below select, if it what you looking for
    select htmldb_item.radiogroup(1,rownum) " ",
    htmldb_item.hidden(2,p.state) state,
    city,
    country
    from zonesBr,Jari

  • Htmldb_item.select_list_from_query

    Hi, I am running into character or string buffer too small issue when I use
    htmldb_item.select_list_from_query or htmldb_item.select_list_from_LOV due to the list being a long one.
    Does anyone have a way to overcome this ?
    Thank you.

    I'm requesting for a workspace.........
    Here;s the code while waiting, maybe it's a quick fix.
    Basically, when I take off LEVEL4, I do not get the buffer string error.Once I add this field in, the error comes back.
    This field is the same as LEVEL1, LEVEL2, LEVEL3.
    Code below :
    select wwv_flow_item.hidden(1,bud.budget_code_id) BID,
    wwv_flow_item.display_and_save(2,bud.company,5) CO,
    wwv_flow_item.display_and_save(3,bud.region,5) RG,
    wwv_flow_item.display_and_save(4,bud.cost_center,5) CC,
    wwv_flow_item.display_and_save(5,bud.product,5) PROD,
    apex_item.select_list_from_query_xl(6,level1_id,'select object_name , sequence_id from qstadmin.qstgl_object_name@apex_oatst order by object_name') LEVEL_1,
    apex_item.select_list_from_query_xl(7,level2_id,'select object_name, sequence_id from qstadmin.qstgl_object_name@apex_oatst order by object_name') LEVEL_2,
    apex_item.select_list_from_query_xl(8,level3_id,'select object_name, sequence_id from qstadmin.qstgl_object_name@apex_oatst order by object_name') LEVEL_3,
    apex_item.select_list_from_query_xl(9,level4_id,'select object_name, sequence_id from qstadmin.qstgl_object_name@apex_oatst order by object_name') LEVEL_4
    from
    qstadmin.qstgl_budget_code_combo@apex_oatst bud,
    qstadmin.qstgl_object_name@apex_oatst obj1,
    qstadmin.qstgl_object_name@apex_oatst obj2,
    qstadmin.qstgl_object_name@apex_oatst obj3,
    qstadmin.qstgl_object_name@apex_oatst obj4
    where bud.level1_id = obj1.sequence_id (+)
    and bud.level2_id = obj2.sequence_id (+)
    and bud.level3_id = obj3.sequence_id (+)
    and bud.level4_id = obj4.sequence_id (+)
    --and bud.level5_id = obj5.sequence_id (+)
    --and bud.level6_id = obj6.sequence_id (+)
    and bud.company like decode(:P21_COMPANY,'%null%',bud.company,:P21_COMPANY)
    and bud.region = decode(:P21_REGION,'%null%',bud.region,:P21_REGION)
    and bud.cost_center like nvl(:P21_COST_CENTER_BEGINS,decode(:P21_COST_CENTER,'%null%', bud.cost_center,:P21_COST_CENTER))||'%'
    and bud.product = decode(:P21_PRODUCT,'%null%',bud.product,:P21_PRODUCT)
    and nvl(obj1.sequence_id,999) = nvl(decode(:P21_LEVEL1, '%null%',obj1.sequence_id, 0,999,:P21_LEVEL1),999)
    and nvl(obj2.sequence_id,999) = nvl(decode(:P21_LEVEL2, '%null%',obj2.sequence_id, 0,999,:P21_LEVEL2),999)
    and nvl(obj3.sequence_id,999) = nvl(decode(:P21_LEVEL3, '%null%',obj3.sequence_id, 0,999,:P21_LEVEL3),999)
    and nvl(obj4.sequence_id,999) = nvl(decode(:P21_LEVEL4, '%null%',obj4.sequence_id, 0,999,:P21_LEVEL4),999)

Maybe you are looking for

  • Contacts on my iPhone do not show up on my mac

    I can't seem to sync the contacts on my iPhone 5s to the contacts on my mac. I add more contacts on my iPhone than I do while sitting at my desk (mac). I have lots of contacts that will not show up on my mac - but some do. I don't know why, it seems

  • Catching policy file errors in try/catch

    Hi, I have a socket policy server that works just fine. If however the page is loaded and the socket policy server isn't running, I want to be able to catch the error. Here is an example: try{      Security.loadPolicyFile("xmlsocket://127.0.0.1:9876"

  • Win 7 installation probs

    Info, first. Toshiba Satellite L775-S7114 (big box v. of L775-S7111).  Win 7 installed. Now, onto the history (condensed version): Had HDD probs (laptop kept shutting down out of the blue).  Tried to restore HDD to factory defaults (on board recovery

  • Kernel doesn't support ppp

    This is the message I get when using 'pppd call MyInternetProvider' Cannot find this as a module. Installed v 0.6, kernel 2.6.3 IDE I am using 'Peer-to-Peer Dial Up on ArchLinux HOWTO version 3' by Rousian Solomakhin  which is posted to the forum Pac

  • Powerpoint crashing

    Hi, not sure where to post this, but I was wondering if someone could help me with a crash log. I am running Powerpoint 2004 with the latest updates on my intel mac with 10.4.8. Powerpoint is crashing every 10 min or so for no apparent reason. Can an