Format selection list

Apex 3.2

THAT IS TO SAY 8

Theme 15

I have a selection list in my page

Select htf.escape_sc (promkey) display_value, htf.escape_sc (promid) return_value

of vpe_pro_prom

order of promkey

In the table, there is also a field for end_date.

Ideally, I would like to display items from the selection list in red if, their end_date < sysdate

Any ideas appreciated

Gus

Gus C wrote:

Apex 3.2

THAT IS TO SAY 8

Theme 15

I have a selection list in my page

Select htf.escape_sc (promkey) display_value, htf.escape_sc (promid) return_value

of vpe_pro_prom

order of promkey

In the table, there is also a field for end_date.

Ideally, I would like to display items from the selection list in red if, their end_date<>

Not easy in 3.2 without plug-ins or dynamic actions, or in Internet Explorer with a legacy quirks-mode theme. Using jQuery in this app?

Tags: Database

Similar Questions

  • Conversion of the year in YYYY format to return to the selection list

    With Apex 4.1.1 on Linux (Apex Listener on glassfish)

    I have a table with the dates of weekend and use this table for like my LOV.

    The selection list appears as 12-SEPT-12 when I check the value attribute of Firebug. Problem is that it comes as year 0012 instead of 2012 when I try to use it in my PL SQL code to save it in a table.

    Is there a way I can get the return value for the year in YYYY format for the return value to the selection list? Have you tried to_date (dt, ' MON-DD-YYYY "") with no luck.

    See you soon.

    All APEX session state values take place as VARCHAR2s. Explicit conversion between DATE using the specified formats values is recommended. Converted to a VARCHAR2 in the LOV query:

    select to_char(week_ending, 'DD-MON-YYYY') l, to_char(week_ending, 'YYYY-MM-DD') v from ...
    

    and to this DAY in the PL/SQL code of process:

    ...to_date(:p1_week_ending, 'YYYY-MM-DD')...
    

    I'm trying to standardize on the use of ISO 8601 representation of date not displayed values. These are unambiguous, sort correctly by using the semantics of character and are compatible with other systems and technologies.

  • How to filter a selection list

    I have several lists of selection.  All have FKs in the parent table.  The relationship of the tables is the following:

    BLDG - < ROOMS - < LOCATIONS - < POSITIONS

    ROOMS have a FK to buildings, PLACES a FK to ROOMS and POSITIONED a CF for LOCATIONS

    I have a form where the user will enter their selection for each attribute, and I want the ROOM list only see the room in the selected building, LOCATIONS in the ROOM chosen, etc.

    The selection list is defined as:

    Select room_number d, room_id r

    ROOMS

    where bldg._id =: P2_BLDG_ID

    P2 is the page where the user enters data.  All lists, follow the above format and the corresponding value of FK.

    When I test data entry any of the lists to return all data.  I guess that's because the corresponding value of the page has the value null when the page opens, and the list is not updated when the user makes the corresponding selection.  How can I get APEX to fill the lists once the user makes a selection of the corresponding value of parent?

    2785699 wrote:

    I have several lists of selection.  All have FKs in the parent table.  The relationship of the tables is the following:

    BLDG-<><><>

    ROOMS have a FK to buildings, PLACES a FK to ROOMS and POSITIONED a CF for LOCATIONS

    I have a form where the user will enter their selection for each attribute, and I want the ROOM list only see the room in the selected building, LOCATIONS in the ROOM chosen, etc.

    The selection list is defined as:

    Select room_number d, room_id r

    ROOMS

    where bldg._id =: P2_BLDG_ID

    P2 is the page where the user enters data.  All lists, follow the above format and the corresponding value of FK.

    When I test data entry any of the lists to return all data.  I guess that's because the corresponding value of the page has the value null when the page opens, and the list is not updated when the user makes the corresponding selection.  How can I get APEX to fill the lists once the user makes a selection of the corresponding value of parent?

    Cascading selection lists are covered in the documentation.

  • Not allowing a value for a selection in a Select list

    Version 4.1.1.00.23

    Hello

    I created a Select list to display projects within a Department (that we call groups).

    A group will have projects, however, more than one group may have a project with the same name.

    If my application for the display of the list select the data in a hierarchical format like this:

    Group 1

    Proj Grp 1

    Proj Grp 1

    Proj Grp 1

    Proj Grp 1

    proj Grp 3

    Group 2

    Proj Grp 1

    Proj Grp 1

    Proj Grp 2

    Proj Grp 2

    Group 3

    Proj Grp 1

    Proj Grp 2

    proj Grp 3

    What I'm looking for, it's to NOT allow 'Group' level to be selected in the list. Only allow the level of project to be selected values.

    The query is:

    WITH t
         AS (SELECT 'Group: ' || vg.group_name name
                   ,vg.group_id
                   ,NULL id
                   ,1 AS weight
             FROM   vertical_group vg
             WHERE (vg.group_id = :P100_GROUP OR :P100_GROUP = 0)
             UNION ALL
             SELECT '....' || project_name
                   ,group_id
                   ,project_id
                   ,2 AS weight
             FROM   tbs_projects
             WHERE  status IN ('Pipeline'
                              ,'Planned - Partially Funded'
                              ,'Planned'
                              ,'Execution') AND
                    ( :P100_RYG_PROJECT = 0 OR :P100_RYG_PROJECT = ryg_proj_id ) AND
                    ( group_id = :P100_GROUP OR :P100_GROUP = 0 ))
    SELECT name
          ,id
    FROM   t
    ORDER BY group_id
            ,weight
            ,name
    
    

    Can someone help me with this?

    Is there additional information that I can provide?

    Thank you

    Joe

    HTML optgroup element is used for the structure select of the lists in this way. Select standard lists the APEX and LOVs do not have support for generating optgroup of the items in the lists of options, but point of plug-ins with this feature are available.

    See the documentation for more information on the use of plug-ins.

  • without discount date when select select list

    Hello

    I have two field
    1. select list
    2-date picker

    now, I want to when I select a value in to select the list, and then the corresponding date value should come to date picker point field.i want it without updating date picker.


    How can I do this

    Hello

    I guess that your date is in the table?

    Something like this in the HTML page header

    function fetchDate(){
        var ajaxReq = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=GET_DATE',0);
        ajaxReq.addParam('x01', $v('Px_YOUR_SELECT_LIST'));
        var lRet = ajaxReq.get();
        $x_Value('Px_YOUR_DATE_PICKER', lRet);
        ajaxReq = null;
    }
    

    Then the process of request GET_DATE

    DECLARE
     l_d VARCHAR2(32000);
    BEGIN
    
      SELECT TO_CHAR(your_date_column, 'DD.MM.YYYY') -- Check date format. Set same as date picker
      INTO l_d
      FROM your_table
      WHERE your_column = apex_application.g_x01;
    
      HTP.PRN(l_d);
    
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
        HTP.PRN('No data found !');
      WHEN TOO_MANY_ROWS THEN
        HTP.PRN('More than one date found !');
      WHEN OTHERS THEN
        HTP.PRN(sqlerrm);
    END;
    

    And add onchange = "fetchDate (); "to select the attributes of the list HTML form element
    BR, Jari

    Published by: jarola November 21, 2009 12:56

    Published by: jarola November 21, 2009 13:05

  • Invalid results based on the select list

    Hello
    I've set up 4 LOVs cascading in a test application. They fill each value based on the value of the parent cascading with success. My example is based on the query Ajax Denes Kubicek - Section III - for example - http://apex.oracle.com/pls/otn/f?p=31517:135:1771969688591802:NO. But I use 4 Cascading Select list not 4 text fields. My problem is that I am not able to scroll through records using the previous and next unless I select all 4 list selection of waterfall to fill the data in the record. I would like to be able to select the 1st list select then click on the search button to fill in the data of the registration for the selected value. Then use the previous and next to scroll through the data in the record. This code allows selection of cascade 4 list to keep focus when the key search selected. But the correct data are not returned if I only select 1 list select value and then click on the search button.
    //  alert('TagName=' + l_El.tagName + ' id=' + l_El.id)
                    if(l_El.tagName == 'INPUT' || l_El.tagName == 'SELECT') {
                        l_El.value = l_Value;
    Published by: Charles was October 8, 2009 07:53

    Hi Charles,

    OK - it works now.

    I made a few changes here and there. Basically, I defined by default for four '-1' lists and accounted for this through the page and processes. You had the wrong name for the last item in your function onLoad(), so I've changed that. Also notes that the question of the "closing date" must be formatted with a date MM/DD/YYYY formats to ensure that these are properly (the date of default real format came in the form DD-MON-AA, so you would have questions there if you don't stick to a single format). For each item, you can choose another value by default if it makes more sense for you, but you go through every place where the list is mentioned/used for updating the-1 for her to this new value.

    The processes themselves also tried to update the four lists as you go through the records. As the lists would not necessarily have all the values on them (you can click on search without making any selection, for example), I disabled these bits. However, you you should consider adding to the class section of THS page as new, so that the user can view all the information. The alternative would be to have all the lists display all the values unless otherwise filtered by their parent list - always feasible, but may be confused?

    Andy

  • report of initialization does not not account selection list values

    Hello
    I have a problem to understand the way in which apex treats the sequence of events.

    I have a little select lists and checkboxes, which stores the settings for a report) the sql is issued by a plsql stored procedure).
    The items in the lists change according to different users, and values from LOV (with sql). A go button to refresh the report if you change the settings.

    Although where the view, the report seems to be after the selection lists, the first time the report not displayed with the settings selected in the lists (the first elements), but rather the default values... even if they do not exist in the current list.
    When you press the Go button it appears correctly.

    I also tried to put the report with the conditional formatting, with a request for status = expr 1 (setting like name th button expr1 go)... but the report would never display.

    I'm sure there must be a simple explanation... but I can ' t find.

    Thank you very much for your help.

    See you soon,.
    Boris

    Boris,

    The default was just an example, you can use the code you like in the query to make sure by default to the correct setting for the user. The point is that you (or rather business case) dictate how this default view should look like.

    You will need to fill in a few gaps for us here and tell us how each case should be handled (don't forget, we don't know anything about your precise needs other than that tell us;).

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

  • Region of report filters by using Multi Select lists

    Could someone please advise me accordingly.

    I want to use several multi selection lists to allow a user filter data in a report. I have a button for the user to send the page and apply their selected criteria. In my application I have want to reference the items select direct multi.

    for example

    Select studentid, studentname
    of student_table
    where of course in(:p1_course)
    and the Department (: p1_dept)
    and in the year (: p1_year)
    and... etc etc.

    My attempts to do so to this day, have been in pallets. I was hoping that one of you experts may be able to advise how to do this step by step.

    Thank you

    Steve C

    Hi Steve,.

    The results of the selections multiple lists would be in the format has: b: c (that is to say, the values separated by semicolons), so your WHERE clause must use something like:

    OÙ ' :' || : P1_COURSE | ':' AS ' %:' | COURSE | ':%'

    or

    WHERE INSTR (': ' |: P1_COURSE |) ':', ':' || COURSE | ':') > 0

    Andy

  • Selection lists does not not on Android FF but work on default browser

    Hi, hoping for help

    Building an online game site that I'd like to work on the mobile and the PC without different versions.

    I find that the selection lists do not open on FF Android or iOS FF-mobile, even if they work fine in the default browser Android and chrome. Could someone help me debug this, or is this a problem in FF?

    Page URL: http://www.HoldingTheBall.com/clubroom.php?logon=1
    To test: load the URL, click on the image of the Guernsey on the middle right, and then try to use one of the selection lists.
    Features of the page: HTML4, CSS, JS, Jquery, Jquery ui, Jquery-touch-punch (by drag and drop on mobile)

    Any suggestions would be greatly appreciated!

    There is no such thing as Firefox iOS. There is Firefox at home, who would have bookmarks Firefox Sync and the history of your iOS device. All the browsers on iOS are based on the iOS stock Safari Webkit.

    That being said on Firefox for Android that I see the behavior you mention. Is it still a question if you disable the div dragging?

  • Printer selection list.

    I set up my HP OFFICEJET 6700 printer all-in-one for Fax operation. Now, I can only choose Fax-HP6700 as a choice of the printer. I am unable to choose HP Officejet 6700 (network) of my microsoft Word printer selection list, I use a laptop Toshiba Satellite with Windows7 32-bit operating system.

    Hello!

    Looks like your default printer is set for the fax version.

    Try these steps

    1. click on start

    2. Select the devices and equipment

    3. check under printers and see if you have several printers listed

    4 right-click right who is not say fax and a default

    Return to Word and see if the problem persists.

  • Cannot run microsoft outlook; message says use Inbox Repair tool (scanpst.exe) how can I do? In addition, how to restore windows media player; the program name is missing from the selection list.

    Message says:

    C:\users\deaconmike\appdata\local\MicrosoftOutlook\Outlook.pst

    Quit Outlook and all mail inabled applications, then use the repair tool Inbox (scanpst.exe) to diagnose and repair errors in the file.  For more informaion about the Inbox Repair tool, see Help.

    Hello

    1. from which the program (Windows Media Player) selection list is missing?
    2 have you checked in the Windows features?

    I suggest that you follow the steps mentioned below.

    Step 1:

    Check if Windows Media Player is disabled in Windows Features.

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-Windows-features-on-or-off

    Step 2:

    I suggest that you run SFC scan on your machine to verify if this is related to missing or damaged system files.

    As regarding problems with Outlook, I you should post the question in the forums of Outlook.

  • Microsoft SQL Server 2014 (SP1 - CU4) (KB3106660) query failed with error ORDER BY items must appear in the select list if SELECT DISTINCT is specified.

    Hello
    I use Microsoft SQL Server 2014 (SP1 - CU4) (KB3106660) Enterprise Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1)

    SELECT DISTINCT A.PI_LOOKUP_CATEGORY_ID,
    REPLACE (REPLACE (UPPER (A.LOOKUP_CATEGORY_NAME), ' ', '_'), '-', '_') AS CATEGORY_TECH_NAME,
    A.LOOKUP_CATEGORY_NAME,
    A.LOOKUP_CATEGORY_DESCR,
    COUNT (B.PI_LOOKUP_CATEGORY_ID) AS USAGE_COUNT
    FROM [PI_LOOKUP_CATEGORY] A LEFT OUTER JOIN B [PI_INSIGHT_COLUMN] WE
    A.PI_LOOKUP_CATEGORY_ID = B.PI_LOOKUP_CATEGORY_ID
    A.PI_LOOKUP_CATEGORY_ID GROUP,
    REPLACE (REPLACE (UPPER (A.LOOKUP_CATEGORY_NAME), ' ', '_'), '-', '_').
    A.LOOKUP_CATEGORY_NAME,
    A.LOOKUP_CATEGORY_DESCR
    ORDER TO REPLACE (REPLACE (UPPER (A.LOOKUP_CATEGORY_NAME), ' ', '_'), '-', '_')

    above request is failed with error ' ORDER BY items must appear in the select list if SELECT DISTINCT is specified. " Microsoft SQL Server (SP1 - CU4) 2014 (KB3106660)

    same query works fine with older versions of SQL servers like (2008R2, or 2012)

    Please let me know the resolution of this problem...

    Thank you
    Touria

    Ask here:

    MSDN - SQL Server - Microsoft forums

  • How to run to another page in a select list

    Hello

    I am newbie to APEX. Our version of the APEX is 5.0.2. Currently, I have a 7 page, which displays a selection list, of which user selects an element of value and then supposed to be directed to another page 8.  But nothing happens once I've selected only one item, say, he's not going anywhere.  Please let me know how I can fix the problem.  Thank you very much!

    Page 7, I turned "Go To Page 8" as:

    page7.PNG

    And then to page 8, I have:

    page8.PNG

    Best regards

    Hello

    Since you've already done this job, you probably realized that you need to add p7_study_name to Page elements field to submit and create a dynamic action related to this item (change), which updates the State of the list of sites.

    If you want to go to another page, when you select the item in the list, follow these steps:

    (1) create a dynamic action on p7_study_name, the Change event.

    (2) create a real action, Action: submit the page, button of request/name MY_REQUEST (or whatever you want).

    3) go to the processing Section and create logic to your page target Condition: Type Request = value, value MY_REQUEST

    Hope that helps.

    Pavel

  • To update the database by using selection lists in an interactive report

    I use the Application Express 4.2.6.00.03.

    I have an interactive report in two columns with a selection list in the second column. The generated query the report is

    Select pn.project_name,

    (Select APEX_ITEM. SELECT_LIST_FROM_QUERY(2, PN.) Batch, 'SELECT status_name d, r from RES_STATUS order by sequence batch', NULL, 'NO') of double) STATUS

    of res_project_name_detail pnd, pn res_project_name

    where pn.project_name_id = pnd.project_name_id

    Now I need to find a way to change the database to reflect the changes made to a select list that appears in the second column (batch) as they are made. Are there any suggestions as to how this could be done? I have experience of limited Java script if a solution that I can use directly would be great.

    Martin

    Reference SebastianR


    created a small example

    https://Apex.Oracle.com/pls/Apex/f?p=28281:16:16619647501605:no:

    WORKSPACE:-REEMATEST

    username:-test

    password:-test

    application 28281

    page 16

    hope this helps you in some way

  • How to set the width of a Select list in APEX 5.0?

    Hello

    I have been using APEX 4.2 for a couple of years now. I am currently building my first application in APEX (Oracle DB 11g XE) 5.0

    On a page with multiple selection lists, I'm trying to set the width of each of them, so they are all the same size regardless of content.

    APEX 4.2, I used to just add: style = "width: 200px ' to 'ownership of the attributes of element HTML Form.

    How do I in the APEX 5.0? Property of the 'HTML Form Element attributes does not seem to exist anymore. Is there another way?

    Nick

    Hello

    You can use custom attributes: CSS min-width and max-width properties

    Concerning

    J

Maybe you are looking for

  • BIOS Configuration utility

    HelloI was wondering if Toshiba laptops have a Bios Configuration utility similar to what HP and Dells have. HP has a utility called 'Biosconfigurationutility.exe' which allows the switches to export the configuration file, maniplulate it and import

  • E-1 570. Windows 8.1. 15 seconds in the boot, the screen goes white. Slider o.k. so.

    Suggestions to sort this Gremlin received with gratitude. Startup seems to unfold as a spec, Acer logo appears, circular arrow does the trick then goes opaque screen, but obviously still lit. Cursor still responds, but it's the end of the action.

  • No screen saver after logoff

    With Windows XP, after that I disconnected a screen saver would come on.  With Windows 7 I now notice that after I have my screen saver does not illuminate logoff.  Is there anyway to have this happen? Thank you Mike Stevens

  • .deskthemepack association program by default - cannot add themes

    original title: .deskthemepack default program association HelloSomehow I messed up the .deskthemepack extension association; Well, and now I can't stinking add more cool themes to my Win7 pc. Help. Does anyone know how to restore the default binding

  • What happens when JOINT-2 performance is exceeded

    Hello We have JOINT-2 with about 20 pairs of vlan inline in the test environment. What happens to online traffic ourselves, said a flow of 500 Mbps? Falls of traffic or is it transmitted without IPS inspection.