IF statement think 99 is superior to 658

I have a sheet that is configured to display a toast and prevent the user to save the data if the value in the text box 1 is equal or superior to the texbox 2.  Unfortunately, it seems that the funciton is only looking at the first digit of each value to determine.  That is, if I have 99 entry in the text box 1 and 657 in textbox 2, he'll say a textbox is larger than the text box 2.

onTriggered: {

                          if (counter.text >= limittwo.text && limittwo.text !=0)
                           {
                            editlimitToast.show();
                              }
                           else
                             {
                                                                            rootItem.ListItem.view.getApp().updateObject(ListItemData.customerID, name2.text, ListItemData.description, datefield2.text, counter.text, limittwo.text, ListItemData.categorySelect, ListItemData.mapurl);
                            editSheet.close()
                            editToast.show()
                               }

                           }

any help would be greatly appreciated and like / solutions will be given.

found a solution.  We have to analyze the numbers value fields so that they stand out as a whole instead of the text:

onTriggered: {

                          if (parseInt(counter.text) >= parseInt(limittwo.text) && parseInt(limittwo.text) !=0)
                           {
                            editlimitToast.show();
                              }
                           else
                             {
                                                                            rootItem.ListItem.view.getApp().updateObject(ListItemData.customerID, name2.text, ListItemData.description, datefield2.text, counter.text, limittwo.text, ListItemData.categorySelect, ListItemData.mapurl);
                            editSheet.close()
                            editToast.show()
                               }

                           }

Tags: BlackBerry Developers

Similar Questions

  • Lenovo IdeaPad U410 Bios Update ERROR 233

    I downloaded the BIOS update file support 65cn21ww.exe Lenove but after, I received a message "ERROR 233 - only guaranteed capsule is allowed on a system of SecureFlash! Status = 1. »
    I see that similar subjects do not actually solve the problem.
    While doing a Google search I came across ErrorEND which claims to solve the problem for $30
    Someone does it have that or know what error 233 is and how to fix it, or if the ErrorEND program works and is not a rip off...
    David

    Hi all, I had difficulty getting the replacement SSD but finally got one of the States, think I paid probably more opportunities for it. But it has solved all my problems, I installed Windows 8 on the SSD and programs on the 1 TB D:\drive and it now works very well and is fast. Hope that helps other David

  • CFIF weird problem with dynamic form variables? Very strange...

    I can't understand what I'm doing wrong here.  Here is my code.  Question explained below.

    < name cfquery = "reviewconfigloader" datasource = "MOLMS" >
    SELECT *.
    FROM dbo. BaseModel
    WHERE the dbo. BaseModel.AccountID = #molmsAccountID # AND.dbo.BaseModel.basemodelActive = 1
    < / cfquery >

    < table width = "100%" border = "0" cellspacing = "0" cellpadding = "3" >
    < cfloop query = "reviewconfigloader" > < cfif AND isdefined("form.baseconfig#reviewconfigloader.basemodelID#") ("form.baseconfig #reviewconfigloader.basemodelID # ') NEQ" "AND (" form.baseconfig #reviewconfigloader.basemodelID # ') QNE 0 > < cfoutput > < tr >
    < td width = "40%" bgcolor = "# F7F7F7" class = "basemodelsub" > #form ['baseconfig #reviewconfigloader.basemodelID #'] # #reviewconfigloader.basemodelName # #reviewconfigloader.basemodelSubName # < table >
    < td width = "15%" bgcolor = "# F7F7F7" class = "basemodelsub" > < div align = "center" > x 14 < / div > < table >
    < td width = "15%" bgcolor = "# F7F7F7" class = "basemodelsub" > < div align = "center" > $486 / year < / div > < table >
    < td width = "15%" bgcolor = "# F7F7F7" class = "basemodelsub" > < div align = "center" > $ 1,444 / year < / div > < table >
    < td width = "15%" bgcolor = "# F7F7F7" class = "basemodelsub" > < div align = "center" > $ 1,444 / 3 yr < / div > < table >
    < /tr > < / cfoutput > < / cfif > < / cfloop >
    < /table >

    What I'm doing here is pretty basic. I'm running a query with a number of configs in it... and then by creating a loop for their output.  Ultimately, I want only the configurations that did not present 0 in the form on the previous page.  Each of the configs in query configuration has a variable of dynamic form on the previous page with a quantity associated with it.  I am trying to remove all the current amounts that are not 0 (or not to eliminate just not see the)... as you can see on the cfif statement.

    This is where it gets weird.  You will notice that I left #form ['baseconfig #reviewconfigloader.basemodelID #'] #, just for the test, which shows me the amount as it should.  I ran a test and put in a couple of 1 s 0 s, 12 s 6 s, etc. in the form fields on the previous page.  If it worked, it would not show anything for the documents with their value by 0 basemodelID.  Not the case.  It shows all the records.  What's funny is that it displays perfectly in my test #form ['baseconfig #reviewconfigloader.basemodelID #'] #, showing good numbers in the previous form, 1, 0, etc., related to each record.  But for some reason, the cfif code isn't catching.

    What's even weirder... I replaced the cfif ("form.baseconfig #reviewconfigloader.basemodelID # ') NEQ 0 with GT 12 (12 has been the largest number I put in shape) and he always showed all the records.  Then I put in as LT 12 and it revealed nothing.  I decided to go one step further and put in to GT 1231243242343 (massive random number), which he always showed all the records.  So, somehow, CFIF statement think that ("form.baseconfig #reviewconfigloader.basemodelID # ') is an incredibly large number, although when I exit in the line below, it is the number, it should be.

    I'm puzzled.  Any ideas?  Thanks in advance!

    Hi Alexander, thank you to try out it... but this errors with error # because just the # emerged from the parenthasis.  So he just bombs.  Let me know if you can imagine than anything else!

    Sorry about that, Jeculture. Christmas factor.

    I unrolled without checking. What he should have said is:

    or

  • I intend to buy a Apple Watch in the United States, but I have a European iPhone 6 Plus. Anyone know if I have a problem with syncing my iPhone (EU) and the Apple Watch (US)? I think not, but any ideas?

    I intend to buy a Apple Watch, United States of America, but I own a European iPhone 6 Plus device. Anyone know if I have a problem with the sync between devices? I don't think, but it would be more useful to have a definite answer for this as my assumption...

    Hi John

    The devices normally work together.

    There is no difference in the hardware specifications for the watch. It can be configured to use your preferred language and format of the region.

    Adapter USB power to the watch will be located in the United States. To charge your watch via food in Europe, you can use the magnetic charge cable supplied together with a real 5W Apple (iPhone) or 12W (iPad) adapter USB power (or with a third party, Apple certified adapter).

  • Computer seems to do a lot of thinking before running each statement. There are files missing or damaged?

    Original title: is there a way to know if my copy of windows is missing files, etc?

    My computer seems to do a lot of thinking before running each statement checked upload / speed download, everything is fast, must be my corrupts, could be operational with missing or damaged files, anyway to check?

    Hello

    1. Are you referring to the performance of the computer?
    2. What antivirus application do you use?

    I suggest you try these methods and check the status of the issue.

    Method 1:

    Keep the computer in a clean boot and check the status of the issue. If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem. Continue with the remaining steps to pin-point on the third party service. After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note: after you have used the boot is a way to solve your problem, you can follow these steps to configure Windows XP to start normally.

    Method 2:

    I also suggest that you scan your computer with the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malicious software.
    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.
    http://www.Microsoft.com/security/scanner/en-us/default.aspx
    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Important: When performing analysis on the hard drive if bad sectors are found on the hard drive when parsing tent repair this sector if all available on which data can be lost.

    You can also refer to:

    Maintenance tasks that improve performance.

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Setup/maintenance-improve-performance

  • This Windows 10 upgrade, free of charge, is available for other countries outside the United States? If so, what do you think when will be available?

    This Windows 10 upgrade, free of charge, is available for other countries outside the United States? If so, what do you think when will be available?

    Julio

    It is available worldwide for any OS (win 7 SP1, Win 8.1 eligible) and if you put updated in the first year, it's free for the life of the device.  It will be released July 29

  • BlackBerry smartphones, I'm in Egypt but my Blackberry 8520 think it is in the United States - cell phone in Egypt numbers start at 0

    Hello

    I bought an unlocked phone from T-Mobile in the United States which I use with an inLuxor of sim card Etisalat, the Egypt, where I live now.  I have no problem that the following exception:

    I can't use my list of contacts to make calls because the Egyptians cell phone numbers begin with 0 and my blackberry automatically adds a sign before the number as a number of foreigh - which makes the invalid number.  So I have to dial the numbers that I use more again and again.

    Has anyone had a similar experience and can advise me how to fix this?

    Thank you in advance.

    Karin Cruz

    The smart dialing options are there if you look where I said.
    Press your green dial key to switch to the phone dialer screen and proceed according to the instructions.

  • USE OF CPU ALWAYS SUPERIOR TO 50% ALSO IN THE PC IDLE STATE...

    My PC is very slow. The CPU usage remains always above 50% just after when I turn on the PC.
    He never drops below 50%. What is happening since last week.
    It remains same in the off State (when no programs are run {even in the taskbar}) also.
    IAM facing everyday problems using my PC. It has now become very slow.
    I tried all possible measures such as:-1. using the system configuration to stop unnecessary programs from startup.
    2 using the Disk Defragmenter.
    3 using the Cccleaner to remove all files of PC unnecccessary.
    4 using the KASPERSKY INTERNET SECURITY 12, I scanned and found 0 THREATS.

    I have 320 hard drive with two local drives: 1. (c) 57.9 GB free 99.9 GB;
    2 (D :)) 22.9 free GB of 198 GB.)

    System information: -.
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    Operating system: Windows 7 Home Basic 32-bit (6.1, Build 7601) Service Pack 1
    Manufacturer: Gigabyte Technology Co., Ltd..
    System model: G41M-ES2L
    BIOS: Award BIOS v6.00PG Modular
    Processor: Intel (r) Core (TM) 2 Duo CPU E7500 2.93 GHz (2 CPUs), ~2.9GHz
    Memory: 2048 MB RAM
    Available OS memory: 1916MB RAM
    Page file: 1385MB used, 2447 MB of available space
    Windows Dir: C:\Windows
    DirectX version: DirectX 11.

    Screenshot of my desktop:-http://postimage.org/image/gfadqwhhz

    Please HELP me ON THE above of PROBLEM as SOON AS POSSIBLE! I have!

    Thank you...

    I SOLVED THE PROBLEM ON MY OWN...

    THANK YOU ALL FOR ALL YOUR SUPPORT...

    Just once, I suspended my kaspersky antivirus internet and saw that cpu utilization drop between 30 to 40%.
    Then I closed my antivirus for quite awhile and I saw this CPU usage to fall down in the end between 1 and 10 percent. So I uninstalled and reinstalled my kaspersky antivirus. Now the problem is solved and my PC runs very smooth...

    Thnkx for the efforts of all...

    Kind regards
    Yuvraj Singh.

  • So I think that I can not decrease the scale of the column with an alter statement

    Just learned this, kind of interesting for me. If the column contains data I can increase the scale, but I can't then decreased to its original scale, even if the numbers would be fit. Also from what I've read the only case to reduce a scale is to null, remove, or perhaps copy the column in a column being added.

    Just think it's kinda weird that you cannot reduce a number column, even if the values would be fit.

    This has something to do with the zero no significant?

    This has something to do with the zero no significant?

    Non - Oracle stores ONLY significant digits - not leading or zeros to the right.

  • I think I have a fake adobe reader. A true 9.5.5 is installed and an Adobe 9.5.5 w/a statement this update can not be uninstalled.  No size of the program is listed

    Can how I remove a fake Adobe program?  It says adobe Reader-CPSD_83708 I'm in Control Panel Add/Remove

    CPSID_83708 was a previous security fix for Adobe Reader; I don't think you can or should delete it.  I think that it will be deleted if you uninstall Reader 9.x and install a more recent version of the player as X or XI.

  • Adobe think I live in the United States, you can't buy

    My apologies if this isn't the right place, please let me know where would be more appropriate.

    I am switch to lightroom, so try to buy the package of photography for CC, but I'm stuck to the payment.

    The form has a nonmodifiable country location, which says that it is in the United States, but I live in England. How to change that?

    I have been through the manage account pages and can not see any address at all. Y at - it somewhere otherwise I can change it?

    I can't beyond form, so my trial will run out soon :-/

    Any help would be appreciated.

    -Alastair

    Cloud creative support chat (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • queue and notifying with state machine

    I'm trying to implement a declarant and a queue to collect data that is running on a state machine in two separate loops.  I'm new to the whole and methods notifier queue and I think I'm really close to make it work as I want.  When I start the computer the first time that State everything works and it is what I expected.  When I try to restart the test and do it again she acts like the queue has been cleared and it will not connect anything to the queue.  I use the queue as a buffer for the data collected between iterations of the loop of State machine.  I empty the queue and add all the data in a table.  The declarer seems to work in all situations as I want.  I have attached a simplified version of what I'm trying to do.  Any ideas? Thank you.

    After the execution of your code (I had to make my own custom control to the States because you include not yours) and some survey values, here's the conclusion that I came to:

    It is not your queue.

    It's your math.

    In your upper loop, put sensors on the values you use to trigger the 'True' case (specifically, put a probe on the values to enter your service "superior or equal to") and then watch their values that you run your code.  The value that is coming through the shift register is your problem.  He isn't getting back to zero when you restart the test.  The first time you run your program, the value is zero.  For subsequent iterations, it's everything the last calculated deflection was.  Run your button 'force' down to zero once your test is over and look at what this value.

    Thus, when you restart your test without having to restart your program, you start with a nonzero value for calculated arrow.  Is to prevent your delta never exceed 0.001 in., and therefore your 'Real' case never executes.  So nothing ever shows in your queue.  You do not put anything in your queue.

    The reason why you go to your "complete" State in the lower loop when you hit 0.3 in flexion is because the current value of the 'deviation' is passed through your Notifier and is not dependent on the previous value of the way your queue is.  So you can always hit deflection 0.3 in., without calculated being greater than 0.001 in. delta.

    Try to reset this registry offset value in your greater than zero loop every time that you restart the test, and your program will probably work.

    And Ravens Fan has a point about the complexity.  It usually does.

  • Update statement can be used depending on the result cache?

    Hi all

    I stumbled on an interesting question. UPDATE statement is used in the following function, even if the feature is created RESULT_CACHE. It seems illogical. I was wondering, is it possible?

    If so, why RESULT_CACHE is used?  Because it means "do not execute the function, look for the result of the hash table and return the results to the user ' if the UPDATE statement, so doesn't mean it should run for each call and use with RESULT_CACHE and UPDATE/DELETE/MERGE is illogical or wrong?

    Thanks for your help.

    FUNCTION to CREATE or REPLACE plch_get_data (FULL id_in)

    RETURN VARCHAR2

    RESULT_CACHE

    IS

    BEGIN

    Dbms_output.put_line ('run');

    UPDATE plch_data

    SET nm = UPPER (nm)

    WHERE id = id_in;

    COMMIT;

    RETURN "SUPERIOR."

    END;

    /

    Yes, it's the challenge of PL/SQL quiz - and the point of the quiz is only automatic relies on parsing by Oracle only supports arrays of account that is QUESTIONED.

    The tables that are affected by DML not a query as an update do not figure in automatic invalidation of a cache.

    I was hoping that the explanations given in the questionnaire itself would not lead to a thread - rather it would provide a pleasant and clear answer. So feel free to let me know if you think otherwise.

    As to why Oracle would let you include DML not a query inside a function of caching of result, well... I can easily accept that you shouldn't do this - in general. But I don't see that we should make it impossible. It would probably be a good candidate for an another PLW (PL/SQL warning), as in:

    "Non-requetes DML in a result caching function will not affect caching and can result in unexpected results."

  • Case statement does not work

    Dear all,

    We have the database oracle 11g r2 on windows.

    I created under function: -.

    SQL > CREATE OR REPLACE FUNCTION FUNC_TEST (P_TEST VARCHAR2)

    2 RETURN VARCHAR2

    3 AS

    4 V_TEST VARCHAR2 (20);

    5

    6 BEGIN

    7

    8 V_TEST: = P_TEST;

    9

    10

    11 CASES

    12. WHEN V_TEST = UPPER ('%UU%') THEN V_TEST: = REPLACE (V_TEST, 'UU', 'U');

    13. WHEN V_TEST = UPPER ('%OO%') THEN V_TEST: = REPLACE (V_TEST, 'OO', 'O');

    14. WHAT V_TEST = UPPER ('%NN%') THEN V_TEST: = REPLACE(V_TEST,'NN','N');

    15 ELSE V_TEST: = "CHANCHAL";

    END 16 CASES;

    17

    18

    19 V_TEST RETURN;

    20 EXCEPTION SO THAT OTHERS THEN

    21 DBMS_OUTPUT. PUT_LINE (' THERE IS AN ERROR ');

    22 END;

    23.

    The function is created.

    SQL > SHOW ERR

    No errors.

    SQL > SELECT FUNC_TEST('toon') FROM DUAL;

    FUNC_TEST ('TOON')

    --------------------------------------------------------------------------------

    CHANCHAL

    above function should show 'YOUR' build 'Toon' but its display "CHANCHAL";

    I train hard get the result OK but could not get it.

    Any suggestions would be very helpful.

    Kind regards
    Chanchal wankhade.

    Hello

    Chanchal Wankhade wrote:

    Dear all,

    We have the database oracle 11g r2 on windows.

    I created under function: -.

    SQL > CREATE OR REPLACE FUNCTION FUNC_TEST (P_TEST VARCHAR2)

    2 RETURN VARCHAR2

    3 AS

    4 V_TEST VARCHAR2 (20);

    5

    6 BEGIN

    7

    8 V_TEST: = P_TEST;

    9

    10

    11 CASES

    12. WHEN V_TEST = UPPER ('%UU%') THEN V_TEST: = REPLACE (V_TEST, 'UU', 'U');

    13. WHEN V_TEST = UPPER ('%OO%') THEN V_TEST: = REPLACE (V_TEST, 'OO', 'O');

    14. WHAT V_TEST = UPPER ('%NN%') THEN V_TEST: = REPLACE(V_TEST,'NN','N');

    15 ELSE V_TEST: = "CHANCHAL";

    END 16 CASES;

    17

    18

    19 V_TEST RETURN;

    20 EXCEPTION SO THAT OTHERS THEN

    21 DBMS_OUTPUT. PUT_LINE (' THERE IS AN ERROR ');

    22 END;

    23.

    The function is created.

    SQL > SHOW ERR

    No errors.

    SQL > SELECT FUNC_TEST('toon') FROM DUAL;

    FUNC_TEST ('TOON')

    --------------------------------------------------------------------------------

    CHANCHAL

    above function should show 'YOUR' build 'Toon' but its display "CHANCHAL";

    I train hard get the result OK but could not get it.

    Any suggestions would be very helpful.

    Kind regards
    Chanchal wankhade.

    I think you meant:

    CASE

    WHEN SUPERIOR (V_TEST) LIKE "% UU" THEN V_TEST: = REPLACE (UPPER (V_TEST), 'UU', 'U');

    WHEN SUPERIOR (V_TEST) LIKE '% OO %' THEN V_TEST: = REPLACE (UPPER (V_TEST), 'OO', 'O');

    ...

    '%' is a wildcard character only on the right-hand side of the LIKE operator. '%' has no particular meaning when you use the = operator.

    You can also use a CASE expression, rather than a CASE statement to this:

    v_test: = UPPER (p_test);

    v_test: = BOX

    WHEN v_test LIKE "% UU" THEN REPLACE (v_test, 'UU', 'U')

    WHEN v_test LIKE "% UU" THEN REPLACE (v_test, 'OO', 'o')

    ...

    END;

    Whatever it is, if v_test contains different models (for example "HOOVER VACUUM"), only 1 of them will be changed.  Is that what you want?

    If this isn't the case, after a few examples of data (CREATE TABLE and INSERT statements) and the results desired from these sample data.  Explain how you get these results from these data.

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • We have dish as a TV provider in the United States.  We have an Apple TV 3rd generation that we use in the Mexico.  Even if I connect to my account of dish, I can't Apps to work on the Mexico.  Applications such as CNN GO.

    In the United States I have the dish as a TV provider.  I can connect flat with my 4 Apple TV version and look at Apps like CBS, CNN, go, etc...  When I try to do the same thing in Mexico with my 3 Apple TV version these same apps do not work.  In Mexico, I have tried resetting everything and through other steps proposed in this forum.  Nothing has worked.

    Hello. I think they can tell where you are by your IP address. Their servers can block content if they are not allowed to provide at your location. You can try to contact the dish.

Maybe you are looking for