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

Similar Messages

  • Firefox is set to open a new page when a link is selected, however it opens underneath/behind

    Firefox is set to open a new page when a link is selected, however it opens underneath/behind the page containing the link. In other words I can't see the new page because it is beneath the one I'm looking at.
    75% of the time this happens, 25% of the time it works as it should.

    Do you mean that it is opening links in a new window? If you would rather have a new tab instead, you can set that in Options > Tabs. Some links are set up so that they will open in a new tab or window. I know of no way to make those open in the same tab, short of changing the code on the page.

  • When a linked .pdf is clicked, it downloads rather than following the link and opening in another safari window.

    When a linked .pdf is clicked, it downloads rather than following the link and opening in another safari window.

    Thanks for the tip, but I had already tried this and it did not help. The File still downloads and , at the same time, a new Safari window opens - but the Safari window is blank.
    Another discussion thread related to this problem is:
    How do I prevent automatic downloading of .pdf files?
    but this deals  with Safari 5.1 which evidently has a problem with Adobe Reader.
    I am using Safari 5.0, so the suggested solutions do not apply. ( I tried them anyway, but they did not work.)

  • Default Setting for a Radio Group not activated when Read-Only

    I have an Item on a page that is a Yes/No radio group. It is conditional read-only and has a conditional default value. Both the read-only section and the default section use PL/SQL blocks to determine there use. When the read-only condition is true the radio group is grayed out but neither the Yes or No button is checked. It then returns a null value when the page is submitted.

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:105
    Default is Yes (http://tinypic.com/i39qh4.jpg)
    Readonly is true (http://tinypic.com/i39s7p.jpg)
    Rendering works fine.
    But when the page is submitted, the Yes value doesnt get into session state.
    This is because the read-only is implemented by setting disabled=disabled on the radio element.
    As per relevant standards (http://www.htmlhelp.com/reference/html40/forms/input.html), disabled form elements are not submitted during a POST operation.
    But if it is a readonly item with a default value, you already know the value (you put it there), so why do you need it in session state, just use the default value (hardcoded)
    Thanks.

  • 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

  • Firefox keeps opening multiple windows when web link to iTunes clicked.

    Running Windows 7, 64 bit. Clicked the "View in iTunes" button on this page, https://itunes.apple.com/gb/app/smartscan-express-fastest/id533516060?mt=8
    Link did not open and instead Firefox kept opening another window continuously until there were dozens of windows opening one on top of the other. The only way to stop this was to Shut Down the PC. This has happened on several occasions and it's always when a link to iTunes is concerned.

    Sorry, this can happen when Firefox asks how you want to open something that Firefox doesn't know how to open, but you tell Firefox to go ahead and open it. This article describes the various ways to resolve it: [[Firefox repeatedly opens empty tabs or windows after you click on a link]].

  • "Open in new tab" menu when a link is right-clicked?

    Is there any way in Flex 2 to make a link shows a contextual
    menu (when it's right-clicked) that shows "Open in new tab" à
    la Firefox (and probably in IE7)?
    I think such function is vital for the success of Flex 2.
    Any one out there who knows how to do it?

    Unfortunately, I don't think Mozilla/Firefox provides any way
    to let us do
    this programmatically; the only way for it to happen is for a
    user to do it
    himself, e.g. by ctrl-clicking a regular HTML <A> link.
    (I haven't checked on
    whether IE 7 provides a way.) If you look at
    http://developer.mozilla.org/en/docs/DOM:window.open
    , there is this Q&A:
    -- begin quote --
    Q: How do I open a referenced resource of a link in a new
    tab? or in a
    specific tab?
    A: Currently, you can not. Only the user can set his advanced
    preferences to
    do that. K-meleon 0.9, a Mozilla-based browser, gives
    complete control and
    power to the user regarding how links are opened. Some
    advanced extensions
    also give Mozilla and Firefox a lot of power over how
    referenced resources are
    loaded.
    In a few years, the target property of the CSS3 hyperlink
    module may be
    implemented (if CSS3 Hyperlink module as it is right now is
    approved). And
    even if and when this happens, you can expect developers of
    browsers with
    tab-browsing to give the user entire veto power and full
    control over how
    links can open web pages. How to open a link should always be
    entirely under
    the control of the user.
    -- end quote --
    Mike Morearty
    Developer, Flex Builder team
    http://www.morearty.com/blog

  • How can I force Firefox to override javascript when opening links with ctrl+click?

    There are certain sites that always open up a link in the active window despite said links being opened by ctrl+clicking it. Basically what happens is that a java script on the site forces the active window to load the link while at the same time Firefox follows the ctrl+click command and loads it in a new tab. You end up with two tabs with the same information and always have to go back in your original tab to be able to open other links.
    Usually you can open the link the way you want by right-clicking and selecting 'Open Link in New Tab' but for some reason ctrl+click is treated as if it was a regular click. How can I stop this from happening and force Firefox to ONLY load the new tab?
    This problem is not specific to the version of Firefox I'm using or the operating system, but seems to be caused by java script on the site. Disabling java scripts makes the problem go away but sometimes it also disables the sites.

    If you're trying to protect your browser from hackers, I'd recommend setting up a master password for your saved passwords. Other than that, your anti-virus and firewall are responsible for keeping your computer safe.
    If you're trying to protect your browser from someone else (i.e. somebody who can physically use the computer) just lock your entire computer with a password. If someone else has to use it, you could try letting them use the guest account.

  • When I put the arrow on an internet link in an e-mail, a blue "F share" panel appears and stays when the link opens. Click on it, a window opens asking for login. I don't want to share anything on Facebook just to get rid of this intrusive bloody thing?

    Every time I put the cursor arrow over an internet link in an e-mail, the little blue "F share" panel appears. If I open the link the panel stays visible. If I click on it to get rid of it, a window opens asking me to login. I don't want to login; I don't want to share anything on Facebook. How can I get rid of this intrusive bloody thing?

    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Report Break on Form with Row Selector

    Hi!
    I have just upgraded to 4.1 and created a new page with a Tabular Form (insert, Update and Delete capable).
    The first column in the report is the row selector, so when I set the "Report Break on first column", it breaks on the row selector. In previous releases, the row selector could be moved down in the Report Attributes, but in 4.1, there are now up/down arrows next to the row selector, so I can't move it to the second column!
    Help.. anyone have a solution to this?
    Thanks!
    Jodie

    Hello.
    We have exactly the same problem. Only we are using apex 4.2.
    We have a tabular form with row selector and a break column. We want to break on that break column.
    But we can't move it above row selector.
    How can we solve that problem?
    Thanks.
    Regards,
    Dejan

  • 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

  • SQL Query updateable report with row selector. Update process.

    I have a SQL Query updateable report with the row selector(s).
    How would I identify the row selector in an update process on the page.
    I would like to update certain columns to a value of a select box on the page.
    Using the basic:
    UPDATE table_name
    SET column1=value
    WHERE some_column=some_value
    I would need to do:
    UPDATE table_name
    SET column1= :P1_select
    WHERE [row selector] = ?
    Now sure how to identify the [row selector] and/or validate it is checked.
    Thanks,
    Bob

    I don't have the apex_application.g_f01(i) referenced in the page source...In the page source you wouldn't find anything by that name
    Identify the tabular form's checkbox column in the page(firebug/chrome developer panel makes this easy)
    It should be like
    &lt;input id=&quot;...&quot; value=&quot;&quot; type=&quot;checkbox&quot; name=&quot;fXX&quot; &gt;we are interested in the name attribute , get that number (between 01 and 50)
    Replace that number in the code, for instance if it was f05 , the code would use
    apex_application.g_f05
    --i'th checked record' primary keyWhen you loop through a checkbox array, it only contains the rows which are checked and it is common practice to returns the record's primary key as the value of the checkbox(available as the the i'th array index as apex_application.g_f05(i) , where i is sequence position of the checked row) so that you can identify the record.

  • HTMLDB_item.Date with row selector

    Hi :
    In my application i am using htmldb_item.datepicker and row selector to insert the date object wise
    the problem wht i am facing is if suppose 10 rows are generated when i select 3rd row date and insert date picker date get populated in 2nd row similarly 2nd rows to 1st and so on
    please try this query
    SELECT
    HTMLDB_ITEM.DISPLAY_AND_SAVE(2,NULL) "Project Objects",
    HTMLDB_ITEM.DATE_POPUP(3,rownum,null,'dd-mon-yyyy',12,15) "date"
    FROM
    DUAL
    UNION
    SELECT
    HTMLDB_ITEM.DISPLAY_AND_SAVE(2,SYSDATE) "Project Objects",
    HTMLDB_ITEM.DATE_POPUP(3,rownum,null,'dd-mon-yyyy',12,15) "date"
    FROM
    DUAL
    first change this query to sql updatable report and add row selector then try to select date from 2nd row ull find the problem wht i am facing
    please suggest how to resolve this
    thanks
    sudhir

    ya we it wont update when we use a rownum when we resort and update i did like this see if you can understand the code
    DECLARE
    vRow binary_integer;
    BEGIN
    for i in 1..htmldb_application.g_f01.count
    loop
    vRow := htmldb_application.g_f01(i);
    UPDATE SCHEDULE_VARIANCES
    SET
    REVISED_START = htmldb_application.g_f02(vRow),
    REVISED_END = htmldb_application.g_f03(vRow),
    ACTUAL_START = htmldb_application.g_f04(vRow),
    ACTUAL_END = htmldb_application.g_f05(vRow),
    STATUS = htmldb_application.g_f06(vRow),
    -- ACCEPTANCE = htmldb_application.g_f07(vRow),
    COMMENTS = htmldb_application.g_f08(vRow)
    where
    PROJECT_NAME = :P25_PROJECTS AND
    OBJECT_NAME = htmldb_application.g_f09(vRow) ;
    end loop;
    End;
    here i am relating object name to row selector that is the check box so that when u sort the row also based on the object name that u select it will update this worked for me
    thanks
    sudhir

  • Looping through row selector exonentially duplicating

    Using Apex 4.2
    Background
    Created a Tabular Form based on a view. Removed all the default multi-row updates and deletions, buttons and processes.
    I am using a tabular form because of the fact that I can gain access to a row selector.
    The row data itself is all read only so in effect this is a report with a row selector.
    This is because I can't find a way to select a row an interactive report, well I can and did but this was a work around.
    Problem
    I have created a button to process the selector to run the below code:
    begin
    kdm_adm_utils.log ('Page', 'XKDM: WF: Current Development', 'Selected Check Boxes:'||wwv_flow.g_f01(1)) ;
    kdm_adm_utils.log ('Page', 'XKDM: WF: Current Development', 'Selected Check Boxes:'||wwv_flow.g_f02(1)) ;
       for i in 1..wwv_flow.g_f01.count
       loop
       kdm_adm_utils.log ('Page', 'XKDM: WF: Current Development', 'i:'||i) ;
          kdm_adm_utils.log ('Page', 'XKDM: WF: Current Development', 'WF ID:'|| wwv_flow.g_f02 (wwv_flow.g_f01.count)) ;
       end loop;
    end;
    I just wanted to see what would be output. For one row this works fantastically and I can find the ID based on the row
    When I select more than one row the loop run's through for the number of rows but then also runs for the number of rows selected.
    So if I selected threee rows this above procedure would run three times, each times looping three times.
    I have set the execution scope to: For Created and Modified Rows in the button condition that appears.
    Required
    I only want to loop through the selected rows once per button click
    OR
    Know which row I am currently looping through.
    Really would appreciate some kind of input here.

    I think the built in selector is making your life harder because the information that contains is 1,2,3,4,5.  You then need to map 3 to the ID of your 3rd row.
    So, if you check row 1 and 3, on submit, the row selector will have two rows, one with value of 1 and with with value of 3.
    I would remove the selector, use and ID column that I can change to be Simple Checkbox (or whatever value you can use to uniquely identify it).  Or add your own apex_item.checkbox(n, ID) to your SQL.
    Then your loop on apex_application.g_f01.count (if that's the checkbox column) will only contain the elements checked and their values will be the ID that are checked.
    All that said, here's a useful example from Denes Kubicek
    http://apex.oracle.com/pls/otn/f?p=31517:95
    Hope this makes sense
    Thanks
    -Jorge
    http://rimblas.com/blog/
    Message was edited by: jrimblas
    Added link to Denes example page

  • 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

Maybe you are looking for