APEX_ITEM. SELECT_LIST_FROM_LOV does not assigned value

Hello.

I use Apex 4.1.0 on 10.2.0.5 Oracle and Oracle application server (mod_plsq).

I've manually created a tabular presentation (in other words, it is not through the Assistant to the Apex) from the collections. This is the query:
select apex_item.checkbox2(10,
                           seq_id,
                           'onclick="radio_highlight_row(this,' || '#ROWNUM#' || ')"',
                           null,
                           ':',
                           'f10_' || '#ROWNUM#'
                          ) delete_row,
        apex_item.hidden (11, seq_id) || apex_item.text (12, c006, 30, 30, 'style="width:140px"', 'f12_' || '#ROWNUM#') display_text,
        apex_item.checkbox (13, '#ROWNUM#', null, decode(c007,'CHECKED','#ROWNUM#'),':','f13_' || '#ROWNUM#') defaulted,
        apex_item.hidden (14, c014) || apex_item.hidden (15, c020) || apex_item.select_list(16, null, 'Active;Y,InActive;N', 'style="color:darkred;"', 'NO', '%NULL%', '%', 'f16_' || '#ROWNUM#', NULL, 'NO') active_status
  from apex_collections
where collection_name = 'COL_CHOICES'
union all
select apex_item.checkbox2(10,
                           null,
                           'onclick="radio_highlight_row(this,' || '#ROWNUM#' || ')"',
                           null,
                           ':',
                           'f10_' || '#ROWNUM#'
                          ) delete_row,
        apex_item.hidden (11, null) || apex_item.text (12, null, 30, 30, 'style="width:140px"', 'f12_' || '#ROWNUM#') display_text,
        apex_item.checkbox (13, '#ROWNUM#', null, null, ':','f13_' || '#ROWNUM#') defaulted,
        apex_item.hidden (14, null) || apex_item.hidden (15, null) || apex_item.select_list(16, null, 'Active;Y,InActive;N', 'style="color:darkred;"', 'NO', '%NULL%', '%', 'f16_' || '#ROWNUM#', NULL, 'NO') active_status
  from dual
 where :P86_RADIO_ADD_ROW = '1'
CONNECT BY LEVEL <= 1
The column titled "active_status" is defined using the APEX_ITEM function. SELECT_LIST.

I have a button 'Add a line' set which sets the variable to the P86_RADIO_ADD_ROW page to '1'. Clicking causes button submit a page which in turn causes a new line to appear in my tabular form/report.

Clicking the button causes submit a page that is running a plsql process that records the data of my tabular form to the COL_CHOICES collection. The tabular presentation is then rendered again with a new line appears.

This new line is displayed with 'active_status', 'active', as it should.

Unfortunately, every time I change this field to 'Inactive' in an existing line and then click on my button 'Add Row', the tabular presentation is displayed again with a new line, but the modified line was still 'Active' for the parameter.

I checked the values in my collection of COL_CHOICES to ensure that the field "active_status" actually changed from 'Active' to 'Inactive' for the existing line or modified. And he did. The row changed in the collection shows 'Inactive' as a value, even if the page displays "Active" for the value.

So, how can I make this menu drop-down see the real value?

I have looked at the APEX_ITEM docs and have tried different combinations of the parameters but nothing works.

Cruelly, I'd appreciate any help on this.

Thank you.

Elijah

EEG wrote:
Hello.

I use Apex 4.1.0 on 10.2.0.5 Oracle and Oracle application server (mod_plsq).

Unfortunately, every time I change this field to 'Inactive' in an existing line and then click on my button 'Add Row', the tabular presentation is displayed again with a new line, but the modified line was still 'Active' for the parameter.

I checked the values in my collection of COL_CHOICES to ensure that the field "active_status" actually changed from 'Active' to 'Inactive' for the existing line or modified. And he did. The row changed in the collection shows 'Inactive' as a value, even if the page displays "Active" for the value.

So, how can I make this menu drop-down see the real value?

I have looked at the APEX_ITEM docs and have tried different combinations of the parameters but nothing works.

The second parameter to apex_item.select_list is the value of the control. Your code has

apex_item.select_list(16, null, 'Active;Y,InActive;N', 'style="color:darkred;"', 'NO', '%NULL%', '%', 'f16_' || '#ROWNUM#', NULL, 'NO') active_status

This will always be the NULL value and default to the first option 'active '. You must use the appropriate column of the collection here instead of NULL:

apex_item.select_list(16, c021, 'Active;Y,InActive;N', 'style="color:darkred;"', 'NO', '%NULL%', '%', 'f16_' || '#ROWNUM#', NULL

Tags: Database

Similar Questions

  • Last edited DataGrid field does not show value

    I use an editable datagrid when the user types in their data. When they click on it does not show the last value they came outside the grid of data. The value is there, and if you click on this field once again it will appear. If you click outside the field for the second time, this time, the value remains displayed. How can I get the value is displayed the first time the datagrid control loses focus?

    I tried

    dataInput.addEventListener (FocusEvent.FOCUS_OUT, updateCell);

    function updateCell(e:FocusEvent):void {}
    dataInput.drawNow ();
    }

    This is not the default behavior.  you do something to cause this problem.

    If you don't see everything you do that could cause this problem, create a new fla with a datagrid control, fill and make it editable.  There should be no code at the level of the grid of data other than the assignment of content.  do you see a problem?

  • structure of the event recorded does not change value

    I have a VI that communicates with an FPGA via a telnet interface.  I have several Boolean controls on the front panel.  When you click a control, it sends a write command on the face i in telnet to the FPGA.  Similarly, if a process in the FPGA himself wrote the same registry (that control written when I clicked on it), an order is generated in the FPGA and returned to the VI and the control (via a local variable) lights or unlights accordingly (based on value).  In other words, these controls are read-write...

    It's all workers, except for one important thing.  I have the code that runs through a structure of event whenever the value of the control changes.  I can see that this code executes in fact when I click on the control via the front panel.  HOWEVER - when something is generated in the FPGA finally changes the value of the control, the structure of the event does not, even if I see the value of the change of control on my front.

    A specific example, I have a control named CLIENT_LB.  When I click on CLIENT_LB, I see it lights up, and I see the event structure code run.  Now, if I have the FPGA process to set CLIENT_LB to 0, I see unlight on my front, but does not run the code structure of the event.  I have probes in place who have checked the associated local variable CLIENT_LB evolving impact of values.  The structure of the event reads: 'CLIENT_LB': value change.

    Shouldn't an event structure "value change" run when the value changes, regardless of whether if it happened manually (i.e. me by clicking on the control) or automatically (i.e. the FPGA written in VI and changes the value of the control)?

    The VI is great, and you would not be able to test it in any case unrelated to the material, to remedy that I've attached 2 screenshots, I have described below.

    1. This is where the string from the FPGA analysis occurs.  The chain between the sub - VI, and then the data chain part is hidden to determine if the Boolean value of the control is true or false.  I put a probe on CLIENT_LB, and I see that as the FPGA changes the value of the register, CLIENT_LB passes from false to true as a result.  I checked this several times.

    2. it is the structure of the event.  This code runs when I click on CLIENT_LB on my face, but does not run when the peak CLIENT_LB #1 local variable is changed.

    Writing to variables never fires events to "change the value. If writing should raise this event, use the property "Value (follow the signs).

    Norbert

  • Windows 7 does not assign a drive letter

    Windows does not automatically assign a drive letter to one of my discs usb hard or flash drives, if I go into disk management utility disk is still sitting there in line and assets and all I have to do is right click and assign a drive letter and everything works as usual. However, it is super annoying and there is no reason windows should not do this for me. I assure you there is no disc corrupt driver problems, jumpers or whatever it is out of whack, I'm a computer programmer myself. I just never fell on the situation and could not find an answer after looking here for 20 minutes and Googling autour and check other sources.

    Thanks for the help

    Open the command prompt

    type diskpart

    automount enable

    problem solved :)

  • How to check that the variable 'does not contain' value?

    Hello

    I use CP 7.0.1.237.

    We want to use the widget text box for a custom quiz and verify a response. While we understood how to check the existence of certain key words, we are not able to find a way to check that the content does NOT contain certain keywords. For example, we want to ensure that the text entered in this widget does not contain a "Transformation" and "Non-compliant.

    Is this possible at all?

    Thank you

    Anthony

    Anthony, it works perfectly. Created this conditional action with 4 decisions. I used the interaction of training text scrolling in CP8 (because now you can control the variable - which means I might have a Reset button):

    First decision:

    Second decision (the third is similar to the following)

    Fourth and final decision

    I put the variable words (v_first... v_fifth), it's a reflex I use since I shared actions that much. The variable associated to the ETB (you can now reset an empty var in CP8) is v_TextArea and the Boolean value that will decide if positive feedback (StarOK) should be shown is v_TA_OK. If you want to display a negative feedback, put this in the ELSE part of the final decision.

    FYI: it took 15 minutes, including the creation of assets and the variables and tests. Personally I would have needed more time to do it in JS, but that's just me.

    Lieve

  • In cascade LOVs (APEX 4.1) problem, using in the report does not define values

    Hello

    I use APEX 4.1.0.00.32 and I have a simple report as

    SQL :*

    SELECT * in the region
    Region WHERE the like '% "| P3_REGION | » %'
    and country like "%" | P3_COUNTRY | » %'
    and the city like '% "| P3_CITY | » %'

    Elements:*.

    P3_REGION:
    Select a separate region as d, r of the region of the region

    Display the Null value: YES
    Value null, display value: - Select -
    Return value of NULL: + 0 +.

    P3_COUNTRY:
    Select distinct country as d, r of the region of the country where region =: P3_REGION

    Display the Null value: YES
    Value null, display value: - Select -
    Return value of NULL: + 0 +.
    Cascading LOV Parent article (s): P3_REGION

    P3_CITY:
    + select distinct city, city as the region r, whose country =: P3_COUNTRY

    Display the Null value: YES
    Value null, display value: - Select -
    Return value of NULL: + 0 +.
    Cascading LOV Parent article (s): P3_COUNTRY


    The LOVs work very well and the correct values are displayed if cascade through them

    So, I want to the last step to filter the report with the values that were selected in the lovs. And that I does not.
    I tried to add a button with the SUBMISSION of the page. After choosing values in all the LOVs and by clicking on the button SUBMIT page supports, alle LOVs are disabled (with value - select-) and the report shows all lines.
    I tried to change the "redirecting to Page 3" button and setting the values P3_REGION, P3_COUNTRY, P3_CITY P3_REGION., P3_COUNTRY. & P3_CITY. but without success.
    I tried to use the 'Page Action time value' parameter to 'Validate' or 'redirect and set' for all the element LOVs or only the last element LOV, but then the cascade of the LOVs is not working properly and the report does not change.

    I am confused as I Don t know what I can do so far. I think this should be a condition easy limit/filter the report with the values in the LOVs.
    In addition, it should be possible to choose only the LOV region and then limit the report with this region (not select country and city)

    Thanks in advance!

    I had a problem similar to a previous version, fixed when I updated element Source value or Expression (the section of the Source) to himself.

    I mean:
    for the P3_REGION, defined as & P3_REGION element.
    for the P3_COUNTRY, defined as & P3_COUNTRY element.
    for the P3_CITY, defined as & P3_CITY element.

    It will be useful.

  • [6.0.344] bug - BlackBerryContactList.choose does not return values

         BlackBerryContact bbContact = null;     BlackBerryContactList contacts = null;           try           {               contacts = (BlackBerryContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);           }           catch(PIMException e)           {               Dialog.alert("Couldn't open contacts list.  PIM.openPIMList() threw " + e.toString());                  return;                            }
    
               Object choice = contacts.choose();           if(choice instanceof BlackBerryContact)           {               bbContact = (BlackBerryContact)choice;           }
    

    Central trackpad key does not work on OS 6.0.344 (9700) with this code.

    Two questions:

    (1) the first is that it is a leaked OS (not supported by RIM) so this problem can be solved once an official OS came out for the device.

    (2) this problem is better suited for the developer Issue Tracker.

    http://supportforums.BlackBerry.com/T5/Java-development/developer-issue-tracker/TD-p/271768

  • Zoom on chart to the report - filter does not report value

    Hi, I created a graphic for the type of item.  I would like to click the chart element, and it brings me to the report point but filtered by item type.  Currently, he clicks through but not filtered by type of item but pulls the whole report.

    I'm following the general syntax:

    The syntax of the URL of a link is:

    f? p = App:Page:Session:Request:Debug:ClearCache:itemNames:itemValues:PrinterFriendly

    My specific link of the syntax is:

    Select ' f? p = & APP_ID.:2 :'|| : app_session |': P2_hw_type_id: "link,

    HT. Model label,.

    Count (h.ID) value1

    from h, hw_type ht hw

    where h.hw_type_id = ht.id

    Ht.model group

    Where am I missing the operation passes the value clicked in the report?

    TIA

    Pass information through the parameter is only half of the work, as you have discovered you need to add a clause where clause to limit the rows.

    If you want to return the results, if the value is not given, a solution is to use a where clause such as clause:

    where mycol. = coalesce (: P1_PARAM, mycol.)

  • AE CC 2014 - Wiggle Expression do not assign values similar to the scale

    So I just noticed that the wiggle expression no longer works how it is used for. I found an article, explaining the changes in the algorithm of noise used for expression wiggle what is new and changed in the 2014 update after effects CC |  After the effects of interest area and speaks of the ""fixed a bug in the implementation of the Perlin noise algorithm "section. "

    I don't know if that is what is at the origin of the problem, but let me explain.

    I'm just add a wiggle on the scale of the object expression.

    Wiggle (5.50);

    That would normally scale settings of the object with the same value. It would be so (100 100) to (125 125) and so on.

    Now however with CC2014 expression is the allocation of the different values for each value so get (125, 115) or something even if the button "constrain proportions" is activated.

    So I tried to cheat it:

    Temp = Wiggle (5.50);

    [temp [0], temp [1]];

    Again you have different values, even if I insert the same variable?

    Temp = Wiggle (5.50);

    Temp;

    Always had different values... I do not understand someone can help?

    Try this. Add a slider control of expression to the layer with the following expression:

    Wiggle (5: 50)

    Then add this expression to your scale property:

    w = value [0] + effect ("Slider Control") ("Slider");

    [w]

    The problem exists because wiggle will act on all of the values in the table of the property you have selected independently. It was therefore put up something with a single value as a slider control of expression.

  • Procedure does not return values

    Hello

    I have a stored procedure that has varchar2 as IN and OUT parameters sys_recursor.
    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          emp.dept_no%TYPE,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         SELECT     '''' || REPLACE(my_values, ',', ''',''') || ''''
           INTO     quoteValues
           FROM     DUAL;
    
         OPEN p_cursor  FOR
              SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     dept_no IN (quoteValues);
    END check_values;
    /
    The problem, I do face is in where condition, if I give quoteValues it don't get me all the records when I run the sqlplus procedure, but if I give
    my_values he get me folders. I get IN settings such as the 9856,9712,8723, so first I put single quotes around the emp_no and pass to the where condition.

    How can I solve this problem?

    Thank you

    user20090209 wrote:
    So why then is not running? If I hard code the values above in where condition it runs very well.

    Watch your WHERE clause:

    WHERE dept_no IN (quoteValues);

    Expressions how many there are in the list? A straight, single. So regardless of the value of quoteValues, this INTEGER value is compared to dept_no. What you're trying to do can be done through dynamic SQL LIKE operator or collection.

    Dynamic SQL:

    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          emp.dept_no%TYPE,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         OPEN p_cursor  FOR
              'SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     dept_no IN (' || my_values || ')';
    END check_values;
    / 
    

    AS the operator:

    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          emp.dept_no%TYPE,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         OPEN p_cursor  FOR
              SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     ',' || my_values || ',' LIKE '%,' || dept_no || ',%';
    END check_values;
    / 
    

    Collection:

    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          sys.OdciVarchar2List,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         OPEN p_cursor  FOR
              SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     dept_no IN (SELECT * FROM TABLE(my_values));
    END check_values;
    / 
    

    and pass my_values as a sys. OdciVarchar2List ('2345 ', '1245','9076 ').

    SY.

  • Floating field does not display values (made by LCES forms)

    Hi all

    We use Adobe LCES and LC Designer for several years (LCES 8.2). We used floating fields all the time to build a dynamic text strings within our models and never known of any problems.

    Given that we have upgraded to LCES 9.0.0.2 (also Designer 9.0) we are not able to get the floating fields works as expected.

    The floating fields show not all the values after the refund by LCES forms , while the rawValues of the fields is established. I checked that by sending the value in a message box: xfa.host.messageBox ("Value:" + floatingFieldXY.rawValue);

    The template has been saved as a static PDF form. The form is made by LCES forms. Interesting fact, we do not have this problem if return us the form with the release of the LCES and generation of a flat output PDF document. In this case, all of the floating fields are filled as expected. But this isn't an option for us because we provide an interactive PDF form.

    This problem could be linked to the fact that we use a static PDF form?

    Any help or information on these are really appreciated.

    Thank you!

    Nico

    I opened a support incident... I expect that if it worked in a previous version it should continue to work.

    Paul

  • apex_item.date_popup does not get rendering

    Hi all

    I manually create a form as a table with a model named using the apex_item functions.
    All elements are perfectly rendered, except apex_item.date_popup which displays as a dash '-'.

    Code is:

    Select...
    apex_item.date_popup (51,
    rownum,
    ABSCHREIBUNGSDATUM,
    "JJ. MM YYYY ',
    11,
    11,
    '',
    "datepicker_" | rownum
    ) as abschdat,
    ...

    This problem is also visible if I use a standard template. So I guess there is something wrong with my function call.

    Any ideas, tips or advice?

    Thanks and greetings

    Markus

    Markus:

    When you use the apex_item API to 'index' value specified must be between 1 and 50. You have defined on 51.

    http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/apex_item.htm#insertedID2

    CITY

  • Count() does not display values 0

    Hi everyone, how to show 0 values in query:
    SELECT TO_CHAR(first_time,'DD-MON-YY:HH24') DAY, COUNT(TO_CHAR(first_time,'MM-DD-YY HH24')) Switches_per_hour
      FROM v$log_history 
      WHERE TRUNC(first_time) BETWEEN TRUNC(sysdate) - 6 AND TRUNC(sysdate)
      GROUP BY TO_CHAR(first_time,'DD-MON-YY:HH24')
      ORDER BY TO_CHAR(first_time,'DD-MON-YY:HH24');

    Try

    select to_char(hour_time
                  ,'DD-MON-YY:HH24') day
          ,count(to_char(first_time
                        ,'MM-DD-YY HH24')) switches_per_hour
      from (select trunc(sysdate) - 6 + level / 24 hour_time
              from dual
            connect by level < 6 * 24)
    
      left outer join v$log_history lh
        on hour_time = trunc(first_time
                            ,'HH')
     where trunc(hour_time) between trunc(sysdate) - 6 and trunc(sysdate)
     group by to_char(hour_time
                     ,'DD-MON-YY:HH24')
     order by to_char(hour_time
                     ,'DD-MON-YY:HH24');
    
  • How HA does not assign hosts if DRS is not running

    I use three hosts vSphere advanced and ESX4. The advanced version includes HA but not DRS.

    If one of my hosts breaks down, how the system decides what virtual machines are migrated to each host remaining when DRS is not available?

    Madrilleno

    VMware HA will choose the hosts.

    See VMware High Availability - Concepts, implementation and best practices:

    http://www.VMware.com/files/PDF/VMwareHA_twp.PDF

    André

  • jTable does not accept values until I click somewhere else

    Hi all
    I have the component jTable accepts integer values. When I click on the jButton, the action uses the values inside the cells in jTable.
    However, after each entry in each cell, I have to click another cell to let the value of the cell previously written to be accepted. This brings problems when the user don't realize. The usual expectation is that, because I wrote a value in a cell, I can continue by clicking on the jButton to action be executed with who writes the value. Is something about "focus"?

    Hello

    Add this line in the code where you create the table:

    table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
    

    Which calls the your table model setValueAt method as soon as focus is more, IE the button.

Maybe you are looking for