OATS: script entering does not in the if-else statements

I created a functional test using Oracle's Web. My database file (.csv) contains a number of numbers that are used to browse through the script with different values. now in my loop for, I have included an if-else with action statements in these (Actions like) by clicking on the different tabs. Now, when I run my script, is to not enter the if-else statement and jumping directly to the next step.

Here are my script:

beginStep ("search page", 5)

{page opening}

String Var1 = (string) 'value from the .csv data bank ";

for (int i = 1; i < = 2; i ++)

{

beginstep("/ASC",0)

{

if(var1=="ABC")

{

Task1;

Task2;

}

ElseIf (Var1 == "efg")

{

Task1;

Task2 ;}

}

}

endStep();

beginStep("/asc",0)

{

Task3;

Task4;

}

endStep();

}

According to my above script, the script is to jump directly to TAsk3 and 4, instead of going to task if-else performing 1 and 2.

Thanks in advance.

Kind regards

Deepak Khari

Hello

Use eval(), c.


String Var1 = eval ("{{db. Var1.ColumnName}} ")." ToString();

System.out.println ("scnro_class--->" + Var1);


Kind regards

Dembélé M

Tags: Oracle Development

Similar Questions

  • See the value of zero instead of "the value entered does not match the format of the field [].

    I use the simplified notation filed to perform subtraction on a budget form.

    They all have an excellent work and have no problem display a value of zero when it's a simple subtraction (value1-value2).

    However, on my last field I want to take the total income and subtract what I spent (approximately 40 fields) and get a balance zero.

    When I try to do it I get this warning "the value entered does not match the format of the field [].

    The calculation works fine and displays the correct value for all the foregoing ".» 01 "and displays negative numbers. 01 "and underneath as well (if I go on the budget), she just may not show a zero, which is my goal for this equal to zero each month.

    I tried to watch if the forms and have not found an answer that works even for my situation.


    Happy to post the form here, just do not know how to do it.

    Thanks in advance,

    The custom calculation script may be something like the following:

    Get the value of field of income, as a number

    var v1 = + getField("Income").value;

    Set up an array of domain names

    var aFieldsToSubtract =]

    "ThithesB,"

    "TailleB,"

    "EFundB,"

    "MortgageB,"

    "HomeItemsB,"

    "HomeRepairsB,"

    "ElecticB,"

    "GasB.

    "WaterB."

    "SewerB,"

    "TrashB,"

    "PhoneB."

    "InternetB."

    "AutoInsB,"

    "UmbrellaB,"

    "IdentityB,"

    "CosmeticsB,"

    "ToiletriesB,"

    "PocketEBB,"

    "PocketCBB,"

    "GiftsB,"

    "HouseSuppliesB,"

    "PersonalOtherB,"

    "PersonalOther2B,"

    "GroceriesB,"

    "RestaurantsB,"

    "ClothingB,"

    "CarGasB,"

    "CarRepairsB,"

    "CarOtherB,"

    "MedicalBillsB,"

    "MedicalOtherB,"

    "EntertainmentB,"

    "VacationB,"

    "DebtCarB,"

    "DebtStudentLoan1B,"

    "DebtStudentLoan2B,"

    "DebtStudentLoan3B,"

    "DebtCreditB,"

    "DebtOther1B,"

    'DebtOther2B '.

    ];

    Subtract the values in field

    for (var i = 0; i)< afieldstosubtract.length,="" i="" +="1)">

    v1-= + getField(aFieldsToSubtract[i]).value;

    }

    Set this field value by rounding the result to the nearest

    Event.Value = util.printf ("%.2f", v1);

    Do not think of this as a band-aid, think the correct way to perform the calculation, because it is. Note that "Thithes" may be a spelling error.

  • Error message - the value entered does not match the Format of the field

    I get an error message in Adobe Pro x: "the value entered does not match the format of the field [JF13].

    I have JF13 scheduled as follows:

    Calculate tab:

    If (Number (this.getField("ck4").value) > 0) this.getField("JF13").value = Number (this.getField("FL019").value); else this.getField("JF13").value = "";

    It is programmed in this way, so if the user checks the checkbox in front of the field, only then will JF13 fills a value, which pulls of FL019. I also value parameters 'number' because the data to display in the form of a dollar amount $xxx.xx.

    FL019 is a hidden field on the form which takes an amount of a central computer and its settings can also be programmed to 'Number':

    I get four popup windows with the above mentioned error message, and the only way to make the stop message is to remove the «number» field format. However, when this is done, if a number any ending in a zero is entered, it cuts the zero. This is not acceptable either.

    Is there some kind of script that I could add or otherwise to prevent the error message and the cutting out of the zero on JF13?

    I'm not very proficient with javascript, any help would be appreciated!

    Just include the two quotes, not the comment brackets.

  • The value entered does not match the value in the field

    I have a simple form on the page, a field callculates a percentage based on the values entered in 2 other fields, works very well, but then all the entries on the form generates this message "the entered value does not match the value in the field".

    Also, you can remove a tab stop of the fields?

    Just happened again.

  • 4.1 Developer, the output of the Script window does not display the last line of the output automatically

    Hi all

    I use the new version of the developer 4.0.1.14 on Windows 7 x 64, I noticed that the result of the query or the output of the script does not display as before:

    When I run a query lets say with 100 lines of output, run the query successfully, but the cursor jumps automatically to the last record in the game as in all previous versions, I have to scroll manually everytime.

    Can I change this?

    Thank you

    No, unfortunately, it's a bug.

    It is not for all queries however. Still boring.

  • Value entered does not match the format of the field

    Hello

    I need help with an error message that I receive. I received this message before and has received excellent advice on how to solve this problem, but I can't apply this same solution to this situation, as it is different.

    I have a form with 5 fields. The math for those fields should go as follows:

    Zone 1 (JF01) - area 2 (JF01a) = field 3 (JF01b) + area 4 (JF01c) = field 5 (JF01d)

    Here are the scripts that I have on the tabs to calculate two fields "total":

    (I have all the fields to the number with 2 decimal format and a sign of dollar without space)

    JF01b:

    myField = this.getField ("JF01b") var; myField.value = Number (this.getField("JF01").value) - Number (this.getField("JF01a").value);

    JF01d:

    myField = this.getField ("JF01d") var; myField.value = Number (this.getField("JF01b").value) + Number (this.getField("JF01c").value);

    Everything works great - to-zero = JF01d. If this last field happen to add up to zero it is when I get the error message and I have no idea why. If this field is a number greater than zero or even a negative number, that's fine. But there is simply not a zero.

    Any advice is GREATLY appreciated!

    Thank you!!

    EDIT

    I just noticed a few numbers that equal zero work very well, but for some reason, others don't.

    For example:

    10.00 $ - $50,00 = - 40,00 $40,00 + not = $0.00 works fine no problem, but

    180.00 $ - $190,80 = - $10.80 + $10.80 = - $10.80 last field should be zero - No - $ 10.80 and error message appears

    It seems that the error occurs only when there is numbers other than zeros after the decimal point. (Which still confuses me.)

    The likely cause is the result of the subtraction is a number very close to zero, but not quite, which is represented in scientific notation (by example, - 1.23456e - 15), confuses setting routines in the form which uses Acrobat. You can prevent it by rounding up the result of the calculation, for example:

    Subtract and rounded to two decimal places

    Event.Value = util.printf ("%.2f", + getField("JF01").value - + getField("JF01a").value);

  • PowerCLI does not calculate the Date year statement

    Hello

    I have a custom to attribute Date (JJ/MM/AAAA) in vCenter and I attempt to bring together WHAT VM before that date but does not my statement appear to account for the year.  So if I put a date in the future for example 15/01/2012 the script lists than before the current date is incorrect and everything goes back beyond the date of the day but still in 2011 is not displayed is correct.  Any ideas would be greatly appreciated.

    $currentdate = get-Date
    $currentdate = $currentdate. ToShortDateString()

    Get - VM | Get-Annotation - CustomAttribute "Expires"? {$_. Value - the "$currentdate"} ' "

    Version:

    vCenter - 4.1.0.12319

    PowerCLI - 4.1.1.2816

    See you soon!

    Have you thought about converting the date you get the attribute.  Try this

    $currentdate = get-Date

    Get - VM | Get-Annotation - CustomAttribute "Expires"? {(Get-Date $_.)} The value) - $currentdate}

  • The value entered does not match the format of the field

    I get this error and cannot figure out how to not have pop up, when you use the form.  The calculation and the percentage still works, but you have to click on the box a few times to make them disappear. I'm working on a PDF form, using a drop-down list box, but also calculations with text fields.  It looks like the discount text box that has the selected format category selected as a percentage, is the only time when the form is in error.  If I need this text field to display the number as a percentage.  This text box is also calculated the percentage of discount of a unit cost.  Is there a way to prevent this?

    I used exactly the same formula you provided... Unless you want to say that it is:

    1. (Uprice / DeptEmail)

    In this case simply adjust the last line in the code are:

    else event.value = (1 - (v1 / v2));

  • Re: adadmin does not compile the libraries/forms/States for the LOCATION of the India

    Hello

    When we run adadmin to compile all the forms, location of India related forms / libraries in $JA_TOP don't get compiled.

    Only two forms appear when there are many forms.


    Kind regards.

    Please see (location of the India - build scripts in version 12 [727724.1 ID]) - 3. Why AD-ADMIN of the utility is not picked forms of JA in R12?

    This should also be applicable to version 11i.

    Thank you
    Hussein

  • Tip action does not follow the direction 'else '.

    Hello

    I use 8 Captivate and trying to create a tip action putting in question a matter of access point.

    Currently I have:

    If (all conditions are met):

    If cpQuizInfoAnswerChoice [is to] 0 ((literal - as generated by Captivate)

    Then:

    Run the Javascript: window.cpAPIInterface.setVariableValue ("cpQuizInfoAnswerChoice", "OK");

    Another thing:

    Run the Javascript: window.cpAPIInterface.setVariableValue ("cpQuizInfoAnswerChoice", "Invalid");

    (FWIW, I am confident in the "then" Javascript, have used this script in similar advanced conditional actions.)

    However, regardless of whether cpQuizInfoAnswerChoice is 0 (that is, correct) or appears empty (that is, incorrect), advanced action always returns the If condition (if the parameters are respected).

    I suppose one way to solve this would be to understand what is generated by Captivate for cpQuizInfoAnswer when the question is incorrect, but can't seem to find. Another way would be to create an advanced conditional action based on the question if the question has been marked as Correct or Incorrect, but this doesn't seem to be an easy option.

    I would appreciate any suggestions on how to work around this problem!

    I haven't tried the custom hotspots, but will be for future projects - it's more trouble than it was worth.

    I end up creating multiple points of access, with the first (= 0) being a "dummy" and the second (= 1) being the right answer. Then, I created my conditional Action advanced to return "Incorrect" If the answer is 0 or null (because the system identifies equivalents) and "correct" If the answer is 1.

    Thanks for all your help in this, Lilybiri!

  • "The value entered does not Format of the field.

    If something similar has been posted, I apologize! I tried to look for it and has not been able to find the answer.

    I have a form to determine the potential savings, if a customer makes our products to a competing product. Our sales staff filling in many areas that allow us to determine the annual cost that the customer currently committed, as well as the potential annual costs associated with our product. At the bottom of the page, using a simple calculation JS, it determines annual dollar savings by changing brands.

    I would also like to include the annual savings as a percentage of current costs, but for some reason, I cannot get the script to work. The error message that appears indicates: "the value entered does not match the format of the field [annual percentage savings]."

    Now, the two fields referenced in my script are formatted in dollars, so I don't know if this makes a difference or not. My script is below.

    var f = this.getField("Potential_Annual_Savings_in_Dollars").value;
    var y = this.getField("Cost_Per_Year_Current").value;
    F.value = Event.Value / y.value;

    If (y.value < f.value) event.value = ";

    Given the percentage is not strictly necessary, but it adds to the form, so that any help would be appreciated.

    Thank you!

    Post edited by: MelissaZoller (format)

    I would use:

    var f = this.getField("Potential_Annual_Savings_in_Dollars").value;

    var y = this.getField("Cost_Per_Year_Current").value;

    If (y<= 0)="" event.value=''>

    else {}

    Event.Value = f / y;
    If (y< f)="" event.value=''>
    }

    In this way there is no division by zero or a negative number.

  • Not able to activate Windows 7 get "the product key you have entered does not seem to be a valid Windows 7 product key.

    Original title: the product under the asus laptop key

    Hello

    I have a problem to activate windows using the product under my laptop key. He says "the product key you have entered does not seem to be a valid Windows 7 product key. Help me solve this problem.

    0xC004F050 usually means that you have misinterpreted a character - or G/C/6 and 8/B or Y/V are the most common, an O/0 is almost always a Q

    Please note that the following characters cannot be used - A E I L N O S U Z 1 0 - so don't bother trying unless you like noise it does :)

  • The product key entered does not match any available window images, please enter a different product key

    Original title: complaint of Microsoft

    Dear team,

    Please note that we had bought a laptop Lenovo S 405 of Croma store located at Silver Bow Ludhiana.

    Type of machine:-IdeapadS405APGRTXA84555M4G5008EIN(20196) mode

    Machine Type No.:-59348194

    Serial number of the machine: -.

    Laptop provided with the integrated Windows 8 homepage unilingual, we tried to remove formatting the hard drive & then tried to install Windows 8 PRO that was purchased separately, but the system does not work, system displays a message error that says "the product key entered does not match any available window images, please enter a different product key

    Ask you please help to solve this problem

    Anticipating a quick answer on the same

    Thanking you,

    Yogesh clavreul,

    +

    Hi yogesh,

    This problem could be due to the fact that the product key provided does not match the press which is used to install Windows. The product key that is provided can be a file without assistance, in a. EI. CFG file, in the PID.txt file or in the BIOS firmware. Windows OEM 8 machines ship with the product key in the firmware, and if this product key does not match the press, then you will see the above error message.

    You are able to start after receiving the error message on the screen?

    I suggest you to change the product key to the correct for the media you are trying to install. If the system has a product key in the motherboard (o. a. 3.0 [Activation OEM] provides an OEM product key in the firmware), you use an Unattend file, file (EI.cfg) edition Configuration or the product ID file (PID.txt).

    You can check the link:

    «Windows 8 or Windows Server 2012 installation may fail with the error message: the product key entered does not match any of the images available for installation Windows.» "Enter a different product key"

    http://support.Microsoft.com/kb/2796988/en-us

    For reference, you can check the link and follow the steps proposed by Steven on 24 January 2013:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-windows_install/the-product-key-entered-does-not-match-any-of-the/47e6f575-5792-404B-9b7f-2065bdb91011

    Please let us know if the problem still persists.

  • I try to enter the serial number to register my software, but the label outside of the box, he's starting with the letters and it does not accept the letters... . Only numbers

    I try to enter the serial number to register my software, but the label outside of the box, he's starting with the letters and it does not accept the letters... . Only numbers

    Serial numbers contain no letters, so maybe it's your redemption code, for use on adobe.com to get your serial number.

    Here are a few links to look for more information

    https://helpx.Adobe.com/x-productkb/global/redemption-code-help.html#productboxorprepaidca rd

    Quickly find your serial number

  • My billing address does not match the credit card, as I entered. But I'm sure that I wrote the correct address to 10000%. Is this some kind of error?

    My billing address does not match the credit card, as I entered. But I'm sure that I wrote the correct address to 10000%. It's some kind of error? @

    Contact adobe support by clicking on this link then "still need help" as soon as it appears, https://helpx.adobe.com/contact.html

Maybe you are looking for