Generic jQuery selector

Hi,
Does anyone know how to make a generic function so that the #your_dialog can be any ID passed from a wrapper function? For example, I can pass the DIV with ID=MODALDIALOG_INDEX in a call to the following function. Then, I can simply write the following function once and use it for different pages many times. I want to make the #your_dialog dynamic instead of hardcoded.
Thanks.
Andy
<pre>
$(document).ready(function(){
$("#your_dialog").dialog({
autoOpen: false,
bgiframe: true,
resizable: false,
modal: true,
buttons: {
'Cancel': function() {
null; //your work
'Ok': function() {              
null; //your work
</pre>

<script>
  function  open_dialog(RegionJquerySelector) {
      $(RegionJquerySelector).dialog({
         autoOpen: false,
         bgiframe: true,
         resizable: false,
         modal: true,
         buttons: {
            'Cancel': function() {
               null; //your work
            'Ok': function() {              
               null; //your work
</script>Add the code to page header
Then in execute when page loads section ( otherwise wraps in in the $.ready() code block)
open_dialog('#yourRegionID');If you want to reuse this, add the function definition as an external JS file(remove the script tags for a file). Load it in your page(s) and use the open_dialog function with the region se;lector.

Similar Messages

  • Dymanic action with jQuery selector not working in version 4.2.2

    Hi,
    We’re in the process upgrading to APEX version 4.2.2. We have an issue is with a report with a link that’s firing a dynamic action with a jQuery selector.
    The first sequence in the dynamic action is Confirm. When we click the link in the report it’s supposed to popup a confirm “Are you sure you want to save?"
    When we click the link nothing happens. This works in our current version 4.0.1, but not in 4.2.2. Do you have any ideas?
    Thanks,
    Joe

    change the
    in the url to
    javascript:void(0);
    The reason for your issue is that the default action of the anchor tag is not prevented and thus navigation occurs. A confirm action will return true or false, and execution of further true actions will stop when selecting cancel but this will still not prevent the default action from occuring. Similarly a cancel event true action is not adequete as this has to be run after the confirm so not accounting for the execution-stopping cancel of the confirm.
    That javascript in the url is some good ol' "hack". It'll run that javascript instead of performing a navigation and void(0) just does nothing, and the click dynamic action will be unaffected.

  • Dynamic action on checkbox using jQuery selectors

    Aim: Have a classic report with a checkbox for each record that fires a dynamic action. I'd like to source the relevant ID/value within Javascript (ultimately PL/SQL)
    Consider a classic report using the following query
    SELECT label
    ,apex_item.checkbox
      (p_idx   => 15 -- f42
      ,p_value => id
      ,p_attributes => 'id="f15_'||id||'" class="xyz"'
      ) chk
    FROM   my_tableDefine a dynamic action with
    Event: Click
    Selection type: jQuery selector
    jQuery selector: .xyz
    No condition
    Scope:Bind
    I have an action executing javascript
    var me = this.triggeringElement;
    console.log('me:'||me);
    console.log('name:'||me.attr('name') );
    console.log('id:'||me.attr('id') );
    console.log('value:'||me.prop('val'));Affected elements Selection type: Triggering element
    When I run the page and check a box, the DA fires, but all output shown in the console log is blank.
    I've tried copious variations to get this right, such as using $(this.triggeringElement)
    These pages make me feel confident I have the syntax right
    http://stackoverflow.com/questions/12038392/oracle-apex-checkbox-to-manipulate-other-values-when-checked-unchecked
    http://iadviseblog.wordpress.com/2011/08/24/get-triggering-element-in-da/
    But my values are still null?! Anyone know what I've missed?
    Apex 4.1.1
    Scott

    var me = this.triggeringElement;
    console.log('me:'||me);
    console.log('name:'||me.attr('name') );
    console.log('id:'||me.attr('id') );
    console.log('value:'||me.prop('val'));<ul>
    <li>Concatenation in javascript is with +* and not *||* (which means OR)</li>
    <li>Also, this.triggeringElement is a reference to the DOM element, it is not a jQuery object. So wrapping it in $() is required when you wish to access properties through jQuery.</li>
    <li>.prop('val') won't work. You need to check for the existence of a property-line attribute, which in case of a checkbox could be "checked".</li>
    <li>dynamic action on a report: use scope Live to prevent functionality from working when the report is refreshed/paginated</li>
    </ul>
    var me = $(this.triggeringElement);
    console.log('me:'+me);
    console.log('name:'+me.attr('name') );
    console.log('id:'+me.attr('id') );
    console.log('value:'+me.prop('checked'));

  • Bug? chained jQuery Selector in Dynamic Action doesn't work

    Just found out, that this jQuery Selector jQuery("#ABOTYPE_REPORT").find("#f01_0001") doesn't work as triggering Element of type "jQuery Selector" in a Dynamic Action.
    But this one jQuery("#ABOTYPE_REPORT").find("#f01_0001")[0] worked with type "DOM Element" as triggering Element in a Dynamic Action.
    To my knowledge even the first one is a real and valid jQuery Selector and should work.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

    Hi Patrick,
    It would be really nice if you could support a less strict definition of the jQuery Selector (as i understand DOM Object and jQuery Selector to be the advanced and more powerful options).
    In my example i could directly use #f01_0001 if my page wouldn't have more than one TabForm on it (and therefore multiple elements with id f01_0001) ;-)
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Jquery selector question..

    Hi all...
    Please help me with this jquery question.
    In the Interactive reports,I would like to hide the option
    "Row"(filter) (radio button option) under the "Actions-->Filter"
    This is the code i was using,but it is not working.
    I am very new to jquery, please help me with the jquery syntax.
    $(function(){
    $("ul li:contains('Filter')").live('click',function(){
    $("#APEXIR_FILTER_TYPE_1").hide();  -- i need to hide that ""complete option""
    });APEX: 4.1
    Database: 11g
    Browser: IE7

    Hi,
    There us 2 options. Default is columns. Why you like show this if you hide Row option?
    What I did test filter works ok when both options are hidden.
    I did not test your jQuery selector, but problem is that region where radio buttons exists are append using Ajax call.
    When your onclick event fires, element are not in HTML document, and that is main reason why your jQuery solution do not work
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Jquery Selector in Apex 4.1

    Hi everybody,
    I've just upgraded to apex 4.1 from 4.0.1 and my dynamic actions selecting jquery class selector type (.my_class) now just selects the first element of that class instead of all the elements of class, my_class.
    It was working smoothly in 4.0. Do you have any idea how to resolve this?
    I've already tried instructions in documentation section "About jQuery and jQuery UI Support" http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/app_comp001.htm#BABHCBJI
    reverted my page back to include jQuery 1.4.2 but did no help.
    PS: I use Firefox 3.6.
    The most important Info that I forgot to include*: The selection fails in set value action's affected element selector. When selector seems ok.
    Edited by: oeren on Oct 4, 2011 12:29 AM

    4.1 Release Notes wrote:
    4.13 Dynamic Action Set Value with Multiple Affected Elements
    With the introduction of some built-in options to retrieve multiple values, Application Express no longer supports the ability to retrieve 1 value that could then be used to set multiple page items. This was done for simplicity and usability. If you had defined a 'Set >Value' dynamic action that set multiple Affected Elements to the same value, here is how you can fix this, according to the 'Set Value' dynamic action's 'Set Type':
    *Static Assignment - Define additional 'Actions' for each Affected Element, setting them all to the same value.
    ....Is this the reason?? Should I have to define set values for every single item?

  • JQuery Selector

    Hi guys,
    I work on apex 4.1.1. Theme : 21 . Template: Navigation region. Latest version of Google Chrome.
    I am trying to trigger Skillbuilder Modal page by clicking on a list entry.
    in the URL of that entry i Put:
    Javascript: retrun false;This list entry contains this text Create Reminder and is the first li on a list region by the ID of tasks
    I tried the following:
    $("li:contains('Create Reminder')")
    $("#tasks > li")
    $("#tasks li:first")But none of which triggered the plugin..
    Regards,
    Fateh

    Hi,
    You should not write to Region Attributes
    id="tasks"You should use Static ID and place there
    tasksYou should not place list URL target
    javascript: return false;You place there
    javascript:void(0);or
    #I propose you read about these topics from documentation
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/toc.htm
    And you take Firefox browser and Firebug addon. With Firebug you see e.g. JavaScript errors and when you explore HTML you could see that you was missing dom with id tasks.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Jquery menu plugin  integrated in Tab's (using a custom theme )

    Hi,
    I'm trying to use the jquery menu plugin and use it combined with tab's. I would like to get the effect which is also in the APEX IDE ( TAB's with submenu's expanding below the TAB ).
    So far I have my tab's and also my menu's which are show as a button on the page which expand when you click on them. But I would like to have the menu attached to the tab.
    I found somewhere (http://www.theapexfreelancer.com/apex/f?p=APEXFREELANCER:JQUERY_MENU_PLUGIN:0) that I should name the TAB and the LIST's on which the menu's are build exactly the same to achieve this, but so far no luck.
    Does anyone know of a cookbook describing how to achieve this or has any ideas what to check ?
    Regards,
    Bas
    b.t.w. Have a great 2012!

    The steps can be detailed as follows (I will make it specific to my theme -Application Builder- and you can replace what you want)
    0) a) My Page template name is WithNicolettePlugin.
    b) Put the Nicolette (Thanks alot for him) plugin on #REGION_POSITION_08# in Page Zero (Global page)
    c) the settings of the plugin as follows:
    - Template : WithNicolettePlugin
    - Before HTML : <ul class="dhtmlMenuLG2"> - After HTML : </ul> - jQuery selector submenu : .dhtmlSubMenu2
    - Tab set : main
    - Include single subtab : yes
    - Class first parent : ui-corner-left
    - Class last parent : ui-corner-right
    - File Prefix : #IMAGE_PREFIX#
    the others are empty     
    1) link the following CSS's into the Header section of the Page Template of (Bluejay-22)
    <link rel="stylesheet" href="/i/css/apex_builder.min.css?v=4.2.0.00.27" type="text/css" />
    <link rel="stylesheet" href="/i/css/apex_ui.min.css?v=4.2.0.00.27" type="text/css" />
    <link rel="stylesheet" href="/i/css/apex_ui_builder_home.css" type="text/css" />2) link the following Scripts into the Header section of the Page Template
    <script type="text/javascript">
    var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;
    </script>
    <script src="/i/libraries/apex/minified/desktop_all.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <script src="/i/libraries/apex/minified/legacy.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <style> html {visibility:hidden;} </style>
    <script type="text/javascript">
    apex.security.framebreaker("D");
    </script>
    <script src="/i/libraries/apex/minified/widget.textarea.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <script src="/i/libraries/apex/minified/builder.min.js?v=4.2.0.00.27" type="text/javascript"></script>3) Re-write the Body section to be as the following
    <div id="page-header">
      .... LOGO AND WELCOME HERE ...... 
       <div class="apex-top-bar-end">
           <div class="apex-top-bar">
                <div id="tabs" class="dhtmlMenuLG">
                  #REGION_POSITION_08#   <!-- Put the plugin at your page zero in REGION 8 -->
                </div>
           </div>
       </div>  
    </div>
    <div id="topbar">#REGION_POSITION_01##REGION_POSITION_04#</div>
    <div id="messages">#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#</div>
    <div id="body">
        <table class="tbl-body" cellspacing="0" cellpadding="0" border="0" summary="">
        <tbody>
          <tr>
            <td class="tbl-main" width="100%">#REGION_POSITION_02##BOX_BODY#</td>
            <td class="tbl-sidebar">#REGION_POSITION_03#</td>    
          </tr>
        </tbody>
        </table>
    </div>4- Update the section of Standard Tab Attributes to have Current Tab as the following *(PLEASE, REMOVE THE MINUS BEFORE onmouseover)*
    <li class="dhtmlSubMenuN" -onmouseover = "dhtml_CloseAllSubMenusL(this)" >
      <a href="#TAB_LINK#" class="dhtmlSubMenuN"
         title="#TAB_LABEL#">
         "#TAB_LABEL#
      </a>
    </li>
    {code}
    and Non Current Standard Tab as the following
    {code}
    <li class="dhtmlSubMenuN" -onmouseover = "dhtml_CloseAllSubMenusL(this)" >
      <a href="#TAB_LINK#" class="dhtmlSubMenuN"
          title="#TAB_LABEL#">
          "#TAB_LABEL#
      </a>
    </li>5- Update the section of Parent Tab Attributes to have Current Parent Tab as the following
    <div id="#TAB_ID#" class="current">
        <a href="#TAB_LINK#" title="#TAB_LABEL#" class="link_text">#TAB_LABEL#</a>
        <a href="#" class="link_icon">
          <img src="/i/apex/builder/down_dark_12x12.gif" width="12" height="12" 
               class="dhtmlMenu" alt="#TAB_LABEL# Drill Down"/>
       </a>
       <ul id="#TAB_NAME#" htmldb:listlevel="1" class="aTabs dhtmlSubMenu pulldown-tabs" style="display:none;">
           #TABS#
           <li class="last" dir="RTL"><span></span></li>
        </ul>
    </div>and Non Current Parent Tab as the following
    <div id="#TAB_ID#" class="non-current">
        <a href="#TAB_LINK#" title="#TAB_LABEL#" class="link_text">#TAB_LABEL#</a>
        <a href="#" class="link_icon">
          <img src="/i/apex/builder/down_dark_12x12.gif" width="12" height="12" 
               class="dhtmlMenu" alt="#TAB_LABEL# Drill Down"/>
       </a>
       <ul id="#TAB_NAME#" htmldb:listlevel="1" class="aTabs dhtmlSubMenu pulldown-tabs" style="display:none;">
           #TABS#
           <li class="last" dir="RTL"><span></span></li>
        </ul>
    </div>6- You will find a sample here in
    Workspace : ralab
    User : nicolette
    Password : abc123
    Application 33791 - TestDropDownAppBuilderTabs
    If the post completes your solution mark it as correct and the question as answered, otherwise, mark it as helpful.
    Best Regards
    Mahmoud

  • Referencing a row level field value in an Interactive Report using jquery

    I have an Interactive Report with a row level select_list:
    select ename "Employee Name",
    mgr "Manager",
    empno,
    APEX_ITEM.SELECT_LIST(
    p_idx => 3,
    --p_value         =>   deptno,
    p_list_values => 'Copy;Copy,Delete;Delete,Export to PDF;Export to PDF',
    --p_attributes    =>   'style="color:red;"',
    p_show_null => 'YES',
    p_null_value => NULL,
    p_null_text => '--Select--',
    --p_item_id       =>   'f03_#ROWNUM#',
    p_item_id => 'P6_IR_SELECT_LIST',
    p_item_label => 'Label for f03_#ROWNUM#',
    p_show_extra => 'YES') "Actions"
    from emp e, dept d
    where e.deptno = d.deptno ;
    When a user selects "Delete", i'd like to delete the EMPNO based on the row where the user selected "Delete". I have tried alerting on the following, but cannot figure out how to capture the row-level EMPNO:
    alert($v('apexir_EMPNO'));
    alert($('#apexir_EMPNO').val());
    Can someone tell me how to reference the specific EMPNO per row?
    Thanks in advance!
    John

    What about this:
    Dynamic action
    Event: change
    selector: jQuery selector:
    select[name="f21"]
    True action
    Exec JS code
    var row = $x_UpTill(this.triggeringElement, 'TR');
    var otherElement = $('input[name="f20"]', row)[0];
    console.log(otherElement.value);
    http://apex.oracle.com/pls/apex/f?p=45448:11 (bottom half)

  • JQuery/Thickbox Question

    Hi,
    I am new to JQuery and am trying to use the thickbox to 'house' the login page, but am having problems closing a modal thickbox through code.
    Sequence is :
    App starts and loads page 1.
    User clicks Login and thick box is opened in page1 showing page2 inside it
    User enter correct details and clicks Login button.
    User is validated and then the main menu loaded, but it is loaded in the thickbox, I want it to close the thickbox and then go to the main menu page.
    Any help greatly appriciated
    Chris

    Hi,
    There us 2 options. Default is columns. Why you like show this if you hide Row option?
    What I did test filter works ok when both options are hidden.
    I did not test your jQuery selector, but problem is that region where radio buttons exists are append using Ajax call.
    When your onclick event fires, element are not in HTML document, and that is main reason why your jQuery solution do not work
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • SignalR and jquery

    Hi,
    We currently are implementing SignalR technology in our SharePoint Team Sites. The technology is promising and we tailored it according to our business needs. We ran in to one issue where we get an error 'Signalr undefined', We get this error where another
    version of jquery is loaded on to the page after signalr is loaded in the master page.
    Master page – SignalR and Jquery Loaded here Initially(version 1.x.x)
    Content pages(Home.aspx, Default.aspx etc) –  JQuery Again Loaded here again
    In this scenario, we get hub undefined error. But if there is no other jquery web-part on the content page, there is no error. 
    Any help greatly appreciated.
    Ravichandra Challa

    jQuery is to JavaScript as APEX is to the PL/SQL Web Toolkit. Think of the productivity gain you get from APEX vs simple htp.p()! That's what jQuery gives you. Get your brain around jQuery selectors and it will make more sense:
    http://tylermuth.wordpress.com/2008/12/17/jquery-selectors-will-change-your-life/
    Tyler Muth
    http://tylermuth.wordpress.com
    "Applied Oracle Security: Developing Secure Database and Middleware Environments": http://sn.im/aos.book

  • Select Option Custom Tag JQUERY

    I have multiple select options on many of my pages, I just just added a jquery filter plugin to one of the select options i.e As User types on an input box the values in the select options gets filtered. This works very well now. How can I make it this into a custom Tag where it can be resused by all the select options on the site. That is the id of the select option and the input box has to be passed to the jquery to automtically filter the content of the Select Option. below is my jquery script.
    <div>Filter<br>
        <input id="txtcomm" type="text" name="">       
    </div>
    <div>
        <select id="slctcomm" multiple style="width:220px">
            <cfloop query="qryobjComm">
                <option value="#Comm#">#Comm#</option>
            </cfloop>
        </select>   
    </div> 
    <script>
        jQuery.fn.filterByText = function(txtcomm, selectSingleMatch) {
          return this.each(function() {
            var slctcomm = this;
            var options = [];
            $(slctcomm).find('option').each(function() {
              options.push({value: $(this).val(), text: $(this).text()});
            $(slctcomm).data('options', options);
            $(txtcomm).bind('change keyup', function() {
              var options = $(slctcomm).empty().data('options');
              var search = $.trim($(this).val());
              var regex = new RegExp(search,'gi');
              $.each(options, function(i) {
                var option = options[i];
                if(option.text.match(regex) !== null) {
                  $(slctcomm).append(
                     $('<option>').text(option.text).val(option.value)
              if (selectSingleMatch === true &&
                  $(slctcomm).children().length === 1) {
                $(slctcomm).children().get(0).selected = true;
        $(function() {
          $('#slctcomm').filterByText($('#txtcomm'), true);
    </script>

    Hi umuayo,
    I guess you want pass the jquery selector for textbox and selectbox. I have created a file named filterByText.cfm which will act as customtag for me.
    for more information regarding custom tag follow this link http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0b2e1 -7fff.html
    In this example i have created custom tag in the same directory where I will use it. You can create it in different place also. Let us get into the main topic. I will pass the jquery selector for textbox and selectbox to the custom tag by "FilterId" and "slctcomm" attribute and inside customtag I will convert coldfusion valiable to javascript variable and use them to call your function.
    dynamicselectbox.cfm
    CODE:
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <cfquery name="getEmps" datasource="cfdocexamples">
        SELECT * FROM EMPLOYEE
    </cfquery>
    <div>Filter<br>
        <input id="txtcomm" type="text" name="">      
    </div>
    <div>
        <select id="slctcomm" multiple style="width:220px" class="selclass">
            <cfoutput query="getEmps">
                <option value="#Emp_ID#">#FirstName#</option>
            </cfoutput>
        </select>
              <select id="slctcomm2" multiple style="width:220px" class="selclass">
            <cfoutput query="getEmps">
                <option value="#Emp_ID#">#FirstName#</option>
            </cfoutput>
        </select>  
    </div>
    <cf_filterByText FilterId="##txtcomm" slctcomm=".selclass">
    filterByText.cfm
    Code:
    <script type="text/javascript">
    //get the jquery selector from attribute scope
              var filterId="<cfoutput>#Attributes.FilterId#</cfoutput>";
              var selectBoxId="<cfoutput>#Attributes.slctcomm#</cfoutput>";
        jQuery.fn.filterByText = function(txtcomm, selectSingleMatch) {
                        console.log(this);
                        var retvar;
            retvar = this.each(function() {
            var slctcomm = this;
            var options = [];
            $(slctcomm).find('option').each(function() {
              options.push({value: $(this).val(), text: $(this).text()});
            $(slctcomm).data('options', options);
            $(txtcomm).bind('change keyup', function() {
              var options = $(slctcomm).empty().data('options');
              var search = $.trim($(this).val());
              var regex = new RegExp(search,'gi');
              $.each(options, function(i) {
                var option = options[i];
                if(option.text.match(regex) !== null) {
                  $(slctcomm).append(
                     $('<option>').text(option.text).val(option.value)
              if (selectSingleMatch === true &&
                  $(slctcomm).children().length === 1) {
                $(slctcomm).children().get(0).selected = true;
                return retvar;
    //call the function with the selector passed by user.
        $(function() {
          $(selectBoxId).filterByText($(filterId), true);
    </script>
    Thanks
    Saurav

  • Set checkbox session state using Jquery / dynamic action

    Hello Folks,
    I'm trying a simple dynamic action to disable & set element value upon making a radio box selection.
    What I'd like is:
    a) if i chose "Vendor" as "Traditional" (default value) I would like to set the "SNAP" flag as Checked and "Status" textbox to "test for static value" (SNAP flag is not set, only works on Page load)
    b) if i chose "vendor" as "Isilon" then "SNAP" flag should be greyed out (disabled) and "Status" textbox should be disabled. (Working as Expected)
    Link to the page:
    http://apex.oracle.com/pls/apex/f?p=73069:6:0::NO:::
    Workspace: wksp_chandu
    Username: test
    Password:test
    Dynamic Action
    Identification
    Page:
    6. Check Disable radio
    *Name(Value Required)
    *Sequence(Value Required)
    When
    *Event(Value Required)
    - Select Event -
    Change
    Click
    Double Click
    Get Focus
    Key Down
    Key Press
    Key Release
    Lose Focus
    Mouse Button Press
    Mouse Button Release
    Mouse Enter
    Mouse Leave
    Mouse Move  Page Load
    Page Unload
    Resize
    Resource Load
    Scroll   Select          
    After Refresh
    Before Page Submit
    Before Refresh
    Change Order [Shuttle]
    Custom
    Show unsupported...
    *Selection Type(Value Required)
    - Select Selection Type -
    Item(s)
    Button
    Region
    DOM Object
    jQuery Selector
    *Item(s)(Value Required)
    Condition
    - No Condition -
    equal to
    not equal to
    greater than
    greater than or equal to
    less than
    less than or equal to
    is null
    is not null
    in list
    not in list
    JavaScript expression
    *Value(Value Required)
    True Actions
    The following actions will be fired when the 'When' condition is met, or when it is 'No Condition'.
    Edit
    Sequence
    Action
    Fire On Page Load
    Selection Type
    Affected Elements
    10
    Clear
    Yes
    Item(s)
    P6_SNAP
    P6_STATUS
    20
    Disable
    Yes
    Item(s)
    P6_SNAP
    P6_STATUS
    Add True Action
    False Actions
    The following actions will be fired when the 'When' condition is not met.
    Edit
    Sequence
    Action
    Fire On Page Load
    Selection Type
    Affected Elements
    10
    Enable
    Yes
    Item(s)
    P6_SNAP
    P6_STATUS
    30
    Set Value
    Yes
    Item(s)
    P6_STATUS
    40
    Execute JavaScript Code
    No
    Item(s)
    P6_SNAP
    Add False Action
    Thanks!
    Chandu

    Oops...I just got it working.. Thanks for your time. I was trying to set checkbox value via javascript code and somehow that wasn't working...Finally changed the setvalue to be based on "PL SQL expression" nvl(:P6_SNAP,1)...that seem to have worked.
    Thanks again !

  • Get generated rows by Spry with jQuery

    i have a spry region like this
    <table class="widget-elenco">
    <tr spry:repeat="pv" spry:even="even" spry:odd="odd">
       <td>{soggetto_id}</td>
       <td>{codice_fiscale}</td>
       <td>{partita_iva}</td>
    </tr>
    </table>
    the problem: i cant' get the generated rows by spry:repeat with jquery
    i try with an observer, something like this
    var myObserver = function(nType, notifier, data){
      if (nType == 'onPostLoad') {
        $(function(){
          $('table.widget-elenco tr').each(function() {
            doSomething()
    ds.addObserver(myObserver);
    but this not woks :-/
    i can to change "onPostLoad" to "onPreLoad" or "onDataChanged"
    without solutions :-/
    any idea?
    many thanks!
    Rob

    hi gramps :-)
    thanks for your reply!
    here:
    http://qubica.in/manager/soggetti/index.cfm
    simple: i would "remove" the anti-estetic "onmouseover/onmouser" function added on a single <tr> for replace with a jquery function:
    $(function(){
        $('table.widget-elenco tbody tr').mouseover(function() {
            $(this).addClass('ui-state-highlight');
         }).mouseout(function() {
            $(this).removeClass('ui-state-highlight');
    yes, this is not a so important problem... :-) but, in general, the *REAL* question is "how do i get generated rows... using jQuery selector?"
    something lijke this:
    $(function(){
    $('ELEMENTS-IN-SPRY-REGION').each(function() {
        doSomethings();
    thanks!
    Rob

  • JQuery Puzzler

    Apologies in advance for posting this purely jQuery question here but, what can I say? I am stuck and desperate. So, please have pity and help me anyhow...sniffle...sniffle
    I need to create a compound jQuery selector but, I need the condition to be AND rather than OR. The goal is to add an additional class to two columns in a table wherever Column A = Val1 AND Column B = Val2.
    For example:
    'td[headers="CLEARERID"] select option:selected:contains(013), td[headers="MARGINING_ACCOUNT"] select option:selected:contains(H)'
    The above selector will find cells where the column is CLEARERID and the value is 013 OR the column is MARGINING_ACCOUNT and the value is H
    The problem with it being an OR is that, in rows where CLEARERID = 014 and MARGINING_ACCOUNT is H, the MARGINING_ACCOUNT is getting the additional class which is wrong.
    Probably something simple but, been stuck on this for a while now.
    Thanks,
    -Joe

    Oh, that's too bad.
    I'm going to keep this unanswered for a little while longer just in case someone else knows of a "trick" to accomplish this but, I will, regretfully, proceed with the loop coding. I had already read that selector reference page and, like you, didn't get what I wanted there either.
    Some folks have suggested a filter operator to achieve an AND condition but, it won't work in this example, because it would have to be true both that the column was CLEARINGID and that the column was MARGINING_ACCOUNT which, of course, isn't possible.
    Thanks for the reply, Jari.
    -Joe

Maybe you are looking for