validate if the numbers are multiples

I need validate if two numbers are multiple.

I am trying:

If (selectedRow.GetAttribute ("QtyPerBox") %selectedRow.getAttribute ("QtyPerBox") == 0) { }

continue

}

but selectedRow.getAttribute ("QtyPerBox") is an object. How I resolv this?

Ensure the solution: the toString user who opposes and convert the string to an int value:

Integer.parseInt(selectedRow.getAttribute("QtyPerBox") .toString())

not so secure solution: do a cast to the Type in which the attribute is declared in JDev (including ich, a certain number of type if all goes well)

((Number)selectedRow.getAttribute("QtyPerBox")).intValue()

Good bye

DPT

Tags: Java

Similar Questions

  • Indexing of Windows going in the opposite direction. The numbers are now down, is this normal?

    I have a terminal server server that has started to index the files again, don't know why, but it takes a long time to complete.

    I checked on it after a few days and noticed that the numbers are down now is this something normal?

    Any help would be greatly appreciated.

    Support is located in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • When I type, the alphabet and the numbers are mixed together. Can I fix?

    I need help fixing my computer online.  My alphabet and numbers are mixing up.

    You use a wireless keyboard.  If so, check if the batteries are charged

  • When you print a postage label, the numbers are missing

    When I print a label for the U.S. postal service, some of the tracking numbers are missing.  How can I fix it?

    Thank you

    Hello

    Try to use Print as Image option in the advanced settings of the print dialog box.

    Thank you

    Abhishek

  • Characters are be typed when the numbers are typed

    Original title: lock keyboard

    I managed to block a setting that I don't know how to cancel.  I use the numeric keypad to the right of my keyboard and in some sort I locked so that I can't use it.  I now can't use the numbers along the top of the keyboard either.  When using these keys the character on top is what is typed, not the numbers.  I'm sure I did a combination of keys that made this happen, but I don't know what I did or how to cancel it!  Any help?

    If this happens again, try pressing each modifier key.  Press these, in order, one at a time:

    • Maj
    • CTRL
    • Windows
    • ALT
    • Escape twice

    This is especially true on wireless keyboards where repeated (maintained) key can be pasted on even after you release, you will need to enter a second time to clear the keyboard buffer.  It happens a lot on my Sony Vaio wireless keyboard.

  • Password numbers cannot physically be entered, that is to say the keys are blocked on my Bank's website.

    I use Xubuntu 12.4 and since an automatic download of Mozilla 16.01 alone off the six numbers required for my password can physically be entered.

    I noticed that the a number which can be inserted is entered on the right side of the box when already the numbers worn by the left. NB numbers are chosen in a box of the grid where the numbers are arranged differently on each search.

    Hello

    Thanks a lot for your quick help. I followed your advice and reset Firefox and my password now works fine. I am delighted.

  • Cannot find what code product of numbers are on the label. Help, please

    may not know what are the numbers are the code of the product on the label

    Hello

    It's actually a compiled response someone put in place and I would attribute it - but I forgot where I copied it... such is the "internets"...

    At any rate, this describes your situation. It shows where the key is to Office and Windows and how to tell the difference. You don't mention which key you were talking about, so it covers all the basics:

    "1. you just installed Office in a retail box you just bought?  If Yes, go to control panel, programs and features programs and see if there is another copy of Office installed in addition to the suite that you have just installed.  Some pre-installed trial Office 2007 suites may conflict with the product key validation process.  If you see a copy of Office installed, then uninstall it and try to run your new new Office program.  Chances are that your product key now works.
    2. If you use the 25-digit product key that you found on a sticker on the bottom of your laptop or on the back of your desktop, then you are using the wrong key.  This key is the product key for the Windows operating system and NOT for the Office Suite.  The correct product key for the Office suite will be in one of these places:
    a. within the Cabinet Office 2007 (if you purchased Office in a retail store)
    b. inside an e-mail on the site online where you purchased Office
    c outside of the CD, on a sticker
     
    Microsoft has an article in the knowledge base that goes more in depth in the scenario of valid product key.  It is located at http://support.microsoft.com/kb/836178 and would be a good place to go if the instructions above do not resolve your problem.

    Hope this helps,

    Steve <> Microsoft Partner

  • Which of the 2 numbers are closer to 0

    Hello

    This could be a general question, I would ask you to help on the forum.

    I am running a script and I have a function that receives 2 numbers (variables)

    I would like to know which of the 2 is closer to 0

    That is, if the numbers are 5, - 2 = - 2 is closer etc..

    Y at - it anyone who can offer any method or function that can help me with this.

    (I did 2 loops that counts how many times it took the number to get 0)

    "but I think that there is a better way.)

    Thank you

    Davey

    function minMagnitude(a, b) {
        return Math.abs(a) < Math.abs(b) ? a : b;
    }
    

    If you are not familiar with this syntax, here is another equivalent method:

    function minMagnitude(a, b) {
        if (Math.abs(a) < Math.abs(b)) {
            return a;
        } else {
            return b;
        }
    }
    

    And here's another equivalent method:

    function minMagnitude(a, b) {
        var absA;
        if (a < 0) {
            absA = -a;
        } else {
            absA = a;
        }
    
        var absB;
        if (b < 0) {
            absB = -b;
        } else {
            absB = b;
        }
    
        if (absA < absB) {
            return a;
        } else {
            return b;
        }
    }
    

    But really, I would stick with the first.

  • NETGEAR genius App does not display the numbers of traffic correctly with IOS 10 meter

    Since I've updated my Air Ipad 2 and Iphone 5 IOS 10.0.1, genius app on these 2 devices does not traffic counters numbers - the numbers are blacked out. Both devices have been updated to IOS 10.0.2 and numbers still are not displayed correctly. I've uninstalled and reinstalled the app on devices engineering and numbers are always blocked. I tried an old Ipad 2 which is not updated for IOS 10 and my desktop Windows 10 PC and the traffic engineering counter displays the numbers correctly. I called Netgear support, but they were not aware of this problem and so far do not have a solution. Someone has encountered this problem on their Apple devices? Thank you! Another question - is - it possible through the genius app for what it tell me the amount of use of band bandwidth/data device not only in total for all devices? Thanks again!

    Hey all

    I have forwarded this to our engineering team.

    There was another user who made the same case.

  • PHOTOS, CHANGE THE NUMBERS UNDER PHOTOS

    IS THERE AN AUTOMATIC WAY CHANGE THE NUMBERS ON THE PICTURES IN MY PC PICTURES FOLDER?  BECAUSE WHEN I TRANSFER THE PICTURES FROM MY CAMERA TO THE COMPUTER, THEY HAVE A NUMBER ASSIGNED TO THEM TO THE DEVICE, WHEN I DOWNLOAD MORE SAME NUMBERS ARE TRYING TO LOWER THE LOAD, CAUSING ME TO GO ON RECORD AND A CHANGE THEIR NUMBERS SO THE NEW DOWNLOAD. SO IF I HAVE 150 PICTURES IS A WAY OF SAY BEGINNING WITH 0001 HOW THE BALANCE OF PHOTOS AUTO POSSIBLE CHANGE TO NEXT NUMBER

    THANKS FOR ANY HELP

    Scott - welcome...

    It depends on how you import your photos. You can define a new preference in (screenshot below showing the relevant section arrowed in red) and usually if you use for example 'Windows' a date folder will be created for each import so that the numbers are not duplicated. I hope this helps... R.

  • RegExp with padding for the numbers

    Hi all

    I have a column VARCHAR2 representing Article and paragraph of a document and I need to sort in a sophisticated this column method.

    The problem is that because this value is from a form using free text, the format is quite heterogeneous. Then we would have something like:

    select '1' as section from dual union all
    select '7(1), 8(3)' as section from dual union all
    select '9(2)(b)' as section from dual union all
    select '11(1)(c)' as section from dual union all
    select 'Annex VI' as section from dual;
    

    the problem is that if we use the lexicographical order, that we'd end up with 11 front of 9.2 b (1)

    select  section from (
    select '1' as section from dual union all
    select '7(1), 8(3)' as section from dual union all
    select '9(2)(b)' as section from dual union all
    select '11(1)(c)' as section from dual union all
    select 'Annex VI' as section from dual)
    order by 1;
    
    SECTION
    ----------
    1        
    11(1)(c) 
    7(1), 8(3)
    9(2)(b)  
    Annex VI 
    

    It is true that articles go not beyond say 1000 thought I replace all the groups of digits of 0 left padded values. An expression that I would get the right result

    select  section from (
    select '001' as section from dual union all
    select '007(001), 008(003)' as section from dual union all
    select '009(002)(b)' as section from dual union all
    select '011(01)(c)' as section from dual union all
    select 'Annex VI' as section from dual)
    order by 1;
    

    SECTION

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

    001

    007 (001), 008 (003)

    009 (002) (b)
    011 (01) (c)
    Annex VI

    This can be achieved with regexp?, the thing is I can locate the numbers and normally the depth of numbers would be only 2 directions 1 (2) and no 1 (2) (3) so with 2 nested regexp_replace could be good. The thing is that I don't realize to fill in the 3rd parameter:

    Best regards

    Hello

    Using REGEXP_REPLACE to fill in the numbers:

    SELECT section

    , REGEXP_REPLACE (REGEXP_REPLACE (section - for debugging only

    , '(\d+)'

    , "000\1".

    )

    , « 0+(\d{4}) »

    , '\1'

    ) AS sort_str

    ARTICLE

    ORDER OF REGEXP_REPLACE (REGEXP_REPLACE (section

    , '(\d+)'

    , "000\1".

    )

    , « 0+(\d{4}) »

    , '\1'

    )

    ;

    The inner REGEXP_REPLACE adds 3 major 0 ' to all numbers, so that all the numbers are at least 4 digits.

    Removes from the external REGEXP_REPLACE 0 ' to all numbers, so that all numbers are exactly 4 digits.

    In Production, you will not want to repeat the expression in the SELECT clause. I just did here to help us see what's going on.

    Output:

    SECTION SORT_STR

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

    1 0001

    7 (1), 8 (3) 0007 (0001) 0008 (0003)

    9 2 b 0009 (0002) (b)

    11.1 c 0011 (0001) (c)

    Annex VI to annex VI

  • WebLogic JMS: Messages in the queue are not displayed correctly

    Hello

    I use business OSB (courier, query type = type of text and the answer = none) and I publish the message encoded in URL next to a JMS queue:

    * %3 C % 3Fxml % 20version % 3D % 221 *.


    then, when I discovered the message in the queue by using the Weblogic console it is shown as:

    * 00000000: 2533 4325 3346 786 d 6 c 25 3230 7665 7273 %3 C % 3Fxml % 20vers *.
    * 00000010: 696f 3344 2532 3231 2532 3225 2e30 6e25 *.

    Why these numbers come from the message when it is published to the queue.

    Kindly help me to understand this and how to solve the same.

    Thank you
    Kalpana.

    The numbers are just an artifact of the way in which the message is displayed by the console. They are a binary representation of the data from your channel.

    More precisely, it looks like the view you are using shows a binary representation, in hexadecimal, on the left side and an ASCII representation on the right side.

    for example

    "72" is ASCII hex for the 'r '.
    '73' is ASCII hex for "s".

    and, on the next line

    '69' is ASCII hex for 'i '.

    HTH,

    Tom

    Published by: Tom B on April 25, 2013 17:59

  • the numbering font size is not the same as the font size of text

    After generating the chm file, I noticed that some of the numbering sizes police were not the same as the font size of the text. Some of them seemed OK tho. For example, on a single page, it would be like this:

    font big.gif

    The numbers are greater than text. But on other pages, the size would be the same. What is the cause for this and how to fix it?

    Hello

    This is very probably a css problem, check the html code of your lists. My guess is that the 'correct' lists have a class list attached, while the "incorrect" lists are not and use the default settings of the browser for the font family and size of the police.

    Please send the HTML for a correct and an incorrect list.

    Take a bow

    Willam

  • vRA: identity device or vSphere SSO when there are multiple vCenters (each with their own SSO) in the environment?

    The installer: We have multiple vCenters each with their own SSO. We must build a minimum install vRA lab 6.1 and used the SSO to the vCenter which is the endpoint lab (and ended up having problems when this vCenter SSO had to be rebuilt and in turn liquid reconstruction vRA). Building on a vRA 6.2 Distributed Lab (based on deployment in the 6.1 reference architecture) to validate our production plan and decided to use the identity.

    Question: For a production buildout there is no reason not to use the device of the identity (scalability, performance, lack of HA)? If you are using vSphere SSO, when there are multiple vCenters one that should be used for SSO of vRA? If that vSphere SSO is never removed (say on the whole things are replaced by a central SSO for all vCenters rather than each on their own, or some issue needs to be rebuilt) is there a clean way to repoint SSO vRA without a reconstruction?

    Post edited by: RebeccaW (removed unrelated to Postgres question)

    What I did in this case is to build a fresh cluster SSO using vCenter SSO and pointing vCAC on this one. It becomes my main source of SSO and I slowly vCenters point and other components to it overtime. You usually put vCAC SSO signed certificates and generally I find people vCenter SSO deployment in this way. To remedy this trying to modify an existing SSO vCenters and risk having to reinstall your VC because you missed the CERT, simply create a new. This also alleviates a changing overtime vCenter and spoil the vCAC SSO. The unit of identity cannot be clustered or joining existing areas of SSO. So if you are looking for HA and scale which probably does not cut it.

  • In the Numbers worksheet - is - it possible to select or define a are to print?

    In the Numbers worksheet - is - it possible to select or define an area to print?

    Not like in Excel.  3 numbers is not nearly as print oriented like other spreadsheet applications (it is more suited to sharing via the cloud or on a Tablet seems old reports). Numbers is also designed for you to work in stand-alone tables rather than on a large tract of cells in Excel. You can organize your document so the part that you need to print is in a particular table.  Move this table on a separate sheet and print this sheet only.  To move a table, select it and click on the 'bulls eye' top left, command + x to cut, navigate to a new sheet that you have configured, command-v to paste.

    SG

Maybe you are looking for

  • Volume "grayed out" control - no sound Satellite P10

    Hi - I have a portable series of P10, PSP10E-0RCJM-EN. Don't know when or how this can happen, but recently my Realtek AC97 audio output stopped edge! It is recognized and installed when you look in the Windows Device Manager. However when you look a

  • Satellite C660-121 can not verify the recovery disk

    I bought a couple of days a go a new Satellite C660-121. Today, I went to do the recovery disks, but it fails to check the first DVD disc.The error I get is the followinghttp://img231.imageshack.us/i/failedcopy.PNG/ E:\ is the name of the DVD player.

  • Upgrade to ssd on t530 void my warranty?

    Hello Lenovo discussions. I recently ordered a crucial m500 to my new t530, still under warranty. The new ssd will void the warranty I have? Thank you

  • Windows 7 Enterprise N - cannot install the Media feature for 64 - bit Pack

    I tried to install the package of multimedia features for Windows 7 N, but it keeps saying that it is not applicable to your computer.  Why?  I search high and low and cannot find an answer.  I tried to download windows media player, but I can't find

  • Question on the GBA unit

    Hello I have never worked on the appliance before and wanted to know if the configuration of the device uses the same software as the vmware 5.1. I'm not able to find guides to the doc on the GBA unit, does that mean that the configuration guide woul