How to combine two conditions: there is and point not null?

Hello!

I have a flash chart area I would like to show only if two conditions are true.

The first condition is the following:

There are (at least a line returns the SQL query):
select 1
from    observatoire.fiche aa, observatoire.activite_faite bb
where   aa.fiche_id = bb.fiche_id
and     bb.fiche_id = aa.fiche_id
AND     bb.activites_id = TO_NUMBER(:P23_ACTIVITES_ID)
AND     TRUNC(aa.date_activite, 'YYYY') = TRUNC(TO_DATE(:P23_ANNEE, 'YYYY'), 'YYYY')
And the second condition would be:

Point not null:
P23_ACTIVITES_ID
How to combine these two conditions in one display condition?

Thank you.

Christian

Hello

The problem is that you do-

TO_NUMBER(:P23_ACTIVITES_ID)

When you leave the value of Null return like this, you will see "null %" generally used in session state (i.e., it is not actually null). Of course 'null %' cannot be converted to a number, from which the error you see.

A simple solution would be to make your value null return value-1 or another value that is guaranteed not to be a piece of identification (and alternative is to convert the real null null % thanks to a process of App/Page etc (if you search this forum you will find a few examples on how to do this).) Another alternative is to use a DECODING to detect the '% null' etc.

Hope this helps,

John.
--------------------------------------------
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

Tags: Database

Similar Questions

  • How to combine two effects: relaxation & target and drag images

    Hello world! I want to create a menu exactly like the one on this page: http://we-new.com

    I know how to do these two effects separately (drag images and make the text appear), but can't grow at the same time I'm flipping the image. It only works the effect that is in the top layer, an idea on how to make them work together? Thanks for your response!

    Hello

    You can achieve this by using the ToolTip Widget in the Muse. Use the fill option to fill the tank of relaxation with an image and then use the 'States' option and fill the tank with a picture different on the rollover State (and Active).

    And you can insert text into the target container.

    Please take a look at this short video I created: http://trainingwebcom.worldsecuresystems.com/SachinFTP/2013-07-04_1351.swf

    I hope this helps.

    Kind regards
    Sachin

  • How to combine two tables: table of origin and its values of interpolation table

    We get a new array of values after using the interpolation on a table function in labview, but how to combine the array of values and this original interpolated set of values in a single table?


  • How to combine two video projects in Windows Movie Maker?

    How to combine two projects?

    I started a project and I would like to import and more old project to combine.

    I guess that you are referring to the project .mswmm files?

    The following steps may be worth a try:

    Reach... File / open project... Select a project file.
    When the project appears on the timeline... go to...
    Edition / select all.

    Open a different project... to... Editing / paste.

    Now the content of the two projects should be on
    the chronology.

    To add more doing the same thing...

    Edition / select all... open a project... Editing / paste

    Another method would be to publish (save) each
    the project in film WMV format and then re-import
    both WMV clips and slide both to the
    timeline. Then, you could publish it as a simple video.

  • How to combine two annexes to function as one in a single file

    I don't know how to combine two calendars in a single file. I want to eliminate the process of selection of the two annexes and pulling them upward at the same time. They need to exist as a single file. I do this using the export and import function? Copy paste perhaps? Your help will be very appreciated.

    Thank you

    You can export a calendar in a SET, then import it back and add, in the second schedule. In order to develop more... you have two appendices A and B. Export to a file SET. Open B, then import the x from A to B. Under Options project to import in the import, import action Wizard, choose Add in the existing project.

    I hope this helps!

  • combine two conditions

    Hello

    I want to combine two conditions. For example:


    var a = this.getField("ComboBox").value;
    var b = this.getField("ComboBox1").value;

    If (a == 1, b == 1) this.getField("Text").value = "1";
    If (a == 1, b == 2) this.getField("Text").value = '2 ';

    ...

    If (a == 2, b == 1) this.getField("Text").value = '3 '.
    If (a == 2, b == 2) this.getField("Text").value = '4 ';
    ...

    ...

    where is the problem?

    Is

    If (a == 1 + b == 1) this.getField("Text").value = "1";

    right?

    Thanks in advance for helping me!

    If (a == 1 & b == 1)...

    etc.

  • How to display two documents side by side - PDF not stacked?

    How to display two documents side by side - PDF not stacked?

    In the Acrobat preferences turn off the display of the tabs.

  • How to combine two or more projects into one

    I have about 11 months of video editing experience. I started with a Sony HDV Handycam (tape) and now use a different Sony Handycam it has internal memory.

    I've upgraded to faster and more powerful computers (3 times in the last year). I have 3 computers - one with an Intel i7 64 bit running windows 7, a second with Intel core 2 Quad running vista 32-bit and Intel core 2 duo laptop running Windows 7.

    I have two editing Corel Video Studio Pro X 2 and first Adobe Elements 8 applications. Each came with the strengths and weaknesses.

    I am disappointed by Adobe regarding how to merge two or more projects into a master project. Working with large video projects is not what I like to do. Ten to 15 mins projects are my favorite length. However, when it comes to burn a DVD and adding projects to the list (this can be done in Pro X 2), I seem to be stuck with burning a DVD separate for each project of first Elements 8. This isn't the way to go if I do work for a client and they want just a DVD.

    I read on a forum and tried to convert an AVI to each project and then inserting each AVI file in my 'master' or final project timeline and then burn a single DVD. This principle works, but the quality of video playback (especially when the subjects are moving) is not acceptable. The edges are saw teeth and the overall quality of resolution is downgraded from the original AVCHD video from Sony handycam camera.

    Not to be too negative on creative adobe 8 elements, he did a great job of editing and burning to DVD with original AVCHD files direct the camera (pre-AVI conversion). I am very satisfied with this part of the application.

    I wish just that I don't have to save or convert each project separate adobe for AVI files in order to combine a number of projects.

    By the way I set up a project that had three blocks in the video (20 seconds) still subject (in this case roses growing in the garden in broad daylight) one block was directly from the camera format AVCHD, one was an uncompressed AVI file is using the options to 'share' in Adobe and third block is a done compressed AVI file also using 'share' in adobe. It was very clear to me that the AVI files are down on the quality of the original AVCHD file of the camera (only slightly better than the compressed AVI uncompressed AVI).

    AND other trouble, it was AVI files reduced the size of the image (same proportions 16:9) and that was disappointing on a HD screen. AVCHD met clear and clean and filled the screen on my 42 '' HDTV files.

    If anyone has had the same problem and can you please help with the concerns that I have.

    Thank you very much

    Paul Hodge

    The possibility of using the individual sequences, when you edit a project, is a force of PrPro. However, there is a difference in price between the two programs. You have to ' get something for your $, right? Personally, I created my PrPro sequences like "chapters" change like that and then export each sequence import into Encore to create.

    Pre, Steve to edit a project and then export as DV - AVI, technical for import in 'the master' project for the creation of final on DVD, is the best method. Were I not also on PrPro, this is exactly what I would do. It works perfectly. When all is said and done, there are no other measures, as for me, using PrPro and again. PrE was capacity-building, albeit somewhat limited, if a user does not need to transfer AV files to another program (in my case).

    Good luck

    Hunt

  • How to combine two separate lists of bookmarks?

    Under view-> sidebar-> bookmarks there are a list of L-O-N-G files and bookmarks for individual sites.

    There is ONE ENTRY for "Bookmarks Menu" and following that are TWO independent lists a set of folders and individual bookmarks, and THEN a SECOND set of records is followed by another list of individual bookmarks. None of these sets entries are duplicates of each other.

    How can I merge the two of them, while I have a set of RECORDS, followed by a set of INDIVIDUAL bookmarks - that I can sort the entire list in alphabetical order?

    Currently, when I right click on the Menu "bookmarks" I show options that include choosing "sort by name". When I choose "Sort by name" * ONLY * the first set of RECORDS & INDIVIDUAL bookmark entries are sorted in alphabetical order.

    Ideally, I would like to have the TWO lists be merged and sorted.

    How it happened (the existence of two sets of RECORDS & INDIVIDUAL bookmark lists) I don't know.

    Your help, anyone, help is greatly appreciated.

    Thank you!

    If you sort the folder Menu bookmarks, all the bookmarks below that will be sorted to the extent where a separator - a horizontal line. Remove the separators to fix everything.

  • How to combine two user accounts

    I created a user account on my new MBP (os x 10.11.3) before using the migration assistant to transfer the data from my old MBP.

    Now I have 2 user accounts I need to merge into one

    Any advice for how to fix the welcome.

    THX & br - gerhard

    lookie here

    Combine two + accounts on the same machine

  • How to combine two picturesinto one

    I have 2 photos of people and I would like to combine them into a single image

    Hello

    PhotoShop (Adobe) and PhotoPlus (Serif) will allow that and both have communities of support
    and support forums. Of course, these are commercial programs.

    Here are some free ways to help:

    How to combine multiple Digital Photos into one
    http://www.Dummies.com/how-to/content/how-to-combine-multiple-digital-photos-into-one.html

    Check in the Forums of IrfanView.

    IrfanView - free (also get Plug-ins)
    http://www.IrfanView.com/

    IrfanView - Forums
    http://IrfanView-Forum.de/Forum.php

    This research should help to:

    Bing - Vista combine photos
    http://www.Bing.com/search?q=Vista+combine+photos&QS=n&Form=QBLH&PQ=Vista+combine+photos&SC=0-0&SP=-1&SK=

    Google - Vista combine photos
    http://www.google.com/#hl=en&sclient=psy-ab&q=vista+combine+photos&oq=vista+combine+photos&aq=f&aqi=g-v1&aql=&gs_l=hp.3..0i15.2387l9500l0l9943l22l17l1l1l1l0l2003l15023l2-5j2j6-4j3j2j1l19l0.llsin.&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=50aeccfec5fc8449&biw=1024&bih=713

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How to combine two accounts administrator an administrator account?

    I have images and documents in two accounts different administrator (one was mine and the other was my ex-husband now). I activated the photos to share with other administrator accounts. I would like to remove one of the accounts without loss of images and documents. How can I do this safely?

    Hello

    Make a NEW ADMIN account with your password even to use to test and correct with right now. He is a 3rd account
    who will not normally be used or contain actual data. Always keep an unused ADMIN to test and difficulty as
    necessary. (This is not compulsory but is very careful to do.) This account can be the one that you use to migrate
    the data you want to keep his account to your own.

    Simply copy the files you want to keep the account you want to use.

    If you really want to get inside this method fully and pretend that his account is the corruption and yours
    is the new (don't forget your account is already created and do not delete all the data in it).

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Windows Mail - Vista - how to delete mail that is "stuck" and are not sent? Outgoing mail is connected to the top and I can't erase it, delete the mail.

    Foolishy I tried to send two videos through Windows Mail - Vista - I guess they were too large and will not, can not send - I would like to delete the mail and clear the path - I can't understand how do - "Server: smtp.att.yahoo.com - Protocol: SMTP Server Response - 421 Service not available - transmission - closing Port: 25 No. secure (SSL) Server error." ': 421 error number: 0x800CCC0F "is the response I get.

    You archive files. Work in offline mode? You should be able to see and open the Outbox always.

    If all else fails:

    How to remove an Undeletable Message stuck in Windows Mail
    http://www.Vistax64.com/tutorials/62560-Windows-Mail-problems.html

    If still no joy, try to compact and repair the database.

    WMUtil
    http://www.oehelp.com/WMUtil/default.aspx

  • How can I do 1 d array and pointer to place an acquired image?

    How to make a 1 d table and create a pointer to the first position to put an image in?  I thought that's what I did (see picture) but continue to get an error of 1097, probably due to the incorrect memory allocation.  I have the size of the image in bytes and a string, will call a dll and am pretty sure that is not what is causing me problems.  However, the pData is supposed to be a pointer to the first element of a 1 d table which is the width in pixels * height.  I read on the website of LV table of the image I did look like a 2D array, but is actually a 1 d array and that the pixel pointer points to the first element of the array.  Is it not the case?  Thank you.


  • How can I fix defender of windows with pointer not valid error 0 x 80004003

    How windows Defender ifix with pointer not valid error 0 x 80004003

    Hello

    ·           When you get this error message?

    ·           You have security software installed on the computer?

    Step 1: Temporarily disable the security software and check if it makes a difference.

    Disable the anti-virus software: http://windows.microsoft.com/en-SG/windows-vista/Disable-antivirus-software

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

Maybe you are looking for

  • Satellite L500 - black dots on screen

    I have a Toshiba Satellite L500 - 1UU I bought 4 months back... started to notice black points remaining black around different parts of the screen about 7 of them... they are fixed performances on the whole light especially on white background... to

  • When already connected to wifi, why my phone continue search for networks?

    My phone is connected to a wifi network.  When I go into settings, the wheel of 'research' comes and turn off every 10 seconds or more. as if he's still looking for other networks.  Is this normal?  Should I use the battery life?  If it can be cut, h

  • Re: How to upgrade the memory on Equium U300-15I

    I've searched the forums and yes I found the son with Assembly instructions, but I do not have a manual for my laptop bought recently renovated.My problem is to determine which cover to locate the memory slots. I have 4 GB custom which should arrive

  • Apple tv 4 buffering on itunes

    Apple tv 3 goes buffering movies very well from my computer but apple tv 4 stop the movie all the time. I'm wired directly to my home router with the two apple TV and my computer. I ran some new cables cat6 directly from the computer to apple tv 4 an

  • Yokogawa WT210 do interact with LabVIEW (or anything else)

    Hey all,. I have a wattmeter Yokogawa WT210 I'm reading from.  I downloaded the Yokogawa drivers for Labview device built into the finder driver instruments and can pull up examples.  I also have the appropriate wiring (DB25 to DB9 to USB) who works