ADF EL comparisons

Hello

The ADF EL seems to make comparisons of text even when the values returned by the database are numbers.
So, for the expression:
#{row.i > row.j?} 'a' : 'b'}

If I have 100 = and j = 2, then the expression think 100 < 2 because in alphabetical order '100' is in fact < '2 '.

I tried
#{Integer.valueOf (rank. Days) > Integer.valueOf (row. StndProcTime)? '' : ''}
But its invalid syntax.

Any ideas?

My apologies for the n00b question.

Hey there,

Good question. It's something that doesn't come too often.

Depending on the data types, you can do the following:

#{row.Days.value > row.StndProcTime.value ? 'do_something' : 'do_something_else'} 

This will convert the oracle.jbo.domain.Number a java.lang.Long

The other thing to do, is of in the ViewObject (if you use ADF BC), substitute the attribute of a number type to a long. Then, you don't have to use .value in the EL.

-chris

Tags: Java

Similar Questions

  • The problem posed by comparison ADF!

    Hi all

    I have a problem when I try to compare dates between two VO a relationship master / detail. For the original Version of the child, in the date field I created a business rule and made higher than the VO - VO parent attribute. The problem is that (as told in the hind) date is dependent only on the first line of the parent company VO - ' Hint: first line attribute will be used for comparison.

    Can someone tell me why? and how can I fix this and make my child date depending on the date of its parent VO?

    Thank you

    OK, I'm sorry, I made a mistake in the ViewLink in fact, I'm connecting them in the opposite direction. Thanks a lot for your time, because you have helped me a lot!

  • 8710: 8710 double scan from the ADF

    Please help me understand if the HP OfficeJet Pro 8710 supports the double scanning from the document feeder. In http://www8.hp.com/h20195/v2/GetPDF.aspx/4AA6-4026ENUC.pdf , is the line: "breeze through with double scanning multipage documents and an automatic C1900 of 50 pages (a single pass double scan 8730/40 models).  How is - a scan a stack of documents recto / verso on a 8710?

    For comparison, consider how the 6700 manages.   (A) on the computer, open "Scan HP."  (B) select "ADF." (C) place a check next to "Scan both sides (duplex).»  (D) place up to 20 originals in the document feeder.  (E) click on "search". (The ADF feeds the originals in the scanner.  On the computer, a pop-up scanning HP says: "prepare to analyze the other pages of your two-sided document.  To analyze the other side of pages 1. Remove the pages from the output tray.  Do not change the order of the pages.  2. without turning the pages at the wire, turn and place them in the document feeder according to the landmarks of placement on the device. 3. click OK when you are ready. ") F) after placing the originals rotated in the document feeder, click on 'OK '. (The HP scanning software stores the scan on your computer.)

    @gregspinney

    The technical data sheet information in small print:

    3 the single pass 50 sheets, ADF automatic duplex is available with only models 8730 and 8740. 8710 and 8720 models have an ADF 50 sheets of double mechanical

    While scanning two-sided "single pass" is not available on the 8710, it should provide an automatic duplex scanning.  The leaves should go through the printer, print one side, flip and scan the second side.

    Printer:

    All-in-one printer, HP OfficeJet Pro 8710 range

    Full software features:

  • ADF Vs other Frameworks Java?

    Hi guys,.

    Do we not have any available comparison table using which I can convince the customer as to go to the ADF for all Java application development custom.
    I use ADF to last 4 years so well versed with its strong points, but still as you know that we have need of comparison and stats to leave a strong impression.

    See you soon,.
    Kamal

    John is right (John, seems to agree with you a lot now!)-sometimes (unfortunately) decisions can be based purely on an agenda protectionist (is a spring, for example, guru will say, 'hell, Oracle there guys are nailed then I recommend ADF, and I guess I'd better go now because I'm more the $1000 per day expert!).

    That being said here is a few points to consider.

    (1) the Big Picture - comparing ADF frameworks would be like comparing a car to a transmission. The gearbox does only one job and if you want a motor to source who besides and make working with this gearbox - oh, and you want direction, is another solution, you should bolt on... is your favorite engine really designed to work with this gearbox?
    The point is that ADF is a framework for end-to-end - if you do not have to spend huge amounts of effort and time to manufacture of every bit of work together.

    (2) its development is determined by level applications company - it's not as long as other executives are not, but the fact that Oracle has bet the mortgage on ADF is at the heart of his requests for merger as well as its products as Web Center, BPM, Business Intel, Enterprise Manager etc etc. The requirements of these applications drive innovation in the ADF. I think that the fact that the ADF is such a core in the ecosystem of the ADF has its own advantages with regard to the development community, support, guarantees.

    (3) as it is driven by real business applications, it solves the problems of real-world applications. Multi-channel deployment, internationalization, personalization, security etc. etc. There are features that are all integrated in ADF - don't always get you that with a framework that focuses on a specific technical problem.

    4) associated 3 points above, other Oracle products are built to work with ADF (or top). So, if you want a solution of treatment of activities (such as BPM) so this isn't a different battery technology to get this working with your ADF applications - this is the same pile.

    (5) productivity. Again, this can be subjective because if you're used to spring for example development, then you can be more productive in that - but we have testimonials from clients tell us that they were 30% more productive with ADF that .net - this point asside - producitivy was one of the key requirements of our own development of Fusion teams when we were building ADF - if we could do even 10% more productive, then it's an extremely positive quality for development teams.

    Those are the types of points you're looking for?

  • How change value of adf.currentDate Date Format change

    Hi all


    I try by default a variable to bind a SQL query by default Date VO. I used adf.currentDate in the default Expression of the bind Variable.

    the expression returns the value in the format 'YYYY-MM-dd', but the format required for the binding variable is "MM/dd/YYYY".


    I can have any groovy expression that allows to change the format or should I have to do this programmatically?

    Please help me with an idea / code snippet.

    Thank you
    TK

    Published by: 803641 on October 25, 2010 11:50

    What type is your variable binding (it seems to be a String/varchar) - If you do date comparison in the database, you must use date comparisons. Assuming you are trying to compare a column in the database, you can use something like:

    where your_date_column = to_date(:bind_var, 'YYYY-MM-DD')
    

    If you really need to get a string in the format MM/DD/YYYY, you could:

    to_char(to_date(:bind_var, 'YYYY-MM-DD'), 'MM/DD/YYYY')
    

    John

  • Firefox (windows XPsp3 39.0.3) does not load a product comparison, IE will!

    I tried one compare products on the website batterychargers.com and load Web site pages, I've tried except when I selected items and you click on compare, I got the title of the page, but with an empty window to compare. I copied the URL in IE8 and loaded the page to comparison very well. Here's the url:

    http://batterychargers.com//compare/1288/1290/1291/1326

    Clear cookies and cache did not help.

    When I loaded this page, all content under the word 'RETURN' was pressed to the right, and I have to use the horizontal scroll bar to see. Or zoom out (Ctrl-) several times to reduce it.

    The reason for this problem, because as far as I can tell, is that the BACK bar is launched, and while other browsers do not see a way to squeeze the comparative table in the end of this bar, Firefox works. There are different ways to solve this problem in Firefox for the author of the page, but they are not practical for visitors to the site. So for now, using the horizontal scroll bar is the best workaround.

    But if you're curious...

    For example, the site may add this to its style rules:

    .ComparisonTable {
        clear: left;
    }
    

    If you want to inject that into the page to test, you could do this:

    Select and copy the following script:

    document.querySelector(".ComparisonTable").style.clear="left";

    Open the web console under the page by pressing Ctrl + Shift + k or by using the menu Developer.

    Paste the script into the bottom beside the circumflex accent (> >) and press ENTER to run it. The comparison table should immediately engage.

    You can then close the web console by pressing Ctrl + Shift + i or by clicking the small x in the upper right of the console toolbar.

    Unfortunately, this is a one-off hack and you should do whenever you view a comparison, so I hope that the site will fix it. You could try to mention it to them; You can link to this discussion.

  • When Windows starts, it starts also Mozilla and an adf.ly page appears.

    I myself Adf.ly Skipper, but firefox always starts with windows and ot adf.ly it load Google.com. All - tried reset firefox, anti-virus, backup even my computer. I'm never mozilla start with windows or install adf.ly or anything... What can I do else? Help!

    If you change your browser by default for Internet Explorer, the page opens in Internet Explorer the next time? This would be the common model for external pages, they are targeted on the default browser.

    Microsoft has a utility named autoruns, you can use to see what is configured to run at startup (opening session): https://technet.microsoft.com/en-us/s.../bb963902.aspx. I hope that this will help in tracking it.

  • Is there a MF head-to-head comparison and that's to say, the more recent the better.

    I need a feature by feature comparison between Firefox and IE Ms. The more recent the better, but I can take an older Firefox and IE10. I need this at sea 04/30, so please help!

    http://www.TechRadar.com/us/news/software/applications/best-browser-which-should-you-be-using-932466

    http://www.PCMag.com/Article2/0, 2817,2365692,00.asp

    http://tiptopsecurity.com/safest-Web-browser-chrome-Firefox-IE-Opera-Safari-comparison-chart/

    http://www.gHacks.NET/2014/01/02/chrome-34-Firefox-29-Internet-Explorer-11-memory-use-2014/

  • OfficeJet Pro 8620e ADF jam error after firmware update

    After you install the updated firmware from the touch screen of the printer, the printer restarts and now has an error that says "Original is caught in the ADF (ADF).  Open the cover of the ADF, remove and reload the original, then try again. »

    I went through all the steps to clear a jam from the ADF, but the opinion is persistent.  It is not (and was not before the upgrade) in the ADF at all.  Since this coincided with the update of the firmware, my suspiscion is that the firmware has not installed properly or something.  What am I doing here?

    This problem has been resolved using the printer instead of purchase and exchange for another.  I can hardly believe that the cables are working loose within two weeks, she was detained and then broke at the exact time that the firmware update has been completed.  In any case, the problem was solved by replacing the printer.  I don't have any feedback solutions until a month after I did.

  • How can I remove, I believe that it is a virus named "adf.ly?

    Hi guys. I hope someone can help me.

    Both of my browsers, Safari (main) and Firefox work very badly and every time that I tried to open what used to be my 'homepage' (www.uol.com.br), a strange page opens instead (in both browsers) with the address "*: / / adf.ly/noscript.php?t=js. I looked all around the internet to learn how to get rid of him that drives me crazy. I think that it is a malware. Please help.

    Thanks in advance.

    PS: Guys, I found that Safari it does not work well. I have been in this community write this post and the text was inserted in white color and I could see it if I select in the box, I came to Firefox to do this post.

    < link published by host >

    Fixes for Adware and pop-ups:

    1. Malwarebytes
    2. 2.11 DetectX
    3. Remove the adware that displays pop-up ads and graphics on your Mac
    4. T stop advertising windows pop-up and adware in Safari - Apple Suppor
  • OfficeJet Pro 8600 Plus ADF problems

    I have a new machine.  Everything seems to work fine, except the ADF.  Whenever I try to transmit documents in the ADF, it tells me that there is no jammed paper and there is no.  It is brand new.  I tried to turn the slot and turn off machine, unplug the power cord for 30 seconds.  I can scan and copy from the glass, but not from the ADF.  I tried a leaf up to 20 sheets with no luck.  Please help, the ADF file is very important that I am able to use it.  Thanks in advance!

    Hi, DCI,.

    Follow the steps outlined in the document below and let me know what you find?

    http://support.HP.com/us-en/document/c01728503

  • When I scan documents with HP Photosmart 7510 ADF, how can I stop the pages to be marked?

    Hello

    I use a HP Photosmart 7510 (model No. C311a, product no. CQ877B)

    When I scan documents using the automatic document feeder, they are more often (80%) marked left.  It seems to be caused by the wheel which initially grabs the book.  It provokes a black spot of the width of the wheel to be left on the page.

    The mark appears about a quarter turn to the bottom of the page and is about 1/2 cm in height, but is very sensitive.  Sometimes, another brand is left a little further down the page and sometimes these two brands are accompanied by a very reduced, but still noticeable grey banner (again I believe caused by the wheel).

    The brand is very visible not only on the scanned now but also (of course) in the pdf file that result, and since I'm on this printer for things like job applications, it's not big.

    Other people know about this?  If Yes, is it possible to fix it or must return the defective printer?

    See you soon,.

    silverShnoop

    Hello silverShnoop

    Such problems can sometimes be caused by dirty rollers or the parts of the ADF (automatic document feeder). The following instructions (whereas for a different problem) contain instructions for the cleaning of the AAD.

    The ADF (ADF) captures no paper

    There is another article that could help as well. It contains instructions for cleaning the scanner glass.

    Vertical stripes, lines or streaks in the Copies or Scans

  • Comparison sites. When using clicks to visit the third-party pages, Firefox 4 does not and displays "1x1.gif" tab? Was not a problem in previous versions. I use Windows 7. Explorer works very well.

    Happening often on click advertising. Too many sites to the top, but today it happened on thisismoney.com. Choose a comparison of credit cards, then click on apply. Pages won't load and giff of 1 x 1 appears in the tab? Don't not like unrolling of the top of the box to the right any mouse move creates alamost a strobe effect of options!

    Some firewalls like Kaspersky can block content and send a GIF 1 x 1 instead.

    Kaspersky: Protection > firewall > Filtration System: disable the banner "Ad Blocker".

    See:

  • OfficeJet Pro 8500 a: ADF not recognized in the scanning window

    I had to reinstall my 8500 and the ADF show up as an option in the HP scan window. The charger works in copy mode. I reinstalled using the original disk shipped with the printer and have also tried to download the software and latest drivers.

    Scanner works fine using the glass, but I can't use the ADF. I uninstalled the printer and reinstalled several times.

    Any ideas?

    Hello

    Thank you for using the HP Forums.

    You can try this alternative software:

    HP extended Scan

    FTP://FTP.HP.com/pub/scanners/HPScanExt/HPScanExt.msi

    Once it has downloaded and installed, go to start > all programs > HP > HP Scan extended > Run "HP Scan extended.

    Make sure that when you scan, the 'Source' is selected as 'Use if loaded document feeder' using the ADF.

    Let us know if it works.

  • Looking for a file comparison tool...

    I'm looking for a file comparison tool / app.  By the image below, I want to clarify two folders (folder A and folder X) and then have the app compare all files in both folders and their respective subfolders.  What is important, I want the tool to ignore the names of file in the comparison.  In the following example 03 file exists in the two top-level folders, so should not be reported as a difference, even if it resides in subfolders named differently.  A tool that will do anyone know?  THX

    The Finder, choose utilities go to menu, open the Script Editor and run:

    Tell application "Finder".

    Set to name of every file in the folder files_1 "path: to: A notebook."

    Set to files_2 name of every file in the folder ' path: to: X folder.

    the_string value "files only in the first folder:" & return "»

    Repeat with this_file points of files_1

    If files_2 does not contain this_file then the value the_string the_string & this_file & return

    end repeat

    the the_string the_string value & return & "files only in the second folder:" & return "»

    Repeat with this_file points of files_2

    If files_1 does not contain this_file then the value the_string the_string & this_file & return

    end repeat

    items 1 thru-2 of the_string the_string value as string

    tell the end

    (140734)

Maybe you are looking for

  • hreff works in IE but not in Firefox

    I use in my HTML css and absolute positiioning. I just added 4 new points, and they do not show the 'hand' when the mouse passes over it. In Internet Explorer, they are OK I can give you the address of the page you can see the problem betterThank you

  • P1102w: p1102w utility of the printer not opening

    I just download for OS X Yosemite and my printer will not work wireless.  When I go to open the printer utility to verify my wireless settings, that it does not open.  Can anyone help with the opening of the button utility printer so I can try to sol

  • T420 graphics update

    Hi guys,. I am interested in the development of 3D models and animation using Maya as well as delve into the design of games using Unity 3D. I already had licenses for the two programs installed on my T420. However, Maya tells me that my graphical ou

  • OE6 - of xp sp3 - cannot 'find' a message

    OE6 function "find > Message ' (Ctrl + Shift + F) doesn't work on my xp sp3 machine. When I enter a search term (for example, an e-mail address for an article that I KNOW is in my Inbox), I get nothing. I created a new identity and import my AddressB

  • When I turn on my computer it shows various bad bowes, saying refer to floppy

    images are displayed saying that is googletoolbar.bad image see floppy... its all sorts of bad picture display boxes? don't know if its in my hard drive or what?