Dynamic action to select a default value

I'm struggling with a concept of dynamic action. I'm trying to set the default values under certain circumstances.

If no selection is made in groups of KPIS, I want one for the area of selection around the bulb.

If no selection is made in high-level KPI, then I want the premiera 'selected' with the area around the bulb.

My goal is to do two things here. First of all, visually indicate which item has been selected via a click or default action. And second, select first occurrence of KPI according to if something has clicked or if anything has been clicked again.

Three scenarios I see:

(1) user opens page 586: 'Safety and training' must be selected. And OSHA training should be chosen

(2) click on 'Monitoring': monitoring must be chosen and should therefore "warning fire late" as the first in the category.

(3) the user clicks 'Detectors of CO2' late under surveillance: surveillance remains selected in the KPI group and the selection moves the late fire alarms to CO2 detectors, late.

When I say selected, I'm talking about the little box around the bulb. It would be even better if the box around the text went too if possible.

And Yes, you are allowed to make changes to the application.

Login to apex.oracle.com

number of App 73911

bulbcharts workspace

user guestdev / charts

TC-army wrote:

I'm struggling with a concept of dynamic action. I'm trying to set the default values under certain circumstances.

If no selection is made in groups of KPIS, I want one for the area of selection around the bulb.

If no selection is made in high-level KPI, then I want the premiera 'selected' with the area around the bulb.

My goal is to do two things here. First of all, visually indicate which item has been selected via a click or default action. And second, select first occurrence of KPI according to if something has clicked or if anything has been clicked again.

Three scenarios I see:

(1) user opens page 586: 'Safety and training' must be selected. And OSHA training should be chosen

(2) click on 'Monitoring': monitoring must be chosen and should therefore "warning fire late" as the first in the category.

(3) the user clicks 'Detectors of CO2' late under surveillance: surveillance remains selected in the KPI group and the selection moves the late fire alarms to CO2 detectors, late.

When I say selected, I'm talking about the little box around the bulb. It would be even better if the box around the text went too if possible.

And Yes, you are allowed to make changes to the application.

Login to apex.oracle.com

number of App 73911

bulbcharts workspace

user guestdev / charts

The 'small box around the bulb' is the focus rectangle. It is in fact to choose a bulb before you click on it, not saying the current selection (click on a light bulb and then press tab to see this in action). For accessibility reasons, it is best to let this behavior of the browser by default alone.

Maintaining the metaphor of the light bulb, I used dynamic actions and CSS to apply a glow effect to indicate the bulbs that exist currently "on". Details to follow when I have more time...

Tags: Database

Similar Questions

  • How to select the default value for a choice of selection when page.jsff load

    Hello everyone, I am newbie have little problem

    I have problem with soc (selectOneChoice)
    in this case I ' to select the default value of af: SelectOneChoice (select first selectItem) when the page is finished loading

    < af:selectOneChoice label = "" Jenny Bahan: "id = 'soc1'"
    autoSubmit = 'true '.
    valueChangeListener = "#{WHStockSetReleaseBean.cekJenisBahan} '"
    Binding = "#{WHStockSetReleaseBean.v_jenisBahan}" >
    * < af:selectItem label = "GBB" value = "GBB" id = "si2" / > * = > i'want to select this value for the default (select first selectItem)
    < af:selectItem label = "GBP" value = "GBP" id = "si1" / >
    < / af:selectOneChoice >

    If someone help me to solve this problem

    THX
    agungdmt

    Hello

    try to set the attribute value to af:selectOneChoice like that.

    
    

    Kind regards
    Sicard.

  • Dynamic action fails using the null value on the list of selection change event

    I have a selection list that I created a dynamic action to which I added a value set to to clear the values of other controls on the form by assigning the value NULL.

    This doesn't seem to work, and I can't understand why it does not work.

    Event = change
    Selection type = Items
    Items = P4_MYSELECTLIST
    (no other condition for this action, I want it to reset for each change in the selection list).

    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Set Type = static assignment
    Value = NULL
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)
    Remove the Change = No event

    Xanas,

    If you set the values NULL and not the literal string "NULL" you must change your DA slightly. Modify your game to run JavaScript Code.

    Action = run the JavaScript Code
    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Code = this.affectedElements.val ('');
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)

    Edit:
    You can also change the real action to the following if you want to leave your DA as setpoint:

    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Set Type = Expression JavaScript
    Value = "
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)
    Remove the Change = No event

    Good luck
    Janet Tyson

    Published by: Tyson Janet on January 10, 2012 09:52

  • Can not set a value by the executed dynamic action on the page element "selection list."

    I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.

    I created a dynamic action on the page element "selection list" for this.

    These are the dynamic action attribute:

    When:

    ======

    Event: change

    Selection type: point

    Article: P29_PURCHASE_ORDER

    Condition: No strings attached

    Advanced:

    ========

    Scope of the event: static

    Identification:

    ==========

    Action: Set

    The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "

    Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon

    I want to value when the value of change of select list according to this change successfully.

    Please, advice me,

    Best regards

    Mustafa Ezzat

    Hello

    you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?

    Then, the SQL statement would use the current selected value.

    This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»

    Kind regards

    Erik-jan

  • Dynamic action function Interactive report select value list

    I want to perform an Action when a user selects one of the 3 options in a selection list in an interactive report:

    Select APEX_ITEM. SELECT_LIST)
    p_idx = > 3,
    -p_value = > deptno,.
    p_list_values = > ' copy; Copy, delete, delete, export to PDF format. Export to PDF ',
    -p_attributes = > "style =" color: red; ' " ',
    p_show_null = > 'YES ', he said.
    p_null_value = > NULL,
    p_null_text = > "- Select -",
    -p_item_id = > ' f03_ #ROWNUM #'.
    p_item_id = > 'P6_IR_SELECT_LIST ',.
    p_item_label = > ' label for ROWNUM f03_, #
    p_show_extra = > 'YES') "Actions".
    Double;

    When you generate the dynamic Action, I chose the following values of the Advanced Wizard
    Event: select
    Selection type: DOM object
    DOM object: P6_IR_SELECT_LIST
    Condition: Equal to
    Value: 'delete '.

    Action: Run the Code JavaScript: Alert ('Here');

    Does not seem to be shooting... can anyone help?

    Thanks in advance,
    John

    The problem is the type of event.

    'Select' fires when text is selected in a text field, not when an option is selected in a list...

    Try instead "change."

  • Date arithmetic gives error in dynamic Action that makes the value value

    Hello

    I am trying to create a dynamic action that automatically assigns the value of P8_ENDTIME to P8_STARTTIME + 30 minutes. Both are date variables.

    So far, my settings

    Dynamic action:

    Event: change

    Selection type: elements

    Items: P8_STARTTIME

    Scope of the event: static

    Real Action:

    Action: Set

    Set type: PL/SQL Expression

    PL/SQL expression: P8_STARTTIME + 1/48

    Page items to submit: P8_STARTTIME

    Affected elements Type: elements

    Assigned items: P8_ENDTIME

    Note: I read online by adding 1 to a date increments of one day. And the addition of 1/24 Add 1 hour. 1/48 will add a half an hour.

    These settings compile but when I change the STARTTIME field for a new date on my page it says:

    AJAX call back Server error ORA-06502: PL/SQL: digital or value error: character number conversion error to set the value.

    I have to mention if I did my right PL/SQL expression: P8_STARTTIME then no error is thrown. : P8_ENDTIME be successfully will set the value of: P8_STARTTIME

    Your help is very appreciated.

    Item is string. not of type datetime. You must first fills in /date datetime type and then add 30 min. After that, maybe you must convert to a string.

  • dynamic action sets the value of the element, but not save to DB on submit

    I'm working on a page where the value of several to show only the page elements are defined using a dynamic Action.  They are set when the user selects a value in a list of selection (and is based on the value of the selection list).  Dynamic action is triggered on a list selection change event and then runs the real action "set the value.  The selection list displays the names of sales representative.  The three fields dynamically filled are the org structure (that is, their chain management).

    For the action to set the value, I use a defined Type of SQL statement:

    Select VP, DIR, MGR

    of SALES_ORG where SSR =: P20_SSR

    In the affected elements, I have fixed Type of selection to the 'item (s)"and the value of the Item (s) for 'P20_GVP, P20_DIR, P20_MGR.

    Dynamic action works fine for the display of the page (that is, when I select a sales representative in the selection list dynamic action properly updated only display value fields three).  This page is a form in which the user submits information relating to the rep.  When the page is sent, all fields are filled in a new record of DB with the exception of three that were populated dynamically above.  These fields get the values NULL.

    When the dynamic action updates the values in the three fields is - it does not set the value of session?  Why these fields don't are not taken into account in the submit other ideas > process Page?

    I use 5 APEX with Chrome on Mac (Yosemite).

    Thanks for the note.  I didn't only display the items could not be used in this way.  I think I'll take a different approach with the design; given that the org structure is in another table that I can simply refer to that by rep when necessary rather than saving the information uploaded to the page of the form.  The reason why I have not fill the screen only the points of loading the page is because I don't know what the values should be until the user selects a sales representative in the selection list.

    I'll change the design to one of the following:

    1) change the display only items of standard text field.  NOTE: if I make the text read-only field that causes other problems when loading (I get the message "violation of protection Session state").

    OR

    2) do not include org structure in the download folder and just refer to table org Rep when necessary.

    Thank you!

    Steve

  • How do dynamic actions using work to set the value in all browsers?

    I'm having a problem of incompatibility between browsers with dynamic actions to help to set the value.  Dynamic action works like a charm on Chrome but has no effect on IE or Firefox.  The code in oracle.apex.com and here are the credentials:

    Workspace: DDBA

    Username: [email protected]

    Password: redtruck12

    These codes is on page 3 and here are the details:

    There are two lists of report (Standard and special) and some reports require additional information provided in the lists of selection or text boxes.

    If the user selects a report select Standard requiring a list/text box, then the dynamic action sets the value of the special reports to NULL (and vice versa).

    Dynamic action is to prevent a simultaneous Standard reports and special selection.  To see how it works on Chrome, follow these steps:


    1. Run the Page 3
    2. Select the "Search report" option in the list Report Standard .  A text 'Search criteria' box
    3. Select the option 'Release report' in the list of special reports .  A selection list appears and disappears from the text box 'search criteria '.

    If you do the same on IE or Firefox, the text box does not disappear.

    Hi Edward,.

    Please check page 4 of your app, I made a copy of your page and made a few changes:

    I have set up an example of dynamic action 1 this hanles the report and special report selection list.

    Dynamic action games, select the value of the selection list and he accompanies in detail the report lists to null and then submits the page.

    For this I have deleted the page submit events to the time the report and special report select lists. Instead I handed them a HTML class. The dynamic action is triggered by a change of this category of html.

    When the trigger is the report selection list, select special report is set to null. Also underlying selection sub lists are set to null.

    When the trigger is the special report selection list, the selection of the report is set to null. Also underlying selection sub lists are set to null.

    The two end of the action with a "Send" page to manage the show and hide appropriate items. Note that there is a lag in time due to the submission of the page. As I have suggested, it would be treated better by a refresh of the region. On the other hand you depend on now submit for the continuation of the treatment of your page. With the help of an update of the region would require a work more javascript and cost more redisgn of your page. If you need IE8 support, additional javsascript likely to cause other unexpected behaviors. In other words, a page is maybe in your case probably better then an update of the region after all.

    I checked this page 4, Chrome, Firefox and IE (latest version) and I get the same behavior in all browsers.

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

  • Dynamic action - check if the size of the texfield values does not exceed limit

    Hello

    I have a form and I'm trying to use dynamic Action to process the form values. I don't know how to get the length of the value of a textfield and compare to what I said in the values

    The order of the day called P6_USERNAME which can be more than 10 characters long.

    So I tried to create a dynamic Action with the following parameters in the region when .

    EVENT: Press button
    SELECTION TYPE: jQuery Selector
    jQuery SELECTOR: $("P6_USERNAME").val () .length
    CONDITION: above
    VALUE: 10

    Of ACTION GENUINE, I had a view only showing a message "you have exceeded the limit.

    The above didn't work and tried to work it around with:

    $v("P6_USERNAME").val () .length

    that no longer works.

    Any suggestions on how I can achieve this? The only options I got in the Type of selection are: point, area, object DOM and jQuery Selector. What I'm really after is retrieving the value of the element, so I can use it for comparison with the value to run my Real Action

    APEX 4.0 - Oracle XE 11 G - Windows 7 32 bit

    It is not necessary to use a validation/dynamic action. Set the maximum width for the element attribute and the browser will prevent users to enter values longer than that.

  • Dynamic action - defining the value of affected parts

    Hello

    I'm a little trouble trying to set the value of several items affected in dynamic Action (refresh the number of the part to Page 2). Page 2 I want the user to select the order number and fill in the items combines automatically, for example part number Descr. I can make it work for Part_Number, but the same value appears when I add P2_DESCR to items assigned to set the value. I'm probably doing something really stupid!

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

    Kind regards

    Mickey

    Hi Mickey,

    It is not as easy as it should be, even. You certainly do not make something stupid at all!

    Currently the action 'Set value' support only 1 distinct value. You might have other 'Action' within the same dynamic action that returns the other element you want, but it's inefficient, you need to make 2 round trips to the server to retrieve each value. We are looking for the opportunity to put multiple values without needing more trips to go back out of the box in a future release, but for now I think the best approach is to use a custom mix of dynamic measurements, JavaScript and a level of page AJAX callback.

    For this example, I use the EMP table, where the user selects the number and the name of the employee and employment are returned, but the technique can be used for your situation.


    1. Add a page 'AJAX Callback' called 'GET_EMP_INFO', make the type "PL/SQL" with a "Point of process" of "On Demand - run this process when requested by AJAX ' and add the following code:

      begin
          for c in (select ename, job from emp where EMPNO = to_number(:P1_EMPNO)) loop
           apex_util.set_session_state('P1_ENAME', c.ename);
              apex_util.set_session_state('P1_JOB', c.job);
              /* Add more set_session_state calls here if you want to return more item values */
          end loop;
          apex_util.json_from_items('P1_ENAME:P1_JOB');  /* Add more here for returning more values */
      end;
      

    2. Create a dynamic action "Advanced" (because we need to use the action "Run JavaScript Code"), with the following attributes:

      • 'Change' - to the fire of the dynamic action every time the number value used change event.

      • Selection of Type 'Article (s)' - to be able to select the element of page employee number.

      • Article (s) "P1_EMPNO" - the page employee number element.

      • Real Action "to execute JavaScript Code. If you want details on the loading of the page as well, make sure that the 'Fire when loading the Page' checkbox is checked. Add the following "Code":

        var get = new htmldb_Get(null, $v('pFlowId'), 'APPLICATION_PROCESS=GET_EMP_INFO', $v('pFlowStepId'));
        get.add('P1_EMPNO', $v('P1_EMPNO'));
        gReturn = get.get();
        json_SetItems(gReturn)
        get = null;
        





    So, basically, that's all. I recommend this approach for now, until better support us in native mode to set multiple values, or a plug-in dynamic action arises that does just that!

    Hope that helps.

    Kind regards
    Anthony.

  • value of the element is not common when used in dynamic action

    I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.

    When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.

    How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?

    I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.

    dacoellov wrote:

    I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.

    When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.

    How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?

    I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.

    What dynamic action event and what types of action are involved here? Provide details, or better yet share identification information of developer comments for the apex.oracle.com workspace so that we can see the demo.

    If the dynamic action executes an SQL statement or a PL/SQL process on the server that requires page updated element values in session state, specify these items as part of dynamic action Page to submit items .

  • How to create dynamic action of the link column in the classic report

    I have an apex page to display a modal window using jquery. In the modal window, I have a classic report with a column of link I want to capture its click event.
    I thought I could create a dynamic action with selection of type = jquery selector. Not sure if I need to do anything on the link column and do not know the syntax
    jquery selector. Would appreciate help or direction?

    Always zip code using .

    ...\
    

    tags as described in the FAQ.

    I created a region of report with the following query:

    Select empno, ename, 'SELECT' from emp
    where (ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
    or :P2_SEARCHPU is null)
    

    There is no alias specified for the "SELECT" column, Oracle uses so the content of the column as a default alias. It comes

    'SELECT'
    

    Instead of

    SELECT
    

    The necessary jQuery selector would be:

    td[headers="\'SELECT\'"] a
    

    However the need to release the single quote everywhere is a ticking time bug. SELECT an Oracle reserved word means use it as any type of identifier is either too smart.

    You should always use a valid Oracle identifier as an alias explicit when a column contains a literal value or a complex expression:

    select
        empno
      , ename
      , 'SELECT' link_text
    from
        emp
    where
        (  ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
         or :P2_SEARCHPU is null)
    

    APEX will use the column alias LINK_TEXT as the ID attribute of the column header and the cells in the column will reference it in their headersattributes. The jQuery selector is:

    td[headers="LINK_TEXT"] a
    
  • Dynamic action to truncate collection

    Hello

    I have a form with a button radio (P3_IMPORT_FROM) that allows the user to choose whether they want to paste the data in a text box or download a CSV of records.  Once the user clicks on a "Load" button, a page of PL/SQL process run to analyze the files and complete an apex_collection named MASS_UPLOAD.  Therefore, also changes the value of an element of the page only display (P3_RECORDS_UPLOADED) because it is based on the Expression of APEX_COLLECTION of PL/SQL. COLLECTION_MEMBER_COUNT ('MASS_UPLOAD').

    Whenever the user changes P3_IMPORT_FROM, it must truncate the APEX_COLLECTION where they are turning back between modes.  I have a dynamic action (as below) that runs when the radio button changes.   The collection is truncating, but why P3_RECORDS_UPLOADED is not reset to 0?  It always shows the total of a course load.  I tried to add an a Requery action for this dynamic action to refresh the P3_RECORDS_UPLOADED but nothing happens.  Any suggestions?

    Dynamic action

    Event: Change

    Selection type:  Article (s)

    Product (s): P3_IMPORT_FROM

    Condition:  No Condition

    True Actions:  Run of the PL/SQL Code

    DECLARE
      v_count PLS_INTEGER := 0;
    BEGIN
    if apex_collection.collection_exists(p_collection_name=>'MASS_UPLOAD') then
       apex_collection.TRUNCATE_COLLECTION(p_collection_name=>'MASS_UPLOAD');
       v_count := APEX_COLLECTION.COLLECTION_MEMBER_COUNT(MASS_UPLOAD');
       APEX_UTIL.SET_SESSION_STATE('P3_RECORDS_UPLOADED',v_count);
    
    end if;
    END;
    
    

    Scope of the event:  Static

    APEX 4.2.4

    Patel C wrote:

    The collection is truncating, but why P3_RECORDS_UPDATED is not reset to 0?  It always shows the total of a course load.  I tried to add an a Requery action for this dynamic action to refresh the P3_RECORDS_UPLOADED but nothing happens.  Any suggestions?

    First, decide what the question: is this P3_RECORDS_UPDATED or P3_RECORDS_UPLOADED? When it is clear which is the name used in the PL/SQL block to reset the session state from the item and include it in the Page elements to return the dynamic action property to update the value in the browser.

  • 2 dynamic action for an item

    I have two dynamic actions for an item from the selection list that is loaded from an element of Cascade LOV.

    Dynamic action 1:

    Name: d1
    Condition: Value = "EXPECTED".
    true action: see the 'Solution' element.
    action of false: hide a 'Solution '.

    Dynamic action 2:

    Name: d2
    Condition: Value = 'OFFERED '.
    true action: see the 'Solution' element.
    action of false: hide a 'Solution '.

    That's happened? If only works with the dynamic action of d1 or when I did some changing works with dynamic action of d2. I unchecked the field "load fire on the page" but it did not work. I think that there is perhaps some collide with them but I analyzed it, but I can't find. Thanks in advance.

    Another thinks I want to ask is how to order values in a select list... with this code above indicate me the values in the following order: closed, lift, open, waiting. But I want the values in the following order: open, pending, climbing, closed. How can I do?
     select distinct STATUS as display_value, STATUS as return_value 
      from HD_STATUS
     order by 1
    Best regards, Bernardo.

    Ah so. It's actually easier then.

    You'll have an installation DA your d1 is configured with the following differences:

    Name: d1
    Event: Change
    Selectio type: Item(s)
    Item: P10_SUBSTATUS
    Condition: Javascript expression
    Value: $v('P10_SUBSTATUS')==='PLANNED' || $v('P10_SUBSTATUS')==='OFFERED' 
    
    true action: Show "Solution" item,
    false action: Hide "Solution" item.
    
    Nothing in the Condition box that currently has the PL/SQL expression. (Make sure to select "None" as the condition type in the condition box)
    

    You need basically the GOLD option that is provided above as Javascript. ' | ' is the operator or if you are not familiar with JS. ' = ' means exactly equal to, and possibly "==", equal to so you could also put it this way.

    Should have thought first of this route.

    Published by: Bob37 on June 28, 2012 16:15

  • When transferring a message from the sent folder, it does not select the default identity, but one of the others. How to configure it to send to my address

    If I am sending an e mail to my sent folder, the field does not automatically select the default identity but insterad he sends e-mail to e of my daughter and I select the default value in the drop-down list. can it be configured to send the file sent using my default email instead of having to remember to change on the menu drop-down

    Looks like this add-on is more suited to your needs:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/folder-account/

Maybe you are looking for

  • macOS Sierra can fully shutdown

    Hi, yesterday I just upgrade my MacBook Pro for macOS Sierra, when I shut down my computer, it can close all the application and turn my screen in the dark, but my apple macbook light logo still on. I have to press and hold the power button to shutdo

  • How to get rid of the app iOS 10 beta feedback?

    I made the beta of iOS 10, and it came with the app of feedback. I updated my phone to the iOS version final 10, but the feedback app is still on my phone. I tried now button but no little 'x' appears. Can someone please.

  • 3070 DeskJet printer stop printing black ink

  • Tecra M1 full installation - no recovery disk

    I want to install Windows XP pro on my Tecra M1. It can not recognize the wireless card, and I just tried all the drivers in the download for Toshiba Tecra M1 section. The only error I have found on the Net controller in Windows XP hardware device.ON

  • Updates Windows - configuration at startup.

    Hey I'm looking for answers to date (October 2010) why my PC is now "updates - 0% setting" for several minutes to start up.  I have a new machine of four hearts, running Win7 64 bit. Microsoft is currently a kind of "update frenzy" with Win 7?  I not