Apex_util.redirect_url in 4.1.1 using dynamic action

Hello

I'm trying to implement a dynamic action in charge that will redirect users to the home page of any other page if certain values are undefined.

So, I set DA for event "Page loading", the following PL/SQL execution
DECLARE
  l_url varchar2(2000);
BEGIN
  l_url := APEX_UTIL.PREPARE_URL('f?p=&APP_ID.:HOME:&SESSION.');

  wwv_flow.g_unrecoverable_error := true;
  htp.init();
  apex_util.redirect_url(l_url, true);
END;
based on the other topics in the forum, as well as this post from Scott Spendolini
http://spendolini.blogspot.com.au/2006/02/page-0-branches.html

When I run in debug mode, I can confirm that her DA is shot, but it raises an error
Dynamic Action Fired: Redirect when blah (NATIVE_EXECUTE_PLSQL_CODE)
jquery-1.6.2.js:561 Uncaught SyntaxError: Unexpected token <
Any suggestions?

Scott

To do this, you must use a process page which on before the page header.

Tags: Database

Similar Questions

  • Is it possible to change the definition of LOV uses dynamic action?

    Hello

    I have a multiple selection LOV page article, P27_MULTI_CLASS_CODE, defined as below.  The loading of the page, this list contains only values based on what was passed to P27_OLO_CODE or P27_OLO_CODE_SW.

    SELECT DISTINCT c.class_code d, c.class_code r

    O ORGANIZATION,

    POSITION p,

    CLASS c

    WHERE o.org_wk = p.org_wk

    AND p.class_wk = c.class_wk

    AND o.org_active_flag = 'Y '.

    AND p.pos_active_flag = 'Y '.

    AND c.class_active_flag = 'Y '.

    AND (o.olo_code =: P27_OLO_CODE)

    GOLD o.olo_code =: P27_OLO_CODE_SW)

    ORDER BY c.class_code ASC

    Before submitting the page, I want the definition of LOV's P27_MULTI_CLASS_CODE to change the following (similar application without reference to the P27_OLO_CODE or P27_OLO_CODE_SW) based on the question if the user selects a checkbox, P27_ALLOW_SW.   In doing so, P27_MULTI_CLASS_CODE would contain a wide range of values, rather than the limited values.

    SELECT DISTINCT c.class_code d, c.class_code r

    O ORGANIZATION,

    POSITION p,

    CLASS c

    WHERE o.org_wk = p.org_wk

    AND p.class_wk = c.class_wk

    AND o.org_active_flag = 'Y '.

    AND p.pos_active_flag = 'Y '.

    AND c.class_active_flag = 'Y '.

    ORDER BY c.class_code ASC

    I wanted to avoid writing Javascript.  Is this possible using dynamic measurements... or at least somehow update P27_MULTI_CLASS_CODE so that it ignores the P27_OLO_CODE and the P27_OLO_CODE_SW?

    Tried to create dynamic action to clear the value of P27_OLO_CODE or P27_OLO_CODE_SW, in the hope this would trigger P27_MULTI_CLASS_CODE to display all the values, but it has failed.  Any ideas?

    APEX 4.2

    You can do this by editing the query lov a little:

    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
       AND ((:P27_ALLOW_SW = 'Y' AND (o.olo_code = :P27_OLO_CODE OR o.olo_code = :P27_OLO_CODE_SW))
            OR :P27_ALLOW_SW = 'N')
    ORDER BY c.class_code ASC
    

    (of course, use the correct value for P27_ALLOW_SW)

    The "cascade LOV Parent article (s)" value P27_ALLOW_SW and also add "Page elements to submit" element (Note: this item appears only when you have entered a value in the element of parent lov cascading items)

    Now, after changing P27_ALLOW_SW the lov will update to P27_MULTI_CLASS_CODE.

  • helps with the update of tabular form using dynamic Action

    Hello world

    I'm trying to simplify a tabular presentation based on a collection so that it uses more dynamic actions that will be ultimately more easy for us to debug.

    Our tabular presentation is based on the query:

    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    c003,
    c004,
    c005,
    c006,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
     
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
     decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    c014,
    c015,
    c016,
    c017 additional_measure_flag,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 fins_attached,
    apex_item.textarea(28,c028,3,null,'class="hms_info"','f28_'||seq_id,'') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','class="hms_info"''onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    c030,
    c031,
    c032,
    c033,
    c034,
    c035,
    c036,
    c037,
    c038,
    c039,
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;" class="hms_info"
    ',null,null,null,'f40_'||seq_id,'')  HMS_AREA_CODE,
    c020 hms_flag,
    apex_item.text(41,TO_NUMBER(c041),5,null, 'class="hms_info"','f41_'||seq_id,'') Sale_Price,
    c042,
    c043,
    c044,
    c050 shark_flag
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id 
    

    Note that many of the fields referenced are c0xx... and really serve as place holders so that the c0xx = fxx.  It's awkward, like every time that a movement or move a column, it upsets the fxx value.   So, I tried to use the CLASS if possible.

    I have a dynamic action that had worked perfectly, until I moved one of the columns... and now, it seems not to work when I'm trying to update anything with the HMS_INFO or SHARK_INFO class.  Grrr.

    dynamic action: CHANGE COLUMN

    event: CHANGE

    selection type: JQUERY SELECTOR

    jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], input [name = "f24"], textarea [name = "f28"], select [name = "f40"], input [name = "f41"]

    true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id

    true action2: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value

    true action3: run pl/sql,.

    declare
      v_attr number;
      v_seq number;
    begin 
      v_attr := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
     
      safis_collections.update_column(v_seq,
                                      v_attr,
                                      :p110_value);
    end;
    

    the safis_collections.update_column package is:

    procedure update_column(v_seq in varchar2,
                            v_attr in number,
                            v_value in varchar2)
    is
    begin
       apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
                         p_seq => v_seq,
                         p_attr_number => v_attr,
                         p_attr_value  => v_value);
    apex_debug.message('updated column. seq='||v_seq||' attribute='||v_attr||' with '||v_value);
    
    end;
    

    I wonder if there is a way to make the CLASS in my JQUERY SELECTOR, so something like reference entry [class = "HMS_INFO"], input [CLASS = "shark_info"]... and if so, what happens if a single item in the class is an option button and the other is a selection list and the other an element?

    is it possible to not have to rely on the fxx.  Currently, my collection columns map to the investment in the form of tables... sense, c024 = f24... because I placed c024 to be the 24th editable column, but this seems crazy.  Is there a simpler way?  I'm just learning class, then maybe there is something extra, or rather that I could use...

    any help is appreciated.   Thank you!

    I think I have solved the problem.

    dynamic action: CHANGE COLUMN

    event: CHANGE

    selection type: JQUERY SELECTOR

    jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], .shark_info, .hms_info

    true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id P110_VALUE POINT KEYS

    true action2: run pl/sql code

    begin
    null;
    end;
    

    items to submit page: P110_ID

    true action3: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value P110_VALUE POINT KEYS

    true Action4: value: PL/SQL expression, the value P110_SEQ = rtrim (substr(:P110_ID,5,4),'0 ') CONCERNED POINT: P110_SEQ

    true Action5: run pl/sql code

    declare
    
      v_attr number;
    
    begin
      v_attr := TO_NUMBER (SUBSTR (:P110_id, 2, 2));
    
      apex_collection.update_member_attribute
                       (p_collection_name      => 'SPECIES_COLLECTION',
                        p_seq                  => :P110_SEQ,
                        p_attr_number          => v_attr,
                        p_attr_value           => :P110_VALUE);
    
    end;
    

    items to submit page: P110_ID, P110_VALUE, P110_SEQ

    true action6: refreshment area

    I think it is the combination of the use of pl/sql expression to calculate P110_SEQ and also your tip on TRUE ACTION2 to submit the item that did the trick.

    Thanks Kofi, for your patience and help!  It was great.

    Ugh... on the next issue.

    Karen

  • Refresh the region in a table using dynamic action

    Hello

    I'm stumped on this scenario please advise. I have a dynamic action a button that when clicked fires real action pl/sql that will add a member to a collection, it works as expected, but the second real action on the same button will refresh the tabular form/report region. This isn't refreshing my form/report.

    To know that if we can indeed I created a report on the same page, based on the same point of view and dynamic action works.

    So why the dynamic action of refreshing working on my new report and not on the form of tables. I found a tabular presentation just a report of updateble.

    I use apex 4.1.0.00.32

    Help, please.

    Right-click of the tabular form > click attributes report > go to layout and pagination > set yes partial page refresh

  • change the results of the report with the selection list using dynamic action

    This is one of those situations where if I could understand the appropriate search terms to use, someone else must have asked this question in the past.

    I have a report with a SQL query with a condition based on a list of selection on the same page. So I have a list of selection -: P177_FISCAL_YEAR

    My request for my report is:

    Select md_id, display_name, description
    of media_tbl
    where fiscal_year =: P177_FISCAL_YEAR

    When a person makes a selection on the selection list (: P177_FISCAL_YEAR), I would like to report up-to-date without having to submit the page. I was hoping that I could do something like this using a dynamic action but have not found a way to do it.

    Thanks in advance!

    John

    Create dynamic Action:

    When
    Event: change
    Selection type: product (s)
    Article (s): P177_FISCAL_YEAR
    Condition: - unconditionally.

    Real Actions (add 2 real actions)
    -the first is to load the value in session state so that the report can see.
    Sequence: 5
    Action: execute the PL/SQL Code
    Code PL/SQL: null;
    Items to submit page: P177_FISCAL_YEAR

    -the second to refresh the report
    Sequence: 10
    Action: Discount
    Selection type: region
    Region:

  • Tabular form using dynamic Action set

    I have a tabular presentation created using APEX_ITEM.

    That is to say. APEX_ITEM. SELECT_LIST_FROM_LOV(3,NVL(D.FK_ATTENDANCE_CODE,'%null%')

    I want to use a dynamic Action to set the value based on the value of a hidden page element.
    I created a Page element 'P1358_HOLD_ATTENDANCE_CODE', and I can see he's up to the correct value.

    I tried to create a dynamic Action (run Javascript) to set the form of tab selection list item (f03), but it does not work.

    Here is what I tried:

    var line = $x_UpTill (this.triggeringElement, 'TR');
    var otherElement = $(' input [nom = "f03"]', ligne) [0];
    otherElement.value = $x('P1358_HOLD_ATTENDANCE_CODE').value;

    Any ideas?
    I know, as a backup, I could put the ID = when creating elements in a tabular form so that all the lines are different, but I hope that the JQuery can do it more easily.
    Thank you

    Did change selection that I said fix the prob?

    If this isn't the case, him DA is without a doubt was fired at your event?

  • Refresh the zone using dynamic action

    Hello

    I have a page in my application with two different regions. First region has a selection list and second region has a report and the report query uses the value of the selection as a variable binding list.

    I created a dynamic action to refresh the report region when the value of the selection list is changed.

    It works very well and the report is updated after changing the value, but once the updated report of State lines are different.

    When I move the mouse over the lines, the background color changes and when I move the mouse from the line, it does not scale to the original color.

    Is this a bug?

    Thank you
    Machaan

    Hi Machaan,

    good news, the problem reproduced no more on APEX 4.0.2 which will be our next group of hotfixes.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Use Dynamic Actions with pl/sql, calling a javascript alert function

    Hello

    I use Apex 4.0.1.00.03 with IE7.

    The problem I have is:

    I am converting an Oracle Forms application that has a lot of logic in it. In the application forms, it is a pl/sql function, based on a If/else condition call a popup alert box, which displays a warning message. He called pl/sql functions that return raising to the IF statement.

    Example of pl/sql code:

    If check_records() > 0 Then
    message to the alert box
    ElsIf TypeA_record then
    message to the alert box
    On the other
    message to the alert box
    End If;

    I need to replicate this functionality to the Apex 4. I tried to create dynamic Action on a page element, using a pl/sql function, however, when I call the popup javascript, this code not popup an alert box. I need the pl/sql to be run when the element of the page changes, not when the page is sent.

    The code I used to test the pl/sql code, which does not work in dynamic Actions > pl/sql is:

    Begin
    HTP.p ("< script type =" text/javascript"> '");
    HTP.p ("alert ("today runs javascript code!");"
    );
    HTP.p ("< /script >");
    End;

    I need to create a pl/sql function that can do alert areas based on an IF condition.

    Could someone point me in the right direction? Using dynamic shares the best way forward? I need to trigger on a page element, change the value.

    Works fine now.
    In the javascript code, I changed:

    get.addParam ('x 01', $v ('P105_PREP_TYPE'));

    by

    get.addParam ('x 01', $v ('P1_PREP_TYPE'));

    P1_PREP_TYPE is the correct name of the element.
    Now when I choose the OTHER, 1 message.

    Concerning

  • Dynamic action using the datePicker in APEX5.0

    I want to use dynamic action with dates in APEX 5.0 picker such that after the selection of start_date and end_date interactive report should display data for the selected date range.

    I first created an interactive report in the APEX and then created a page with date elements pickers.ln my database table, I have a column name time_stamp, who is with the date format varchar2 data type YYYY-MM-DD - HH24:MI:SS.

    Looks like my request for interactive report below:

    Select * from table1 where time_stamp between to_char(to_date(:p1_item,'YYYY-MM-DD-HH24:MI:SS'),'DD-MM-YY') and to_char(to_date(:p2_item,'YYYY-MM-DD-HH24:MI:SS'),'DD-MM-YY')

    (where p1_item and p2_item are the page numbers for the selectors of dates), the 'Mask of Format' attribute for the selectors of dates, I put to JJ-MM-AA. Now, I need to define a dynamic action to run my SQL query of interactive report based on the selected start_date and end_date arguments. I need to know more about the steps to create such dynamic action and look for the detailed steps to what attributes must be defined to achieve this.

    Help, please.

    Thank you

    Mukul

    I did notice that the column time_stamp was varchar2. You can use this query:

    select *
      from table1
    where to_date(time_stamp, 'YYYY-MM-DD-HH24:MI:SS') between to_date(:p1_item, 'DD-MM-YY')
      and to_date(:p2_item, 'DD-MM-YY')
    

    And if you remove it your selectors of dates format mask then you could be simpler:

    select *
      from table1
    where to_date(time_stamp, 'YYYY-MM-DD-HH24:MI:SS') between :p1_item
      and :p2_item
    

    You have need of other attributes.

  • activation / deactivation of field with dynamic action and apply the attribute 'required value.

    Hello

    Wanted to know how to force the 'required' attribute for the element off after that is "activated" by a dynamic action.

    For example, consider employee form.  I would like to disable the column of employment and salary.  As soon as the user enters the name of the employee, I will 'activate' JOB and SAL columns using "dynamic action".

    IMG-1.png

    IMG-2.png

    And above works fine.  Please note that both JOBS & SAL of columns 'NULL' according to the DB table.  My question is, how to comply with the condition of 'value' Yes, after allowing them.

    Another example would be, when the user selects 'Check' or 'Project', the 'no project' column will be activated.  Otherwise, "Project No." column is disabled (that is, the value is not required).  However, when turned on, I want to apply "value required" in this column.   How to get there?   (I use APEX 4.2.6)

    Thank you

    -Anand

    Why you do not create a function that returns a Boolean, validation of the page?

    You can do something like

    BEGIN

    IF: P5_ENAME IS NOT NULL THEN

    IF: P5_JOB IS NULL THEN

    Returns false;

    ON THE OTHER

    Returns true;

    END IF;

    END IF;

    END;

    You can change it to any desired column.

  • More than one Page objects of value with dynamic action parameter

    Hello

    How to set the values of the two elements of the page based on another page, article in dynamic action IE

    -variable value tr_type is set using the function get_type

    -passing the p1_code parameter

    TR_TYPE; = GET_TYPE (P1_CODE);

    If TR_TYPE = "DR" THEN

    P1_DR: = P1_AMT;

    ON THE OTHER

    P1_CR: = P1_AMT;

    END IF;

    -If I write the function get_type with Exp of PL/SQL of TYPE 'SET', it triggers the error on the use of the service.

    -If I put body of the PL/SQL TYPE of function 'SET', the page displays error unhandled expception.

    How can I achieve this using dynamic action.

    Hi, IK,.

    Can you please quote the u of changes/amendments made to the code, I am unable to find it.

    Included missing: for element names.

    --value variable tr_type is set using function get_type
    --passing p1_code parameter
    TR_TYPE:=GET_TYPE(:P1_CODE); 
    
    if TR_TYPE='DR' THEN
    :P1_DR:=:P1_AMT;
    ELSE
    :P1_CR:=:P1_AMT;
    END IF;  
    

    Here is my scenario with code.

    I have a form with 4 elements (account (P1_CODE), quantity (P1_AMT), DR (P1_DR, hidden), CR (P1_CR, hidden), I am writing a dynamic action on P1_AMT (change) of the code)

    DECLARE

    TR_TYPE char (2);

    BEGIN

    -calling a function "GET_TYPE.

    -passing the P1_CODE parameter

    TR_TYPE; = GET_TYPE (P1_CODE);

    If TR_TYPE = "DR" THEN

    P1_DR: = P1_AMT;

    ON THE OTHER

    P1_CR: = P1_AMT;

    end if;

    end;

    Again, we know not not how you want to call a dynamic action,.

    assuming that on the evolution of the account (P1_CODE), the function call GET_TYPE(:P1_CODE) to retrieve the type of transaction,

    on the basis of the transaction that you want to set the amount of specific element.

    on the change of point P1_code

    Action: execute the PL/SQL code

    Parameters

    DECLARE
    TR_TYPE  char(2);
    BEGIN
    --calling a function "GET_TYPE"
    --passing parameter P1_CODE
    TR_TYPE := GET_TYPE(:P1_CODE);
    if TR_TYPE='DR' THEN
    :P1_DR:=:P1_AMT;
    ELSE
    :P1_CR:=:P1_AMT;
    end if;
    end;
    

    page elements to present - P1_CODE, P1_AMT

    page items to return - P1_DR, P1_CR

    Check the screenshot

    There are other ways to set the values using dynamic action, try the above

    Kind regards

    Jitendra

  • 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...

  • Dynamic action - trigger when less Date to today's Date

    Hello

    I tried to do a search on the forum but its coming from a white.

    I think I'm trying to do is simple but for some reason, I can't understand it. What I want to do, it's a field on my form when the user enters the date display is less than today's date. I have a format mask on my date field to the standard UK of DD/MM/YYYY.

    I tried to do this using a dynamic action, but what I don't really know is how to take the date on which a field text and convert it to a date and check against sysdate using dynamic action? Is this possible with dynamic action?

    See you soon,.

    Paul.

    Hello Paul,

    You must create a dynamic of stocks that fires about to Date change. Set the DA to run following code JS (Advanced DA)

    // replace P1_DATE_ITEM with actual date item name
    // Works for Date Format DD/MM/YYYY
    var itemVal = $v("P1_DATE_ITEM");
    var year = itemVal.substr(6,4);
    var month = itemVal.substr(3,2);
    var day = itemVal.substr(0,2);
    
    // Construct JS Date Object
    var inputDate =new Date();
    inputDate.setFullYear(year,month-1,day);
    
    // Get todays date, as Date Object
    var todayDate = new Date();
    
    // replace P1_SHOW_HIDE_ITEM with YOUR item name
    // Compare input date and today date
    if (inputDate < todayDate)
      $x_ShowItemRow("P1_SHOW_HIDE_ITEM");
    else
      $x_HideItemRow("P1_SHOW_HIDE_ITEM");
    

    This should make the necessary

    Kind regards

    Hari

  • 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 to change the point label

    Hi all

    How can I use dynamic action to change the point label?

    Thank you.

    Hello

    I don't think that there is a solution out-of-the-box for it. However, it seems that the Apex 4 correct uses of the elements of the label HTML for labels. So you can use a jQuery selector that is simple to get and manipulate the tag of an element.

    Something like this:

    $('label[for="P1_CUSTOMER_NAME"]').html ("new label");

    Note that there is sometimes a scope nested within the tag tag.

    You can use a type of dynamic action "run the javascript" to do.

    Luis

Maybe you are looking for

  • How to save my favorites in a folder on the desktop to transfer to a new computer?

    I tried to export my Favoutires of my IE browser, but all the I get is a shortcut of Mozilla for Windows Media Player, no other transfers, so how to export mozilla bookkmarks to a folder on the desktop that I can add to a memory stick or Cd to downlo

  • Memory Maximum G505s

    Has anyone tried installing more than 8 GB of RAM with the 505 s? Impossible to find a large part of the solution as to how much is supported, and I wanted to see what would work before I bought the upgrade. Thank you.

  • Batch width curve report with script tiara

    Im having problems by applying only one linethinckness to all curves in my REPORT. Heres so the story, I havecall export to PDF tool of labview for each measure that I do.Each measure has a slightly different report layout I loadindependent files, I

  • Anyone know how to increase the time that the viewfinder display is lit SC60 Canon?

    Hi I have problems, like a beginner redn the message through the viewfinder of the canon HS SX60 Can someone show video mw or some instructions, I have the complete PDF manul for this, so stay on the screen the messages and won't disappear until I re

  • Lack radio SHOW the FILES AND FOLDERS HIDDEN button!

    I don't see the SHOW FILES AND FOLDERS HIDDEN in the VIEW tab in OPTIONS of FOLDERS. The option button disappeared completely! If it is caused by a virus? If so, what would be the best antivirus to fix my problem? Thank youAelver