Apply to a variable to APEX_ITEM. SELECT_LIST_FROM_QUERY

OS = Windows 7 version

Version of DB = 10G

Apex Version = 3.2.1.00.11

Hello

Currently, I'm trying to use apex_item.

I want the order of the SELECT_LIST_FROM_QUERY to display the users at the top of the drop folder.

I created a view named dbv_team_list;

select upper (parties.last) || ' ' || upper(parties.first) || ' - ' || skill.skill_level || ' - ' || team_list.status display
     , team_list.team_list_id return
  from dbx_team_list team_list
     , dbx_users users
     , sfm_common.sct_parties parties
     , dbx_skill_level skill
     , dbx_pay_rate pay_rate
where team_list.user_id = users.user_id
   and users.par_id = parties.par_id
   and team_list.skill_level_id = skill.skill_level_id
   and team_list.pay_rate_id = pay_rate.pay_rate_id
   and team_list.effective_to is null;



I want to use the query named dbv_team_list like this and add an order by (to obtain the registration of the user logged on to appear at the top of the list);

select display, return from dbv_team_list order by (case return when 3 then 0 else 1 end) asc



I formed what follows as a test to see if I need work and it does.

SELECT APEX_ITEM.SELECT_LIST_FROM_QUERY(12,NULL,'select display, return from dbv_team_list order by (case return when 3 then 0 else 1 end) asc') "Name"
  FROM DUAL





I created something called P19_USERNAME to store the value of the column in the view named «BACK» This value is a number.

But when I try to put a variable in the code it returns an error. The following text shows what I tried so far and everyone here is the error code returned.

Example 1

SELECT APEX_ITEM.SELECT_LIST_FROM_QUERY(12,NULL,'select display, return from dbv_team_list order by (case return when :P19_USERNAME then 0 else 1 end) asc') "Name"
  FROM DUAL





error report:

ORA-06550: line 1, column 152:

PL/SQL: ORA-00932: inconsistent data types: expected NUMBER obtained TANK

ORA-06550: line 1, column 7:

PL/SQL: SQL statement ignored

Example 2

SELECT APEX_ITEM.SELECT_LIST_FROM_QUERY(12,NULL,'select display, return from dbv_team_list order by (case return when NV('P19_USERNAME') then 0 else 1 end) asc') "Name"
  FROM DUAL

Failed to parse the SQL query:

ORA-00907: lack of right parenthesis

Could someone tell me if this is possible and how would I make the code so it's works.

Concerning

Ben

Benton says:

But when I try to put a variable in the code it returns an error. The following text shows what I tried so far and everyone here is the error code returned.

Example 1

  1. SELECT APEX_ITEM. SELECT_LIST_FROM_QUERY (12, NULL, "Select display, return from dbv_team_list by (case back when: end P19_USERNAME of another 1 then 0) CSA '") 'name '.
  2. OF THE DOUBLE

error report:

ORA-06550: line 1, column 152:

PL/SQL: ORA-00932: inconsistent data types: expected NUMBER obtained TANK

ORA-06550: line 1, column 7:

PL/SQL: SQL statement ignored

APEX are "you typed": all element values are of type VARCHAR2. The SQL CASE expression requires that the original expression and comparison expressions are of the same type. Here, the original expression seems to be a NUMBER, or the comparison of the expressions must also show NUMBERS. The APEX P19_USERNAME element is a VARCHAR2, so it must be explicitly converted or accessible using the function NV:


SELECT APEX_ITEM.SELECT_LIST_FROM_QUERY(12,NULL,'select display, return from dbv_team_list order by (case return when to_number(:P19_USERNAME) then 0 else 1 end) asc') "Name"
  FROM DUAL


Example 2

  1. SELECT APEX_ITEM. SELECT_LIST_FROM_QUERY (12, NULL, "Select display, return of the order of dbv_team_list (case back when NV('P19_USERNAME') then 0 1 other end) CSA") 'name '.
  2. OF THE DOUBLE

Failed to parse the SQL query:

ORA-00907: lack of right parenthesis

Quotes inside strings must be escaped by doubling them:

SELECT APEX_ITEM.SELECT_LIST_FROM_QUERY(12,NULL,'select display, return from dbv_team_list order by (case return when NV(''P19_USERNAME'') then 0 else 1 end) asc') "Name"
  FROM DUAL;

However, the best approach when dealing with strings containing code is to use the alternative quoting mechanism:

SELECT APEX_ITEM.SELECT_LIST_FROM_QUERY(12,NULL,q'{select display, return from dbv_team_list order by (case return when NV('P19_USERNAME') then 0 else 1 end) asc}') "Name"
  FROM DUAL;

Also suggest you use does not RETURN as a means of identification as it is a keyword in PL/SQL.

Tags: Database

Similar Questions

  • apex_item.select_list_from_query in PL/SQL?

    Hello

    I use APEX 4.0 on a 10g database.

    I need to use the apex_item.select_list_from_query function in a PL/SQL program.
    variable varchar2(1000);
    SELECT apex_item.select_list_from_query(1,sel_name,'SELECT sel_name FROM user_selection WHERE id = (SELECT id FROM users WHERE upper(login)=upper(:APP_USER))','style="width:100%;margin-bottom:5px;"','YES','%',' ',null,'label') INTO variable FROM user_selection;
    htp.p(variable);
    Who works only the query returns many rows:
    ORA-01422: exact fetch returns more than requested number of rows
    If I add a where condition to not return clause that one line, it works.
    If I use a cursor, then I loop through the records, it works but I get several drop-down lists.

    Can someone tell me how to use this function in PL/SQL?

    Thank you.

    Yann.

    This is the current or default value. If an existing value of the database is necessary, then there must be a clause where clause to limit the extraction of a line, as you mentioned, for example

    declare
      l_sel_name varchar2(30);
    begin
      SELECT sel_name INTO l_sel_name FROM user_selection WHERE ...
      htp.p(
        apex_item.select_list_from_query(
            1
          , l_sel_name
          , 'SELECT sel_name FROM user_selection WHERE id = (SELECT id FROM users WHERE upper(login)=upper(:APP_USER))'
          , 'style=""'
          , 'YES'
          , '%'
          , ' '
          , null
          , 'label'));
    end;
    
  • Column Collection reference in APEX_ITEM.select_list_from_query

    I'm now making reference to a column in my collection in the APEX_ITEM.select_list_from_query function. Below, you can see where I tried this, but I get just an error. Any help would be greatly appreciated, thank you.

    APEX_ITEM.select_list_from_query (9, c005,'SELECT WORKLOAD_INDICATOR, wi.) APEX_DATA WORKLOAD_INDICATOR_ID. NURSE_STAFF_WORKLOAD_INDICATOR wi JOIN APEX_DATA. NURSE_STAFF_INDICATORS_WEIGHT w ON wi. WORKLOAD_INDICATOR_ID = w.WORKLOAD_INDICATOR_ID WHERE DEPT_ID = V ("P1_DEPARTMENT") AND (assets = "Y" GOLD wi.) WORKLOAD_INDICATOR_ID = ' | C005. ) GROUP OF WORKLOAD_INDICATOR, wi. Order WORKLOAD_INDICATOR_ID of sum (w.weight) DESC', NULL, 'YES', NULL, 'Select a workload indicator')

    What value there c005? If it is empty, then this might explain the error.

    If this call to apex_item is part of a larger selection, then show the selection complete. Since you concatenate c005 value in the string without any assertion there are chances of surprising characters, like whites.

    Maybe you need to encapsulate a case this whole thing all about expression in order to eliminate cases where c005 has no correct value.

    As

    cases where c005 is null or no regexp_like (c005, "\D") then

    APEX_ITEM.select_list_from_query (9, c005,'SELECT WORKLOAD_INDICATOR, wi.) APEX_DATA WORKLOAD_INDICATOR_ID. NURSE_STAFF_WORKLOAD_INDICATOR wi JOIN APEX_DATA. NURSE_STAFF_INDICATORS_WEIGHT w ON wi. WORKLOAD_INDICATOR_ID = w.WORKLOAD_INDICATOR_ID WHERE DEPT_ID = V ("P1_DEPARTMENT") AND (assets = "Y" GOLD wi.) WORKLOAD_INDICATOR_ID = ' | C005. ) GROUP OF WORKLOAD_INDICATOR, wi. Order WORKLOAD_INDICATOR_ID of sum (w.weight) DESC', NULL, 'YES', NULL, 'Select a workload indicator')

    cases of termination

  • Binds inside the apex_item.select_list_from_query

    Hello

    Unable to find anything to answer my question...
    Maybe someone has a tip.

    Is it possible to use references to link inside of the where the statement of a query in
    apex_item.select_list_from_query?

    I tried with the # < Columnanme > #-rating but he had no success.

    As seen here
    Re: Bug or what? (SELECT_LIST_FROM_QUERY)

    Denes Kubicek provided an example with #Rownum # as a parameter.
    But I need inside the string query...

    I want to refer to columns of the query to a query in a table as


    Select
    a,
    b,
    c,

    apex_item.select_list_from_query (2, c, ' select x, y of the tab where (z = "#b #") ") sel_col,.

    d,
    e
    FROM MyTable.

    Is this possible?

    Concerning
    Andrée

    Andrée:

    Try this

    select
    a,
    b,
    c,
    apex_item.select_list_from_query (2, c, 'select x, y from tab where (z = ' || b || ')   ) sel_col,
    d,
    e
    from mytable;
    

    CITY

  • Arithmetic applied to a variable

    I'm just back in Captivate development and here is something that I used to know how to do that I have a hard time to recreate. The interaction is simple, the learner suggested a number in a text box, click on submit and the number is multiplied by a static number, and the result is displayed. So far, here's what I can do:

    I can create a variable and the number in the input text box appears on the screen. I can also create a standard action that uses the variable and do the math. I can't find a way for the output to the screen with a click of the submit text box button. Ideas, links, or other suggestions?

    Yes, that's the answer... In the action of the text entry area, I configured: success: run advanced measures then Script: Total who has worked like a champ... Thanks for the comments!

  • How do you define a default value for APEX_ITEM. SELECT_LIST_FROM_QUERY?

    Hi all
    I have the report based on a query

    SELECT distinct apex_item.hidden (1, seq_id), c003 c004, c006, APEX_ITEM c005. SELECT_LIST_FROM_QUERY (6, c020, 'select DISTRIBUTION_NAME, DISTRIBUTION_NAME from the DISTRIBUTIONS',' style = "" ',' YES, ' default here? "," ", null, 'label'") 'BONOU,"NVL (c017, 'SPLIT'), 'Split', SEQ_ID
    OF APEX_collections
    WHERE collection_name = "ARGYLL_INVOICES."
    order of seq_id


    I would like to enter a default value in the APEX_ITEM. SELECT_LIST_FROM_QUERY. I can't make it work.

    Anyone know what I am doing wrong, or suggest an easier way?
    Thank you

    Just as a note, but you want to ensure your APEX_ITEM call is closed. The code snippet you posted isn't complete.

     APEX_ITEM.SELECT_LIST_FROM_QUERY(6,c020, 'select DISTRIBUTION_NAME, DISTRIBUTION_NAME from DISTRIBUTIONS','style="", SEQ_ID   <-- No closing )
    

    In literature - http://www.utoug.org/i/doc/api099.htm - (even if it is not necessarily the easiest to read), he gives this explanation of the syntax:

    APEX_ITEM. () SELECT_LIST_FROM_QUERY
    p_idx in NUMBERS
    p_value IN VARCHAR2 default,
    p_query IN VARCHAR2,
    p_attributes IN VARCHAR2 default,
    p_show_null IN VARCHAR2 default,
    p_null_value IN VARCHAR2 default,
    p_null_text IN VARCHAR2 default,
    p_item_id IN VARCHAR2 default,
    p_item_label IN VARCHAR2 default,
    p_show_extra IN VARCHAR2 DEFAULT)
    RETURN VARCHAR2;

    What you want to watch is p_value to set an initial value. It must come from your data, but you might want to consider doing a NVL or DECODE to replace your default.

    In this case, it would change your query to be:

    SELECT distinct apex_item.hidden(1, seq_id), c003,c004,c005, c006,
          APEX_ITEM.SELECT_LIST_FROM_QUERY(6,c020, 'select DISTRIBUTION_NAME, DISTRIBUTION_NAME from DISTRIBUTIONS','style=""),
          SEQ_ID
      FROM APEX_collections
     WHERE collection_name = 'ARGYLL_INVOICES'
    order by seq_id 
    

    If the value is always NULL, you can use the p_show_null, p_null_value and p_null_text to highlight 'by default'

    SELECT distinct apex_item.hidden(1, seq_id), c003,c004,c005, c006,
          APEX_ITEM.SELECT_LIST_FROM_QUERY(6,NVL(c020,0), 'select DISTRIBUTION_NAME, DISTRIBUTION_NAME from DISTRIBUTIONS','style="",YES, 100, 'Default'),
          SEQ_ID
      FROM APEX_collections
     WHERE collection_name = 'ARGYLL_INVOICES'
    order by seq_id 
    
  • read into the buffer variable published network shared

    I use a shared variable that is published in the network buffer to write data to an RT target and read data buffered by the host application.

    I followed a different behavior regarding data buffering using Variable vs reading read the shared Variable node.

    There is no problem the shared variable node read but using the results of reading variable function of loss of data, such as access without alkaline reserve. I can read only some of my data values.

    I see no difference in access in the buffer in LV2009 help.

    against

    Any help is appreciated

    Christian

    Hi Christian,

    The behavior you describe is because the client side PSP buffering is not applied to the Variable API shared in LabVIEW 2009.  It was a design decision, but eventually, we hope to include this feature in a future version of LabVIEW.  This bug here as you pointed out is the lack of documentation for it.  Corrective Action Request # 202159 has been filed for this issue.

    Let me know if you need assistance working around this issue.

    See you soon,.

  • select_list_from_query using the union

    As a manual, how to have the APEX_ITEM. SELECT_LIST_FROM_QUERY when the query is like
    SELECT 'A' D, 'A' R FROM DUAL UNION ALL
    SELECT 'B' D, 'B' R FROM DUAL UNION ALL
    SELECT 'C' D, 'C' R FROM DUAL UNION ALL
    Please suggest


    Sanjay

    Hello
    >

    select APEX_ITEM.SELECT_LIST_FROM_QUERY(04,NULL,'select 'A' D, 'B' R from DUAL
     union all
     select 'C' D, 'D' R from dual', 'style=""','','YES',' - Select Details - ', 'f04_' || '#ROWNUM#', NULL, 'NO')LR_COURIER from dual
    

    Bracket missing error appears when you run the above code.
    >

    To escape the single quotes shipped like this

    select APEX_ITEM.SELECT_LIST_FROM_QUERY(04,NULL,'select ''A'' D, ''B'' R from DUAL
     union all
     select ''C'' D, ''D'' R from dual', 'style=""','','YES',' - Select Details - ', 'f04_' || '#ROWNUM#', NULL, 'NO')LR_COURIER from dual
    

    See you soon,.

    PS: Or use the q! Construct

    select APEX_ITEM.SELECT_LIST_FROM_QUERY(04,NULL,q'!select 'A' D, 'B' R from DUAL
     union all
     select 'C' D, 'D' R from dual!', 'style=""','','YES',' - Select Details - ', 'f04_' || '#ROWNUM#', NULL, 'NO')LR_COURIER from dual
    

    Published by: Dominique 21 August 2012 16:19

  • By subtracting the Cp6 system variable?

    Hi all

    I shows the progress of the slide using the system variable $$cpInfoCurrentSlide$ $ $ $rdinfoSlideCount$ $

    But since I have a few slides 'ghosts' that are not actually part of the lesson (help of slides, etc.), I don't want to count them as part of the total number of slides.

    Unfortunately, Captivate is arithmetic applies to system variables (i.e. $$cpInfoCurrentSlide$ $ $$ rdinfoSlideCount$ $-3). That would make life so much easier in this case and many others.

    Anyway, I've tried (and failed) to create a new variable, assign the value of $$rdinfoSlideCount$ $ for the new variable and then subtract 3 from the new variable. Can someone explain please the right way to do this? Basically, I want to just display the value of $$rdinfoSlideCount$ $ minus 3.

    I couldn't find a close reference to what I'm looking for...

    http://forums.Adobe.com/message/4108450

    Anyone?

    Thank you

    Hello Doug,

    I agree, I wish that we could simply add expressions to variables as you suggested.

    Stem is correct on how it is done, but allow me to expand on his position.

    Steps to follow:

    1. go in project/Variables and create a new variable of user (a name that makes sense)

    2 save it (you don't need anything to other filled)

    3. go in Advanced Actions... and create a Standard Action and give it a name of Action that makes sense

    4. Add a new action, in the first column [action type] select Expression, in the columns section, select the user variable created in step 1 = variable (choose cpInfoSlideCount), select '-' and then select literal and enter the total number of slides that you do not want to remove the County.

    5. save it

    6. to view this new value, you must go to the slide and select Action: enter: perform advanced Actions and select Script (it is the name of your tip in step 3 Action

    7. Insert a text caption and add some text you need and then add select Insert Variable, which is the name chosen in step 1

    Fact.

    I hope I captured all the steps. I'm not near a computer and I'm half asleep. That's all for tonight.

    Take care of all, Shawn

  • Apex_item.text dynamic item add or subtract value

    I have a report that creates dynamic items using the package apex_item, like this:
    select id
    ,      apex_item.hidden(1,id) 
    ,      label
    ,          decode(typ_id,
                        1, apex_item.text(p_idx=> 2, p_value=> null, p_attributes=> 'class="number"') || 'num', /*this should be a numberic field, isn't working jet*/
                        2, apex_item.text(2),
                        3, apex_item.select_list_from_query(p_idx=> 2, p_query=> 'select label, id from list where prop_id = ' || id, p_show_null=> 'NO'),
                        4, apex_item.date_popup(2, 0),
                        5, apex_item.text(2,'0') || '<a href="f?p=&APP_ID.:1:&SESSION."><img src="#WORKSPACE_IMAGES#add.gif"/></a> <a href="f?p=&APP_ID.:1:&SESSION."><img src="#WORKSPACE_IMAGES#substract.gif"/></a>',
                        descr
                   ) value
    from properties 
    order by id
    In the latter type of element (where typ_id is 5) I want to have a textfield allowing only numberic values. If the user clicks on the image "add.gif" the value of the element must be added by 1, and when the user clicks on 'substract.gif' value must be lowerd by 1. How can I make this work? The images can be replaced by another element, if necessary.

    Hi Mir,

    My apologies for the restructuring of the query using case. I hope this would help you. The code could be much simpler if you could take the JS logic to a JS function on the page.

    http://Apex.Oracle.com/pls/Apex/f?p=44973:2

    See you soon
    Ligon
    PS: The code for formatting here has been driving me crazy so I have to put it in a page to show you :)

  • Question in presentation Variable

    Hello world

    I created a variable for the week and the year and I'm trying to merge them to apply as a filter.

    To do this, I have converted the week num in char type. The week so not 1, 2, 3.12, 13 will be displayed as 01,02, 03... 12, 13.
    so I can add concatenate them with year and together there filter for a report.

    Reason for all this is. I need to display the results to a report based on the selection of values prompt like

    of the year of the week for the week year
    2010 50 2011 05

    Fact table and calendar are joined by the date fields.

    When the prompt values are selected and applied to the variable of presentation rather than spend '05' it's just by the way of "5". How to get this done. Are also tell me the work around to filter with cookers.

    I hope that I am clear,

    Thanks in advance

    Concerning
    Sandeep

    Hello

    I tried in my environment and syntax '2011' | right ("0" |) Cast (50 as CHARACTER (2)), 2) works very well.

    You can try with the integer data type:

    Cast ((2011*100+PRESENTATION_VARIABLE) as char (6)).

    Kind regards
    Gianluca

  • Error buffer using APEX_ITEM

    I have this query on a report of the apex:

    Select APEX_ITEM. TEXT (1, ATRIBUTO, 30) 'attributes '.
    ATRIBID
    , VALOR 'real value '.
    APEX_ITEM. SELECT_LIST_FROM_QUERY (2
    ATRIB_VLR_ID
    ,' choose VALOR
    ID
    of ATRIBBVAL
    where ATRIB_ID = ' | ATRIBID | »
    order of valor') "answers".
    of APEX_TEMP
    where PRODUCT =: P3_PRODUCT
    and APP_SESSION =: APP_SESSION.

    I have a lot of products that query runs reasonable.
    But I also have a group of products that when I want to run, it gives the error:

    error report:
    ORA-06502: PL/SQL: digital or value error: character string buffer too small

    When I reduce the number of lines of response (see example below) in the SELECT_LIST_FROM_QUERY the error does not occur.

    Select APEX_ITEM. TEXT (1, ATRIBUTO, 30) 'attributes '.
    ATRIBID
    , VALOR 'real value '.
    APEX_ITEM. SELECT_LIST_FROM_QUERY (2
    ATRIB_VLR_ID
    ,' choose VALOR
    ID
    of ATRIBBVAL
    where ATRIB_ID = ' | ATRIBID | »
    and rownum < = 90
    order of valor') "answers".
    of APEX_TEMP
    where PRODUCT =: P3_PRODUCT
    and APP_SESSION =: APP_SESSION.

    Any sugestion to help me?

    In this case, the apex I use is 3.2.1 and 11.2.0.1.0 data base.

    The apex_item.select_list_from_query method returns a VARCHAR2 value that has a maximum of 4000 bytes size when it is retrieved in a SQL query.

    Pass to the apex_item.select_list_from_query_xl method returns a CLOB value up to 32 KB.

  • ID of the game with SELECT_LIST_FROM_QUERY

    Hello

    I use ApEx 4.0 on Oracle 10 g.

    I created a ListBox using SELECT_LIST_FROM_QUERY:
    apex_item.select_list_from_query(1,v_loggus_name,'SELECT loggus_name FROM USER_SELECTION WHERE loggu_id ='||v_loggu_id,'style="width:100%;margin-bottom:5px;"','NO','P3_CART_LIST','label');
    In the documentation , we read: "ID attribute for the < input > tag HTML p_item_id.".

    But a selection list is a < select > tag, not a < input > tag...

    If the ID is not set when you look at the HTML code.

    I tried to use instead:
    apex_item.select_list_from_query(1,v_loggus_name,'SELECT loggus_name FROM USER_SELECTION WHERE loggu_id ='||v_loggu_id,'id="P3_CART_LIST" style="width:100%;margin-bottom:5px;"','NO',null,'label');
    But it doesn't work when I try to call an ajax like this (use my application process: P3_CART_LIST):
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=Add_to_cart',0);
    get.add('P3_CART_LIST','a_value');
    = > ERR-1002 cannot find the item for the "P3_CART_LIST" element ID "349 enforcement.

    Any idea?

    Thank you.

    Yann.

    Hello

    You cannot set the session state for items you create with APEX_ITEM.
    For example, use APEX_APPLICATION. G_X01 to pass the value to the application process.

    function myf(pMyVal){
     var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=Add_to_cart',0);
     get.addParam('x01',$v(pMyVal));
    .......
    

    Upon request as

    .....
    INSERT my_tbl(my_col1)VALUES(APEX_APPLICATION.G_X01);
    .....
    

    Kind regards
    Jari

  • Binding type variable of function return type?

    Hi, is it possible to bind a type variable to a function return type, so that changes in type of variable according to the function return type definition?
    Something like what is happening with TYPE and % ROWTYPE.

    Thank you

    Veverke wrote:
    Hi, is it possible to bind a type variable to a function return type, so that changes in type of variable according to the function return type definition?

    Well, not directly. However, if the function returns SQL declared of type you could:

    1. create a dummy cursor that selects the function of double
    2. create a dummy record variable dummy cursor %
    3. create your variable or dummy record attribute type:

    SQL> desc f1
    FUNCTION f1 RETURNS VARCHAR2
     Argument Name                  Type                    In/Out Default?
     ------------------------------ ----------------------- ------ --------
     P_NUM                          NUMBER                  IN
    
    SQL> declare
      2      desired_variable f1%type;
      3  begin
      4      desired_variable := 1;
      5  end;
      6  /
        desired_variable f1%type;
                         *
    ERROR at line 2:
    ORA-06550: line 2, column 22:
    PLS-00206: %TYPE must be applied to a variable, column, field or attribute, not to "F1"
    ORA-06550: line 2, column 22:
    PL/SQL: Item ignored
    ORA-06550: line 4, column 5:
    PLS-00320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 4, column 5:
    PL/SQL: Statement ignored
    
    SQL> declare
      2      cursor dummy_cursor is select f1(1) f1 from dual;
      3      dummy_record dummy_cursor%rowtype;
      4      desired_variable dummy_record.f1%type;
      5  begin
      6      desired_variable := 1;
      7  end;
      8  /
    
    PL/SQL procedure successfully completed.
    
    SQL>  
    

    SY.

  • redirect apex_item.select_list

    Hello

    I try to redirect APEX_ITEM. SELECT_LIST_FROM_QUERY in this way:
    ...
    APEX_ITEM.SELECT_LIST_FROM_QUERY(51-num, '',
                   'select distinct level_name display_value, level_name return_value from '
                   ||i.view_name,
                            'onchange="location.href=''f?p=100:4:5187140117232985:LVLCHG:NO::LVL:''+this.options[selectedIndex].value;"',
                   'no',
                   '','','LVL','','')
    ...
    With onchange in the p_attributes page redirects but it cannot retrieve the selected value.
    He will raise an error: ERR-1002 cannot find the item for the item 'LVL' ID in the application "100".
    However I put the ID to LVL in the select list and in the url too.

    Can you help me solve this problem?
    Thank you!

    Hello:

    What exactly are you trying to do? It seems to me that you are trying to redirect to the same page that defines the list select using the apex_item API. To pass a value in the URL of the target for the value, I think that must be a page/app APEX element.

    CITY

Maybe you are looking for

  • IPhone 6 do not backup

    IPhone 6 do not save, visited account it has not saved in 5 months. Tried the back up option now seems to be back up only to return a few hours later and no return upward.   I also tried to save on the computer and the computer keeps asking me to upd

  • Interconnected command button

    Hi guys,. I am doing an application that uses 3 separate buttons for controlling the amplitude. Let's say that when I press A, the amplitude is 2, when I press B, the amplitude is 4 and a button will turn off automatically. And so on for the C button

  • Missing title bar in Windows 7

    My title bar on applications disappeared when it is in the original format, so I don't see the title or the restore/minimize/maximize/exit buttons. I have to point the cursor at the top of the screen, then double-click on it to get the smaller versio

  • Why my windows live mail takes 5 minutes to start?

    When I start windows live mail, the window 'departure' appears and sits there with the 'Dervish' va - more or less - for 5 minutes. If I open the Task Manager there is no windows don't live showing mail application, but there is a process that shows

  • Apply the Transition to many Clips at once

    Not sure if this is the place, but I edit a large number of videos of dance with multi tracks.  I cut the upper layers of the dissolution of one track to the other.  It is time to apply the same transition virtually hundreds of times in this scenario