JavaScript if statement

Hello

I'm not good at javascript, so I got this button "Save as...". "and a javascript message box will appear asking if they guarantee the document before saving:

xfa.host.messageBox ("ATTENTION", "have you you secure the prior of document recording?", 3, 2);

If they say 3 (Yes), the javascript code must be applied: app.execMenuItem("SaveAs");

If 2 (no), return to the document. Can anyone help?

Thank you!

OK, here's the script working.

btnSaveAs::click

If (xfa.host.messageBox ("you secure the document before you save it?", "WARNING", 2, 2) == 4) app.execMenuItem ("SaveAs");

Tags: Adobe LiveCycle

Similar Questions

  • problem alert JavaScript - select State

    I'm trying to validate my form with javascript. I have problems with my status field. If the user selects one javascript State warns the following message: "CHOOSE ONE ANSWER is not selectable. Please choose your state. "I want the alert message appears if select one is selected as a State. How can I solve this problem?

    Thank you! That solved my problem.

  • JavaScript - how to disable CSS "one: stationary image" when swap them Image is present?

    I currently use the following CSS to highlight a linkable image:

    a: hover {img

    border: none; overflow: hidden; float: left;

    border: 3px solid #2 d 3262;

    margin:-3px;

    border-radius: 5px;

    }

    In this way, that I don't have to make images flown for each image that I have has a connection. However, I have a lot of images that have animated buttons and I don't want this border to influence them. I can't find a way to do it. I tried to use a javascript "If" statement, but nothing seems to work. Someone knows how to write a script to nullify the "a: stationary image ' on the set of the"MM_swapImage '? Thank you...

    Hello

    Give the desired image elements as css hover to assign a class, in this way, that only the elements using css-

    The css would be-

    a: hover {img.myhover}

    border: none; overflow: hidden; float: left;

    border: 3px solid #2 d 3262;

    margin:-3px;

    border-radius: 5px;

    }

    the code of the image would include-

    Class = "myhover".

    (insert into the code of the image for all the images in need).

    PZ

  • JS function as a type of page in QML property

    Hi all

    I'm trying to create useful js 'class' for my blackberry application and save here some information about qml object here is the example of such file js:

    /* * my js */
    
    function Utils(devInfo){ this.devInfo = devInfo; this.text = "test text";
    
     this.getInfo = function(){ return this.text; };}
    

    I want to group some utils functions here and use this js in qml file object, but I don't want to create "Utils" every time, I would like to have a single instance of page qml. I tried to use properties:

    import bb.cascades 1.3
    import com.example.bb10_samples_states 1.0
    import "myscripts.js" as Scripts
    
    Page {
        property variant utils : new Scripts.Utils(deviceInfo)
    
        Container {
            Label {
                id: myLabel
                text: "Hello World"
            }
    
            onTouch: {
                var newLabeltext = utils.getInfo(); // freezing
                myLabel.text = newLabeltext;
            }
        }
    
        attachedObjects: [
            DevInfo{
                id: deviceInfo
            }
        ]
    }
    

    * DevInfo is registered object c ++

    I got the following in the notecard event error message:

    "asset:///main.qml:15: TypeError: result of expression 'utils.getInfo' [[object Object]] is not a function."

    If I do not use the property and only with variable work, everything is ok. The following code works correctly:

    import bb.cascades 1.3
    import com.example.bb10_samples_states 1.0
    import "myscripts.js" as Scripts
    
    Page {
        //property variant utils : new Scripts.Utils(deviceInfo)
    
        Container {
            Label {
                id: myLabel
                text: "Hello World"
            }
    
            onTouch: {
                var utils = new Scripts.Utils(deviceInfo);
    
                var newLabeltext = utils.getInfo();
                myLabel.text = newLabeltext;
            }
        }
    
        attachedObjects: [
            DevInfo{
                id: deviceInfo
            }
        ]
    }
    

    In general, I don't know where I can store object js in qml page to access my functions utils without need to create each time. Any ideas?

    I think I found the answer

    According to this link, there is no global js object and every instance of component QML has own unique copy resources imported from JS:

    ...

    Code-Behind implementation resources

    Most of the JavaScript files imported into a document QML are implementations with State of the QML importation document. In these cases, each instance of the QML object type defined in the document requires a separate copy of the JavaScript and State objects to behave properly.

    The default behavior when importing the JavaScript files must provide a unique and isolated copy for each instance of the QML component. If this JavaScript file any resources or modules with a statement .import, its code will be executed in the same scope as the instance of the QML component and therefore can access and manipulate objects and properties declared in the QML component. Otherwise, it will have its own unique scope, and the objects and properties of the QML component should be passed to the JavaScript file as parameters functions if they are required.

    ...

    http://Qt-project.org/doc/Qt-5/qtqml-JavaScript-resources.html

    So it seems there is no need to implement the model of sigleton or store JS resources in the QML document. I changed my code as follows:

    /**
     * js
     */
    var utils = {
      devInfo : null
    };
    
    function init(deviceInfo){
      utils.devInfo = deviceInfo;
    };
    
    function getText(){
      return utils.devInfo + " done.";
    };
    

    and qml:

    import bb.cascades 1.3
    import com.example.bb10_samples_states 1.0
    
    import "myscripts.js" as Scripts
    
    Page {
        Container {
            Label {
                id: myLabel
                text: "Hello World"
            }
    
            onCreationCompleted: {
                Scripts.init(deviceInfo);
            }
    
            onTouch: {
                myLabel.text = Scripts.getText("Tra-ta-ta");
            }
        }
    
        attachedObjects: [
            DevInfo{
                id: deviceInfo
            }
        ]
    }
    

    It works fine - I can store information in the variable 'utils' and work with qml js objects. Hope so, it will help someone

  • AJAX and PL/SQL

    Hi guys,.

    I have a PL/SQL procedure that calls a php script (which returns an XML document) using AJAX. I want to change it to call another procedure PL/SQL instead of the PHP script. I created a PL/SQL procedure that mimics the output of the PHP script exactly, but AJAX no longer works. Here is my code:

    PL/SQL - calling procedure
    PROCEDURE myWebpage is
    begin
      
      -- Web page header
    
      htp.print('
          function getSubcategories(){
    
                 var ajaxRequest;
    
                  try{
                          // Opera 8.0+, Firefox, Safari
                          ajaxRequest = new XMLHttpRequest();
                  } catch (e){
                          // Internet Explorer Browsers
                          try{
                                  ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
                          } catch (e) {
                                  try{
                                          ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
                                  } catch (e){
                                          // Something went wrong
                                          alert("Your browser broke!");
                                          return false;
                                  }
                          }
                  }
    
            ajaxRequest.onreadystatechange = function(){
                  if(ajaxRequest.readyState == 4 && ajaxRequest.status == 200){
                    var xmlDocument = ajaxRequest.responseXML;
                    var options = xmlDocument.getElementsByTagName("option");
    
                    var subcatSelect = document.getElementById("subcat_sel");
                    subcatSelect.options.length = 0;
    
                    for(var i=0; i<options.length; i++)
                            subcatSelect.options[i] = new Option(options.firstChild.data);

    if ( document.requestInfo.pCategory.value == "Academic" ) {
    document.getElementById(''acad_div'').style.display = "inline";
    }

    else {
    document.getElementById(''acad_div'').style.display = "none";
    document.requestInfo.pContactMethod.value = "Email";
    }
    }
    }

    // THIS LINE IS THE PHP CALL
    ajaxRequest.open("POST", "http://mysite.com/dsu/query/ajaxquery.php", true);

    // THIS LINE WILL BE USED FOR PL/SQL CALL
    // ajaxRequest.open("POST", "http://mysite.com/SSBDADTST7/pkgAjax.ajaxQuery", true);

    ajaxRequest.setRequestHeader(''Content-Type'', ''application/x-www-form-urlencoded'');
    ajaxRequest.send("p_category=" + document.requestInfo.pCategory.value);

    }

    ');

    -- REST OF WEBPAGE

    end myWebpage;
    PHP SCRIPT
    <? PHP
    Query Script Ajaxquery.php

    include("..) /.. /.. ("/ ajax/connect.php");

    $category = $_POST ['p_category'];

    Query

    If ($category == 'University') {}
    $query = ociparse ($conn, ' select subject_desc from all_subjects)
    order of subject_desc');
    }

    else {}

    $query = ociparse ($conn, ' select subcategory_desc in the categories)
    where category =------". $category. '\'
    and active = \'A\'
    order of subcategory_desc');
    }

    ociexecute ($Query);

    Output

    Header ("Content-type: text/xml");
    echo "<? XML version=\"1.0\"? " > ';

    echo "< options >";
    While (ocifetchinto ($query, $row, OCI_ASSOC)) {}

    $keys = (array_keys ($row));

    {foreach ($keys as $k)
    echo '< option > '. $row [$k]. "< / option >";
    }

    }

    echo "< / options >;

    ? >
    PL/SQL - Called Procedure
    PROCEDURE ajaxQuery (p_category in varchar2) is

    type ref_cursor is ref cursor;

    subcat_curs ref_cursor;
    lSubcat categories.subcategory_desc%type;

    Start

    If (p_category = 'Academic') then
    Open the subcat_curs for
    Select subject_desc from all_subjects
    order of subject_desc;
    on the other
    Open the subcat_curs for
    Select subcategory_desc in the categories
    where category = p_category
    and active = 'A '.
    order of subcategory_desc;
    end if;

    HTP. Print (' <? xml version = "1.0"? > ');
    HTP. Print ('< options >');

    loop
    extraction of subcat_curs in lSubcat;
    When the output subcat_curs % notfound;
    HTP. Print ('< option >' | lSubcat |) ("< / option > ');
    end loop;

    HTP. Print ('< /options >');

    close subcat_curs;

    end getSubcategories;
    Now I have tested the output of the PHP script and the second PL/SQL procedure and they are identical.  I uncommented the line in the first PL/SQL procedure under "THIS LINE WILL BE USED FOR PL/SQL CALL".  But the line where
    
    var xmlDocument = ajaxRequest.reponseXML;
    
    is returning a null object when I use the PL/SQL call.  Do I need to modify something else for this to work?
    
    Here's my oracle version, just in case:
    Oracle Version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    NLSRTL Version 10.2.0.4.0 - Production
    
    Thanks
    
    Edited by: jschmidt10 on May 17, 2010 7:32 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    jschmidt10 wrote:

    Now, I have tested the output of the PHP script and the second PL/SQL procedure and they are identical. I uncommented the line in the first PL/SQL procedure under "THIS LINE WILL BE USED in PL/SQL, CALL". But the line where

    xmlDocument var = ajaxRequest.reponseXML;

    Returns a null object when I use PL/SQL call. I have to change something to make it work?

    Note that PL/SQL is used to create a dynamic Mime stream - in your case, a stream of text/html . It is then read by mod_plsql (web server module) and passed (via web server) to the client.

    The Ajax code is executed by the client web browser.

    If this Ajax code behaves as expected, then the stream of text/html you generated is not correct and does not match the content of the task force generated using PHP.

    So it is not a PL/SQL or Oracle specifically. He's a programmer pure question - not an Office of the coding language.

    I don't like your approach by the way. There are inherent problems, mixing the source code of 2 different languages in the same unit of code, where the compiler/Analyzer offers no integration between the two. This forces you to deal with the only language, JavaScript in your case, as text strings.

    Automatically, this is a question regarding the use of quotation marks, special characters, formatting and so on. He changed this code complex and difficult. Debugging more often impossible.

    The right approach is one of the following conditions.

    If the Ajax code is static, create a dedicated JavaScript file that contains the code. Inside PL/SQL, question one JavaScript include statement to load this JavaScript in the browser.

    If the Ajax code is dynamic (should not be - you need to generate JSON from PL/SQL instead), and then store the model code Ajax as a CLOB in a table. Use special chips to mark the dynamic parts (for example where a token like + #NAME #+ indicates the text to be replaced). At runtime in PL/SQL, use the replace() function to create a CLOB from the model, with the text of replacement if necessary. Then write this CLOB variable content in the browser via the package htp .

    The fundamental issue here is of modularization. Modularize your designs. Modularize your code. It's the cornerstone of software engineering. The difference between a hack and quality in all aspects - scalability and performance for maintenance for debugging.

  • If the State shows red and javascript script does not

    I am just learning Javascript and I can't believe, I have problems with that simple statement, but alas I am.

    Any help would be appreciated.

    The script is a script of learning:

    JavaScript document

    var crust = prompt ("what kind of crust do you want - thin or regular?'");

    If (== crust "thin"). (crust is 'regular')) {

    var cheese is prompt ("choose your cheese?");.

    {Switch (Cheese)}

    case "mozarella":

    case 'feta ':

    "parmesan" case

    case "cheddar":

    break;

    by default:

    Alert ("sorry we not that kind of cheese.");

    break;

    }

    } else {}

    Alert ("sorry we don't serve that kind of crust here.'");

    }

    Line no 4 and 19 shows red and the script does not run.  Help, please.  I created a similar script with numbers and it works fine but as soon as I put channels in I get errors.

    I tried to rewrite these lines so many times in so many different ways.

    I use Dreamweaver CC 2015, I Am studying an old version of Javascript?

    Any help would be appreciated.

    Thank you

    Try to run your code through this online validation tool.

    JavaScript - http://www.jslint.com/



    Nancy O.

  • JavaScript: Help with IF statement

    I'm not familiar with Java and I fight with this IF statement and I can't make it work.  I'm sure it's something pretty basic.  Can anyone help?  I tried everything, seeminly.  In this example below I'm checking if the data that the user has entered in the field of the AAA FAVOR and if it is then put in place a message and if not then set up another message.  My top node in my hierarchy is data, and then I have a MainSubform and a Contact02Subform.  I have this code attached to a button and notthing happens when I click the button.  If I delete the statement and have just the box of message by itself, then it will display the message box.  So I know that's my statement and I'm sure it's simple.  Help please?

    If

    (xfa.resolveNode("xfa.form.data.MainSubform.Contact02Subform.FAVOR").rawValue == 'AAA')

    {

    xfa.host.messageBox ("my IF");

    else ;

    xfa.host.messageBox ("my ELSE");

    endif;

    Try this.

    If (rawValue. xfa.resolveNode("xfa.form.data.MainSubform.Contact02Subform.FAVOR") is 'AAA')

    {

    xfa.host.messageBox ("my IF");

    }

    on the other

    {

    xfa.host.messageBox ("my ELSE");

    }

    endif is used in FormCalc are generally not in JavaScript.

    Thank you

    Sidonie.

  • JavaScript custom for If/Then/Else statement code

    Can someone help me understand this code. I have a field in a PDF file that I need to generate a discount based on the price of an item. If the price is higher than 5000, then I need the field to say 1500. Otherwise the field discount must be price *. 30.

    I tried, but it did not work: if price > 5000 then discount = discount 1500 = price*.3

    Someone at - it help?

    Thank you!

    Acrobat forms use JavaScript, so you need to use the JavaScirpt syntax for JavaScript syntax appropriate for the 'If... else' statement. You will also need to access the domain object as established by the Acrobat JavaScript object using the method "getField" of the doc, "this.getField (cName)" object, then the property "value" for this object.

    custom calculation script for the ' discount field

    establish the name of the price field

    var c = "price";

    get the value of the price field

    var nPrice = this.getField (c) .vallue;

    Assume that the discount is 30% of the price

    NPrice = Event.Value * 0,30;

    the value of reduction 1 500 if the price is higher to 5,000

    If {(nPrice > 5000)

    Event.Value = 1500;

    }

    end of the custom calculation script

    For more information, see Conditional Execution by Thom Parker.

  • How to use an if statement of javascript code

    Hello

    I have a lot of script transformation to search for text "signature of the employee" on each page in a multiple page and file for then the list in the console all pages that do not have the text of the "Signature of the employee" included.

    The script is still functional as one if statement must be included.

    Can someone advise please how to use an if statement in javascript code?

    var this.numPages = NUMPAGES;
    for (var i = 0; i < numpages; i ++)

    Search.Query ("Signature of the employee", "ActiveDoc");
    Console.println ("Pages that do not include a signature of the employee:" + this.pageNum + "");

    Any help will be most appreciated.

    "The signature of the employee" are the 2 words and not one. The method that you use to get the word gets only a single word. You also want to identify the "not true" found for the situation of the page and not the "real" found on the page.

    var ckWords; pair of words to test
    var bFound = false; Logical state of the words found
    Browse through the pages
    for (var i = 0; i)< this.numpages;="" i++="" )="">
    bFound = false; all found false
    numWords = this.getPageNumWords (i); number of words on the page
    loop through the words on the page
    for (var j = 0; j)< numwords;="" j++)="">
    get the pair of words to test
    ckWords = this.getPageNthWord (i, j) + ' ' + this.getPageNthWord (i, j + 1); test words
    do a check to see if the pair of words is string "Signature of the employee.
    If (ckWord == 'Signature of the employee') {}
    bFound = true; indicate the logical value found
    Console.println ("Pages that includes a signature of the employee:" + (this.pageNum + 1) +' ' "");
    break; no need to test more to this page
    } / / end of Signature of the employee
    } / / end of Word loop
    a test to see if the words not found
    if(Bfound == false) {}
    Console.println ("Pages that do not include a signature of the employee:" + (this.pageNum + 1) +' ');
    } / / end not found on the page
    } / / end of page loop

  • JavaScript - 'status quo' statement

    QUESTION:  What is the State of 'status quo' in the code block of an if-else statement?

    BACKGROUND:  I write JavaScript that test for browsers that I'm sure will represent my reliable Web pages.  So that my pages do not become a nuisance for compatible browsers, I want nothing to happen when a suitable match occurs.  I can simply write a pair of empty braces, as I mentioned below, or something is more necessary?

    If (blah, blah, blah) {}

    else {}

    Alert ("you view this webpage with a browser for which this site has not been tested.  You can run into trouble and are encouraged to install or upgrade your current browser.  Find the popular browser upgrades under the Navigation tab and select a browser or upgrade, more appropriate, after which you will be to the relevant website and can download and install your new browser or version of browser for free.  You'll be glad you did! ») ;

    }

    SOURCE PAGE: http://homepage.Mac.com/moogoonghwa/Imagine_Prototype/content/ 

    Roddy

    kiusau wrote:

    I know that we are on the same page, you suggest the following?

    If (blah, blah, blah) {return ;}}

    else {}

    Alert ("you view this webpage with a browser for which this site has not been tested.  You can run into trouble and are encouraged to install or upgrade your current browser.  Please find a browser or a more appropriate browser upgrade by clicking on popular browser upgrades under the Navigation tab, after which you will be to the relevant website and can download and install your new browser or browser version for free.  You'll be glad you did! ») ;

    }

    If so, I thank you for your very helpful advice.

    Roddy

    What if statement basiclly says:

    If (blah blah blah blah is found or real) stop the execution of the rest of the function;

    another alert (message); and I will continue to do the rest...

    So if wanted to stop when he gives the alert, you could do:

    if(!blablablab){ // if its not bla bla bla, or bla bla bla equals false,
         return alert("You are viewing this webpage with a browser for which this site has not been tested.  You may run into difficulty and are encouraged to install or upgrade your current browser.  Please find a more suitable browser or browser upgrade by clicking on Popular Browser Upgrades under the Navigation tab, whereupon you will be taken to the relevant website and may download and install your new browser or browser version free of charge.  You will be glad you did!");
    }
    // continues the function here.
    
  • Editing session with javascript State

    Hey everybody,

    I'm under Apex 3.2 and wonder if there is any State of session documentation on change (or reading) with javascript in request. I found the JavaScript API to

    http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/TOC.htm

    But these features are mostly dealing with page elements. Right now, my solution is to write two GET_SESSION_STATE and SET_SESSION_STATE application processes, using APEX_UTIL to get/set the session values. I call these two application using htmldb_get methods, from session element names.

    It seems to be a clumsy way of doing things, and I'm surprised that Apex was not built in the object that can do it all in one step.

    Is there an easier way to do it?

    Thank you!

    Hello

    
    

    And create the page zero to your application if it did not

    BR, Jari

  • Trying to get on my email, the following statement comes from the IPU: "we're sorry, but you must enable cookies and Javascript to use your username with this site. I click on "here", but nothing happens. How to enable the amd Javascript cookies?

    Try to get t my email, this happens: we're sorry, but you must enable cookies and Javascript to use your username with this site.
    How can I do this?

    George Szántó

    [email protected]

    see similar question answered https://support.mozilla.com/questions/836913

    To be notified of updates to a question, if this is your problem or not just click on the "Get email notifications" and follow made the choice. Only the original poster can mark it as resolved, so there should be a slight difference in choice as an original poster and where you lock on another issue. Notifications only apply to individuals the question where is entered.

  • Get the session state of the order of the day in javascript

    Is there anyway to get the value of an element of demand through jS?

    [I have an app that loads a different source into an iframe depending on which page the user is.]  I can load this value in session state for a part of the application (or a point probably page) but for the redirect which is made in java script I don't know how to get the value of session.  [I do not have it as the value of the client side.]

    Thanks guys, but I think that it would give me only the value in the DOm not in session state.  I had to make a page zero point and dynamic action that populated the in the DOM, and then I could use JS ($v) to get the variables.

    I couldn't find a way to get session state directly.

  • Case statement in the dynamic JavaScript code

    Dear friends,

    Using the version 4.2.6

    I applied this code in dynamic action to change the color of the intractive report rows of base on the State of the column.

    In my report, I have three columns VIP_GUEST, CANCEL_FLG, APPROVE_FLG.

    If cancel_FLG = "Y", then the color of the line should be red.

    IF VIP_GUEST = 'Y' AND CANCEL_FLG = 'n' then line color should be Orange

    If VIP_GUEST = 'n' AND CANCEL_FLG = 'n' then line color should be green

    How can I set the conditions in the code below. From ways below how to use the above code condtions.

    {$('td[headers="VIP_GUEST"]').each (function ()}
    If ($(this) () .text = ' don't) {}
    $(this) .find ('td').css({"background-color":"#FFFF99"});).closest('tr')
    } ElseIf ($(this) () .text = 'Y') {}
    $(this) .find ('td').css({"background-color":"#EEA196"});).closest('tr')
    } else {}
    $(this) .find ('td').css({"background-color":"#C6EA91"});).closest('tr')
    }
    });

    Hi Maxence,

    CORINE wrote:

    I changed condition in your code, and I have to set a condition more

    IF VIP = 'Y' AND APPROVAL = 'Y', THEN the color should be orange, once again.

    How can I set this condition in the code below.

    Try the following code:

    $('td[headers="CANCEL_FLG"]').each(function() {
          if ( $(this).text() === 'Y' ) {
            $(this).closest('tr').find('td').css({"background-color":"red"});
          } else if ( $(this).text() === 'N' ) {
              var vipflg = $(this).closest('tr').find('td[headers="VIP_GUEST"]').text();
              var aprflg = $(this).closest('tr').find('td[headers="APPROVED_FLG"]').text();
              if ( vipflg === 'Y' && aprflg === 'Y' ) {
              $(this).closest('tr').find('td').css({"background-color":"orange"});
              } else if ( vipflg === 'N' ) {
              $(this).closest('tr').find('td').css({"background-color":"green"});
            }
          }
    });
    

    Kind regards

    Kiran

  • Discount contained IRR (State report but maintaining current IRR) using Javascript

    Apex: 4.2.2.00.11

    AJAX (dynamic measurements) are used to change the data (rows/columns of data) than the SORT of reports on an Apex report page. The last step in the dynamic action (that example closes the jquery ui widget used to add/insert/delete a line), I would like to refresh the IRR - without a reset of the IRR filters, like oders, etc..

    Currently using a call to gReport , but the reset() methods and pull() time resets the IRR, take off the filters and so on.

    Did some research on Google and have not seen this specific question answered, or covered in the manual of the Apex Javascript API.

    Question: is there a method simple IRR updating can be done without a reset and update only the current content of data displayed by the IRR - from Javascript?

    Billy,

    Have you tried:

    $('#YOUR_IRR_REGIOD_ID_HERE').trigger ('apexrefresh');

    -Joe

Maybe you are looking for

  • Work in Russia

    Hello, can you tell me what career I need to select on IPhone 7 buy as a gift to a Russian friend? What career would work perfectly here? Thank you very much.

  • I can't download addons

    Firefox won't let me download addons. He says that I don't have Firefox running, but clearly I. I already downloaded some addons, but now it won't let me add. I use Android on Nexus 7 tablet.

  • Satellite Pro A120 - need drivers Server 2003

    Hello I have Toshiba Satellite Pro A120 with XP Pro. But now, you have installed Windows Server 2003 because of certain practices, but he on ethernet and audio drivers. Can someone guide me how can I intall and can access the internet. Thank you.

  • It is possible to pass arguments to a VI uses "Open VI reference.

    I am modifying pre-existing code. (I say this, because there are many other ways to work around this problem, but I'm stuck with what I have) I have a large project that is compiled into an EXE file. Within this project, it uses the 'Open VI referenc

  • not seeing my hard drive to my computer whenever I plugged it

    I can't see my external hard drive to my computer it see that there is a usb device plugged in, but I don't see in my computer