Set default radio group value

Hi,
I want to clarify the following:
Is it true that if I assign a radio group to a base table field then I can assign a default value to it?
If it is not a non-base table field, I can still assign a radio group to it, but I cannot set a default value for the radio group?
The portal version that I am using is 3.0.9
on Solaris.
Thanks;
Kelly.

Hi,
In order to ensure that the "ALL" option is selected, you have to do a few things:
1 - On your radiogroup's definition, set the following:
Display Null: No
Null display value: (leave blank)
Null return value: (leave blank)
2 - then, update the List of values definition setting to include a NULL value. Something like:
SELECT ' ALL ' d, -1 r FROM DUAL
UNION ALL
SELECT DNAME d, DEPTNO r FROM DEPT ORDER BY 1(this way, ALL becomes part of the data). Note that, in this example, I have used -1 as the "null return value" - this is because I am using a number field here (DEPTNO). Change this to a string if you are using a VARCHAR2 field.
3 - Create a new Page Computation. This should run Before Header on the radiogroup item. The computation would be a Static Assignment of the "null return value" you set above - in my example, this is -1 The computation should be conditional on the value of the radiogroup item being null. This, I have found, is the best way to ensure that you get a default value before the page is loaded.
I have done all this on: [http://apex.oracle.com/pls/otn/f?p=33642:216]. My report's SQL query is then:
SELECT EMPNO, ENAME, DEPTNO
FROM EMP
WHERE :P216_DEPTNO = -1 OR DEPTNO = :P216_DEPTNOAndy

Similar Messages

  • How to get or set default fiscal year value in billing doc

    Hi All, my question is simple, how to get or set default fiscal year value (VBRK_GJAHR) in billing document.. is it possible.
    Thanks.
    Regards,
    Michael

    Hi Michel
    If you feel that the fiscal year value should come  in the billing document then you have to use a user exit USEREXIT_NUMBER_RANGE .
    As this is a related to ABAP , you should give the inputs and ABAP'ers will give the number range as per our requirement .
    Regards
    Srinath

  • How to pass HTML radio group value to an SQL query

    I need to display a radio group in Printer Friendly Mode so that when the value in the radio group changes the page is submitted and the report is updated to the new value.
    I can't use a standard APEX radio group item as it renders in disabled mode when the page is in printer friendly mode.
    I have therefore used a standard HTML radio group in a HTML region as follows:
    <div id="radio_bank" align="left" class="NonPrintable">
    <input type="radio" name="bank" value="Trial Bank"> Trial Bank
    <input type="radio" name="bank" value="Tissue Bank" checked> Tissue Bank
    <input type="radio" name="bank" value="Temporary Bank"> Temporary Bank
    <input type="radio" name="bank" value="All"> All
    </div>
    I have set up a dynamic action to submit the page on change event. This works but it navigates me to a "Page cannot be found " error page. I have an unconditional branch defined on the current page but this is ignored.
    Questions
    1) can a standard APEX radio group appear in Printer friendly mode? - This would solve my problem.
    2) how to submit the page using the above scenario to render the current page (dynamic action)
    3) how to capture the selected value of the radio group and pass it to SQL where clause
    thanks in advance
    PaulP

     

  • Dynamic action on "Change" of Radio group value

    Hi,
    I'm using Apex 4.1 on XE 11G.
    If I create a simple dynamic action which shows/hides a field on the change of an item of type select list this works great.
    So for example if the value of the select list is 1 then show another field and otherwise hide this other field.
    If I change the type of the first field ( the select list ) to a radio group the dynamic action stops working. It looks like the value of the radio group does not get changed when I click another value in the radio group.
    I'm somehow able to bypass this by using a dynamic action which fires when the radio group is clicked and then evaluatie it's value via JS, but that's not really the ideal solution.
    Is there some basic difference in radio groups and select lists when it comes to storing values and/or dynamic actions which are based on the change event on that item ?
    Regards
    Bas
    Edited by: Bas de Klerk on 31-mei-2012 6:42

    Take a look at the Radio group item in HTML DOM using FF/Firebug or IE/DevTools, and you will see the difference.
    If you have neither of the 2 debug tools , time you get one.
    Regards,

  • How do I save or set default Tab Groups?

    There are many questions like this already, but non for the actual FF4 release.
    When I close FF4 I lose all my tab groups.
    If I tell FF to open previously opened tabs, it saves the tabs & tab groups of the '''most recently closed FF4 window'''. This means that if I have 2 FF windows open and I close the one that has all of my favorite tabs, I've just lost everything.
    I'm sure there is a setting somewhere to "bake" or set basic tab groups. (perhaps a folder that I could bookmark my defaults to?)
    I really don't want to have to install an add on to make tab groups useful.

    App tabs and Tab Groups (Panorama) are stored as part of the session data in the file sessionstore.js in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder]
    * http://kb.mozillazine.org/Session_Restore
    Make sure that you do not use [[Clear Recent History]] to clear the "Browsing History"

  • Setting Default or Derived value for watermark template

    Hi,
    I want to set default value for watermark template id. The condition is like if dUser(Logged in user) is "a", then default value of template should be "1". I have created template in pdfwatermark administrator with contentid of template as "1".
    How to write that idocscript?
    Thanks in advance

    Dear Kick,
    There is no such option of default scrap value in IMG. You will have to put that amount in asset master.
    If the data quantum is high then better to write LSMW or CATT
    Regards,
    Ajay

  • How to set default bind variable value to task parameter value

    Hi,
    I 'm implementing a BPEL process with a human task, and I autogenerate the task form. I have a custom sql table that stores opinions, different processes should show different opinios, so my ADF table can only show records related to that process. A custom process number is sent to the task form as a task parameter. How do I use that value as the bind variable default and only value?
    Thanks,
    I.D.

    Hi Shay and thanks for your reply,
    What I want is what you have but without the login page. I tried to start my flow with an action and for some reason it didn't work.
    Is there anything else you can tell me?
    Thanks,
    I.D.
    P.S. I was able to get it to work using the aproach Frank Nimphius described in another post.
    Re: How do I prepopulate a bind variable from a session variable?
    Anyway just out of curiosity could you please tell me if I could have done it your way?
    Thanks a lot,
    I.D.
    Edited by: user8696770 on 5/Ago/2009 7:12

  • Set report radio group row selector when a link column is clicked.

    Hi can anyone help?
    I have a sql report with a radio group record selector on the left, this is used on click to populate some extra fields on the page. I also have a link column on the right of the report that is used to display another popup page. What I want is to synchronize the radio group selector when the link is clicked (that is select and click the radio group of the current row when the link column is selected).
    Page layout
    rg1 row details link pen icon
    rg2 row details link pen icon
    rg3 row details link pen icon
    extra field 1
    extra field 2
    Report attributes - link column URL.
    JAVASCRIPT: modalWin2('f?p=&APP_ID.:#SHOW#:&SESSION.::::SAVE_STATUS:N');
    I’m assuming I can call another javascript function from the link URL above and somehow I get the number of the row of the link selected . I think if I can get that I can use the code below where n is the row number of the link selected.
    Javascript :-
    var l_check = $x_FormItems($x('EVENT_HIST1'), 'radio');
    l_check[n].checked=true;
    var l_click = l_check[n].click();
    Thanks Pete

    Pete:
    One way to solve your requirement is as below
    Change the report query to be something similar to
    select
    apex_item.radiogroup(40,empno,null,null,'id=rg_'||rownum) rad,
    ename,
    '<a href=javascript:fx('|| empno ||',' || '"rg_'|| rownum ||'")><img src="#WORKSPACE_IMAGES#delete.gif"></a>' link_column
    from empAnd the JS function fx as function fx(emp,rgId) {
    $x(rgId).checked=true;     // checks radio on this row
    modalWin2('f?p=&APP_ID.:' + emp + ':&SESSION.::::SAVE_STATUS:N'); // popup page call
    }varad

  • Setting a Radio Button value using Javascript

    After much research, I've figured out that the appropriate command to get the value of a Radio Button in APEX JavaScript is "html_RadioValue", but I haven't been able to figure out a command that will let you set the value of the Radio Button. Is there documentation on APEX's use of JavaScript that covers this issue?
    Here's a simplified version of the script:
    <script language="JavaScript" type="text/javascript">
    function showval()
    var item1 = html_RadioValue('P19_RADIO');
    alert(item1);
    //Reverse the current selection
    if (item1 == 'Y') then
    <mystery_statement> //set P19_RADIO to N.
    else
    <mystery_statement> //set P19_RADIO to Y.
    </script>
    I've tried the following, but none of them have worked:
    - document.getElementById("P19_RADIO").value = 'N';
    - document.getElementById("P19_RADIO").checked = 'N';
    - $x('P19_RADIO').value = 'N';
    - $x('P19_RADIO').checked = 'N';
    Thanks.

    Okay, that worked in the Oracle-hosted environment, but not in my development environment. Looking at the view/source output from each, it seems that the versions of APEX are different - my environment is using version 3.0.1.00.07.
    The most obvious difference between the sources is the javascript includes at the top:
    <script src="/i/javascript/apex_ns_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_get_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_builder.js" type="text/javascript"></script>
    vs.
    <script src="/i301/javascript/htmldb_html_elements.js" type="text/javascript"></script>
    <script src="/i301/javascript/htmldb_get.js" type="text/javascript"></script>
    My fundamental question is: how does one learn Javascript, in the context of APEX? I can't find any documentation that explains what $v means, or what $x means, or what $s means.
    Thanks.

  • How to Set default Purchasing Group in SC

    Hi Experts,
    We have define on PPOMA_BBP the Purchasing Org, and Purch. Groups.
    For each Purch. Group. we have set the Organizational Responsability (Object ID) ,
    Some Purch. Groups are defined to same Organizational Responsability (Object ID) ,
    So, we need to assign one of the Purch. Groups as a default for the SC.
    There is no any Attribute for it.
    How we can set the default one?
    Thanks,
    Moshe

    Hi,
    1) In the PPOMA__BBP you can define in the attribute tab the Purchase group can be  made as default.
    Without attribute you cannot create a shopping cart.
               (or)
    If you are creating shopping cart in this the is a DEFAULT SETTINGS available you can make the purchase group as DEFAULT
    Please try and reply
    Regards
    G.Ganesh Kumar

  • Set default printer group policy

    I am deploying our new printers via group policy.  We have a new printer in place and I am fairly familiar on how to actually deploy them.  I am deploying the printers MOSTLY by user configuration and with that method, I am able to easily delete old printers and set the correct one as a default.  
    However, We have some computers that have multiple users.  In that case, I am deploying the printers as a Computer configuration, not an employee configuration.  My question is, how can I set the newly deployed printer as a default for all users that log on to that particular computer?  Thank you.  
    This topic first appeared in the Spiceworks Community

    I am deploying our new printers via group policy.  We have a new printer in place and I am fairly familiar on how to actually deploy them.  I am deploying the printers MOSTLY by user configuration and with that method, I am able to easily delete old printers and set the correct one as a default.  
    However, We have some computers that have multiple users.  In that case, I am deploying the printers as a Computer configuration, not an employee configuration.  My question is, how can I set the newly deployed printer as a default for all users that log on to that particular computer?  Thank you.  
    This topic first appeared in the Spiceworks Community

  • Set Radio Group Default Value Based on a Select List Change Event

    Apex 4.2
    I have a radio group that is source is below. It returns 3 radio group item All,Miv,Courier
    SELECT type d, code r FROM vw_lov_depot
      WHERE svc_name = :P320_DEPOT
      ORDER BY 1
    The radio group is only populated when :P320_DEPOT gets a value, this is a select list.
    I am trying to set the radio group to  default to this value Miv it would use the statement
    SELECT type d, code r FROM vw_lov_depot
      WHERE svc_name = :P320_DEPOT
      and type ='Miv'
      ORDER BY 1
    I have tried creating a dynamic action on Select list change to populate the default value of the radio group...no joy I also tried a computation. how can I set this default value on when list changed.
    Thanks
    I have got the default Radio Group Selection working by doing a computation before region on the radio group and calling its select statement and setting the value. But the problem is now I cannot change the radtio group as I do it fire the before region trigger and sets it back to the default value....any help?

    Hi,
    Could you please create example to apex.oracle.com?
    Regards,
    Jari

  • Spry Radio Group, sum of values

    I have done this in actionScript, but am wondering if it is
    possible using Spry radio groups.
    I have an html page with 3 radio groups. Each unique radio
    group has 3 available selections, each with respective numeric
    values. I would like to be able to make a selection of any of the
    radio group options, and cause a calculable field to display the
    sum of the 3 radio group values.
    To see the exact example of this, and how it looks in Flash,
    go here:
    Sample
    of what I want, but in Flash
    For my current purposes, I could just as easily use the
    existing calculator that I've already created in Flash. But I want
    to learn more about the Spry features in CS3, and this seems like a
    good launching point.
    If you can recommend a tutorial, that would be best.
    Thank you!
    r

    Sbisa wrote:
    > I have done this in actionScript, but am wondering if it
    is possible using Spry
    > radio groups.
    >
    > I have an html page with 3 radio groups. Each unique
    radio group has 3
    > available selections, each with respective numeric
    values. I would like to be
    > able to make a selection of any of the radio group
    options, and cause a
    > calculable field to display the sum of the 3 radio group
    values.
    >
    > To see the exact example of this, and how it looks in
    Flash, go here:
    >
    http://www.viewablebenefits.com/radnet/flash/calc.html
    >
    > For my current purposes, I could just as easily use the
    existing calculator
    > that I've already created in Flash. But I want to learn
    more about the Spry
    > features in CS3, and this seems like a good launching
    point.
    >
    > If you can recommend a tutorial, that would be best.
    >
    > Thank you!
    >
    This can be done easily enough with client side js, no need
    for Spry.
    Mick

  • Dynamic Action not triggering on Radio Group change

    I have a form that contains a text item, a radio group item and a display-only item. I have created a single dynamic action "CHANGE SUBJECT" associated with both the text and radio group items that updates the display-only item's value whenever either is changed. The action fires properly when the text item is changed, but not when the radio group is changed. If I set the radio group item's "Page Action when Value Changed" property to "Redirect and Set Value", than everything works, but that is not the desired behavior as that requires a refresh of the entire page. Any suggestions on how to make this action work? Is there a different action for the radio-group that I should be using instead of CHANGE? Thanks for your help.
    -Jeff
    Edited by: jritschel on Sep 1, 2010 2:05 PM

    OK, then change it to JavaScript Expression instead of SQL and put this code in the value :
    "Radio Group Value= "+ $v('P65_RADIO_GROUP')+" - Text Box Value= "+ $x('P65_TEXT').value I tried it and it work!
    Sam
    Update:
    I tried the same code you had before (plsql Expression) but there is something that you need to do to make it work, in the TRUE action setting , there is a "Page Items to Submit" field, you need to put your text item and radio in it as follows:
    Page Items to Submit : P65_RADIO_GROUP,P65_TEXTThis should make your code work in addition to the other way I provided.
    Thanks,
    Sam
    Edited by: Sam_06 on Sep 1, 2010 2:27 PM

  • How to set radio group default value

    Hi,
    I have a radio group in a portal form. How do I set one of them as checked when the form comes up?
    Thanks;
    Kelly.

    It might be possible with javascript. since a radio group is an array, you should loop
    through the index to set the correct
    checked value.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Kelly,
    I tried that already, and it still didn't work. Any idea? I am using portal version 3.0.6.
    Thanks;
    Kelly.
    <HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Many to Many dimension displays all the members regardless of bridge data

    Hi, I have already set up couple of many to many relationships in my cubes and all ran fine. Now I set up a new many to many relationship as follows: Fact- sales Dimension- customer Dimension- conference Bridge- (many 2 many)- ConferenceCustomers (ma

  • Oracle ADF skin editor tool

    Hi, Im using Oracle Jdeveloper 11.1.1.4. This https://blogs.oracle.com/jdevotnharvest/entry/suggested_skin_editor_workflow blog says that for using Skin editor in 11.1.1.4 i need to download Standlone Skin editor. Is this tool a licensed software, be

  • Wi-fi problems STILL!!!!!!

    I have just updated from ios 6.0.1 to 6.1 hoping apple have been listening to people, but no. STILL says "incorrect password" so cannot connect to Wi-fi, only connects when i disable the password, but that is unacceptable, SORT THIS OUT APPLE !!!!!!!

  • Shell script

    i need some help wrting a shell script in unix. a function would return a value. i need to capture that value and execute a sql script based on the value. something like this: variable x = function() if x>1 then @scriptfile.sh else exit; how can i pu

  • Amount value after doenloading to excel displayed as "2,100.00"

    hi, i have alv report which displays o/p as C1R-00001     1514     5,720.00     c1r-00011-21     5,720.00      here when i download to excel the value 5,720 is displayed or downloaded as "5,720.00" so i am unable to upload the downloaded file into bd