Radiogroup "onClick" function in ApEx?

Hello,
I have a radiogroup and a select list in a form. On click on the radiogroup the content of the select list should change.
How is it possible in Apex. Is it just possible to do it with javascript and an "onclick" function?
Thx in advance!
Greetings, Hamburger

I have a same problem, but I think that I resolved it with tis way
1. Create a hidden static item (P?_CONT)
2. Create a radiogroup with submit (P?_CHECK) with values (0,1)
3. Create a selected list with redirect (P?_LIST:
SELECT ... WHERE :P?_CHECK=..
4. Create a report region : SELECT ... WHERE P?_LIST=...
5. Create a branch (After submit) with clear cache option at this page
and set items P?_CONT=&P?_CHECK., P?_CHECK=&P?CHECK.
which are worked at condition P?_CONT != P?_CHECK
It seems to me that it works well

Similar Messages

  • Unable to edit some functions in APEX Sql Workshop

    Hi
    Users are able to edit some procedures/functions in APEX SQL Work shop. ( Object Browser - functions - EDIT)
    When we press edit we get cursor in the code area and can edit some procedures, But for some procedures when we click edit we don't get cursor in the code area and we are not able to edit the functions/procedures.
    I am using fairfox browser.This is happening with only some. Is there any security.grants issue???
    Thanks
    Sree

    Hi
    This is happening with some procedures, For others this works fine.In IE I get red block in code area.
    EDIT is working for some procedures so I think may not be the browser issue.
    Thanks
    Sree

  • Can I call an onclick function to a menu item?

    I have a feedback form that I need to get launched when the "Feedback" button in the submenu is clicked. This form is launched when i use the "onclick" function on a link like this: <a href="#" onclick="FBY.showForm('2338');return false;">Feedback</a>
    I could place this code by inserting the HTML, but the problem is that that the link is in a submenu with hover effects etc. See image below: I want the feedback form to be launched when the Feedback link (marked in yellow) is clicked.
    How can I achieve this? Is there no way of adding functions to links?

    Hi,
    To do this you will have to use the Menu Type Manual. Then you can insert HTML using Object -> Insert HTML and drag the embedded code in the container for the menu item. Also, you will not be able to style the embedded code from within the Muse and you will have to style it through the insert HTML option only.
    Regards,
    Abhishek Maurya

  • Carl / Vikas - a question on JS highlight_row() function in ApEx

    Hi,
    Based on the function from APEX provided by Vikas here for highlighting rows - see:
    More tha one report with row selector in the same page,
    - all works fine but with the way I would like to use it, I have found a slight problem.
    Basically have a tabular report with checkboxes where the user can click a checkbox on or off but I also have a 'Check All' checkbox that I have incorporated with this highlight row solution and all works fine.
    Now, if I first click on a row in the tabular report which highlights the one row and then I decide I want to 'Check All' checkboxes which checks all the records and highlights them as well and then decide to uncheck the 'Check All' checkbox, all checkboxes are set to unchecked but the indivudual row I clicked on first still remains with the hightlighted colour - the rest are reset.
    How can I return it back to the original colour prior to highlight_row() function firing?
    Thanks.
    Tony.

    The out of the box row selector on a out of the box tabular form does this fine
    http://htmldb.oracle.com/pls/otn/f?p=24317:219
    Click the checkbox on individual rows, that row gets highlighted
    Click the Check all checkbox, all the rows get highlighted
    Uncheck the Check all checkbox, all rows get unhighlighted, no residual effects.
    So, are you working with a manually built tabular form? Give us more details or try to post an example on apex.oracle.com

  • Email function in apex

    Hi I am trying to use email notification built in function of apex(4.1.1) to so that it take the email address from the form entered by user and then send a 4 digit random number as and authentication to login /validate the email entered.
    i tried sending many emails since morning but none of them received as if now..
    any clue ?

    new new wrote:
    not working ,Why did you mark it as correct answer if you cannot get it to work??
    And the fact is that you cannot run the apex_mail API directly outside the APEX session, you need to set the context before calling it.
    APEX documentation
    begin
        l_workspace_id := apex_util.find_security_group_id (p_workspace => 'PROJECTS');
        apex_util.set_security_group_id (p_security_group_id => l_workspace_id);Finally did you ever know that there a thing called APEX documentation, if yes please search the documentation and the forum first

  • Re:  Integrate jQuery Grid / inGrid /Flexigrid functionality within APEX

    Hi All,
    Can anyone let me know to integrate jQuery Grid / inGrid /Flexigrid functionality within APEX?
    I have had little searched on jQuery Grid on Google but most of examples are for PHP & ASP.Net.
    Anyone help would be great to me.
    Thanks in advance.
    Regards!!
    Dip, Canada
    Edited by: user8609115 on 12-Feb-2010 7:56 AM

    Hi All,
    Can anyone let me know to integrate jQuery Grid / inGrid /Flexigrid functionality within APEX?
    I have had little searched on jQuery Grid on Google but most of examples are for PHP & ASP.Net.
    Anyone help would be great to me.
    Thanks in advance.
    Regards!!
    Dip, Canada
    Edited by: user8609115 on 12-Feb-2010 7:56 AM

  • Time Out Functionality in APEX

    Currently I am working on APEX 3.1 and using OID (10.1.2) for LDAP Authentication.
    I want to implement time out functionality in my application.
    Ex: If users logs into to APEX Application and keeping the page ideal for 15 min. When user tries to access the application again. I need to redirect him to SSO page.
    Can anyone suggest me, How can I achieve this functionality.
    Thanks in advance
    Regards
    Balaji S

    Hello Balaji,
    The easiest thing would be: Upgrade to version 3.2. Then session timeout is out-of-the-box....
    Greetings,
    Roel
    http://roelhartman.blogspot.com/

  • How to debug PL/SQL function in Apex

    Hi,
    I have a process in Apex that uses a PL/SQL function. When I compiled it in SQLPlus, it had no errors, yet when running it in Apex, I get an error.
    'Encountered unhandled exception in process type PLSQL' in the debug message. What's the best way to handle this? Thanks.

    Hi -
    Its hard to say without seeing the code of your process, but are you sure you are submitting any required paramaters to your process from the calling apge in Apex?
    Have you checked the Session to see what values it holds, and have you turned on Debug in Apex to see the code executing (or at least the call to your process)?
    Good luck.

  • Calling a function in apex region

    Hi
    I want to call a function from a package into Apex report region , but it wont the parse
    i tested in sql dev successfully
    sample code goes like this ..
    SELECT DISTINCT SOR_OFFENDER.FIRST_NAME ||' ' ||
    SOR_OFFENDER.MIDDLE_NAME || ' ' ||
    SOR_OFFENDER.LAST_NAME as "Name",
    SOR_OFFENDER_DETAILS.get_offlu_url(:p216_detail) ---package where function is define
    FROM SOR_OFFENDER,
    SOR_LOCATION
    WHERE SOR_OFFENDER.OFFENDER_ID = SOR_LOCATION.OFFENDER_ID
    AND :p216_detail = SOR_LOCATION.OFFENDER_ID
    any idea /help
    Edited by: Red_Bull on Aug 8, 2012 3:02 PM

    Tony
    I have to use this function to link other page or portal , using different parameter on different reports.
    CREATE OR REPLACE FUNCTION
    get_offlu_url (p_offender_id IN NUMBER) return VARCHAR2
         as
        temp_url_string varchar2(300);
        final_url_string varchar2(300);
        v_doc_num off_profile.doc_num%type;
        v_booking_id off_profile.offender_book_id%type;
        begin
           select http||server||port||dad||start_page into temp_url_string
            from offlu_url;
           select doc_num, offender_book_id into v_doc_num, v_booking_id
             from off_profile
             where offender_id = p_offender_id;
           final_url_string := temp_url_string||'doc_num='||v_doc_num||'&abc='||v_booking_id;
           return final_url_string;
        exception
           when too_many_rows then
               v_doc_num := 0;
               v_booking_id := 0;
        END get_offlu_url;

  • Using packaged functions in Apex

    Hi,
    I'm fairly new to apex and I am about to write an app which needs to access a SQL server database. My local dba has set up the transparent gateway and I can select from and update the SQLServer database no problem via a db link. What I need to decide is whether to code the sql for reports etc directly into the apex page or to call a pl/sql function returning a select statement. I would like to have all the code in packages as a lot of it will be used by multiple apps in future but is there any extra overhead in doing this:
    declare
    l_sql varchar2(4000);
    begin
    select package.function into l_sql from dual;
    return l_sql;
    end;
    rather than coding the SQL directly in the page? Also is there a more efficient way of using packaged functions to select data rather that just have it returning sql statements.
    Thanks in advance.
    Dave

    Hi
    I only use function returning select when I have a strong reason to do so, because it is so much more difficult to test and maintain. Not sure about performance, but I think it is not that much worse.
    If you simply want to reuse SELECT statements, you could use views instead.
    Anyway, if you decide to use the package solution, at least you can make it much simpler -- just code like this in the page:
    return package.function;
    I hope this helps.
    Luis

  • Using setTimeout function in APEX

    Hi,
    I am trying to show a print dialog box after which I need to take confirmation from the user whether the printout has come fine or not. For acheving this I am trying to use setTimeout in javascript which is not working. The confirmation box is coming before print dialog box which I do not want to happen.
    Below is the code I am writing in APEX
    <html>
    <head>
    <script language="JavaScript1.1" type="text/javascript">
    function updatePrintFlag()
    var print_flag = confirm("Has the printout come fine?");
    if(print_flag==true)
    alert('Printout has come fine. Updating in the database');
    function callPrint()
    window.print();
    var sleep = setTimeout(updatePrintFlag(),2000);
    alert(print_flag);
    </script>
    </head>
    <body onload='callPrint()'>
    <font size=2>Asking confirm after 2 Secs of print dialog box</font>
    </body>
    </html>
    Please help me in this issue. Thank you.
    Regards
    Dev
    Edited by: [email protected] on 18-Mar-2009 03:17

    Hi -
    Change this line (note quotes):
    var sleep = setTimeout("updatePrintFlag()",2000);Edited by: cmcneil on Mar 26, 2009 1:38 PM

  • Copy function in APEX needs userid and password

    Hi,
    I use APEX 3.2 on Windows Vista and XDB, PL/SQL Gateway on Oracle Database 11g.
    The installation was very easy and the application runs nearly perfect. In 1 site there is a function (Button) to copy a record from the database to the screen to make updates. Here needs the system a userid and a password. I unlocked the user XDB and set the password to xdb (alter user as sys).
    Nothing changed. Which userid and password is needed?
    Can anyone please help me.
    Thanks and kind regards
    Siegwin

    I need some more info than that. Please provide me with the wokspace name, username & password. You can post that here and change the password afterwards or send me an e-mail.
    But you added some additional info..let's rephrase:
    1. You had 11gR1 and upgraded the standard APEX version (3.0) to 3.2 and created your app in there.
    2. You upgraded your database to 11.0.1.7 and ended up with the standard APEX 3.0 (FLOWS_03000).
    3. So where is the 'old' FLOWS_030200 schema? Is that still in the database?

  • Newb: Passing a spry variable into an onClick function?

    So I have a spry table that's populating great and everything is working fine. I want to add the ability to run a simple function when a row is clicked.
    The code I've written...
    <tr spry:repeat="ds1" spry:hover="hover" spry:select="selected" onClick="DoNav({@name})">
    Here's the function...
    function DoNav(theLocation){      alert(theLocation); } 
    When I click the row nothing appears to happen but Firefox's error console returns an error: "Error: ThisNodesLocation is not defined"
    "ThisNodesLocation" is the value of @name in this instance.
    Any help would be greatly appreciated.
    Thanks.

    onClick="DoNav('{@name}')"
    You should wrap it in strings like i did above

  • Alert popup box / onClick function

    Hello everyone,
    I'm trying to create a jscript alert box that should be displayed when a user clicks the Change Password button for the forgot password functionality. When the user clicks that button, an alert should be displayed saying " your password has been successfully changed....you will be logged out now!" and it should proceed to log the user out...I'm uncertain if my code is wrong or ....As of now when the user click the change password button, they are returned to the main menu/dashboard displaying all user functions. Would appreciate if anyone could help....i've attached my codes below.
    <Field button='true'>
    <Display class='Button'>
    <Property name='label' value='UI_CHG_PWD_LABEL'/>
    <Property name='command' value='Save'/>
    <Property name='onClick' value='user/userLogout.jsp'/>
    </Display>
    <Expansion>
    <s> javascript:alert('Your password has been changed successfully!! \\n You will be logged out of the system now!!') </s>
    </Expansion>
    <Disable>
    <isnull>
    <ref>resourceAccounts.id</ref>
    </isnull>
    </Disable>
    </Field>
    <Field button='true'>
    <Display class='Button'>
    <Property name='label' value='UI_CANCEL_LABEL'/>
    <Property name='value' value='Cancel'/>
    </Display>
    <Disable>
    <isnull>
    <ref>resourceAccounts.id</ref>
    </isnull>
    </Disable>
    </Field>
    Thank you!

    Try the following:
    <Field>
      <Display class='Button'>
        <Property name='label' value='UI_CHG_PWD_LABEL'/>
        <Property name='command' value='Save'/>
        <Property name='postURL' value='user/userLogout.jsp'/>
        <Property name='onClick' value='alert("Your password has been changed successfully!! \n You will be logged out of the system now!!");'/>
      </Display>
    </Field>

  • Does Struts frame work supports Onclick function or not ...?

    HI,
    Does TLD support Onclick() onMouseOver Function or not ...?

    What? Haven't you read what this forum is about?
    By the way STRUTS just copies the attribute to underlying html (meaning the language, not the string) tag (if onclick is allowed, as you can easily check reading tld or pressing Ctrl+Space in any IDE). So support depends on the browser. Bye.

Maybe you are looking for