Setting an app level item based on :APP_USER

I am trying to set an application level item right after I log in and I want the value to be based on the setting of :APP_USER. I created an application level process at the "On New Session: After Authentication" point containing the following code:
select id into :F107_VOTER
from el_person
where userid = :APP_USER;
This works fine when I run the page from the builder, but fails when I fire up a separate browser session and access the app directly. I'm suspicious that perhaps APP_USER built in item is not defined when the process point runs. Can someone confirm when APP_USER is set relative to this application level process point and/or perhaps suggest an alternative way to initialize an application level item that is dependent on APP_USER?

Bill,
The first page that runs in your new session is the login page. So your process runs at the very first opportunity (On New Session:After Authentication) when APP_USER is null, which doesn't do what you want. The name of that process point is misleading, it means after authentication for the current page. For the login page, which is necessarily a public page, the authentication steps are completed immediately after the show processing begins. So then you enter username/password and submit the login page which takes you to the first real page in the app, but still in that same session, but the process has already fired and won't run again.
I suggest that you create another application item, F107_VOTER_INITIALIZED, change the process point to be Before Header, add a condition so that it runs only if F107_VOTER_INITIALIZED is null, then have the process run the query and set the initialization flag to a non-null value. Of course F107_VOTER itself can be the initialization flag if it is to remain constant throughout the session.
Scott

Similar Messages

  • Setting App level Items and using it.

    Hi all
    I am setting the application level item value by application level process which is working good.
    application level process : select get_dbname into env_str from dual.
    But when I use this variable value, its not working.
    In logout URL,, I am trying to put &env_str. but that is not working.
    Any idea?
    pb

    Scott,
    Its working, but for some reason this whole thing (using item in logout url) wasnt working for this particular application.
    Thanks for the reply.
    pb

  • How do I clear application level item of the last value it held?

    See next post - I oopsed the first try.
    Edited by: user3034406 on Jul 28, 2009 1:48 PM

    Using oracle 11g, apex version 3.0.
    Ok, so I am developing a survey with questions and their related answers (either radio group or checkbox depending). I have it set up so that when a user clicks a checkbox, an apex_collection is updated. In the pl/sql of my region source, I left outer join to this collection to display the checkbox as checked when its value is found in the collection. Using this same strategy, I can delete a value from the collection when a user uncheckes a box....
    The problem I am having is this: the very last value that a user checks initially (i.e. takes checkbox from unchecked to checked status) is staying in my application level item :ADD_THIS, so when the page is refreshed or whatever, this value gets added to my collection, which means it shows as checked. Well, I think this is what is happenig...!
    I have tried setting the app level item to null in a computation process, but this screwed everything up and nothing would work right....
    So, if someone knows when, how and where to reset an app level item?
    NOTE: I barely know javascript (getting the hang of simple stuff but I have a long way to go!) and am a little shaky on things like session state, before load, after load, etc., etc, when it comes to apex. Please be patient with me! (smile)
    Here's what's going on script wise:
    PL/SQL in region source of page: builds list of questions and their associated answers
    DECLARE
    #####stuff here####
    CURSOR multiple_answer_cur IS select apex_item.checkbox(1, nvl(a.c001, a.answer_seq),'onclick="f_updateMember(q_seq, a_seq);"', a.c001, null, v_q_seq) cbox, a.answer_text, qa.question_seq, a.answer_seq
    *<etc. etc....>*
    CURSOR single_answer_cur IS select apex_item.radiogroup(radio_global, nvl(a.c001, a.answer_seq),a.c001, null, null, null, 'f_updateMember(q_seq, a_seq)',null, v_q_seq) rgroup, a.answer_text, qa.question_seq, a.answer_seq
    *<etc. etc....>*
    BEGIN
    ####stuff here that builds survey and writes it using HTP. to page####
    END;
    Javascript function to add or delete from collection (in header of page)
    function f_updateMember(q_seq, a_seq){
    --determine if value represents checked or unchecked box
    var isString = /q|a/;
    var getThis = document.getElementById(q_seq).value;
    var findinValue = getThis.search(isString);
    var getaddthis = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=AddCheckboxValue',0);
    var getdelthis = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=DelCheckboxValue',0);
    --onclick, if an 'a' or 'q' is found in value, this box is in the collection and therefore checked, so delete it
    if (findinValue != -1) {
    getdelthis.add('DELETE_THIS', "q"+q_seq+"a"+ a_seq);
    getdelthis.GetAsync(function(){return;});
    getdelthis = null;
    }else{
    --onclick, no 'a' or 'q' is found in value, this box is not in the collection, so add it
    getaddthis.add('ADD_THIS',"q"+q_seq+"a"+ a_seq);
    getaddthis.GetAsync(function(){return;});
    getaddthis = null;
    Snippet of page source
    <b>Question number one</b>
    <input type="checkbox" name="f01" value="q78a489" checked="checked" onclick="f_updateMember(78,
    489)" id="78" />Answer option one for question one>
    <b>Question number two</b>
    <input type="checkbox" name="f01" value="483" onclick="f_updateMember(77, 483)" id="77" />Answer
    option one for question two>
    Edited by: user3034406 on Jul 28, 2009 12:18 PM

  • Setting application level item during authentication

    We’re having an issue with an application level item that we set during our custom authentication function to store a role list for authorization. The issue is that the application level item, which should be set using htmldb_util.set_session_state(‘ITEM_NAME’, p_item_value), is not being set.
    On further investigation we realised that this issue was only affecting developers, not users of the application. This seems to be because the home page link, set in Shared Components > Edit Security Attributes, is set to “f?p=&APP_ID.:1:&SESSION.”, which means that the developers session was being passed to the application when the “Run Application” button was pressed. What then happens is that following the successful execution of the authentication function, a new session id is generated and visible on the URL and the Application Level Items are not set correctly.
    Examples:
    I’m developing an application on Apex that has the home page link set to “f?p=&APP_ID.:1:&SESSION.”, here’s the first part of my URL at the Application home page:
    http://apex.oracle.com/pls/otn/f?p=4000:1:1065658352862710::
    I hit “Run Application” and get to this URL (note the session id is the same)
    http://apex.oracle.com/pls/otn/f?p=16033:1:1065658352862710:::::
    I log in using any old username and password (the auth scheme on this demo app always returns true) and I get to this URL (note the session id is different):
    http://apex.oracle.com/pls/otn/f?p=16033:1:1403999736046638
    My application level item is not set and I start to cry. When I recover from my tearful episode I try to log in again, I hit logout and get taken to this URL:
    http://apex.oracle.com/pls/otn/f?p=16033:1
    I log in again (with the same username or different, it doesn’t matter) and low and behold, my application level item is set ok. This is the URL I can see (note another new session id):
    http://apex.oracle.com/pls/otn/f?p=16033:1:4917752800353335
    In despair, I close my browser window and go to my other application, this one has got the home page link set to “f?p=&APP_ID.:1” (no session id passed).
    I log back into Apex as a developer and go to the application home page at this URL:
    http://apex.oracle.com/pls/otn/f?p=4000:1:131988631742187::
    I hit “Run Application” and get to this URL (note the session id is missing):
    http://apex.oracle.com/pls/otn/f?p=19114:1::::::
    I log in using any old username and password (same deal as before) and I get to this URL (new session id):
    http://apex.oracle.com/pls/otn/f?p=19114:1:4320851658879093:::::
    Amazingly, this time the application level items are set first time.
    What I’d like to know (there is a purpose to this) is:
    - Why is a different session allocated to the application after login, when a “developer’s” session id is passed to the application?
    - If I remove the session id from the home page url what is the impact? I can’t think of anywhere within the application that this is used (other than between page 101 and the home page), but our thoughts are that this could mean that users end up generating more sessions on the server.
    - Is there any other way around this, perhaps using a different method of setting the application level item? The authentication procedure which sets the item reads as follows and mimics our authentication procedure (which you can assume does a little bit more than just returning true):
    function test_login 
      (p_username in varchar2 default null, 
      p_password in varchar2 default null) return boolean is 
    begin 
      htmldb_util.set_session_state('F16929_SYSDATE', to_char(sysdate, 'DAY')); 
      return true; 
    end;- Has anyone else encountered difficulties with the setting of application level items during login or has anyone come up with a more ingenious plan for passing something back from authentication that can later be used for authorisation?
    Thanks
    matt

    Scott,
    Many thanks for the response.
    We've found a way around this now, by changing the developer's usernames to the same as their NT/ Active Directory signon, which fools APEX into maintaining the session id from their builder session even though when logging into the application they get authenticated by LDAP.
    Using a post authentication process would be ok but I can't see any way of passing a variable retrieved in the authentication process under the first session to the post authentication process so that it can be set in the second session. We'd either therefore have to insert the data into a table and read it back or add an extra LDAP call to retrieve the user role/ group list during the post authentication process.
    Thanks again,
    Matt

  • Set item value from application level item

    Hello,
    I'm using Apex 2.2.1.00.04. I've modified the Page "No Tabs" template so that I can have my own Form (which is submitted to an outside website). On this form, I create some hidden items:
    <form name="frmEPay" method="POST" action="some_website">
    <input type="hidden" id="i1" name="userId" value=&G_ID. />
    <input type="hidden" id="i11" name="timestamp" value="" />
    <input type="hidden" id="i12" name="hash" value="" />
    On this apex page, I have a javascript function which is called in the onload (basically, the ApEx webpage displays and then is redirected). Here's a snippet of that function:
    var appProc = new htmldb_Get(null, html_GetElement('pFlowId').value,'APPLICATION_PROCESS=PrepEPay',0);
    appProc.get();
    appProc = null;
    document.getElementById('i11').value = "&G_ECOM_TIMESTAMP.";
    document.getElementById('i12').value = "&G_HASH.";
    document.frm_infiNET.submit();
    As you can see, the function calls an application level On Demand process (PrepEPay). That process sets the values of the application level items G_ECOM_TIMESTAMP and G_HASH. After those App level items have their values, I want to take those values and apply them to the hidden items on my custom form. Unfortunately, it doesn't work how I have things currently. I've verified that the On Demand process is running(by viewing the Session report on the page). So my problem seems to be this: 1. Retrieving the values from the Apex application level items
    2. Setting those values to the values of my hidden items (on my custom form)
    I think the biggest reason why I'm having difficulties is because I have to do a lot of this in the template, since that is the only way to have a separate Form. Maybe my problem is that I don't understand how to reference the Apex application level item value from a different form?
    Thanks,
    Marty

    Marty,
    You are describing this as if you expect the substitution within "&G_ECOM_TIMESTAMP." and the other one to take place in some kind of lexical order, e.g., from the top to the bottom of the HTML. The replacements happen in the engine, before anything is sent to the page. Then the browser interprets language constructs such as javascript calls which in your case includes an ajax invocation of a server-side application process.
    You need to re-think the machinery here.
    Scott

  • Can't access  Application level item

    Hi,
    I have set an Application level item. I have tried to assign it as a default value on a Page Item but nothing is being shown.
    Application Level Item: APP_USER_ID
    On New Instance computation:
    select user_id
    from isp_user
    where login_id=:APP_USER
    Page Item: P57_CREATED_BY
    Default Value: &APP_USER_ID.
    Default Type: Static Text with Session State Substitutions
    No value is displayed, but if I replace &APP_USER_ID. with &APP_USER a value is displayed.
    Thanks for any assistance.

    OK, I've simplified the scenario to avoid any confusion. I'll give you a step by step of what I think you are telling me and see how we go. Believe I feel like I've tried everything...sure it's just my inexperience with the tool.
    Via Shared Components/Items created....
    Application Level Item: APP_USER_ID
    On Page 57 of my Application I created a Before Header computation:
    Item Name: APP_USER_ID
    Type: SQL Query
    Computation Point: Before Header
    Computation: select 21 from dual
    I assigned this to be the default value for a database field on Page 57, defined as follows:
    Page Item: P57_CREATED_BY
    Display As: Text Field
    Source Used: Always,replacing any existing value in session state
    Source Type: Database Column
    Default Value: &APP_USER_ID.
    Default Value Type: Static Text with Session State Substitutions
    I logged out and logged back in. I checked Session State and saw that the APP_USER_ID Application Item exists but has not value.
    I navigated to Page 57... no value is displayed in the P57_CREATED_BY field... If I review the Session State I can see that APP_USER_ID Application Item has a value of 21.
    Changing &APP_USER_ID. to &APP_USER. displays a value which seems to indicate it is not an issue with the field definition.
    Hope that is a little clearer.
    Thanks, appreciate your help.
    Jona

  • Setting value of items based on a radio group selection

    Hi,
    I have a radio group with 3 values (let's say A, B, C)... at the moment I have dynamic actions set to hide and unhide items based on the selection from the radio group...
    e.g when value A is selected then only item_1 and item_2 are displayed, when value B is selected then only item_3 and item_4 are displayed... and so on...
    idea was to let users to only enter information related to specific selection... but with what I currently have, users can select option A from the radio group and can enter information in item_1 and item_2 and then they can change there minds and select option B and start entering information in item_3 and item_4 and when they save the form they potentially could have information in all items (item_1 to item_4 and so on)...
    Is there a way I can set the value of certain items to null based on the selection from the radio group... e.g when user select option A, then values of item_3 and item_4 be set to null and if they select option B, then values of item_1 and item2 be set to null...
    Please advice how to approach it the best... I would appreciate a step by step solution as I am a new bee...
    Thanks in advance

    Hi,
    You can hide and disable other items.
    Disabled items values are not submitted.
    And you can create after submit computation that set NULL to item session state according your radio group state
    Regards,
    Jari

  • How to get online apps to work with the Verizon DSL modem firewall set at "Medium" level, not "Low?"

    How to get online apps to work with the Verizon DSL modem firewall set at “Medium” level? Xbox 360 Live, FTP, and the Windows sntp Time checker native to Windows XP WON’T WORK unless the Verizon firewall is first reset down to “Low.” Then all works well, but I then risk low firewall protection. Setup: · Westell 6100 DSL modem (Software Version: VER:4.04.03.00 Transceiver Revision: 7.2.3.0 Model Name: C90-610015-06), · D-Link DIR-655 wireless router (Hardware Version: A3, Firmware Version: 1.21), For Xbox 360 Live the “canned” port forwarding rule for provided in Verizon’s drop-down list for the Westell 6100 modem forwards ports 88 and 3074 for both TCP and UDP. This does not meet Microsoft’s forwarding recommendations for Xbox 360 Live stated at http://support.microsoft.com/kb/908874. Instead, for the Verizon modem (Westell) I made a new port forwarding rule to comply with those Microsoft instructions. It forwards ports 53, 80 and 3074 for TCP and ports 53, 88 and 3074 for UDP. These same ports are also forwarded in the D-Link router configuration. For FTP, port 21 is also forwarded for TCP and UDP in both modem and router. But they don’t work until I first cripple the Verizon firewall down to “Low.” How to get them to work with the Verizon firewall up to Medium?

    While I do not know the answer to your question, BUT since you have this modem and another router - you could just follow.
    http://www.dslreports.com/faq/13600
    ^^
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • How can I auto export a PDF File using the "Smallest File Size" preset and set the Exported File Name based on information from an Imported PDF?

    Greetings all,
    I am trying to create a script to automate a PDF export process for my company for inDesign. I’m fairly new to inDesign itself and have no previous experience with javascript, although I did take C++ in high school and have found it helpful in putting this code together.
    We have an inDesign template file and then use the Multi-page PDF importer script to import PDF files. We then have to export two version of each file that we import, then delete the imported file and all of the pages to reset the template. This has to be done for nearly 1000 pdf files each month and is quite tedious. I’m working on automating the process as much as possible. I’ve managed to piece together code that will cleanup the file much quicker and am now trying to automate the PDF exports themselves.
    The files are sent to us as “TRUGLY#####_Client” and need to be exported as “POP#####_Client_Date-Range_North/South.pdf”
    For example, TRUGLY12345_Client needs to be exported as POP12345_Client_Mar01-Mar31_North and POP12345_Client_Mar01-Mar31_South.
    There are two templates built into the template file for the north and south file that are toggled easily via layer visibility switches. I need to get a code that can ideally read the #s from the imported Trugly file as well as the Client and input those into variables to use when exporting. The date range is found in the same place in the top right of each pdf file. I am not sure if this can be read somehow or if it will have to be input manually. I can put North or South into the file name based on which template layer is visible.
    I am not sure how to go about doing this. I did find the following code for exporting to PDF with preset but it requires me to select a preset and then type the full file name. How can I set it to automatically use the “Smallest File Size” preset without prompting me to choose and then automatically input some or preferably all of the file name automatically? (If the entire filename is possible then I don’t even want a prompt to appear so it will be fully automated!)
    PDF Export Code (Originally from here: Simple PDF Export with Preset selection | IndiSnip [InDesign® Snippets]):
    var myPresets = app.pdfExportPresets.everyItem().name;
    myPresets.unshift("- Select Preset -");
    var myWin = new Window('dialog', 'PDF Export Presets');
    myWin.orientation = 'row';
    with(myWin){
        myWin.sText = add('statictext', undefined, 'Select PDF Export preset:');
        myWin.myPDFExport = add('dropdownlist',undefined,undefined,{items:myPresets});
        myWin.myPDFExport.selection = 0;
        myWin.btnOK = add('button', undefined, 'OK');
    myWin.center();
    var myWindow = myWin.show();
    if(myWindow == true && myWin.myPDFExport.selection.index != 0){
        var myPreset = app.pdfExportPresets.item(String(myWin.myPDFExport.selection));
        myFile = File(File.saveDialog("Save file with preset: " + myPreset.name,"PDF files: *.pdf"));
        if(myFile != null){
            app.activeDocument.exportFile(ExportFormat.PDF_TYPE, myFile, false, myPreset);
        }else{
            alert("No File selected");
    }else{
        alert("No PDF Preset selected");
    So far my code does the following:
    1) Runs the Multi-Page PDF Import Script
    2) Runs PDF Export Script Above
    3) Toggles the Template
    4) Runs #2 Again
    5) Deletes the imported PDF and all pages and toggles template again.
    It’s close and much better than the original process which was almost 100% manual but I’d like to remove the Preset prompt from the PDF script and have it automatically select the “Smallest File Size” preset. and then if there’s a way to have it auto-fill in the file name so no user input is required at all other than selecting each file to import. (If there’s a way to setup a batch action for the multi-import script that would be even better!)
    Thanks in advance and if there’s anything else I can provide that would help please let me know! Even a nudge in the right direction will be a big help!

    If you hold down the option key, it will typically show the location. Or you can often hit option-return on the file and it will reveal the file in the Finder, instead of opening it.
    Final option is to open it, and just option-click the filename in the toolbar of Preview and it should show you the location.
    It's probably an attachment to an email you've received. If you have Mail set to cache emails and their attachments it'll be stashed in a subdirectory of ~/Library/Mail. Which is fine.

  • Item Based Automatic Approval

    Hi,
    Is it possible to set up a workflow so that an automatic approval is performed at item level?
    The requirement is that if the Item is incomplete (i.e. will go on to create a PR), then the item is automatically approved.
    I have an expression to determine if an item is incomplete, but can only select decision type 1 for the Automatic (System) Approval.
    Help would be appreciated.
    Thanks,
    Mike

    Hi,
    You can go for Item based decision for partial document (i.e., decision type 4).
    Example:
    In the first process level, check for the incomplete level of the item based on the expression, if it is incomplete skip the level and go for automatic approval in the next step.
    Regards
    Kannaiah

  • WS14500015 - n-step WF, item based

    Hi Guys,
    I'm developing an item based approval WF for my customer (WS14500015), using the BAdI BBP_WFL_APPR_WORKFLOW, Method GET_REMAINING_APPROVERS.
    I have the situation, that a SC (BUS2121) is created with two items, the approver list looks as follows:
                                           Itm1    Itm2
    Appr1    EMPLOYEE_3      x         x
    Appr2    MANAGER_1        x
    Appr3    MANAGER_3        x         x
    When the approval process comes two MANAGER_1 I expect that he only sees the item he is responsible for and not both. At least this is what the indicator 'HIDE_ITEMS_NOT_RESPONSIBLE' implies.
    In my LT_APPROVER table I have 5 entries, they all point to the right approval object ID.
    Does anyone have a clue what is missing or which additional indicator needs to be set?
    Kind regards,
    Thomas

    hi,
    I dont think this is possible with the Header level approval workflow!You may need to think abt the item level approval workflow to distinguish between the items to be sent to the different approvers.
    BR,
    Disha.

  • Inactive component cost not rolled up to top level item

    Hi
    Our scenario is as follows: we have a top level item with a BOM. And some components of the BOM  are having material status u2018inactiveu2019. Inactive means materials will not procured and sold, however we could have inventory which can be consumed in production of other materials. In other words inactive items are like old items. These inactive items already have costing value. And we donu2019t want to recost inactive items.
    Having described above scenario, the requirement here is when we run costing for top level item, system should take costing value of inactive items  and roll up into top level item costing which is NOT happening now. Client donu2019t want to recost inactive items. The reason for not recosting inactive items is the recosting could change cost of inactive items significantly.  We are using 4.7 version and standard costing.
    Would appreciate any ideas or suggestions in this regard.
    thanx
    Sunil

    Thanks Young for the reply. 
    We already set 'do not cost' indicator for inactive components. And these inactive components do have standard costs valid up 10 12/31/2999.  It seems bom explosion is excluding these materials. it is ok to exclude. However the existing standard cost of these inactive components did not roll up in to top level. when I checked the costing status log, it says material ABCDF123 in plant 3344 has material status 40: Inactive.
    I checked BOM as well and inactive component is flagged as 'relevant for costing'.
    We are using following valuation varaiant
        Strategy Sequence ->  1. Planned Price 1    2.Standard Cost
        Transfer Control - Complete Transfer
    thnx

  • Unable to set a top-level property object

    Hey guys
    I've made a little sequence to fetch data from a XML file. In that XML file, there is some informations (entries) (IP addresses, port numbers, etc) about 4 different types of devices(sections are the devices names). The first section of the XML tells me the NAMES of the devices I have to configure. The type of each device is located in the entries of each device. Each device has its own information and I can have more than one device of a type. In teststand, I've created custom data types (containers with empty fields) for each type of device I need.
    I want to dynamically create the devices that the XML file tells me to configure as fileglobal variables and populate them with their own config informations (entries of the XML file). I'm creating new fileglobal of the type I want using PropertyObject step and I'm creating an alias of that fileglobal that I'm passing in parameter to a subsequence who's getting infos from XML. Here, everything is OK.
    The problem occurs when I want to configure 2 or more objects of the same type. At the SetProperty step (where i'm creating the fileglobal variable) teststand gives me the error:
    "Unable to set a top-level property object to another object. Error accessing item 'Parameters.DeviceToInitStruct'."
    Is there any ways to avoid that problem and creating to variable of the same type ?
    thanks

    Hi
    I finally got rid of that problem.
    Instead of using a PropertyObject.Clone step, I used a statement who's just copy the "MasterObject" into a "CloneObject" and i'm working with that copy. So the sequence can now create devices of the same type without any conflict with the first device.
    i'll post here a short example to show how i did... maybe it'll be useful for someone...
    regards

  • Quotes in a page level item not showing up as " when used in a hyper link

    Hi all,
    In my app, I need to hyper link to a crystal report application with parameters from my page. I have a page level item that puts my parameter in quotes, but when the item is utilized in the hyperlink, the quotes come across as & q u o t ; (spaces were put in to the post to avoid html conversion) how can my string be used to appear the way I want?

    I don't use Crystal Reports, but, in general, you should encode your URL. When you create your link, run the URL through utl_url.escape() first. Put it in your select statement.
    E.G.,
    select utl_url.escape('http://oracle.com/foo"bar') from dual;
    will escape/encode the quotation mark and give you:
    http://oracle.com/foo%22bar
    This translates the " into a URL-safe escape code, %22, that should (I hope) be understood properly by your Crystal Reports server.
    Good luck.

  • Show or Hide Items based on radio value

    I am trying to show and hide various Items based on the values of a radio button item. I have see the code and examples like
    function Show_On_Radio_Value(pThis, pThat, pValue){
    var rv = html_RadioValue(pThis);
    if (rv == pValue) {
    html_ShowItemRow(pThat);
    } else {
    html_HideItemRow(pThat);
    The problem I am having is that I have 3 different values of the radio item and I want to display certain items based on each different value.
    For example:
    radio_value = 'Yes'
    Show Item1, Item3, Item4
    or
    radio_value = 'No'
    Show Item2, Item5, Item6
    or
    radio_value = 'Maybe'
    Show Item1, Item2, Item4
    I am fairly new to this so it might be easy, I just don't know how.
    Any help would be appreciated.
    --DG                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Arie,
    Thanks for the reply. I have tried it using the Show_On_Radio_Value function but I still can't get it to do exactly what I want. I have a working version here http://apex.oracle.com/pls/otn/f?p=25290 ,
    The code I used for this demo app is:
    [script language="JavaScript1.1" type="text/javascript"]
    <!-- Hide
    function Show_On_Radio_Value(pThis, pThat, pValue){
    var rv = html_RadioValue(pThis);
    if (rv == pValue) {
    html_ShowItemRow(pThat);
    } else {
    html_HideItemRow(pThat);
    function Hide_On_Radio_Value(pThis, pThat, pValue){
    var rv = html_RadioValue(pThis);
    if (rv == pValue) {
    html_HideItemRow(pThat);
    } else {
    html_ShowItemRow(pThat);
    // End Hide -->
    [script]
    In the HTML Form Element Attribute for the radio button:
    onchange="Show_On_Radio_Value('P1_RADIO','P1_TEXTAREA','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD1','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD2','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD3','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD4','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_RADIOBUTTON','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD2','No');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD4','No');
    Hide_On_Radio_Value('P1_RADIO','P1_RADIOBUTTON','No');
    The problem I see is that in the onchange event, the 'No' options are working because they appear last in the event.
    Can you possibly provide an example using a Case statement?
    Thanks,
    DG

Maybe you are looking for

  • Setting output length of desired values for a Field in Smartforms.

    Hi,    I'm working right now on 4.6c system and I have a field declared as "String" in the Global Definition, on viewing the output in the print preview i find that it is printing only 255 characters while the actual field value is more than that (so

  • Issue caused by change of Publisher ID and Product ID?

    I developed a Windows Phone app for a charity free of charge. I was developing the app under my own moniker and submitted all my code to a GitHub repository they had from when they had the iPhone app developed. When it came to publishing the app, it

  • Business Rules error-java.lang.NoClassDefFoundError: com/hyperion/hbr/core/

    Hey I recently applied the 11.1.1.3.04 service fix for calc mgr/planning which involved a few file changes for EAS as well. I patched and re-deployed calc mgr/planning/eas without any issues in DEV When I patched prod, and then redeployed the web ser

  • Photoshop CS6 type on a path and workpaths

    Has any body else noticed that if you create a work path, then create a shape layer (say a rectangle) and type some text on the rectangle (text on a path) that if you commit the type and switch to the Path Selection Tool to edit the path text (positi

  • Image Files - Upgrade APEX (3,2 to 4.2)

    I Tried posting this yesterday but maybe logged out too soon? I cant seemt o find it now. I apologize if this is out there twice now Pretty much all I have done with APEX is installed 3.2 in Banner DB about 2 years ago - our developers take it and ru