APEX dynamic action - how to hide an element after the loading of the page

Hello

I have a form with the element Type, lesson and page.   I want to create a dynamic as action ' on page load "If Type = x don't then see the lesson and the elements of the page. .

How can I know if Type = x don't see the lesson and the page. It does not show them.

Please note the dynamic, action = Page load event

Thank you

Try adding

When the Condition "Javascript expression."

Value: $v ('P1_TYPE') == 'x')

Tags: Database

Similar Questions

  • Apex 5 after execution of a dynamic action, want to display message and redirect the page

    Hello Experts,

    I use 5 Apex on XE 11 g.

    One of my page, I have 1 button that performs a dynamic action.

    Right now, I've added two real actions on the key. First of all is PL/SQL code, and the second is on the alert, which shows the success message.

    I want to show the message (box Apex message and not the simple alert message JavaScript box) on successfully executing this dynamic action and post that redirect to another page.


    Can someone help me please in the present.


    Thank you

    Thierry

    Thierry says:

    I use 5 Apex on XE 11 g.

    One of my page, I have 1 button that performs a dynamic action.

    Right now, I've added two real actions on the key. First of all is PL/SQL code, and the second is on the alert, which shows the success message.

    I want to show the message (box Apex message and not the simple alert message JavaScript box) on successfully executing this dynamic action and post that redirect to another page.

    Use the simple way to do this:

    • A button that submits the page rather than perform a dynamic action
    • A process of PL/SQL after presented with the necessary success message page
    • A branch to the landing page with the option include the success process message verified

    General management and the process should be contingent on the button that is clicked.

  • How to hide a button in the page based on the condition button bar

    Hello

    I have a requirement to hide apply and save on value-selector button released in the status field to create work order page.

    kindly help

    ProcessRequest:

    Am = (OAApplicationModule) oapagecontext.getApplicationModule (webBean) OAApplicationModule;

    OAViewObject oaViewObj1 = (OAViewObject) am.findViewObject ("xxcustPVO");

    If (oaViewObj1 is nothing)

    {

    oaViewObj1 = (OAViewObject) am.createViewObject ("xxcustPVO", "xxcust.oracle.apps.eam.workorder.server.xxcustPVO");

    If (oaViewObj1! = null)

    {

    oapagecontext.putDialogMessage (new OAException ("got added attributes"));

    }

    }

    ProcessFormRequest:

    OAViewObject vo2 = (OAViewObject) am.findViewObject ("xxcustPVO");

    If (vo2.getFetchedRowCount () == 0)

    {

    VO2. InsertRow (VO2. CreateRow());

    Line OARow = (OARow) vo2.first ();

    row.setAttribute ("RowKey", new Number (1));

    oapagecontext.putDialogMessage (new OAException ('value inserted in VO'));

    }

    Based on Condition

    If (vo2! = null) {= (OARow) vo2.getCurrentRow (); line}

    If (line! = null) {}

    oapagecontext.putDialogMessage (new OAException ("inside the vo attribute"));

    row.setAttribute ("xxApply", Boolean.valueOf (false));

    row.setAttribute ("xxSave", Boolean.valueOf (false));

    }

    Card apply n Save button with SPEL

  • Dynamic action - set a value of element based on the selection of lines of report

    Hi people,

    Does anyone have an example how to set up a dynamic action, which could fill an element with the selected ID based on the selection of line of the report on the same page?

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

    If I select an item in the report, then I would fill in 'Selected ID' element with the value of the selected report EMPNO line.


    Later, I would use it for the display of parts of master / detail on the same page.

    Thank you very much
    Tomas

    For this sample page, add the following JS code to run when the page is loaded.

    $('.highlight-row td').click( function(){
      //fetch record id from the cell contents of first column in row
      id = $(this).parent().children('td:eq(0)').text();
      //set page item to selected id
      $('#P2_SELECTED_ROW').val(id);
    });
    
  • Need to hide an element at the level of the page loading

    Hello


    Can someone help me to hide an element when the page is loaded. I want to display the element, when I click on the GO button.


    Thanks in advance.

    Published by: [email protected] on April 15, 2009 22:25

    Take these steps

    in the processRequest method

    itemBean.setRendered (false);

    at processFormRequest

    If (pageContext.getParameter ("Go")! = null) {}
    itemBean.setRendered (true);
    }

    Hope I would solve your problem

  • Different value for the element on the page on different areas on the same page?

    Hi all:

    I use APEX 4.0.6 and I have a page with 4 regions and each of the region shows a classic report which SQL is very similar to the other:

    for example

    For region 1, the SQL looks like select * from history where status = 'A ';
    For region 2, the SQL looks like select * from history where status = 'B ';.
    For region 3, the SQL looks like select * from history where status = 'C ';
    For region 4, SQL looks like select * from history where status = ';

    To optimize database performance, I like to create a page element called p_status_value on this page and using the syntax of following link for the SQL statement for all 4 regions:

    Select * from history where status =: p_status_value;

    However, I need this page element value is dynamically change for each region:

    For region 1, p_status_value = "A";
    For region 2, p_status_value = 'B ';.
    For region 3, p_status_value = 'C ';
    For region 4, p_status_value = ';

    Also, I need hide this element of the page on this page.

    Can someone show me how to do this?

    Thanks in advance!

    Kevin

    Published by: Kevin Zhang on May 10, 2011 13:03

    Then I would have 4 regions, with each region report, create a box item in each area, called PXX_REGION_VALUE and then your request is:

    select * from history where status = :PXX_status_value_X; (XX for page # and X for region #).. The database engine will crunch through the query and your dashboard will work fine..
    
    Thank you,
    
    Tony Miller
    Webster, TX
    
    If vegetable oil is made of vegetables, what is baby oil made of?
    
    If this question is answered, please mark the thread as closed and assign points where earned..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • APEX 4: Dynamic Action to manipulate a search string in the interactive report

    Hello

    I have the following problem. I have an interactive report that shows a few columns and one of them has a barcode that has been saved as a numeric value for display in the column is something like ("123456789"). All works fine so far. If anyone 123456789 they will get the right line and all is well. Unfortunately if I scan in the barcode with a barcode scanner, he enters '01234567890'. I don't have nor the ability to reprogram the scanner BC and I can't change how the data gets displayed.

    So I thought I would create a dynamic action that is triggered when the contents of the textfield object change. So, I've created a dynamic action, selected jQuery and entered .apexir_SEARCH and the Change event.
    I then chose to run JavaScript and entered as cod:

    var newsearch = document.getElementById ('apexir_SEARCH').value.replace (/ ^ [0] + / g, ");
    var inputObj = document.getElementById ("apexir_SEARCH");
    If (inputObj)
    {
    Update of the value
    inputObj.value = newsearch;
    }

    So far so good. When I load the page and enter a value from a '0', it works like a charm and it removes the zero. But if I delete again on the page and the search filter, dynamic action will do nothing. I'm really confused, as if I just made a mistake in the JavaScript code or what is the reason, that the action runs only the first time. I have to reload the page and then it will still be to manipulate the string once, but the second time, it won't.

    I'm very happy for any help you can provide!

    Thank you
    Dennis

    Hi Dennis,

    The thing that comes to mind is to check that the scope of the event of dynamic action is 'live '. If it's on (default) bind, then when a partial page refresh occurs, action will not fire the first time. Direct fires each time.

    Hope this helps

  • How to disable a page based on the value of another element on the Page element?

    Hello

    How can I turn a page element using javascript based on the value of another element on the page?

    Eg: P1_TEXT want to be disabled if the value in P1_LCOK = "LOCK".

    How can I do this using javascript. I want this implemt on loading the page.

    Kind regards
    Benz

    Put this function in the page header:

    
    

    and call it in the footer:

    f_disable_item;
    

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • ﷯Error - error message: an element on the page "News" at location 33 642 requires the pixelation, but is too large to rasterize. Resize it smaller and try again... I can't fix this or find that the line number.  How can I find this line?

    ﷯Error - error message: an element on the page "News" at location 33 642 requires the pixelation, but is too large to rasterize. Resize it smaller and try again... I can't fix this or find that the line number.  How can I find this line?

    I don't know why it worked, but I changed the police and was able to download Web site.  Thanks for your help!

  • How to display decimal numbers with elements of the page?

    Hey everybody,

    I work with APEX 4.2. I have a page with an element (element of the page displayed in the text field).

    This point of displays the values the database. If the value in the database is "0.5" item only shows that ", 5" instead of "0.5".

    I tried it already as digital point. Can someone help me?

    Your article is using data column?

    Otherwise, data recovery process:

    Select to_char (number_value, '990.0')

    in: point

    table;

  • How to install 11 elements after you download it?

    How to install 11 elements after you download it?

    go to the folder where you saved the download and click on Setup.

  • 2 How to remove an element from the tree and the database block tree?

    Hello

    2 How to remove an element from the tree and the database block tree?

    Kind regards

    Abdetu...

    The problem is caused by not sending forms is not a VALIDATION of the database because he thinks that there is no changes to save.

    Forms does know that changes to the data block, he does not know the changes made by the PLSQL INSERT, UPDATE, DELETE calls and procedure.

    Try to remove the line to block, rather than using a DELETION like that...

    go_block ('INSP_EQUIPMENT_TYPE');if form_success then   do_key ('DELETE_RECORD');end if;
    
    
    

    If you wish to continue using your original DELETE instead of my change above code, you can use different techniques to force forms to issue the COMMIT to the database, including this one...

            DELETE ...        FORMS_DDL ('COMMIT');
    

    Be careful... This will be the VALIDATION of the database, but the changes to the data block will not be sent to the database!

    I posted a few other ways to issue a VALIDATION of forms here
    www.seeristic.com/Forum_Posts/Forms_COMMIT.txt

  • Position of the element on the page

    Hi - I'm still pretty new to LiveCycle so hopefully it'll be easy.

    I produce a PDF and I am trying to get information on each element to put in bookmarks XML so that I can bookmark the PDF dynamically.

    I found that I can use xfa.layout.page (this) in the script of layout: ready to get the page number of each article, but I can't work, how to get the position of each element on the page.  All I can find are this.x/this.y and xfa.layout.x (this) / xfa.layout.x (this), but those will be 0,0 - which I think is because the element is located at the top left of the element that contains.

    Does anyone know how to get the position of an element on the page?

    Thank you

    Dan

    Hi Dan,.

    John Brinkman has x, y of the samples on his blog: http://blogs.adobe.com/formfeed/category/transpromo

    I have here a sample that accesses the x, y position of the objects and mouse, which can help.

    http://cookbooks.Adobe.com/post_Moving_Objects_Around_a_Form-16519.html

    and

    http://assurehsc.IE/blog/index.php/2010/05/moving-objects-around-a-form/

    You are right that the coordinates are based on the top/left of the container. When you work with coordinates I tend to set the container of the Page master at 0,0, so that all objects are then based on this.

    Good luck

    Niall

  • The default value for the elements of the page get ready when the session is disabled

    Hello

    I am facing this problem, do not know how to solve this problem. Basically, the default value 'elements' on the page don't prepare you when the session is disabled and I visit the page for the first time. So when I check the session for the first time, all page elements are null. But when I revisit the page, page elements sometimes gets.

    Don't know what I'm missing here... Someone has encountered this problem before?

    Thanks in advance! Kindly let me know if you need more clarification.

    Is there a way that the page element can be defined at the time the page is loaded for the first time?

    Yes. Create a "Page Rendering" PL/SQL process. That it is very early in the page rendering (i.e. "on charge ‑‑ after Header"). Set the value of the element of page here:

    BEGIN
      :P10_MY_ITEM := 15;
    END;
    
  • Want to only two elements of the page without a space between them.

    I give a broader and more generic framework to an earlier application seeking a broader response.

    I want two elements on the page without horizontal between space. (Don't ask why!) One is a contant, say ' * ' so I made a single display element. The other is the label of a numeric field that is referenced in the error messages generated by the ARF.

    Call the label LABEL to make this easy. So, I want to see {noformat} * {noformat} LABEL. I don't want to change the label of "* LABEL" because ARF refers to "* LABEL" in error messages. I want to just fix the two elements on the form. This must be something easily done in the APEX, right?

    (For the initial application, see asterisk desire by a label point of page without space between. .)

    Thank you and God bless you,
    Howard

    Hello

    Just change your article networking sessions (if you use apex 4.2)

    Start the new grid: No.
    Start the new row: No.
    New section: No.

    FYI, you may need to use

    & nbsp

    in your point label to get a space

    If you use apex 4.1, I remember: new field should be no.

    Best of luck,

    Best regards
    Fateh
    -------------------
    If you think that my answer was correct or helpful to you, then please check the response as helpful or appropriate.

Maybe you are looking for