Need clarification for the code below:

Hi all

On the one hand of my requiremnet, I found a solution that worked as expected... But I was not able to understand the logic... Can someone explain me the below
the syntax what exactly the meaning for the code below:


Code:

SELECT NULL
Of apex_application_page_ir_cond cond
WHERE cond.application_id = v ('APP_ID')
AND cond.page_id = v ('APP_PAGE_ID')
AND cond.condition_type = 'filter '.
AND cond.condition_enabled = 'yes '.
AND cond.report_id = (SELECT report_id
Of apex_application_page_ir_rpt
WHERE application_id = v('APP_ID')
AND page_id = v ('APP_PAGE_ID')
AND application_user = v ('APP_USER')
AND report_type = 'SESSION '.
AND TO_CHAR (session_id) = v('SESSION')
AND report_name IS NULL))


For your refernec, I am attaching the link too
URL: Re: Interactive_Report with the search only bar



Thank you
David...

David,

Two things. First, it makes it much easier if you put '{code}' (without quotes) around your SQL when you publish:

SELECT rowid "EDIT", attr_code,ATTR_ATCL_CODE "Atcl Code", attr_description, attr_atcl_code,
                attr_abbreviation,
                attr_include_short_desc "Include short desc",
                attr_include_long_desc "Include long desc",
                attr_attr_type "AttrType", rowid "DELETE"
           FROM t_new WHERE EXISTS (SELECT 1 FROM APEX_APPLICATION_PAGE_IR_COND WHERE APPLICATION_ID = :APP_ID AND PAGE_ID = :APP_PAGE_ID AND CONDITION_ENABLED = 'Yes'
AND APPLICATION_USER = :APP_USER) ORDER BY attr_description;

If the spacing still needs work, it is a little easier to read.

Second, your query exists clause checks just a State on, without checking the condition type. Without checking, I guess either APEX creates at least an inner State, or that your IR has a default condition on it (other than a filter). Try to add the constraint condition_type to your where clause to see if that solves it.

Also, I noticed that you don't have additional code to get the report_id. It should not be necessary, because there are currently only supported for an IR by page, but you asked what are the differences.

-David

Tags: Database

Similar Questions

  • I'm not referenced entity Ref... ends with a delimiter ';' for the code below

    < mx:Image click = "{navigateToURL (new URLRequest (" http://www.facebook.com/group.php?gid=149134532537 & ref = ts"))}" >

    You must use XML entities for certain characters in MXML. In your case, you cannot use '&' directly: use "&" instead.

  • ICloud Keychain how can I change the phone number needed to verify the code text for me? The number it was sent is an old phone number of my friends that I do not have access to the.

    ICloud Keychain how can I change the phone number needed to verify the code text for me? The number it was sent is an old phone number of my friends that I do not have access to the.

    Try this from another thread I saw.

    On iOS, go to settings > iCloud > keychain and tap button to disable iCloud keychain. (you will be asked to delete or keep the passwords on device) I chose to delete...

    Then turn it back on, and pop - up chose reset iCloud trousseau, on a chosen pop-up confirmation reset

    In the new window pop up use iPhone password like iCloud cryptogram? has chosen the use code

    Enter your secret code (4 digits) then choose country and your new phone number

    Although, to "Restore the iCloud Keychain," I took to erase the data and essentially set up a new keychain.  Not the case.  Strangely, after essentially bypassing the security system, setting a new password and verification number, I see my cards, passwords and other data have been restored.  Maybe it's all the iCloud account and this master password.  Or maybe it's a bug.  With Apple, we'll never know.

    Also have a look here: get help using iCloud Keychain - Apple Support

  • Guard application launch at the start of the appliance, also need advice for the implementation of network methods

    Hi all

    I'm new to the development of Blackberry and I'm writing a relatively simple application to run on 7.1.

    So far the development was interesting, I managed to create my user interface using resources online (mainly this forum), but today I tried to implement some of the network classes that I need and now I just met constant problems.

    I use Eclipse SDK 3.7.2 (the one that comes with the plugin RIM)

    First question:

    I'm not sure what I changed, but today I noticed that whenever I start the Simulator (by sim 9360) my application is started during the initial startup process. I don't think he did this before, but to be honest, I wasn't paying much attention. I think it starts at the start of the device is because I put a breakpoint in the constructor for my class from the main screen, which is hit before the Simulator happens even to the point where it is ready for user interaction. In addition, once it is ready, if I press the BB button, I see my registered application.

    I don't have it set to automatic start in .xml descriptior enforcement.

    I started this application on the HelloBlackBerry sample, here is my main method for the entry of the application:

    public static void main( String[] args ) {
            appSettings = AppSettings.fetch();
            // Create a new instance of the application and make the currently
            // running thread the application's event dispatch thread.
            HelloBlackBerry theApp = new HelloBlackBerry();
            theApp.enterEventDispatcher();
            //openConnection();
    
        }
    
    
    

    As far as I know, this is the only entry point for the application.

    More code

        public HelloBlackBerry() {
            // Push a screen onto the UI stack for rendering.
            mainScreen = new ScreenHelloBlackBerry();
            pushScreen( mainScreen );
        }
    

    Here is the method of. my class AppSettings fetch()

        // Retrieves a copy of the effective properties set from storage.
        public static AppSettings fetch()
        {
            AppSettings savedSettings = (AppSettings) _store.getContents();
            return new AppSettings(savedSettings);
        }
    

    Some of this code that I wrote myself, the persistence store cause the launch of my car?

    I tried to reset the Simulator to the factory settings, no change.

    All applications initialized during the startup of the device and then closed shortly after?

    Part 2: Need advice for the implementation of functions of network in the application

    I need to implement some methods that will retrieve data from a web service, and I also need to send data to this service. What I've read, the ConnectionFactory is the way to go. I want my application to make a request when the application is open and can check on a set interval. I didn't know exactly how to go about adding another thread for networking, I understand that network connections should not be created on the thread main event, so I tried to do this:

    The constructor of my class that implements screen (ScreenHelloBlackBerry), I use the following to create a modal dialog box to prompt the user for a username, I also try networking wire in the same segment of spawning:

            public ScreenHelloBlackBerry(){...initialize fields and managers, add it all together...then near the end
    
    //This will open the confirm dialog when the application is launched
            UiApplication.getUiApplication().invokeLater(new Runnable() {
                  public void run() {
                      openConfirmDialog();
                    //start connection - Possibly broken
                      ConnectionThread ct = new ConnectionThread();
                      ct.start();
                  }
            });
    

    I don't know if it's somehow OK to do, but it seems to work for what I need. I want a user who launches the application at the prompt, and if a user switch applications, when they come back they wondered again (unless they close the app and reopen it).

    Here is my ConnectionThread:

    public class ConnectionThread extends Thread
    {
    
        public void run()
        {
    
              ConnectionFactory connFact = new ConnectionFactory();
              ConnectionDescriptor connDesc;
              connDesc = connFact.getConnection("http://www.google.com");
              if (connDesc != null)
              {
                  HttpConnection httpConn;
                  httpConn = (HttpConnection)connDesc.getConnection();
                  try
                  {
                      final int iResponseCode = httpConn.getResponseCode();
                      UiApplication.getUiApplication().invokeLater(new Runnable()
                      {
                          public void run()
                          {
                              Dialog.alert("Response code: " +
                                            Integer.toString(iResponseCode));
    
                          }
                       });
                      httpConn.close();
    
                   }
                   catch (IOException e)
                   {
                     System.err.println("Caught IOException: "
                          + e.getMessage());
                   }
              }
        }
    }
    

    At the moment it has basically unmodified code from a sample that I found, I'll be retooling to meet my needs whenever I can make it work. I HAD this work to the point where, after the closed user confirm this dialog, a few moments later a an alert dialog appears with the 302 response code. I don't know what changed, but now it doesn't work at all, and if I try to scroll with the debugger, I can't past the httpCon.getResponseCode (). I've seen some mistakes earlier on "no record of service was set up", and I also had once a timeout exception.

    I'm sure I'm doing this wrong, but at the same time as I said WAS working, and now it is not. If someone has done this far, thank you very much for your time and advice are much appreciated.

    Also, should I try to start the thread of the network of the UIApplication class instead of the screen? There is currently very little happening in the class that extends UIApplication, do I spend most of my business logic out of the class of the screen and in the UIApplication class?

    Thanks in advance!

    Hi all

    Just to conclude this topic for those who are interested, I found an excellent guide to the implementation of networks in applications of BB, click here for a link.

    About my application being started at the start of the simulator of the device, I found that on a device real this behavior is not complied with, and in addition, the behaviour seems to have stopped after uninstallation and reinstallation of my Simulator.

    See you soon,.

  • How to set remote spaced further icon to display more text for the name below?

    Windows 7 desktop has many icons with similar names. I want that name under the icon. How to set remote spaced further icon to display more text for the name below?

    Right-click on the desktop and select Personalize.

    Select the color of the window

    Select the appearance settings advanced.

    Select the drop down next to the element

    Go down and select icon spacing (Vertical)

    change spacing next to size according to the needs.

  • Apply for a leader for the Code Mode

    This is a link to a picture of what I am referring.

    I'm not quite sure where to post a request for a future addition of functionality of Dreamweaver. More a change of function.

    I would find really useful to be able to use the rule at least in the upper part of the document you are currently working in mode 'Code'.
    Is there anywhere I might be able to make the request? Or y at - it a way to make the opportunity to use it in mode code? Because right now, the option is grayed out unless you are in "design".
    The link to a picture of what I am referring is displayed above.

    Any help would be greatly appreciated.
    Thank you and keep up the excellent work.

    Best wishes
    Amber.

    envision3d wrote:
    > Why would you need a rule for the code?

    Also, I can't see the value, but if the OP wishes to present a feature
    request, the correct way to do it is through this form:

    http://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

    During the presentation of this unit or any other application, add a brief explanation of
    Why the feature is desirable.

    --
    Adobe Community Expert David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • need drivers for the following!

    need driver for the following equipment. in fact, it shows as unknown device in my Hp probook g1 450 4th generation i5.

    ACPI\HPQ6007
    * HPQ6007

    I would be happy if you please give me the link of the drivers.

    You need HP 3D DriveGuard on your list of pilot. Choose which operating system you are running and you will pass to the right page:

    http://h20566.www2.HP.com/portal/site/hpsc/public/PSI/swdHome/?cc=us&lang=en&sp4ts.Oid=5405426&AC.admitted=1412400073783.876444892.199480143

  • I need help for the upgrade of my current system.

    I need help for the upgrade of my current system.

    I have SBS 2008 with (Exch 2007, SQL 2005, Sharepoint, backupexec 2010 for sbs) licenses.

    I want to make the larger environment using the following:

    (1) apply Virtualization

    (2) apply to the failover process (clustering)

    "(3) the environment must support adding server terminal server, ERP server, exchange server, domain controller, backup manager.

    Storage 4) that supports Raid (1 and 5)

    UTM excellent 6) that supports (SSL VPN, VPN Global)

    suitable backup solution 7)

    (8) good antivirus for clients

    my questions:

    (1) can you provide me with a good design for this environment

    (2) should I choose what operating system:

    Microsoft datacenter or company

    I know datacenter provide us the unlimited VM but needs per processor license

    so if I have two Grouped servers I want to buy 4 licenses

    and just 4 VMs per company license... to say that we have two servers and maintain 8 vms so wat happened if 1 goes down... How can I migrate the 4 virtual machines on the server failed to another server group... ? should I buy enterprise license?

    (3) if I get the SAN storage for data... How can I save this storage... should I get another SAN?

    (4) how can I upgrade SBS stad single server (windows standrad) without losing the licenses as Exch 2007, SQL 2005, sharepoint.is it a must to buy an edition full std server or there is a way to upgrade (license wise, I mean)?

    (5) what about win2k8 license for VM:

    lets say we have physical that has windows license so that enough to have windows for VM or should I buy windows for VM licenses?

    (6) can I use backExec license for SBS with windows 2008 standard

    (7) who better to virtualization AMD or INTEL

    (8) hyper V or VMware?

    (9) what of Microsoft data protection Manager... is this good?

    (10) what virtual machine manager? What are the benefites keys

    Thanks in advance

    Hello AnasAI,

    You can find the Server forums on TechNet support, please create a new post at the following link:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • Need drivers for the Sidewinder Precision Pro X 03-57540

    I NEED DRIVERS FOR THE SIDEWINDER PRECISION PRO XO3-57540 JOY STICK.

    Hi LARRYPEDEN,

    Visit the following link to download the driver:

    http://www.Microsoft.com/hardware/en-us/d/SideWinder-X3-mouse

    You can also follow this step to do the same thing:

    a. double-click the type of device you want to update or change.

    b. right click on the device driver specific, you want to update or change.

    c. click put to update driver to open the Hardware Update Wizard. Follow the instructions in the wizard.

    More information on:

    How to manage devices in Windows XP

  • Need drivers for the SATA hard/controller on the dv7-6c95dx disc.

    Need drivers for the SATA hard/controller on the dv7-6c95dx disc.

    We load Windows 7 Enterprise on these newly purchased laptops, but do it have not the required appropriate drivers detect the hard drive on them. Impossible to find on the HP website.

    You can refer to a completely different question here, Marty. I was installing to a flash drive and it turns out that my install media has been connected to ports USB 3.0 on the left rather than right 2.0 ports. Moving to the ancient ports of 2.0 has solved my problem. Good luck.

  • Table for the code for method of payment for the suppliers site

    Hi all, does anyone knows how to get the value for the code for method of payment for the suppliers site in R12.1.3? I don't speak from that in the following path: 1 Paybles responsibility 2. Suppliers 3. Request for a 4 suppliers. Click on details of payment 5. Scroll to supplier Sites and press the update button 6. Note that, for example among the payment methods is checked as default thanks in advance, A.Stoynaov

    Hello

    Please check this note that contains the query:

    Default values for method of payment for providers at the level of the Table (Doc ID 737128.1)

    You can use this query to view the lines for a given provider site:

    SELECT *.

    Of iby_ext_party_pmt_mthds IEPPM

    WHERE IEPPM.ext_pmt_party_id IN

    (SELECT IEP.ext_payee_id

    Of iby_external_payees_all IEP

    WHERE IEP.supplier_site_id IN

    (SELECT APSS.vendor_site_id

    Of ap_supplier_sites_all of the PSA, ap_suppliers APS

    WHERE APS.vendor_id = APSS.vendor_id

    AND APS.vendor_name = '. '

    AND APSS.vendor_site_code = ''));

    Concerning

    Joel Purswani

    Support of Oracle

  • I need images for the animation of the interactive book for words from A to Z.

    Hello

    I'm creating interactive children's book so I need images for the animation of anyone have idea where I can take the pictures than words from A to Z or any suggestion?

    Best thing to do is to simply do a search for 'Illustrations of Stock', like Google

    All the best.

  • I don't have my old alternative messages... and I need to change the security information for the code

    Hello. Hotmail sent me a 'code' to an old alternate email that I have no more. I had to give an additional email to renovate my security info. Now I can't access my password, security questions and the old email to change and receive the code which allows me to continue with my account. Help me please. I don't know if I have to wait 30 days... and my account will be ok... I've read far too many questions... but I can't. You will find the answer. Thank you

    Hello

    Given that the problem is related to the Microsoft account. I suggest you to send your request to new Microsoft Outlook.com community forum:

    http://answers.Microsoft.com/en-us/outlook_com

    Alternatively, you can contact support for Windows Live ID in order to make changes to your Microsoft account.

    http://Windows.Microsoft.com/en-us/Windows-Live/ID-support

    Thanks and greetings

    John

  • Need help with the code for drop-down selection, please!

    I'm falling out of scope with a drop of water in my form. My form is long, and certain areas are in Page 2. When I click on the "Customer hospitality event" drop-down list selection, the fields of P2 do not hide. Here is the code that I have on the menu drop-down:

    -form1. P1.meetDetails.meetType::exit :-(JavaScript, client).

    switch

    (this.rawValue)

    {

    " case" " Customer home ' :

    Header.PRESENCE = "visible";

    meetDetails.presence = "visible";

    meetDetailsaddl.presence = "visible";

    Form1. P2.rstatus.presence = 'hidden '.

    Form1. P2. Status.Presence = 'hidden '.

    breaking ;

    }

    Help, please!

    Thank you!

    I see that references to the P2 have no end of line separators (-).

    Form1. P2.rstatus.presence = 'hidden '.

    Form1. P2. Status.Presence = 'hidden '.

    The JavaScript runtime engine is perhaps unfortunate. Try to add them.

    Steve

  • need help with the code "meter."

    Hi I had this form of testing that executes_query on the new block instance.
    See the image below:

    http://i95.photobucket.com/albums/l133/element81/screenies.jpg
    [http://i95.photobucket.com/albums/l133/element81/screenies.jpg]

    I have this code on the button (next question) that captures the selected answer and compare it to the correct answer and then move to the next record:

    "If: blk_exam.radio_group76 =: blk_exam.answer_id then.
    -message('correct');
    -other
    -message('wrong');
    : blk_exam.score: =: blk_exam.score + 1;
    end if;
    next_record;
    "

    the problem is I want to create a score counter, but I do not know how to display it in the text (circled in blue) element.

    p.s. I'll hide the score counter, hurt later use it to record the score in the database.


    Ty in advance

    Hello
    No, there are no gaps. In fact, there is error in your code.

    Scenario 1:
    If the blk_exam is on the top of blk_score when I run the blk_exam form works with execute_query but the text of the note element is a bit turn off so I have to click on to a grey, she and her show '0' because of its first value 0 then walla pressing "next question" with my codes work... it increments...

    For this scenario, you use NVL then it will work as...

    :NON_DB_BLOCK.SCORE_FLD:=NVL(:NON_DB_BLOCK.SCORE_FLD,0)+1;
    

    Scenario 2:
    If I make blk_score on top of my blk_exam the text of the note element contains the value 0, but the test module does not work still... I had to click on any text element or anywhere on the form first seized execute_query and shows the question and choices... but then after that, it works well...

    So now don't need to keep the DB NO BLOCK on top just keep the issue/block on top. Normal then run query which is now to work it will work.

    hope you can imagine the two scenario hehe...

    Hope you can imagine the fault encoding ;)

    -Clément

Maybe you are looking for

  • Thunderbird 31.0: Tabs open not record leaving

    When I close Thunderbird 31.0 with tabs open and restart once the formerly tabs are not restored. The same problem I have with the file of the selected account. At the start of the Thunderbird don't remember. With older versions, it worked without an

  • I would like to move the FF4 Home button on the right side to the left side of the address field. Is this possible?

    I would like that because when I open a new tab, it opens a blank page. More often, I want a tab to provide a new research process, and to the far right of the screen when the new tab is activated on the left side of the screen seems disjointed.

  • Z240 HP SFF: HP SFF Z240 random crashes, blue screens and crashes

    Hello My work machine is a Mini PC Z240 from HP. Last month, the machine began to hang randomly and display blue screen errors. There is not much in the way perceptible models, but it tends to happen when the machine is in use, rather than the idling

  • Windows cannot open this file .json

    In joomla 2.5.6, when you try to download an image from the file button I get this error message in Internet Explorer 9 - Windows 7 Professional: Windows cannot open this file: file: .json joomla (3)To open this file, Windows needs to know what progr

  • How much is that too many accounts on WIN 7?

    We have several computers with mulitple accounts, accounts of 40-80 on the PC.  There are several of these pieces when you try sign, all you get is 'Please Wait' and which can last hours.  The only solution we had is to "re-iamge. I can do management