I'm not able to compare two strings in OpenScript

Hello

I'm trying to compare two string in if condition. But it's going through.

My code is:

String PATTERN_TYPE = eval ("{{db. INPUTS_CREATE_REPRICING_PATTERN. PATTERN_TYPE}} ")." ToString();

String REPRICING_TYPE = eval ("{{db. INPUTS_CREATE_REPRICING_PATTERN. REPRICING_TYPE}} ")." ToString();

If (PATTERN_TYPE is 'Absolute')

{

Info ("absolute section");

If (REPRICING_TYPE is "FLAT")

{

Info ("absolute section PLATE");

}

}

Data Bank is to have values like "Absolute" and "FLAT" only if the two if conditions must have passed and the two info should come. But it's not going inside.

Note: I also tried without function toString().

Please advice.

Kind regards

Abhay

Hi Abhay,

Please use below...

World in java, strings are compared with equivalent to...

==tests for equality of references.

.equals()tests for equality of the values.

String PATTERN_TYPE = eval ("{{db. INPUTS_CREATE_REPRICING_PATTERN. PATTERN_TYPE}} ")." ToString();

String REPRICING_TYPE = eval ("{{db. INPUTS_CREATE_REPRICING_PATTERN. REPRICING_TYPE}} ")." ToString();

If (PATTERN_TYPE.equals ("Absolute")

{

Info ("absolute section");

If (REPRICING_TYPE.equals ("FLAT")

{

Info ("absolute section PLATE");

}

}

Tags: Oracle Development

Similar Questions

  • How to compare two strings in PL/SQL

    Hi all
    I need to compare two strings, they are equal or not in PL/SQL. Y at - it a function to compare the strings.

    Yes, the sign =.

    You're after something like:

    IF v_string1 = v_string2 THEN
      ...
    ELSE
      ...
    END IF;
    

    ?

    Published by: Boneist on August 27, 2009 11:41

  • The column that does not match when comparing two records

    Hi all

    We try to compare two tables and find the differences. So if two records (1 of each table) have same PK but not always matching because of some columns, then we would display this columnname. For example:

    Table 1

    PK Parent Child Property1 Property2
    1AA1P1PR1
    2BB1P2oraPR2
    3CC1P3SRP

    Table 2

    PK Parent Child Property1 Property2
    1AA1P1PR1
    2BB1P2PR2
    3CC1P3PR4

    In the above example when I compare 2 tables all matches except Property2 online n ° 3. Thus, we would like to get an output like:

    PK Column_Mismatch
    3Property2 (this must be the name of the column that does not match)

    Appreciate the help.

    Thank you

    Andy

    Hi, Andy.

    Andy1484 wrote:

    Hi all

    We try to compare two tables and find the differences. So if two records (1 of each table) have same PK but not always matching because of some columns, then we would display this columnname. For example:

    Table 1

    PK Parent Child Property1 Property2
    1 A A1 P1 PR1
    2 B B1 P2 oraPR2
    3 C C1 P3 PR3

    Table 2

    PK Parent Child Property1 Property2
    1 A A1 P1 PR1
    2 B B1 P2 PR2
    3 C C1 P3 PR4

    In the above example when I compare 2 tables all matches except Property2 online n ° 3. Thus, we would like to get an output like:

    PK Column_Mismatch
    3 Property2 (this must be the name of the column that does not match)

    Appreciate the help.

    Thank you

    Andy

    Why you don't want no matter what exit for pk = 2?  Property2 does not correspond either to pk.

    What happens if the 2 columns (or more) do not match?  The following query would produce a list delimited, such as ' parents; PROPERTY2 '.

    WITH got_mismatch AS

    (

    SELECT pk

    , CASE WHEN t1.parent <> t2.parent THEN '; PARENT' END

    || CASE WHEN t1.child <> t2.child THEN '; CHILD ' END

    || CASE WHEN t1.properry1 <> t2.property1 THEN '; PROPERTY1 ' END

    || CASE WHEN t1.properry2 <> t2.property2 THEN '; PROPERTY2 ' END

    AS the offset

    FROM table_1 t1

    JOIN table_2 t2 ON t2.pk = t1.pk

    )

    SELECT pk

    , SUBSTR (incompatibility, 3) AS column_mismatch

    OF got_mismatch

    WHERE mismatch IS NOT NULL

    ;

    If you would care to post CREATE TABLE and INSERT statements for your sample data, and then I could test this.

    The query above does not count NULL values as inadequate.  If you want that, the same basic approach will work, but you can use DECODE instead of <> to compare columns.

    What happens if a pk exist in a table, but not the other?  You want an outer join, where I used an inner join above.

  • Not able to have two tabs of the page even more!

    I love being able to have two tabs of the same open page so I can go from an email that I answer that I'm composing. The new update don't let me do! It keeps their merger in one tab! Help!

    Please click the button quite useful next to the answer that solved your problem of Firefox support, When you are connected, so this thread is marked as solved.

  • Not able to compare dates with apex in tabular form point and point

    Hello

    I need some help

    Workspace: REEMATEST

    email ID:- [email protected]

    password:-reematest

    Application No.:-52796

    page 5

    I have a table

    create the table trial_master

    (

    Identification number,

    date of act_st_date,

    date of ac_end_date

    )

    I send you the ac_end_date and the id of page 5 page 4

    in a modal popup window

    all employees associated id is displayed as a table

    whose values are fethcing of

    create table trial

    (

    Identification number,

    date of act_start_date,

    date of act_end_date,

    VARCHAR2 (1) flag.

    number of res_id);

    My problem: -.

    on page 4, please see the plsql process

    Impossible to compare dates

    Hi Reema,

    Control your process,

    you compare with the value of the element to Date with date of beginning not with the end date that is why it is updating an incorrect value.

    changing your date in the code below, columns

    in lieu of f03, f04 replaced by State, check the modified process

    DECLARE
    
    L_ACTL_START_DATE  TRIAL_MASTER.act_st_date%TYPE;
    L_ACTL_END_DATE    TRIAL_MASTER.ac_END_date%TYPE;
    
    begin
    
    FOR i in 1 .. APEX_APPLICATION.G_F01.COUNT LOOP
    
    IF  trim(upper(APEX_APPLICATION.G_F04(i))) != trim(upper(:P4_END_DATE))
    THEN
    UPDATE TRIAL SET
        act_start_date = TO_DATE(APEX_APPLICATION.G_F03(i)),
        act_end_date = TO_DATE(APEX_APPLICATION.G_F04(i)),
        FLAG='Y'
        WHERE RES_ID = APEX_APPLICATION.G_F01(i);
    
        ELSIF  trim(upper(APEX_APPLICATION.G_F04(i))) = trim(upper(:P4_END_DATE)) THEN
    
        UPDATE TRIAL SET
        act_start_date = TO_DATE(APEX_APPLICATION.G_F03(i)),
        act_end_date = TO_DATE(APEX_APPLICATION.G_F04(i)),
      FLAG='N'
        WHERE RES_ID = APEX_APPLICATION.G_F01(i);
    
    end if;
    END LOOP;
    
    end;
    

    Hope this helps you,

    Kind regards

    Jitendra

  • Compares two strings

    Hello

    I compare name in my query.

    It's like this format.

    D and D I need Ingore period.

    Help, please!

    Thank you

    Perhaps this.

    SQL> select 'FirstName Middle. LastName' pName from dual;
    
    PNAME
    --------------------------
    FirstName Middle. LastName
    
    SQL> select replace(pName,'.',null) pName
      2    from (select 'FirstName Middle. LastName' pName from dual) Person;
    
    PNAME
    -------------------------
    FirstName Middle LastName
    
    SQL> 
    
  • Not able to register the EBS using Openscript request

    Hello

    I'm new to Openscript.I uses Openscript 9.2.1.0 and when I tried to register the EBS application does not get recorded with the exception of the Web page. Please help me out of this.

    Thank you

    Hello

    I think that you must have selected the functional tests (browser/GUI Application) to be web while creating a new script. If this is the case then please try this. In OpenScript go to file-> New-> select OracleEBS/forms. Click Next. Specify a script name, and then click Finish. Now try recording application EBS.

    Kind regards
    Rajesh

  • I am not able to change the video quality for you tube. There are only two options 360 and Auto. Please help me.

    Hi I am experiencing strange problem for 15 to 20 days and I am not able to change the video quality for you tube. There are only two options 360 and Auto. Help me please if you can because I have a slow internet connection and I want to play video at 240, as it was before. Thanks in advance for your help.

    Could check you whether YouTube is to serve its HTML5 player or the player based on Flash? If you right click on the drive, short a context menu should appear. If the full Firefox context menu is displayed, press and release the ALT key to erase that. The last line of the menu short usually indicates which player he is.

    I'll assume HTML5 because...

    On Windows 7, Firefox should show a wide range of formats in the HTML5 player. However, if some of the features of media are disabled, preventing video MP4 decoding, then YouTube offers only 360 p (with WebM coding).

    If you have intentionally disabled Media Foundation and/or DirectShow in topic: config, then perhaps you would prefer to use the YouTube Flash Player? There are a few Add-ons that can force YouTube to serve you a Flash drive. Either of them will do, you don't need both:

  • I am not able to download apps for my iPhone on the App Store. He just 'waiting '. But never starts the download. I tried with wifi and mobile data. The two are not download apps

    I am not able to download apps for my iPhone on the App Store. He just 'waiting '. But never starts the download. I tried with wifi and mobile data. The two are not downloading the applications Can u find out what's wrong? I use iPhone 5s

    I had the same problem. At the same time hold the screen lock button and the home button until your iPhone restarts. That solved the problem for me.

  • I was running Mozilla firefox on my computer until two weeks ago. At that time, the screen went black and now I am not able to use it.

    I was running Mozilla firefox on my computer until two weeks ago. At that time, the screen went black and now I am not able to use it.  When I click on the icon and open to the top it says cannot load xp.com and a flag of resolution comes up saying it can't run a resolution less than 1930 x 2300. I have no idea what this means and how I can solve this problem.  I thought that maybe the application was bad, so I deleted and then added it back on and it does the same thing.  I even did a restore of the system to try hard but nothing I did the work.  So, how can I solve this problem.  I'm not a computer genius, so he must be explained in simple easy to understand instructions.

    Hello

    I suggest that you view in Mozilla Firefox community because there seems to be a Firefox problem.

    https://support.Mozilla.org/en-us/

    Some examples of the problem:

    «I can't open Firefox, it says could not load xpcom.» Who is wrong? »

    https://support.Mozilla.org/en-us/questions/965228

    "I get an error"Unable to load XPCOM". I know that I can reinstall Firefox, but how do I save my favorites?

    https://support.Mozilla.org/en-us/questions/1029239

    'Error message cannot open the XPCOM and impossible to open ALL pages '.

    https://support.Mozilla.org/en-us/questions/1006494

    Here is a YouTube video on fixing this error:

    https://www.YouTube.com/watch?v=x_C2eaNj234

    See you soon.

  • I would like to delete a short gray border of two images. I need help because I'm still not able to use PhotoShop. Could someone kindly help me with this?

    I would like to delete a short gray border of two images. I need help because I'm still not able to use PhotoShop. Could someone kindly help me with this?

    In order to change a part of an image as needed here, I would use the "Liquify" filter See below, it is quite easy. You just move the lower lip to be more elegant and not like the guys are salivating.

  • Compare the string to date?

    Hello everyone, I have a date recorded in this format string ' 25/05/2011' and I want to compare this string with the current date. I am able to do so if I divided the Date to a String [] string, but it's using a coding hard to compare dates, which does not work if I use: String CurDate = dateFormat.formatLocal (System.currentTimeMillis ()); Because the format is not always as DD/MM/YYYY, depending on the settings of the user's phone. I'm sure that there is a better way to compare two dates, could someone ' a please advise me on this matter. Please note that I have saved in this format DD/MM/YYYY Date String. Thanks in advance.

    create a calendar, to day/month/year and check if it's the day same long http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/util/DateTimeUtilities.html#is... )

  • "Onion skin" compare two pages?

    Is there one easy way to compare two pages, where you overlap with variable opacity rather than another? I have a project of printing with white ink stain on a second page and it would be handy to quickly compare things to make sure that everything is lining up, without having to copy and paste between pages. Even better is being able to select objects in the two pages at the same time to adjust, which I am always surprised that you cannot yet do. (At the moment using CS6)

    Why you do not use a second layer on the same page instead of a second page?

  • How can I configure on a second two-factor authentication apple that isn't an icloud but rather my itunes account account ID? Only, I seem to be able to use two steps on the second account.

    How can I configure on a second two-factor authentication apple that isn't an icloud but rather my itunes account account ID? Only, I seem to be able to use two steps on the second account.

    You can not. Two Apple factor authentication is a feature of iOS and OS X, based on your AppleID being associated with iCloud account to send and receive authentication 6-digit codes. An AppleID that is not associated with iCloud account cannot be used for 2-factor authentication.

    For Apple ID - Apple Support two-factor authentication

    You can set up validation in 2 steps (which is different) with any AppleID - see frequently asked questions about check in two steps for Apple ID - Apple Support

  • iTunes is not able to find the USB controller on PC desktop computer and laptop

    Hello

    Since the two versions of iTunes for Windows (10) diagnostic program tells me a green dot in front of "USB-connections", but didn't tell behind the "no-USB controllers found. That's why my iTunes is not able to connect to the iPhone 5. I have the same problem on my desktop and on my laptop. Windows detects all my USB Ports, well. If someone can solve it? Thank you.

    If your iOS device does not appear in iTunes, try the following:

    1. Open Control Panel > Device Manager
    2. Plug in your device
    3. Locate Bus USB Controllers > Apple Mobile Device USB Driver.
      It is also possible that the device may appear under imaging devices, portable devices or other devices or as a device USB of MTB.
    4. Right-click and select software update of the driver...
    5. Click Browse my computer for driver software
    6. Go to C:\Program Files\Common Apple Mobile Device Support\Drivers or
      C:\Program Files (x 86) \Common Files\Apple\Mobile Device Support\Drivers
    7. Click on let me pick from a list of drivers for devices on my computer
    8. Click on Apple Mobile Device USB Driver
    9. Click Next, then close and exit the Device Manager

    To step 3 above, open the Device Manager. Expand one of the articles that are listed.

    • USB Bus controllers
    • Imaging devices
    • Portable devices
    • Other devices

    Plug in the appliance. You should hear the telltale Windows sound device connection and a Division must acquire a new entry. This should be your device. It cannot be labelled properly at this point. If you do not hear a suspicious noise cable damaged.

    Or try If iTunes does not your iPad, iPhone or iPod - Apple Support Apple version of the above opinion.

    If not try a complete tear down and rebuild iTunes in accordance with the resolution of the problems with iTunes for Windows updates. 64-bit users might also try the build replacing iTunes for Windows (64-bit-for older video cards) which is sometimes a useful workaround.

    Or try to go back to the last version of iTunes that has worked for you. See the programs installation of iTunes to download links. If you roll back to 12.4.0.119 to 12.3.3.17 or 12.3.2.35, for example, then you will also need restore the database of the library in the manner described in the empty/corrupted after upgrade/crash iTunes library. The tip makes suggestions to reintroduce recent purchases, so at worst, you lose a few meters or a newly created playlist.

    TT2

Maybe you are looking for

  • Digital Camera RAW Compatibility Update Canon EOS 80 d

    Hello I am trying to import RAW + JPEG images of my new Canon EOS 80 d in Photos. When I try to choose images-> use BRUTE as the original , I get the following error message: Cannot switch Original. Pictures cannot move to the original because the RA

  • What can I put in my Pavilion dv8000, p/n EZ706UA #ABA?

    I would like to get a faster processor and more memory in this old laptop without spending too much $$. It says that I have Processor: Genuine Intel(r) CPU T2050 @ 1.60 GHz (2 CPUs)Memory: 1022 MB of RAM and I am running XP Pro I would like to put it

  • I can't hear sound on my pc

    original title: Hello,. I cannot hear sound on my pc and do not have the admin password as my brother put up... I have speakers, they worked, plugged headphones and now they are not, I tried the other socket to see if she would come up, and now I hav

  • time and date of the waste of time

    my clock will not keep at the right moment and date.tried reset several times, without success, someone can help.

  • Inspiron 620 monitor went black. CPU works.

    I was surfing on Pinterest and clicked on a link, then a message appears saying it could not be displayed.  Thinking it was an infected site, I did a control + alt + delete to prevent it from loading.  Then, the screen is empty.  I restarted the comp