Condition for the element

Greetings on this Friday (Yes!),

I have a button, and I want to make this visible NOT on the condition where a certain SQL County is equal to 2. How would I go about creating this condition using the CONDITIONS section on the section Edit button?

Aware that you do not know the necessary data, my SQL would look like this:

Select count (*)
of media_tbl
where mit_site = 2
and media_type in (20,21)

When this operation creates a count = 2, I don't want to display the button.

What kind of condition I use and what I put for Expression-1, Expression 2?

Thank you
John

What is the difference? Under what circumstances does NOT Exists (SQL query returns no line), with 1 Expression

select null
from media_tbl
where mit_site = 2
and media_type in (20,21)
having count(*) >= 2

does not produce the required result?

Tags: Database

Similar Questions

  • FAQ as a search scope for the elements of literature

    Sort of create a FAQ as a search scope for the elements of literature?  The idea is that the site visitors would be able to choose a category, subcategory of items of literature before being presented with the list of items in that category or subcategory.

    Not with the system in the State.

    You can include items from the media module manually in a response from the FAQ (manual add to FAQ with links customized wysisyg) or past the {module_literature, c, insertclassificationidhere,} call in the tag content / source.

    Another option would be to create a HTML page containing tags downloads media (filtering on a classification) of block elements and then manipulate the presentation with javascript. Example would be the tabs or accordion layout each element in the appropriate media downloads by category.

    You can also create pages that have done the same and then pull them in an element of presentation with Ajax calls in another page.

  • Permutation of loaded xml of Images for the elements in the scene?

    Hello!

    I have a quick question on xml loaded images.

    You can add/attach/swap images for the elements in your scene?

    I would like to manually animate a movieclip using the interpolation of keyframes and the movement. For example, to have a movieclip FLY! on the screen! lol but I want it to be one that has been dynamically loaded image.

    I can't find how to replace an image on a movieclip from a dynamically loaded image.
    Is it still possible?

    Thanks heaps for your time that you guys!

    If the original image is the only object in the movieclip, you can use removeChildAt (0) to get rid of it and use addChild (your_new_image) to replace it.

  • Is there an equivalent in Firefox for the element.style ['javaScript css_to_change']?

    I'm doing a site compatible for Firefox, but the element.style ['CSS_to_change'] doesn't seem to work (example: document.getElementById('element_ID').style [' - moz - transform "] ="rotate (90deg)"; must turn the item whose id is 'element_ID' at 90 degrees). It works in Google Chrome and I wonder if there is anything equivalent with it in Firefox...
    I'm sorry if I ask this question in the wrong place and I thank you in advance! Please let me know when you have an answer.

    Try this:

    document.getElementById('element_ID').style.setProperty('-moz-transform','rotate(90deg)','');
    javascript:void( document.getElementById('question').getElementsByTagName('IMG')[0].style.setProperty('-moz-transform','rotate(180deg)',''));
    
  • Programming of a conditional FOR the timing of the STOP button on the loops

    I have a conditional FOR loop with a STOP button, however, the nature of LabVIEW data flow, the stop button is now being questioned at some point before the end of the loop. A control not having no entry, I can't connect to the last operation of a single iteration of the loop to trigger the vote on the STOP command, and I prefer not to use a flat sequence just for the power button if I can avoid it. I've considered using a structure of the event, but I don't want to force the loop to wait that the stop button to be pressed, I want just the loop to EXIT, * IF * the stop button is pressed... but I want the stop button to be questioned at the end of the loop, so if the user presses the button stop at any time in the loop , at the end of the iteration, the loop will end... that makes sense? At present, given that the stop button is called once at some arbitrary during the iteration of the loop time, if the user presses the stop button after he is questioned, the loop must run an extra iteration, and I don't want that to happen.

    ... in any case, I guess I'm looking for a more elegant way to implement that having to use a flat sequence just for the stop button.

    Sorry, but you'll have to use a sequence structure.  This is why they are there.  Sometimes they have their purposes.  Here is how I would handle it.

  • SQL AS not sufficient Condition for the identification of common strings

    Hi guys,.

    I can´t get my head around why the condition doesn't LIKE not the case which is why 1234 M - 4 not recognized as a similar to 1234 M 221-2?

    CREATE EXCEL TABLE (EXCEL_ID VARCHAR (100));

    CREATE A PD (PD_ID VARCHAR (100)); TABLE

    INSERT INTO EXCEL (EXCEL_ID) VALUES('1234M221-2');

    INSERT INTO PD (PD_ID) VALUES ('1234M - 4');

    SELECT EXCEL_ID, PD. PD_ID

    SINCE EXCEL ex

    LEFT JOIN

    PD (SELECT PD_ID FROM pp)

    WE e.g. EXCEL_ID LIKE "%" | PD. PD_ID | » %'

    Thanks for the tips!

    Hello

    metalray wrote:

    Hi guys,.

    I can´t get my head around why the condition doesn't LIKE not the case which is why 1234 M - 4 not recognized as a similar to 1234 M 221-2?

    CREATE EXCEL TABLE (EXCEL_ID VARCHAR (100));

    CREATE A PD (PD_ID VARCHAR (100)); TABLE

    INSERT INTO EXCEL (EXCEL_ID) VALUES('1234M221-2');

    INSERT INTO PD (PD_ID) VALUES ('1234M - 4');

    SELECT EXCEL_ID, PD. PD_ID

    SINCE EXCEL ex

    LEFT JOIN

    PD (SELECT PD_ID FROM pp)

    WE e.g. EXCEL_ID LIKE "%" | PD. PD_ID | » %'

    Thanks for the tips!

    If pd.pd_id = "1234 M - 4', then

    e.g. EXCEL_ID LIKE "%" | PD. PD_ID | » %'

    will be TRUE if (and only if) ex.excel_id contains a substring of the exactly 7 characters, ' 1234 M - 4', in that order.  It may or may not be anything before '1234 M - 4'; That's what means the first '% '.  It may or may not be other stuff after the '1234 M - 4'; That's what means the last '% '.  But pd.pd_id must be there in its entirety.

    Do you need something that will compare '1234 M 221-2' to ' 1234 M - 4' and return TRUE?  Explain, in general terms, why you consider similar and you firewall other pairs of strings is not to look like.  In addition to generic rules, CREATE TABLE and INSERT pairs of sample may be 6 or 12 strings, and the results that you want to start comparing them.  The results can look like this:

    str_1 output str_2

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

    1234 M 221 - 2 1234M - 4 REAL

    1234M - M 4 1234, 221-2 FALSE

    ...

    In each case, explain where or which of your rules chains followed (or broken) to be look similar (or not).

  • Dutch (NL) for the elements P and first manual

    Hi, I'm a new user for 14 elements PhotoShop and first 14 elements.

    Can someone tell me where I can find Dutch (NL) handbooks in PDF format?

    I want to print them.

    Thanks, Wopie

    ludow50410567 wrote:

    Hi, I'm a new user for 14 elements PhotoShop and first 14 elements.

    Can someone tell me where I can find Dutch (NL) handbooks in PDF format?

    I want to print them.

    Thanks, Wopie

    Take a look here:

    Help bij Photoshop Elements | Photoshop elements help

    PDF format manual for the Editor:

    https://helpx.Adobe.com/NL/PDF/Photoshop-elements_reference.PDF

  • Error creating Absence as "APP-COMPENSATION-51271: the assignment is not eligible for the element.

    Hello

    "APP-COMPENSATION-51271: the assignment is not eligible for the item."

    Hi Nelly,

    You can see below the two things that can be the cause of this error:

    1. the definition of the non-recurring item link which is tagged with such an absence, as a best practice that should be an open link. If the definition of link and the eligibility of the assignment does not match then you may receive this error.

    2. If you have defined a regulation for this type of absence plan, then check if the recurring element of the regime of accumulation is was tagged to the assignment for which you receive this error.

    Thank you

    Sanjay

  • warnings to leak memory for the elements in a form

    We meet the warnings below in our newspapers:

    WARN [nucleusNamespace.atg.dynamo.servlet.pagecompile.DAFDropletEventServlet] (ajp - 0.0.0.0 - 8109-110) form elements 29057 added to the last item of the form /shop/wishList/viewWishList.jsp.addItemsToCart name project/commerce/wishlist/WishListFormHandler.wishItemValueObject.quantity.27025374. Form elements are saved permanently if this table continues to grow, it's a memory leak. Recode your page in order to use consistent names for form elements.

    Added form elements 21542 WARN [nucleusNamespace.atg.dynamo.servlet.pagecompile.DAFDropletEventServlet] (ajp - 0.0.0.0 - 8209-57) to the last item of the form /shop/wishList/viewWishList.jsp.addItemsToCart name project/commerce/wishlist/WishListFormHandler.wishItemValueObject.quantity.28506088. Form elements are saved permanently if this table continues to grow, it's a memory leak. Recode your page in order to use consistent names for form elements.

    Thank you

    Published by: 986774 on February 7, 2013 05:39

    After getting the leak memory, look at DropletEventServlet in the Navigator component of/dyn/admin, and you can see the accumulation of mappings element of the page in question form. DropletEventServlet is a component to extended global (regardless of the scope of managers form she monitors) and does not remove the entries over time (which is why it is important to not use IDS in the form element cards FormHandler, and he issues a warning once you 500 for a form).

    My guess is that the bug you see is a fixed bug CCS been resolved in more recent versions of the ATG (2007.1 and later versions). You can see a newer version of the ATG to see if the form is always encoded in the same way.

  • With the help of case condition for the date of distinct values is does not

    Hello PL/SQL gurus and experts.

    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64-bit Production version
    I followed two tables

    TT3-
    create table TT3(FeesCntlr,CommCntlr,LatePayCntlr,Name,Age) as select
    1,11,21,'Mike',25 from dual union all select
    2,12,22,'Clark',26 from dual union all select
    4,17,27,'Ussan',28 from dual union all select
    5,13,21,'Linda',29 from dual union all select
    6,14,24,'Obrek',35 from dual union all select
    7,15,25,'Batty',45 from dual union all select
    8,16,26,'Nicky',38 from dual;
    TT4
    drop table TT4;
    create table TT4(TRNID,BlockID,FeesCntlr,CommCntlr,LatePayCntlr,BookDate) as select
    221,625,1,11,21,20121101 from dual union all select
    223,625,2,12,22,20121101 from dual union all select
    224,625,1,11,21,20121101 from dual union all select
    225,627,4,17,27,20111001 from dual union all select
    226,628,5,13,21,20120701 from dual union all select
    227,628,6,14,24,20120701 from dual union all select
    334,628,7,15,25,20120701 from dual union all select
    339,629,8,16,26,20120701 from dual union all select
    393,629,1,11,21,20120701 from dual union all select
    432,629,2,12,22,20120701 from dual union all select
    347,629,1,11,21,20120701 from dual union all select
    556,629,4,17,27,20120701 from dual union all select
    558,629,5,13,21,20120701 from dual union all select
    974,629,6,14,24,20120701 from dual union all select
    976,629,7,15,25,20120701 from dual union all select
    980,629,8,16,26,20120701 from dual union all select
    1223,650,2,12,22,20110415 from dual union all select
    1224,650,1,11,21,20110415 from dual union all select
    1225,650,4,17,27,20110415 from dual union all select
    1226,650,5,13,21,20110415 from dual union all select
    1227,650,6,14,24,20110415 from dual union all select
    1334,650,7,15,25,20110415 from dual union all select
    1339,710,8,16,26,20120115 from dual union all select
    1393,710,1,11,21,20120115 from dual union all select
    1432,710,2,12,22,20120115 from dual union all select
    1347,710,1,11,21,20120115 from dual union all select
    1556,710,4,17,27,20120115 from dual union all select
    1558,711,5,13,21,20111231 from dual union all select
    1974,711,6,14,24,20111231 from dual union all select
    1976,711,7,15,25,20111231 from dual ;
    Now, if I use the following DML for the year 2012, then the result is as follows-
    SQL> select t3.Name,t3.age,count(t4.TRNID),count(distinct(BlockID)) from
      2  tt3 t3,tt4 t4
      3  WHERE     t3.feescntlr = t4.feescntlr
      4           AND t3.commcntlr = t4.commcntlr
      5           AND t3.latepaycntlr = t4.latepaycntlr
      6    AND t4.bookdate between 20120101 and 20121120
      7  GROUP BY t3.name, t3.age;
    
    NAME         AGE COUNT(T4.TRNID) COUNT(DISTINCT(BLOCKID))
    ----- ---------- --------------- ------------------------
    Mike          25              12                        3
    Mike          27              12                        3
    Batty         45               4                        2
    Clark         26               6                        3
    Linda         29               4                        2
    Nicky         38               6                        2
    Obrek         35               4                        2
    Ussan         28               4                        2
    
    8 rows selected.
    Now, if I use the following DML for 2011, then the result is as follows-
    SQL> select t3.Name,t3.age,count(t4.TRNID),count(distinct(BlockID)) from
      2  tt3 t3,tt4 t4
      3  WHERE     t3.feescntlr = t4.feescntlr
      4           AND t3.commcntlr = t4.commcntlr
      5           AND t3.latepaycntlr = t4.latepaycntlr
      6    AND t4.bookdate between 20110101 and 20111120
      7  GROUP BY t3.name, t3.age;
    
    NAME         AGE COUNT(T4.TRNID) COUNT(DISTINCT(BLOCKID))
    ----- ---------- --------------- ------------------------
    Mike          25               2                        1
    Mike          27               2                        1
    Batty         45               2                        1
    Clark         26               2                        1
    Linda         29               2                        1
    Obrek         35               2                        1
    Ussan         28               4                        2
    
    7 rows selected.
    But by using the condition if I use the following dml and results do not match-
    SQL> select Name,Age,sum(Trn),sum(CurYrOrdr) "2011 Order", sum(LastYrOrdr) "2012 Order"
      2  from
      3  (
      4  select t3.Name,t3.age,count(t4.TRNID) Trn,(case when t4.bookdate between 20110101 and 20111231 
    then count (distinct(BlockID)) else 0 end) CurYrOrdr,
      5  (case when t4.bookdate between 20120101 and 20121120 then count (distinct(BlockID)) else 0 end)
     LastYrOrdr
      6   from
      7  tt3 t3,tt4 t4
      8  WHERE     t3.feescntlr = t4.feescntlr
      9           AND t3.commcntlr = t4.commcntlr
     10           AND t3.latepaycntlr = t4.latepaycntlr
     11    AND t4.bookdate between 20110101 and 20121120
     12  GROUP BY t3.name, t3.age,t4.bookdate
     13  )
     14  group by Name,Age order by Name,Age;
    
    NAME         AGE   SUM(TRN) 2011 Order 2012 Order
    ----- ---------- ---------- ---------- ----------
    Batty         45          8          2          2
    Clark         26          8          1          3
    Linda         29          8          2          2
    Mike          25         14          1          3
    Mike          27         14          1          3
    Nicky         38          6          0          2
    Obrek         35          8          2          2
    Ussan         28          8          2          2
    
    8 rows selected.
    As the expected output, that I expect - is
    ----------------------------------
    
    Expected Output -
    NAME         AGE      "2012 TRNID"       "2011 TRNID"     "2012 ORDERID"     "2011 ORDERID"
    ----- ---------- --------------- ----------------------------- ---------- ------------
    Mike          25        12          2               3          1
    Mike          27        12              2          3          1
    Batty         45        4               2              2          1
    Clark         26        6               2              3          1
    Linda         29        4               2              2          1
    Nicky         38        6               2              2          1
    Obrek         35        4               2              2          1
    Ussan         28        4               4              2          2
    I sincerely thank each of you in advance for the input/comments that I fight with it for some time now.
    Kindly help.

    user555994 wrote:
    Hi JAC
    Thanks for the comments and certainly once I comment out the following line.
    - AND t4.bookdate between 20110101 and 20111120

    then the values are adapting, but at the same time why do we need to comment the date range condition as case is just a filter and not the condition.

    filter should be-

    AND t4.bookdate between 20110101 and 20121120 --"made it 12"
    
  • The default value for the elements of the page get ready when the session is disabled

    Hello

    I am facing this problem, do not know how to solve this problem. Basically, the default value 'elements' on the page don't prepare you when the session is disabled and I visit the page for the first time. So when I check the session for the first time, all page elements are null. But when I revisit the page, page elements sometimes gets.

    Don't know what I'm missing here... Someone has encountered this problem before?

    Thanks in advance! Kindly let me know if you need more clarification.

    Is there a way that the page element can be defined at the time the page is loaded for the first time?

    Yes. Create a "Page Rendering" PL/SQL process. That it is very early in the page rendering (i.e. "on charge ‑‑ after Header"). Set the value of the element of page here:

    BEGIN
      :P10_MY_ITEM := 15;
    END;
    
  • Apex. Submit in javascript do not set a value for the element

    Hi all
    I work with Application Express 4.1.1.00.23.

    I am trying to use this
    apex.submit({request:parRequest,set:{'P30_SELECTED_ROW_ID':parID},showWait:true});
    in order to assign a different value to P30_SELECTED_ROW_ID, and depending on demand, run the processes corresponding, but even if the beginning of the process correctly the value of the element sucks.

    I also try to call the apex.submit using a javascript function to check the parameters passed and the value of Thierry is correct and NON NULL .

    Thanks in advance for any help or suggestion.
    Alex

    Hello

    article P1_SELECTED_ROW_ID is about to "view only".
    If you replace this 'hidden' and unprotected, it should work.

    But because of the check constraint DEMO_CUST_CREDIT_LIMIT_MAX credit_limit<= 5000="" there="" will="" be="" an="" error="">

    Good luck, Erik-jan

  • Is it possible to get rid of 2Installez bearings commented for the elements of master page?

    My page has several images in box and text box, and I work with benchmarks commented on, which snaps and helps me when working with objects.

    Now the problem is when working in the pages of a document the smart guides align with the elements of the page master/objects, which is very annoying. Is it possible to get rid of guides, alignment of the master page elements?

    Thanks for me know how to disable it...

    TOUATI M

    TOUATI,

    You want Smart Guides to work this way, but this isn't an option in InDesign for the Smart Guides preferences. Here are four options you can choose or not choose in preferences > Guides & table editing. Application to Master objects is not one of the choices:

  • Different value for the element on the page on different areas on the same page?

    Hi all:

    I use APEX 4.0.6 and I have a page with 4 regions and each of the region shows a classic report which SQL is very similar to the other:

    for example

    For region 1, the SQL looks like select * from history where status = 'A ';
    For region 2, the SQL looks like select * from history where status = 'B ';.
    For region 3, the SQL looks like select * from history where status = 'C ';
    For region 4, SQL looks like select * from history where status = ';

    To optimize database performance, I like to create a page element called p_status_value on this page and using the syntax of following link for the SQL statement for all 4 regions:

    Select * from history where status =: p_status_value;

    However, I need this page element value is dynamically change for each region:

    For region 1, p_status_value = "A";
    For region 2, p_status_value = 'B ';.
    For region 3, p_status_value = 'C ';
    For region 4, p_status_value = ';

    Also, I need hide this element of the page on this page.

    Can someone show me how to do this?

    Thanks in advance!

    Kevin

    Published by: Kevin Zhang on May 10, 2011 13:03

    Then I would have 4 regions, with each region report, create a box item in each area, called PXX_REGION_VALUE and then your request is:

    select * from history where status = :PXX_status_value_X; (XX for page # and X for region #).. The database engine will crunch through the query and your dashboard will work fine..
    
    Thank you,
    
    Tony Miller
    Webster, TX
    
    If vegetable oil is made of vegetables, what is baby oil made of?
    
    If this question is answered, please mark the thread as closed and assign points where earned..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • CONDITION FOR THE CUSTOMIZATION OF THE FORM

    Hello

    I do a customization of the form custom in the form of recipes where I would read if invoices for Transactions Form that I'm about to apply are already taken into account or not.

    What would my condition for this?

    Thanks a lot for your help.

    Emgee

    Hello.

    Change the condition of:

    -3 = (SELECT posting_control_id FROM RA_CUST_TRX_LINE_GL_DIST_ALL WHERE account_class = 'REC' AND customer_trx_id =: APP_FOLDER.) CUSTOMER_TRX_ID)

    Octavio

Maybe you are looking for