Then if the statement not be case-sensitive?

Hey guys.  The two pages I have to fill in for work contain the same data, but their issue numbers are different and I have to convert the question numbers. I have two textfields: HQ_1 # and HQ_1 #DI and I wrote a giant if then statement to act like the converter in question to change the letter of the entrances to what is appropriate to this other page (worth 20 points of entry)... It looks like this

"Sloppy code.

li1 var = this.getField("HQ_1#");

di1 var = this.getField ("HQ_1 #DI");

If (li1.value == "1 c" | li1.value == "1 c")

{

DI1. Value = '1');

}

Else if (li1.value == "1 d" | li1.value == "1 d")

{

DI1. Value = "1 b);

}

on the other

{

DI1. Value = "";

}

While I put 1 c or 1 c the form above, it resumes at A below... GREAT! But this isn't an optimal coding... I would like to learn to code efficiently, so basically I would like to settle there where she is something like If (li1.value == "1 c" | li1.value == "1 c') and to work independently of 1 c or 1 entered c... I know that there is a way to get the if then to not be case-sensitive, but I can't understand it... I added this code in the box of calculation in HQ_1 # to see if it would work, but it's not:

If (event.value! = null) event.value = event.value.toUpperCase ();

After adding this code, HQ_1 # visually show as caps 1 c If 1 it went, but I guess that it still stores like 1 it... That my problem...  The code "cut off" from If (li1.value is "1 c") does not appear 1 to because I typed in 1 it... Although "1 c" appears.  So basically I took this at the moment and I went with my Sloppy Code.


PS This is the first thing I did for myself, so I'm glad my work so far.

You can decide what you want to continue working with upper or lower case. Then you can simplify all by applying toUpperCase() or toLowerCase() to the value in the fi section. It will look like this (assuming that you are working with the lowercase):

If (event.value.toString () .toLowerCase () is "1 c")

Note that we ensure that event.value will be processed as a string by converting it to a string with the toString() method. Maybe that's not necessary if you can ensure that event.value will always be of the string type.

I hope this can help.

Max Wyss.

Tags: Acrobat

Similar Questions

  • Im trying to download the creative cloud on my Mac but its gives me the error "Installation on case-sensitive volumes is not supported. Please choose a different volume for the installation. (Error code: 22) "can you help me with this please?

    Im trying to download the creative cloud on my Mac but its gives me the error "Installation on case-sensitive volumes is not supported. Please choose a different volume for the installation. (Error code: 22) "can you help me with this please?

    Try error "Unsupported of disks case-sensitive" or similar install error | Mac OS

  • The WCS URLS are case sensitive?

    Hello Expers,

    We use Microsoft application Oracle Web center sites 11.1.1.6.1, in our website, the URLS are case-sensitive.

    If we wrongly enter any letter in different case(upper/lower) in the URL, giving the content server error.

    We do all customizations?

    Please let us know your valuable suggestions.

    Thank you

    Delphine Pilli.

    Hi delphine,.

    If I understand your question, the answer is Yes, and the best way to achieve this is Vanity URL. The only problem is that in 11.1.1.6.1 is not yet supported, so you would have to implement the framework GSF or update your product to the new version of the Sites with WC, in which this feature is already implemented. Working with Vanity URL, you can easily create URLS for your types of assets, even create patterns that auto generates the links. So, for example, you can use. toLowerCase() to the name of the asset or another similar methods to create the link like you. Take a look at the Oracle documentation:

    Configuration of Vanity URLs - 11g Release 1 (11.1.1.8.0)

    Kind regards

    Enrique

  • Declares the State not shown (CS4/Win)

    I know that this question is asked before but I couldnot find any real answer to it in the last 6 pages of the forum.

    The problem is that the State (the clicked State) down a button is not preserved when I use a masterpage. It works in preview mode, but when you go to "Get an overview of all pages" it does (see attachment). It is tested on Vista SP1 and XP SP3. I have attached a simple png showing this. I guess it's a problem with the engine of export, it will not work in the Solution Explorer, nor in ff.

    There is another strange behavior:

    -by loading a PNG I have to click first on each page, or clicked pages do not work when you do "show an overview of all pages";

    -I don't see any difference when I link a page to a template or not.

    -I am not able to activate really more "all the way down the State". It is enabled from the context menu, but it will never show when looked at him. Not even in standard preview mode,

    -When the number of States in other pages is less the number of States on the masterpage, you will get a decent error, but an error internal to complain about virtual functions.

    BTW, there is a dirty workaround, and that is to add the button on every page (in this example, a green rectangle on the page 1 and 2). It is of course not a very good idea, because it will lead to maintenance problems.

    I make a mistake somewhere or he works on another system?

    Present you this as a bug to have the JS script library and export fixed function.  Bugs can be filed here:

    https://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

    Dave

  • How do should not be case sensitive search criteria

    Hello

    my search criteria was case-sensitive, how should I have to avoid this and I need to find the date of selection only from no need to specy both the to and from dates. How can I achieve this.

    Published by: user5802014 on May 26, 2010 12:37

    Published by: user5802014 on May 26, 2010 12:46

    To find the lowercase as well, make sure that the Ignrore box is checked.

    Nick

  • Then if the instruction not to love "and" help

    The trigger below compiles and works fine when the "newAND :.max_event_date : = :new." CHY_ATD_DATE' is deleted. When he's around I get errors:

    Compilation failure, line 15 (11:06:29) line numbers associated with compilation errors are relative to the first BEGIN statement. This affects only

    the compilation of the database triggers. PLS-00103: encountered the symbol "=" when expected in the following way:. (* @ % & = - +; <>/ to be)

    is mod rest not rem <>or! = or ~ = > = < = <>and or as like2 like4 likec between | Member of multiset indicator
    submultiset symbol ' * was inserted before '=' to continue. '

    Compilation failure, line 17 (11:06:29) line numbers associated with compilation errors
    are relative to the first BEGIN statement. This affects only the compilation of database triggers. PLS-00103: encountered the symbol "=" when expected
    of the following:. (* @ % & = - +; <>/ at is mod remains not rem <>or! = or ~ = > = < = <>and or as like2 like4 likec between | multiset indicator submultiset member of the symbol ' * was inserted before '=' to continue. ")

    create or replace TRIGGER "SGD_OEF_ITV_NDN_TRU" 
    BEFORE  
      UPDATE 
    ON OEF_ITV_NDN FOR 
    EACH ROW  
    BEGIN  
      :NEW.UPDATED_DATE := 
    SYSDATE;  
      :NEW.UPDATED_BY   := 
    NVL(V('P1_USER_ID'),USER);
      BEGIN
        IF ( :new.POD = 'JN4' 
    )
        THEN
        if (NVL(:OLD.CHY_ATD_DATE, 
    date '1800-01-01') 
    != NVL(:NEW.CHY_ATD_DATE, date '1800-01-01')) 
        THEN  :new.max_event :='ATD 
    CHY';
        elsif  (NVL(:OLD.CHY_ETD_DATE, 
    date '1800-01-01') 
    != NVL(:NEW.CHY_ETD_DATE, date '1800-01-01'))  
        THEN  :new.max_event := 
    'ETD CHY';
               end 
    if;
        elsif 
    ( :new.POD in ('LQ1','LQ2'))
        THEN
       if  (NVL(:OLD.CHY_ATD_DATE, 
    date '1800-01-01') 
    != NVL(:NEW.CHY_ATD_DATE, date '1800-01-01'))  
        THEN :NEW.MAX_EVENT :='ATD 
    CHY' 
        AND 
    :new.max_event_date := :new.CHY_ATD_DATE;
        elsif  (NVL(:OLD.CHY_ETD_DATE, 
    date '1800-01-01') 
    != NVL(:NEW.CHY_ETD_DATE, date '1800-01-01'))   
        THEN :NEW.MAX_EVENT :='ETD 
    CHY' 
        AND 
    :new.max_event_date := :new.CHY_ETD_DATE;
        END 
    if;
        ELSE
          
      :NEW.MAX_EVENT := 
    'ERRORED';
        END IF;
        END;
    END;
    
    
    

    How did I need this code for the THEN statement works with the and.

    Thank you

    Steven

    Steven,

    The "AND" is a comparison and not an assignment.

    Try:

    THEN

    : NEW. MAX_EVENT: = 'CHY ATD;

    : NEW. MAX_EVENT_DATE: =: NEW. CHY_ATD_DATE;

    END IF;

    Thank you

    Joe

  • Then if the statement

    Hello

    I use Adobe Acrobat Pro XI.  I created a text (textfield1) field where the value is equal to textfield textfield + 2 3).  I would like users to be able to add their own data, if the values of 2 and 3 text field do not apply.

    Example:

    Get the field values as strings
    var s1 = getField("ReceiptLine1").valueAsString;
    var S2 = getField("Name").valueAsString;

    Combine values, separated by a space

    Event.Value = s1 + "" + s2;

    on the other

    Value = user can add their own data

    ______________

    I hope this makes sense.  Any help would be appreciated.

    Thank you.

    One thing you can do is to modify the script as follows:

    Custom calculation script

    (function () {}

    Get references to input fields

    var F1 = getField ("ReceiptLine1");

    var F2 = getField ("Name");

    Set this field value if either input field changes

    If (event.source = f1 | event.source = f2) {}

    F1.valueAsString = Event.Value + "" + f2.valueAsString;

    }

    })();

    The user will then be able to enter a custom entry, but it is overwritten if one of the values of input field are changed. The other way is with scripts in input fields validation events. They get the value of the other input field, create the string and set the value of the field third on the chain. Somehting like:

    Validate a script customized for ReceiptLine1 field

    (function () {}

    Get the value of the other field

    var s1 = getField("Name").valueAsString;

    Set the value of other field

    getField("textfield1").value = event.value + "" + s1;

    })();

    In the name field validation script would be similar.

  • The hearing Adobe installation problem: case sensitive Volumes not supported.

    Hello

    I'm trying to assessment of 30 days of hearing, to see if he's not in my workflow. I'm for the installation point, and the Adobe program manager reported that it does not support case-sensitive Volumes. It tells me to select another volume. However, it is a laptop computer with a disk. Now, I could erase the disk, reformat the drive into 2 partitions, a modern and archaic for Audition play one - and reinstall all the 900 GB + on it, but that would take a few days. I don't want to reformat and partition my drive for a program I am trying simply to try before you buy.

    My time is running out. So, unless there is a reasonable and fairly quick resolution for this I will continue to look for an editor who can work for me.

    Please visit: http://helpx.adobe.com/creative-suite/kb/error-case-sensitive-drives-supported.html

  • Lov with case sensitivity

    Hi people,

    is it possible to make my requirement.

    I have lov as telling as an example of employee name. as usuall while hitting the lov lov icon popup goes. because I had to search option like employee name: entry here text box //here I want to allow only uppercase.

    Why say that my all data from field in my db is upper case only.

    using jdev 11.1.1.5.0.

    User707,
    Two things are wrong with your code. The query you use will not as it returns all work if you do not specify the two variables (jobid and jobtitel) If you give only one of two the other part of the condition is true, and if the query returns all rows.
    Second thing is that if you do not use the ViewCriteria in your LOV the framework generates an automatic query for the attribute. This is what is happening in your case, because the resulting query has vc_temp_2 as a parameter.

    To do your use case, you must do two things:
    (1) change your criteria in view AND the two items in the Group and select "Ignore Null values" to the two attributes in the view criteria. the result should look like

      
        
          
            
            
            
            
            
          
        
        
          
          
        
      
    

    Then, you open the EmployeesView where you want to use the LOV and select the attribute JobId. Then open the "Statement of values" node for this attribute and change the LOV_JobId entry (click on the pencil). Select the "Indications of the UI" tab and look at the "search list" half of the dialog box. Fall to the bottom of the list box for the "research area Include', where 'All Queryable attributes' is selected now and select your criteria from view so that"Use JobsViewCriteria"is selected.

    Now just compile and run the application and it works like your use case.

    Timo

  • Photoshop CS6 (extended) installation on case-sensitive disks

    I understand that under the "requirements" of the Adobe Web site says you can't install PS CS6 (Extended) on the case-sensitive drives (I use a MacBook Pro, OS X v. 10.7.4).  This seems to have been the case at least since CS5.

    I did not see this, and I bought (excitedly) update CS PS5 (Extended) to SP6.  I had NO PROBLEM installation PS5 on this drive.

    Of course, as others have said, the installer refuses to allow you to install on a case-sensitive drive (for example, no options to install on another drive).  There is also no mention that CS6 must be installed on the boot drive.

    Requiring installation on the boot drive has serious implications for those of us who need readers sensitive to other work; I don't want to have to restart on another drive when I use PS and switch back and forth - it's all just stupid.

    From my point of view (as a user, granted), this is lazy programming, and this must be resolved as soon as POSSIBLE.  At least in my case, I have a piece of a $400 software just too place, when I want to be up to my eyeballs enjoying PS6 throughout it's fame.

    Outside an Adobe fix, I don't see a solution to this problem.  If I wipe my drive, put in shape in case-insensitive, then I lose the functionality for other critical work.  In addition, I'm not sure the process of wiping the disk, formatting it not sensitive to case and restore TimeMachine everything would be even work (since the backup hardware is from a case-senstive drive and try to go to a drive that is not case sensitive).

    The REALLY frustrating part is that I have installed Photoshop 3, 4 and 5 (and much, much further) on the casing of the disks - all with no problem.  It is only now that the question slap me in the face.

    It has to be a work around, if not a 'real' solution.

    What help you might be able to offer would be greatly appreciated; details can be sent to cdretk at gmail dot com

    I hope, and I thank you in advance.

    Now I solved it (no thanks Adobe, who I am very disappointed).

    In the past, when you wanted to install something on your Mac, you simply copy a folder in your Applications directory.

    Photoshop (among other programs) got more complicated, it is decided that it must install things in the different system directories and potentially in your user directory.

    That is the question (and the solution, in this case).  My user directory is on the drive that is case-sensitive.  I don't know what Adobe needs to install (as Photoshop is, after installation, available to all users), but this has been the key.

    SOLUTION: Log on as another user (administrator-enabled) and install it.  Bang - it works without any problem.

    Yes, I still had to copy all my plug-ins, etc. of the PS5 by hand (and sort those SP6 is not like - once again at hand), but at least it works.

    Good software engineering practices dictate that installed software should PREFER discs case-sensitive and not case insensitive (think of the data).

    Good installation support (on the phone) should at least suggest trying another user account...

    Adobe: You owe me for my time on this one.  Where should I send my invoice?

  • Adobe case-sensitive volume

    I am having trouble with my macbook pro retina (bought new at Apple four months ago)

    DSS corrupt on me and will not start, so I had to make a recovery of the internet.  Discovered there is an SSD firmware update after that I managed to get my camera up.  As applied.  All has been well since.

    But today I tried to install Adobe CC that I could restore my installation of Photoshop CC.  I get an error telling me that the installer does not support case-sensitive volumes.

    When I check disk utility, my SSD appears as a "logical volume group" (with a journaled "Mac OS extended" partition type

    It is the visible real disk (Mac HD) and it shows up as a "logical" partition

    I don't remember doing something special when you are recovering from the internet, or by choosing some funky options. Yet, here I am.  I spent a lot of time to restore applications and other.  Any recommendations? I feel a sort of reformatting is in my future.

    In the Finder, please press the combination of keys shift + command + C, or select

    ▹ go computer

    in the menu bar. A window opens showing all mounted volumes. Select the one in question and open the Info window. Which is shown as the Format in the General section?

  • Beginner problems: the Images not appearing and slide show does not

    I'll eventually add iframes so that I can have images displayed during audio playback. In the meantime, I have a problem just get the images to show (it works fine in Safari, but nothing else). Even if when I validated the page and am told there is no problem, even the image as part of the screen is broken. This is problem no. 1. The other problem has to do with the show, which does not work, but instead displays all images one after the other.

    Any help will be greatly appreciated; I am a beginner and I have the impression that the answer to these problems - especially No. 1 - are incredibly simple. Here is a link to an example page that shows these problems.

    Thanks in advance for any help you can provide!

    None of your include files are present on your server:

    Spry-UI-1.7/css/SpryImageSlideShow.css"rel ="stylesheet"type ="text/css"/ >

    Check the filelinks and also the files / folders are case sensitive on most of the servers.

  • An upgrade to 11.2, passwords are case-sensitive automatically?

    Operating system: Solaris 10

    We are upgrading to version 10.2.0.4 to 11.2.0.3? User passwords will automatically become case-sensitive after the upgrade?

    Tom wrote:
    Operating system: Solaris 10

    We are upgrading to version 10.2.0.4 to 11.2.0.3? User passwords will automatically become case-sensitive after the upgrade?

    No - you will need to reset the existing passwords after the upgrade to take advantage of this feature

    http://docs.Oracle.com/CD/E11882_01/server.112/e23633/afterup.htm#UPGRD12434

    Passwords for accounts created after the upgrade automatically are case-sensitive.

    HTH
    Srini

  • MultiDPIBitmapSource with the States

    Hi all

    What is the right way to use the MultiDPIBitmapSource class with state changes:

    I do a skin for simple button that uses an image and replace the image source according to the State. The following code captures the State. The image will remain in the normal position and never capture more or down events and swap for the appropriate source. This seems possible, or is seized semiautomatic in Flash Builder. What I'm doing wrong here?

    Example:

    {code}

    <? XML version = "1.0" encoding = "utf-8"? >

    < name s:SparkSkin = "myButtonSkin.

    ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark".

    ' xmlns:fb = ' http://ns.Adobe.com/FlashBuilder/2009 ">

    < s: states >

    < name s: State = "mounted" / >

    < name s: State = "over" / >

    < name s: State = "low" / >

    < name s: State = "disabled" / >

    < / s: states >

    < fx:Metadata >

    <! [CDATA]

    [HostComponent ("spark.components.Button")]

    []] >

    < / fx:Metadata >

    < s:BitmapImage >

    < s:source >

    < s:MultiDPIBitmapSource

    source160dpi="/assets/images/icon160.png".

    source240dpi="/assets/images/icon240.png".

    source320dpi="/assets/images/icon320.png".

    source160dpi.over="/assets/images/icon160over.png".

    source240dpi.over="/assets/images/icon240over.png".

    source320dpi.over="/assets/images/icon320over.png".

    source160dpi. Down="/assets/images/icon160down.png".

    source240dpi. Down="/assets/images/icon240down.png".

    source320dpi. Down="/assets/images/icon320down.png"/ >

    < / s:source >

    < / s:BitmapImage >

    < / s:SparkSkin >

    {code}

    I found what I was doing wrong. Here is the solution:

    <>

    source160dpi="/assets/images/icon160.png".

    source240dpi="/assets/images/icon240.png".

    source320dpi="/assets/images/icon320.png"/ >

    <>

    source160dpi="/assets/images/icon160over.png".

    source240dpi="/assets/images/icon240over.png".

    source320dpi="/assets/images/icon320over.png"/ >

    etc... If the source tag actually takes the State, not the MultiDPIBitmapSource.

  • 'Find' is case-sensitive and the option does not appear on the search bar

    As I said, it is case sensitive. I looked for an answer and everyone says uncheck case-sensitive on the search bar, but he's not here. I am on a mac with os x 10.9.4 using Firefox 32.0.1.

    I thought about it. I had to restart with disabled addons. I don't know which extension caused the problem, but the change stuck when I re-enabled the addons.

Maybe you are looking for

  • Table assignment 'rule' in Pages

    In the Pages, I have a table. Some cells are for opening numbers. How can I dictate a "rule" so that when a negative number is entered, he appears in italics. ?

  • Remove the flange in the POSIX path quotes

    Hello I use quotes from the POSIX path form for an AppleScript script to move files in arguments to a script shell (a process automator (see automator man)). When the process is complete, I would like to pass the result to another action, but the cha

  • Should I delete app iPhoto app PHOTO in my MAC?

    Hello I am running iPHOTO APP AND PHOTOS APP on my Mac. IPHOTO should be deleted because it has been replaced? If the answer is Yes, are there no worries all losing photos and do I have to make sure that all the images are already in ICLOUD before de

  • travel classic installation?

    I have very classic but then had to Exchange my phone.  I was hopeful the license should be part of what has been saved but he says now I'm on a trial again. Someone else had to deal with them to get a license of a S/N to another?  I'm underwhelmed w

  • WAP54G as Repeater. PC connected but no internet.

    router: WRT160N (v2) AP/Repeater: WAP54G (v3.1) firmware: updated First of all, I read that WAP54G is not listed to support WRT160n (didn't know up to this than purchased). Problem: I got the program to install my router and AP (now coach) as assumed