Report With Multiple Radio Button ,How to reset the values of when selected

Reaching out to the experts here. I have a report which i created a radio group which saves the value rownum when the radio buton is selected to a hidden item based on an on click event. There are currently 3 radio button , i need to be able to "reset" the value of the other items when more than of the button are selected .I.E. There are 3 buttons, user clicks button one , but then decides they need to click button two , then realizes they really wanted to perform button 3 , I want to be able to "reset" the value of the 1st two hidden items so the only value populated is the 3rd hidden item. I am new to working with these features and scenarios so any and help would be appreciated.
Here is the report
SELECT APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN1'').value=' || ROWNUM|| '"') UPDATE_RECORD
,APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN2'').value=' || ROWNUM|| '"') DELETE_RECORD
,APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN3'').value=' || ROWNUM|| '"') SET_PRIMARY
,papf.first_name
,papf.last_name
,hl.meaning
,pp.phone_number
,case when phone_type is not null then (select meaning from hr_lookups where lookup_type ='PHONE_TYPE' and pp.phone_type=lookup_code)
end as phone_type
,emrg.primary_contact_flag
from hr.per_all_people_f papf
,apps.hr_lookups hl
,apps.per_contact_relationships pcr
,apps.per_phones pp
,(select contact_person_id,primary_contact_flag
from apps.per_contact_relationships pcr
where pcr.person_id = :P5_PERSON_ID
and contact_type = 'EMRG') emrg
where pcr.contact_person_id in emrg.contact_person_id
and pcr.personal_flag='Y'
and contact_type <> 'EMRG'
and trunc(sysdate) between date_start and NVL(date_end,'31-DEC-4712')
and pcr.contact_type = hl.lookup_code
and hl.lookup_type='CONTACT'
and pcr.contact_person_id = papf.person_id
and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
and pcr.contact_person_id = pp.parent_id
and pp.phone_type in (select lookup_code from hr_lookups where lookup_type ='PHONE_TYPE')

Related thread here How to Pass values from SQL Report into TEXT ITEM ?
Regards,

Similar Messages

  • How to get the values from html:select? tag..?

    i tried with this, but its not working...
    <html:select styleClass="text" name="querydefs" property="shortcut"
                 onchange="retrieveOptions()" styleId="firstBox" indexed="true">
    <html:options collection="advanced.choices" property="shortcut" labelProperty="label" />
    </html:select>
                        <td align="left" class="rowcolor1">
                        <script language="javascript" type="text/javascript">
                              function retrieveOptions(){
                             var sel = document.querydefs.options;
                             var selectedOption = sel[sel.selectedIndex].value;
                             document.write(selectedOption);
                           </script>

    <td align="left" class="rowcolor1">
                        <script language="javascript" type="text/javascript">
                              function retrieveOptions(){
                             var sel = document.querydefs.options;
                             var selectedOption = sel[sel.selectedIndex].value;
                             document.write(selectedOption);
                           </script>This java script is not working at all..its not printing anything in document.write();
    This is code..
    <td class="rowcolor1" width="20%">
    <html:select styleClass="text" name="querydefs" property="shortcut"
                             onchange="retrieveSecondOptions()" styleId="firstBox"
                             indexed="true">
                             <html:options collection="advanced.choices" property="shortcut"
                                  labelProperty="label"  />
                        </html:select>i tried with this also. but no use..i'm not the getting the seleced option...
    function retrieveOptions(){
    firstBox = document.getElementById('firstBox');
                             if(firstBox.selectedIndex==0){
          return;
        selectedOption = firstBox.options[firstBox.selectedIndex].value;
    }actually , how to get the values from <html:select> ...?
    my idea is to know which value is selected from the combo box(<html:select> ) if that value is equal some string i have enable a hyperlink to open a popup window

  • How to reset the value in valueChangeListener

    I would like to reset the value in a component to its earlier value in the valueChangeListener.
    Here is an example method in the bean:
    public void valueChangeListener(ValueChangeEvent valueChangeEvent) {
    Date oldDate = (Date)valueChangeEvent.getOldValue();
    Date newDate = (Date)valueChangeEvent.getNewValue();
    if(newDate > sysdate) {
    //valueChangeEvent.getComponent().WHATEVER.setValue(oldDate)
    } else {
    valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
    Please suggest the code that I need to put in comments.
    Note: One way to achieve this is to bind the component to the bean and do a setValue. I do not want to do this(I have master-detail tables with many rows to edit. So, this resetting should be done at row level by fetching the current row on the selected table and set).

    public void firstNameChanged(ValueChangeEvent event)
    System.out.println("FirstName changed");
    System.out.println("old value = " + event.getOldValue());
    System.out.println("new value = " + event.getNewValue());
    String oldValue = (String) event.getOldValue();
    String newValue = (String) event.getNewValue();
    RichInputText firstname = (RichInputText) event.getComponent();
    RichInputText lastname = (RichInputText) JSFUtils.findComponentInRoot("EmployeesLastName");
    firstname.setSubmittedValue(oldValue);
    firstname.setValue(oldValue);
    lastname.setSubmittedValue("lastname");
    lastname.setValue("lastname");
    AdfFacesContext.getCurrentInstance().addPartialTarget(firstname);
    AdfFacesContext.getCurrentInstance().addPartialTarget(lastname);
    }

  • How to trace the value passed by select list

    Hi,
    Is it possible to know what value is passed by the select list.
    eg:
    :p1_testid -- is the select list name .
    if select list contains 3 values ... value1, value2, and value3. and I select value2 from the select list.
    I want to confirm it that the value I selected is the same value passed to the query.
    - select * from Test where Testid=:p1_testid;
    How to trace the value of :p1_testid before query execution.
    Thanks.

    check your session state to see what value the select list has..
    From developer tools at bottom of running page, select session, then look for the value associated with your select list..
    Thank you,
    Tony Miller
    UTMB/EHN

  • SQL Queries, filter with multiple radio Buttons

    I am trying to figure out how to filter my datagridview with SQL queries so that both of them have to be met for data to show up not just one.
    My datagridview is bound to an Access Database.
    I basically would want it filtered by 'Width' and 'Wood Type'
    I have radio buttons in group boxes so a width and wood can be selected. However only one Query is applied at a time.

    Public Class Form1
    Private Sub StickersBindingNavigatorSaveItem_Click(sender As Object, e As EventArgs)
    Me.Validate()
    Me.StickersBindingSource.EndEdit()
    Me.TableAdapterManager.UpdateAll(Me.TestDataSet)
    End Sub
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    'TODO: This line of code loads data into the 'TestDataSet.Stickers' table. You can move, or remove it, as needed.
    Me.StickersTableAdapter.Fill(Me.TestDataSet.Stickers)
    AcceptButton = Button1
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    End Sub
    Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.CheckedChanged
    Try
    Me.StickersTableAdapter.Wood_Oak(Me.TestDataSet.Stickers)
    Catch ex As System.Exception
    System.Windows.Forms.MessageBox.Show(ex.Message)
    End Try
    End Sub
    Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.CheckedChanged
    Try
    Me.StickersTableAdapter.Wood_Walnut(Me.TestDataSet.Stickers)
    Catch ex As System.Exception
    System.Windows.Forms.MessageBox.Show(ex.Message)
    End Try
    End Sub
    Private Sub RadioButton3_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton3.CheckedChanged
    Try
    Me.StickersTableAdapter.Width14(Me.TestDataSet.Stickers)
    Catch ex As System.Exception
    System.Windows.Forms.MessageBox.Show(ex.Message)
    End Try
    End Sub
    Private Sub RadioButton4_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton4.CheckedChanged
    Try
    Me.StickersTableAdapter.Width18(Me.TestDataSet.Stickers)
    Catch ex As System.Exception
    System.Windows.Forms.MessageBox.Show(ex.Message)
    End Try
    End Sub
    Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
    If RadioButton5.Checked = True Then
    If TextBox1.Text = "" Then
    Else
    Me.StickersBindingSource.Filter = "Width LIKE '" & TextBox1.Text & "%'"
    DataGridView1.Refresh()
    End If
    ElseIf RadioButton6.Checked = True Then
    If TextBox1.Text = "" Then
    Else
    Me.StickersBindingSource.Filter = "[Wood Type] LIKE '" & TextBox1.Text & "%'"
    DataGridView1.Refresh()
    End If
    ElseIf RadioButton5.Checked = False And RadioButton6.Checked = False Then
    MsgBox("Please Select a Search Criteria")
    End If
    End Sub
    Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles TextBox2.TextChanged
    Try
    Me.StickersTableAdapter.SearchWood(Me.TestDataSet.Stickers)
    Catch ex As System.Exception
    System.Windows.Forms.MessageBox.Show(ex.Message)
    End Try
    End Sub
    End Class

  • Multiple picture-buttons - How to stop the slide

    Hi,
    my problem:
    A slide with a world map, some buttons as target-markers. If you click at one of these dots, a button with some information pops up (its all about visibility). A single click within this button close itself. It is possible to click any target so many time the user want to. It is also possible to open all text-buttons by hitting all the orange dots. Slide audio is 22 seconds long, so is the slide duration. How can i stop the slide up to zthe moment, the user hits the bottom-left navigation button (perpetualButton_AS3)?
    I fear, the solution is quite simple, i just can't figure it out. Any help is very welcome, time is running out ... delivery of a teaser in less than 4 hours and still some video work to do.
    Regards
    Marc
    btw: eLearning Suite 2.5 is running at this computer

    Not sure if this would be what you want but the Event Handler Widget would allow you to either display timed Success captions for a given number of seconds or execute advanced actions to SHOW or HIDE captions when users click the dots.  You can set preferences in the widget to Reset Success/Fail Criteria After Action to enable users to click on an object as many times as they want to repeat the action.  Set the Pausing preferences to permanently pause the slide until the user clicks another button to proceed to the next slide.
    If you want to try it out, download a free trial widget here.

  • How to access the value of fiedl ( select list with redirect )

    WE created one report and form. When i click in the edit button of the report
    for the specific record ; the system go automatically in the form
    and show me all the information. In my form ia have some fields ( select list with redirect ) in this way i store the key but i can see the description.
    I want to control the delete operation in checking the value of some field
    in my form. How can i do that. When i verfy the content with SESSION
    my variable are empty
    Thanks
    Marc Fortin

    Hello Larry,
    You can use a select list with submit and create a branch to the page you want to go to.
    Hope that helps.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • How to reset the value of drill down - Chart

    Hi gurus. I have a problem related with drilldown.
    is there any way I can reset the drill down value?,of course, except for using reset button
    (in  this case "reset" means "make the cell blank of certain value")
    I tried using "push button" and the cell is reset.
    However, even though the cell is reset, the cell is set to the drill down value in one second.
    ex. Drill down destination : a --> "" --> a
    (a is drill down value)
    Is there a way to reset the drilldown value?
    Thanks in advance.

    Thanks for your help , Sonja
    I used push button but it can not refresh(reset) drill down cell
    because the destination cell of the chart remains drill down value
    I tried like below way
    a : drill down value
    Goal : make drill down cell turn to blank after i used drill down once.
    1ST.
    when i click the chart and use drii down, a is entered into drill down cell
    2ND
    by using "push button", i tried to reset drill down cell
    but unfortunately it does not work.
    Although drill down cell changes instantly to blank after just one second, it changes to a, drill down value
    drill down cell changes like this
    1 ->   2   ->  3
    a -> blank ->  a
    i have to eliminate (2->3) phase or find another way to refresh drill down cell.
    Regards
    Kwon

  • How to reset the value of a static attribute in a class (in SAP CRM)

    Following the documentation in  "C04_BB_ConfigGuide_EN_DE.doc".
    I created a logical link for a remote ERP transaction from CRM7.0  
    The link to this file is http://help.sap.com/bp_crmv12007/CRM_DE/HTML/index.htm then Technical Information --> Building Block Library.
    I made a mistake in the defining MappedLogSys name for the remote ERP system in Tcode CRMS_IC_CROSS_SYS.
    Later I deleted the wrong entry using tcode CRMS_IC_CROSS_SYS and created the correct entry for the remote ERP system.
    But whenever I try to create a new Link for ERP transaction in the CRM system using the wizard, (tcode CRMC_UI_ACTIONWZ), the wizard pickes up the deleted logsys name.
    Using  tcode SE24  & the Test icon (F8) I ran a test for the class CL_ERP_TX_MMBE and the value of the attribute "GV_MAPPEDLOGSYS" is set to the old deleted value.
    How Can I fix this issue and make the class pickup the correct MappedLogSys value.

    I basically deleted the transaction launcher link and recreated a new one.

  • How  to get the value of multi-select in the   Dashboard Prompt

    I have a multi-select prompt in the Dashboard Prompt,  what I want is,   how do I know that user has choose one value,
    for examle,  for some reasons,  if user didn't choose any value,  then I will set one column in answer as "customer office" , if user choose one value, then the column in answer will be "customer name". 
    any comments, thanks.

    Hi,
    first define the presentation variable for the required column prompt. ex: PV
    Then in report level set the filter for that column = @{PV}{customer office}. here u have to give default value as "customer office", so by default the report in dashboard will show customer office even though the user does not select any value from dashboard prompt.
    Mark If Helpful/correct.
    Thanks.

  • How to get the values of a selected row and edit it

    hi all,
    i am using a table component.I am populating it from the database.i used static text to display the data .i have a edit button in the last column. when i click on it that particular rows data should be shown in a text field in that row itself,so that i should be able to edit it and then if i save it it that row should change to statictext with the updated data.
    please provide a solution for this...
    regards,
    rpk

    Hi Andrea,
    If you are using ADFBC, the easiest way is to drop the attribute(Say Name) from the data control palette as outputText component and add partialTriggers property of it to point to table id(to refresh the outputText whenever the row is selected in table)
    Sireesha

  • How to compare the values of 2 select queires in two diff DB's

    Hi,
    I need help in building the logic to achieve this :
    A program is needed to get reference data from ABC database in ORACLE and update our reference tables with any changes in DEF database in SYBASE.
    Pls give me an example where i can compare the select queires from different databases one exsiting in oracle and one in sybase .
    Any help will appreciated.
    Thanks

    PLS HELP.
    I have no idea on how to do
    2) Using your specific requirements, determine how to know if there is a "new row" or a "missing row" or a row , which has a different description
    Say Table A in oracle looks like this
    Sno Description
    1 Out Of Order
    2 Shipped
    3 Back Order
    Say Table B in Sybase looks like this
    Type Text
    1 Out/Order
    2 Shipped
    4 Not manufactured
    I have to see to that the rows present in Table A in oracle , should be same as rows in Table B in sybase
    If not , we have to update , insert and delete the row which is not present in Table A in oracle in Table B in sybase.
    In the table example i gave , In the first row of Table B in Sybase , the Text is different from that of Description in Table A for that Sno "1"
    So we should update the description.
    Row 4 has Sno "4" which is not their in table A , so delete that row from table A.
    And In table A , Sno "3" row exists , so we should insert that record in table B.
    I know how to query the tables , and get the rows into Result Set ..after that how can i compare and take the steps to update , insert and delete?

  • How to get the values of last selected row in Table?

    Hi,
    I have one editable table , where i have Create, Delete and Commit operation on it.
    When i am clicking on Create button it add new row to my table.
    But I want the value of my last selected row from the table in my Bean.
    Can anyone suggest me please....... its urgent
    Jdev:- 11.1.1.0.3
    Thanks,
    Ramit

    just get this code empTable is the table binding
                    RowKeySet rks = new RowKeySetImpl(); 
                    CollectionModel model = (CollectionModel)empTable.getValue(); 
          RowKeySet selectedRowKeys = empTable.getSelectedRowKeys();
          if (selectedRowKeys != null)
                Iterator iter = selectedRowKeys.iterator();
                if (iter != null && iter.hasNext())
                  empTable.setRowKey(iter.next());
                  model.setRowIndex(empTable.getRowIndex()); 
                  Object key = model.getRowKey(); 
                  rks.add(key); 
                    empTable.setSelectedRowKeys(rks); 
          AdfFacesContext.getCurrentInstance().addPartialTarget(empTable);
        public void setEmpTable(RichTable empTable) {
            this.empTable = empTable;
        public RichTable getEmpTable() {
            return empTable;
        }

  • How to replace the values in variable selection Screen urgent plz

    Hi all,
    I am having a requirement. where the user need pass the value in the variable, Here v r having option like '1' and '2' which represent 'month' and 'ytd'.
    While selecting user view as 1,2 .Now my requirement is to replace the value 1=monthly and 2=ytd while the user passing the value to avoid the confusion.
    Is it possible if so plz let me know
    Regards

    Dear Venkat.
    You please try the following steps:
    1. Say the InfoObject is 0EMPLOYEE against which you have created the variable, which user is trying to select value against, when they execute the report.
    2. Goto RSA1-> InfoObject tab-> Select InfoObject 0EMPLOYEE.
    3. Selcet the following options:
       Query Execution Filter Val. Selectn  -  'Only Posted Value for Navigation'
       Filter Value Repr. At Query Exec. -      'Selector Box Without Values'
    Please let me know if there is any more issue. Feel free to raise further concern
    Thnx,
    Sukdev K

  • How to upgrade the second dropdownbox when selecting the values of the first ?

    Hello everyone, I am new to programming. Tell me, please, how to automatically load the new values in the second dropdownbox, depending on the choice of the values in the first dropdownbox ?

    There is an example here...
    http://www.scriptsrus.talktalk.net/Run%20Action.htm

Maybe you are looking for