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

Similar Messages

  • Item - Can't set value on item because the item can't get focus.  [66000-15

    hi i created one text box in purchase order form and asign the choose from list.l when i choose in edit box its show the following error-- Item - Can't set value on item because the item can't get focus
    Dim lonHeadDatasource As SAPbouiCOM.DBDataSource
    lonHeadDatasource = oOrderForm.DataSources.DBDataSources.Item("OPOR")
    oNewItem1 = oOrderForm.Items.Add("EditDS", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                        Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                        Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                        Dim oCFL As SAPbouiCOM.ChooseFromList
                        oCFLs = oOrderForm.ChooseFromLists
                        oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                        oCFLCreationParams.MultiSelection = False
                        oCFLCreationParams.ObjectType = "INTORDER"
                        oCFLCreationParams.UniqueID = "CFL1"
                        oCFL = oCFLs.Add(oCFLCreationParams)
                        oItem = oOrderForm.Items.Item("4")
                        oNewItem1.Top = 95
                        oNewItem1.Height = oItem.Height
                        oNewItem1.Width = 140
                        oNewItem1.Left = 125
                        oEdit = oNewItem1.Specific
                        oEdit.DataBind.SetBound(True, "OPOR", "U_EditDS")
                        oOrderForm.Items.Item("EditDS").Specific.ChooseFromListUID = "CFL1"
                        oEdit.ChooseFromListAlias = "U_ID"
    Item events
    Try
                If pVal.BeforeAction = False Then
                    If (pVal.FormType = 142) Then
                        Select Case (pVal.ItemUID)
                            Case "EditDS"
                                Select Case (pVal.EventType)
                                    Case SAPbouiCOM.BoEventTypes.et_GOT_FOCUS
                                    Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
                                        Dim bonCflEvents As SAPbouiCOM.ChooseFromListEvent
                                        Dim bonCflList As SAPbouiCOM.ChooseFromList
                                        Dim bnnstrUID As String
                                        Dim bonDTTable As SAPbouiCOM.DataTable = Nothing
                                        bonCflEvents = pVal
                                        bnnstrUID = bonCflEvents.ChooseFromListUID
                                        bonDTTable = bonCflEvents.SelectedObjects
                                        bonCflList = oOrderForm.ChooseFromLists.Item(bnnstrUID)
                                        If pVal.BeforeAction = False Then
                                            If oOrderForm.Mode <> SAPbouiCOM.BoFormMode.fm_FIND_MODE Then
                                                If Not (bonDTTable Is Nothing) Then
                                                    If bonCflList.UniqueID = "CFL1" Then
                                                        If pVal.ItemUID = "EditDS" Then
                                                            Dim value As String = Nothing
                                                            oOrderForm.Items.Item("EditDS").Specific.value = bonDTTable.GetValue(0, 0)
                                                        End If
                                                    End If
                                                Else
                                                    lonHeadDatasource.SetValue("EditDS", lonHeadDatasource.Offset, "")
                                                End If
                                            End If
                                        End If
                                End Select
                        End Select
                    End If
                End If
            Catch ex As Exception
                SBO_Application.SetStatusBarMessage(ex.Message)
            End Try
    Thanks & Regards
    B.Narain

    Hi
    Instead of   oOrderForm.Items.Item("EditDS").Specific.value = bonDTTable.GetValue(0, 0) the following
    lonHeadDatasource.SetValue("U_EditDS", 0, bonDTTable.GetValue(0, 0))
    Regards
    Arun

  • How to hide/show reports region with radio group selections

    Hi, I have an HTML region with a radio group of two choices (Rpt1 and Rpt2). Also got two other report regions which depend on the radio group selections and by pressing a button it will display records.
    Everything does work perfect BUT say I select Rpt1 and press the report button it will show the records and after that if I select the Rpt2 radio button I still see the result of Rpt1 records. How can I clear or hide the reports regions when I change my radio button selection?
    Thank you
    -iahmadi

    Hi,
    You can create HTML regions that do not need to contain anything at all (use the "No Template" region template to ensure that you don't see a region Title on the page).
    However, in order to get this region to be displayed until the Report button is clicked, you would need to have a hidden page item (called, say, P1_SHOW_REPORT) that has, as a default, 0 as a value. The branch that is triggered by the Report button would then set this item to 1 - so, 0 = hide and 1 = show
    On your page you should have a branch that is conditional on the Report button being clicked. On this branch, set the first "Set these items" to P1_SHOW_REPORT and "With these values" to *1*. You should also have a branch on the page that is unconditional - meaning that it can be triggered by anything that submits the page. Firstly, this branch should have a high Sequence Number (say, 99) and secondly, should should set the value of P1_SHOW_REPORT to *0*. So the Report button sets it to 1 and anything else (which will include the radio button selections) will reset it to 0.
    Now, on your regions you have to change the conditions slightly as we now have two conditions to check - which report has been selected and whether or not the Report button has been clicked.
    This can be done by using a SQL Exists condition of something like:
    SELECT 1 FROM DUAL WHERE :P1_SHOW_REPORT = 1 AND :P1_RADIO = 'ABC'(where ABC is the value for the radio button for the report
    The "blank" region would also have a condition - that would be a simple Item = Expression 1 condition of P1_SHOW_REPORT = 0
    Andy

  • Setting values for items other than default value

    How can I set the value of Items (hidden item, display item etc) without using any of navigational control such as list, select list or tree?
    I have a two report region on a page and no navigation control. the requirement is only one region should be displayed at one point of time.
    Condition that drives this are passed from other page through links.
    The code is like this
    For Region A
    select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOE
    For Region B
    select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOHNnow there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
    for e.g.
    for region A
    value in expression1 = expression2
    P_HIDDEN = 1
    for region B
    P_HIDDEN = 2my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
    Thanks,
    R
    now there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
    for e.g.
    for region A
    value in expression1 = expression2
    P_HIDDEN = 1
    for region B
    P_HIDDEN = 2
    my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
    Thanks,
    R
    Edited by: Rich V on May 21, 2010 10:41 PM

    The question I would ask is:
    How are you determining which region you want to be displayed by default?
    Either way, you could potentially use a 'before header' computation to calculate the value of your hidden item, although you'd also need to include some sort of conditional means of preventing the computation from running everytime to run the page (otherwise you'd never see your other region) e.g. you might only want it to run if the hidden item is null.

  • How do I filter in JDev 10g a UIX record list based on a radio group?

    Hi,
    I am experimenting with JDev 10g preview. I created a UIX record list page based on a BC4J entity/view. I would like to filter the records that are displayed. I put a radio group on top of the list, but do not know how to make the filtering part.
    Thanks in advance,
    Tamas Szecsy

    Imagine I have the EMP table and I base a BC4J on it. The EMP table has a column called ACTIVE, that inidicates whether the given employee is active or already left the company.
    The radio button on the top should have two radio items: one for the active eployee filtering and one for the not active ones. The employee records below the radio group should be listed according to this filtering.

  • Best Way To Set values In Items

    Hello,
    I have a two database items and dynamically I would like to assign values to those items.
    What is the best way of accomplishing this task?
    Is there any SET property available or I need to like
    block_name.item_name :='Value'
    Regards

    You can use COPY built-in to perform dynamically assign values to different items.

  • How to auto fetch the value of item based on remaining columns in same page

    Hi,
    i have 7 items in a same form
    like employee name,employee number ,department,designation,email address and contact address
    if i entered employee number means i need to automatically display the corresponding employee details in other columns
    Please reply asap.............
    Regards,
    Kani

    Hi Scott,
    I got the solution but i assigned the default values for weight,courier charge,packing charge,other charges  and net charges to ZERO...
    and page items to be submited--weight,courier charge,packing charge,other charge..
    If i gave --page items to be submited--weight,courier charge--net charge ll be display with out assigning default values(ZERO) for any item..fr tat wat i have to do...
    Thanks,
    Kani

  • SDK: set value to "Item Properties" option when item creation.

    I need a massive update into item master data.I need to set the Item Properties (at table: OITG) into each item.
    In the DI API ,Can I do it ?

    Hi,
    You can use the Item´s Properties property. Somekind like:
    oItem.Properties(i)= tYES
    Regards,
    Ibai Peñ

  • 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

  • Set value of project code to Reciept from production matrix.

    Hello Friends,
    I want to set value of project code to Reciept from production matrix after selecting Production order number.I have taken project code field in Production order header.That project code value i have to set  in Reciept from production. I got the Project code no by query but I cant set it to Reciept from production  Matrix project column.
    RS.DoQuery("Select U_PrjCode from OWOR where DocEntry='1')
    str = RS.Fields.Item("U_PrjCode").Value
    oMatrix.Columns.Item("21").Cells.Item(1).Specific.value = str
    this code give me an error
    "Item-Cant set value on item because the item cant get focus"
    Plz give me solution for this..
    Thanks & Regards,
       Swati

    Hello Swati,
    The cell should be foucsed before setting value for it. try this:
    RS.DoQuery("Select U_PrjCode from OWOR where DocEntry='1')
    str = RS.Fields.Item("U_PrjCode").Value
    oMatrix.Columns.Item("21").Cells.Item(1).Click()
    oMatrix.Columns.Item("21").Cells.Item(1).Specific.value = str
    Kind Regards
    -Yatsea

  • How to create Text Web item based on characteristics text!

    Hi
      In a template, I have a hierarchy object Region which is in the left panel, then on the right i have table displaying with dataprovider.
    When the user select the hierarchy Region say Australia , then on the right I add the text web item, based on which the user selected, my text on righ side becomes australia, if they select Europe, then it should display europe.
    Give me some solutions
    Thanks
    BI Learner

    No one answered...

  • Identifying Radio Columns in Radio Group for Authorization

    Hi friends,
    I have a single radio group page item which has a 3 no.of columns. I have defined a static lov definition for it as it shows three values for the three column in a single radio group page item. These are the values.
    <li> Self
    <li> On behalf of
    <li> New Hire
    I need to restrict these three values according to the user roles. For that i can write an authorization and take the users corresponding to their roles.
    But how i can refer this authorization according to the values that radio group has. Since that radio button is a single page item.
    I need to restrict the three values of the radio button to the three set of users under the specific roles.
    I wrote the three sets of authorization which is filtering the three set of role users, accordingly to their login in the application. But how to refer these three authorization rules to a single radio group page item.
    If it is a single authorization means, i can refer it to that radio group page item under the security section.
    How to refer these three sets of authorization to a single radio group page item.
    Brgds,
    Mini

    Write a PL/SQL authorization function that returns a Boolean or a Y/N based on knowing the role and the radio group item. Pass in the Role and the Radio Group select item.
    Write an LOV for the Radio Group which is a query that adds the Radio Group item if the authorization passes and does not include it if the authorization fails
    ie.
    SELECT 'Self' FROM DUAL WHERE SECURITY_PKG.Role_has_auth(role_name, 'SELF') = 'Y'
    UNION ALL
    SELECT 'On Behalf of' FROM DUAL WHERE SECURITY_PKG.Role_has_auth(role_name, 'ON BEHALF OF') = 'Y'
    UNION ALL
    SELECT 'New Hire' FROM DUAL WHERE SECURITY_PKG.Role_has_auth(role_name, 'NEW HIRE') = 'Y'

  • FRM - 40212 / FRM - 40222 error on a radio group during query

    Hi all,
    This is my first post so please bear with me if I haven't provided sufficient information or am unclear at all.
    I'm using Forms Builder (Web) on a 10g Database. I have a number of database and non-database items as part of a data block.
    My problem is that, when I enter a value in any field and click the query button, I get a FRM-40212 Invalid value for field error on my radio group (disabled, non-database item that is programatically populated in the post-query and list-changed triggers only). When I click ok, I get a FRM-40222 Disabled Item Failed Validation error on the same radio group.
    This does not happen if I click the 'Enter Query' button before entering values into fields, however I don't want my users to encounter this error if they try to query without clicking on 'Enter Query' first.
    I'd like to know why exactly does this error happen - what does it mean?
    I've read in other forums that setting the item's Required property to false solves this issue. But how can I do this with a radio group? And if it's not possible, does anyone have any suggestions for other workarounds?
    Thanks in advance,
    Abigail

    Hi,
    You can avoid this by setting 'Mapping of other values' to the one fo the radio buttons value.Like if you have to radio button radio1 and radio2 associated with radio group R1 ,then set any radio buttons initial value to this 'Mapping of other values' property of radio button R1.You won't see this error.
    This error occurs because your loading a screen without assigning a value to the radio button.
    If this helps mark question as answered or helpfull.
    Thanks,
    Pavan.

  • Radio group read only problem

    Hi,
    I have three radio group items that are defined EXACTLY the same except for the label and associated database column. Each radio group item uses the same named LOV for "Yes" and "No". Each field contains either a "Y" or "N" value.
    When the "read-only" condition is satisfied, two of the three radio group items incorrectly do not have either the "Yes" or "No" radio button checked. When I change all three fields from "radio group" to "select list" then all three fields display either a "Yes" or "No" value correctly.
    Doesn't the radio group work when the read-only condition is satisfied? Is there a work-around to it?
    Thanks, Andy

    We are using APEX version 2.0.
    Has this been fixed in version 2.2?

  • Radio group and textarea selection

    I have a form with a question like: "How did you hear about us?" and a radio group with some choices. One of the radio group choices is "Other - please describe!". When selected, a text area changes from "read-only" and the user can write something. I am not able to update a record with user's selection in one table field (I can save either radio group selection or text area). Any help? Thank you!

    Unfortunately it is not on Internet. But part of the code is this:
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE sarcini SET solutie_6=%s, introd_6=%s WHERE id_question=%s",
                           GetSQLValueString($_POST['Proposal_text'], "text"),
                           GetSQLValueString($_POST['Full_name'], "text"),
                           GetSQLValueString($_POST['id_question'], "int"));
      mysql_select_db($database_dbconfig, $dbconfig);
      $Result1 = mysql_query($updateSQL, $dbconfig) or die(mysql_error());
      $updateGoTo = "Search_answer.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    And than:
    <INPUT name="Proposal" type="radio" id="Proposal_0" value="No answer." checked="CHECKED">
                    No answer.
                    </label>
                </div>
                  <p align="left">
                      <label>
                    <INPUT name="Proposal" type="radio" id="Proposal_2" value="E-mail answer.">
                    E-mail proposal</label>
            </p>
                <p align="left">
                  <label>
                    <INPUT name="Proposal" type="radio" id="Proposal_1" value="I have this answer:">
                    I have this answer:</label>
                </p>
                <p>
                  <label for="Proposal_text"></label>
                  <textarea name="Proposal_text" id="Proposal_text" cols="50" rows="6"></textarea>
    I would like to update with: "No answer." , "E-mail answer." or, if  id="Proposal_1" is checked, with the values entered by user in textarea "Proposal_text".

Maybe you are looking for

  • Please help me 2 find a Document for this jar file com.sap.workflow_api

    HI, I want to create a task in UWL using web dynpro application. For this I need to import the specified com.sap.workflow_api.jar jar file. This jar file is in our WEB AS Server path= server\c\usr\sap\W01\JC00\j2ee\cluster\server0\apps\sap.com\irj\se

  • Placing PSD Files in ID3 & Maintaining Pantones

    What I am trying to do might not be possible (or it might be really easy!), but I can't find any clear answers so I hope someone can help me! Sort of an involved back-story, but I figure that will help me get the best solution! I am trying to place a

  • Values are not displayed

    We have a report where the value is being displayed as **.** and it should be a summed up number. Even if we increase the size of the field and allow it to expand vertically and horizontally, the value still will not show. Any ideas?

  • Use WMI to Associate win32_SerialPort device with win32_LogicalDrive mapping

    Hi, My c# application requires to flash a micro-controller, which has been configured as a removable device and is connectable by means of a Virtual Com Port. So, I need to recognise the volume label of the mapped drive and perform the flash u

  • Problem starting DCM-DAEMON

    I have oracle application server 9i installed on HP-UX. The server went an IP change. Now When i am staring my services , i am unable to start the dcm-daemon I am getting the following error: ADMN-202001 An exception has occurred while accessing DCM