Exit question any group

OK guys... I wrote a dynamic hierarchical menu using CSS. My problem is that I have 6 items in main menu and each item has submenus. I have it ready to go in theory, but my cfoutput keep repopulate the first entry.


I hope someone can help as soon as POSSIBLE. I have 6 of the same thing.

JG

jgethers wrote:
> It works well, but it will not output 2 3 4 5 6.

He gets them in the first place. That's the problem, not the output.

Is there really records of pagecontent for parentID values 2, 3, 4, 5, or 6? If this is not the case, those these menu items will not appear in the results because you use a JOIN INTERNALLY.

Try changing the INNER JOIN a LEFT JOIN. This will include all records from the table on the left hand (IE cssmenu) even if there is no matching record in pagecontent.

If this does not help, run a select statement on the tables separately and cfdump the results of two queries.

Tags: ColdFusion

Similar Questions

  • Oracle reports above question Designer group

    I am very new to Oracle Reports Designer but I've created a report over the Group and I wish I could hide some data and their labels based on a condition, for example, if fieldvalue - displays some data but hide other, make visible or invisible based on a State. Is this possible? If so, any help would be appreciated.
    Thank you.

    968277 wrote:
    I am very new to Oracle Reports Designer but I've created a report over the Group and I wish I could hide some data and their labels based on a condition, for example, if fieldvalue - displays some data but hide other, make visible or invisible based on a State. Is this possible? If so, any help would be appreciated.

    Yes! You can. But you will need to provide some information at least during the validation of any question.
    What are you the version of your report?

    in general, select data showing the field and press F11 to go code editor and you will see

    ........
    begin
    return (true);
    end;
    

    Write here your condition and display and hide it. Ditto for the labels. For example

    ..........
    begin
    if condition ture
    return (true);
    else
    return (false);
    end if;
    end;
    

    I hope this works...

    Hamid

    Mark correct/good to help others to get the right answers. *

  • AnyConnect tunnel-group automatic assignment without selecting any group-tunnel-group-list alias and user-group strategy.

    Objective is that the anyconnect user must select group-alias, so that when a user enters his username and password he must go to his political group and tunnel-group specific. as I removed this command in webvpn 'no tunnel-group-list don't enable '. This I can not connect (user does not authenticate).

    1 - my question is why his past does not?

    Solution:

    If I keep only a single tunnel-group by default and make several group policies and assign to each user with his specific group policy that it works. in user attribute means I have only question following the commands it works, but if I put "group-lock value test-tunnel" that it did not identify.

    Please explain why.

    WebVPN

    allow outside

    limit the cache-fs 50

    SVC disk0:/anyconnect-win-3.0.10055-k9.pkg 1 image

    enable SVC

    internal strategy of group test-gp

    attributes of the strategy of group test-gp

    VPN-tunnel-Protocol svc webvpn

    the address value test-pool pools

    username, password test test

    username test attributes

    VPN-tunnel-Protocol svc

    group-lock value test-tunnel

    Strategy Group-VPN-test-gp

    tunnel-group test-tunnel type remote access

    attributes global-tunnel-group test-tunnel

    Group Policy - by default-test-gp

    tunnel-group test-tunnel webvpn-attributes

    allow group-url https://192.168.168.2/test

    Yes, you have the right solution. You only need to create 1 group of tunnel and multiple group policy. Under the attribute of the user, you re then group policy of vpn that you want the user assigned too.

    You can also authenticate users against AD and configure ldap attribute map to map the user to a specific group policy automatically.

    Here is an example of configuration if you happen to have the AD and will authenticate against AD:

    http://www.Cisco.com/en/us/products/ps6120/products_configuration_example09186a00808d1a7c.shtml

    Hope that helps.

  • questions about group by weeks

    Hello experts

    I have data similar to what follows below

    create the table t_one

    (

    sale number (30),

    date of date_req,

    req_desc varchar (1000)

    )

    insert into t_one values (30, to_date (March 7, 2014, ' DD/MM/YYYY'), 'boston')

    insert into t_one values (to_date 40, (March 9, 2014, "MM/DD/YYYY '"), "New York")

    insert into t_one values (10, to_date (March 14, 2014, ' DD/MM/YYYY'), 'boston')

    insert into t_one values (to_date 20, (March 16, 2014, "MM/DD/YYYY '"), "New York")

    required output

    Week total_sales

    Week 1-70

    Week 2 30

    Please note, the first week will start at 07/03/2014 in the system, that is why it is week 1 and a week is from (Friday - Sunday). That is because the execution is either on Friday or Saturday or Sunday. I have problems with this because I can't think of a good way to group my weeks together.

    any help is appreciated.

    Thank you

    Hello

    Here's one way:

    WITH got_week_num AS

    (

    Req_desc sale, SELECT

    , FLOOR ((date_req-TO_DATE (7 mars 2014 ", «MM/DD/YYYY»)))

    / 7

    ) + 1 AS week_num

    FROM t_one

    )

    SELECT 'week ' | week_num WEEK

    SUM (sales) AS total_sales

    OF got_week_num

    GROUP BY week_num

    ORDER BY week_num

    ;

    This will work with dates before March 7, 2014, also.  The week before week 1 (that is, the beginning of the week on February 28, 2014) week is 0; the week before this (from February 21) is week - 1 and so on.

  • Question about Group by

    Hello friends,

    I have a table called APPLICATIONS (INQUIRY_ID, CALLING_DATE, ASSIGN_TO_AGENT)

    I need to create a report to show the number of requests received by Agent as follows:
    Assign_to_agent , number_of_daily_inquiries, total_inquiries_number
    
    X               ,         4                 , 150
    Y               ,         8                 , 200
    ..........
    ....
    I used this query that does not work:
    select assign_to_agent   ,
     count (inquiry_id) , 
     (select count ( inquiry_id)   as "total_inquiries_number"
     from inquiries   where trunc ( calling_date,'DD' )= trunc ( sysdate, 'DD')  ) as "number_of_daily_inquiries"
    from inquiries  group by assign_to_agent
    I hope that my question was clear.

    Kind regards
    Water

    Published by: cold_water on 25 Sep 2012 10:23

    Hi cold_water,

    Maybe it is not necessary to query two times table. Something like

    select   i.assign_to_agent,
             count (
               case
                 when trunc ( i.calling_date, 'DD') = trunc ( sysdate, 'DD') then
                   i.inquiry_id
               end ) as "number_of_daily_inquiries",
             count (i.inquiry_id) as "total_inquiries_number"
    from     inquiries i
    group by i.assign_to_agent;
    

    Concerning
    Peter

  • Question of grouping NIC

    Hello

    We have several ESX servers with NIC 4 each, assigned to the VM production network. These four connection going in pairs to 2 different switches, so I want to master them two and two.

    How I will do this, is hash IP Configuration teaming on the port VM production group. Then, I put the 2 primary NIC (from #1) in the active State and the secondary NIC 2 (switch #2) in the waking state.

    So my questions are the following:

    If one of the active links fail, what happens exactly? Anything happens at all, while the other active link is active?

    Why I ask you, is that I don't want to try VMware and the trunk on one of the secondary links and one of the main links at the same time, send the traffic to the two switches. I like this work, is to use the primary links, and failure, I want a complete switch to the secondary maps - no concomitant use of the active NIC and reserve.

    Thanks in advance for answers

    / Rasmus

    In my config so you pull a network card the all traffic will pass through the stand of path. because the trunk disables the whole trunk if only one nic fails.

  • question about group by function

    Hello

    I need to know why when the clause is not used, and the having clause is used in the function group, can any one will contact

    When the clause is used to filter the lines in service come pathological column.
    He selects and filters-out of the lines in the table listed in the from clause.

    for example if you have a table with matching employees and departments, and you want to see all employees of departments 10,20,30,40 and 50; you will use this condition in where clause

    select
        dept_id, emp_id
    from
        employee
    where
       dept_id in(10,20,30,40);
    

    Now let's say you want to check the number of employees in these departments

    select
        dept_id, count(emp_id)
    from
        employee
    where
       dept_id in(10,20,30,40)
    group by
       dept_id;
    

    now, if you need to select only the departments that have more than 1000 employees in them, your query will look like this:

    select
        dept_id, count(emp_id)
    from
        employee
    where
       dept_id in(10,20,30,40)
    group by
       dept_id
    having count(emp_id) > 1000;
    

    Here the condition where clause filters out all departments other than 10,20,30,40,50; the condition that must be applied for further filtering some departments on a per employee basis, cannot be applied in the where clause as it should be applied after + the function group worked on the rows of the table; After calculating the number of employees in each Department. Where the need for the clause which is evaluated after the group by the having clause.

    I hope this helps.

  • Question about GROUP BY and HAVING

    Good afternoon

    I have the following query, which returns the desired result (a set of students who follow the CS112 or CS114 but not both). I wanted to 'condense' it in a single SELECT statement (if that's possible - DDL of execution of the instruction is provided at the end of this post):
    --
    -- is this select distinct * and its associated where clause absolutely
    -- necessary to obtain the result ?
    --
    
    select distinct *
      from (
            select s.sno,
                   s.sname,
                   s.age,
                   sum(case when t.cno in ('CS112', 'CS114')
                            then 1
                            else 0
                       end)
                     over (partition by s.sno) as takes_either_or_both
              from student s join take t
                               on (s.sno = t.sno)
           )
      where takes_either_or_both = 1
    ;
    The following text seemed reasonable, but unfortunately without success:
    /*
      Window functions not allowed here (in Having Clause)
    
    select max(s.sno),
           max(s.sname),
           max(s.age),
           sum(case when t.cno in ('CS112', 'CS114')
                    then 1
                    else 0
               end)
             over (partition by s.sno) as takes_either_or_both
      from student s join take t
                       on (s.sno = t.sno)
     group by s.sno
    having sum(case when t.cno in ('CS112', 'CS114')
                    then 1
                    else 0
               end)
             over (partition by s.sno) = 1
    ;
    
    */
    
    /*
    
    Invalid identifier in Having clause
    
    select s.sno,
           s.sname,
           s.age,
           sum(case when t.cno in ('CS112', 'CS114')
                    then 1
                    else 0
               end)
             over (partition by s.sno) as takes_either_or_both
      from student s join take t
                       on (s.sno = t.sno)
     group by s.sno, s.sname, s.age
    having takes_either_or_both = 1
    ;
    I tried a document that completely defines the order in which the clauses are executed. I found bits and pieces here and there but not complete something. I realize that my race with problems like this is due to my lack of understanding of the sequence and scope of the clauses that make a statement. For this reason, I can't even say if it is possible to write the query above using a single select statement. Forgive my little frustration...

    Thank you for your help,

    John.

    DDL follows.
            /* drop any preexisting tables */
    
            drop table student;
            drop table courses;
            drop table take;
    
            /* table of students */
    
            create table student
            ( sno integer,
              sname varchar(10),
              age integer
            );
    
            /* table of courses */
    
            create table courses
            ( cno varchar(5),
              title varchar(10),
              credits integer
            );
    
            /* table of students and the courses they take */
    
            create table take
            ( sno integer,
              cno varchar(5)
            );
    
            insert into student values (1,'AARON',20);
            insert into student values (2,'CHUCK',21);
            insert into student values (3,'DOUG',20);
            insert into student values (4,'MAGGIE',19);
            insert into student values (5,'STEVE',22);
            insert into student values (6,'JING',18);
            insert into student values (7,'BRIAN',21);
            insert into student values (8,'KAY',20);
            insert into student values (9,'GILLIAN',20);
            insert into student values (10,'CHAD',21);
    
            insert into courses values ('CS112','PHYSICS',4);
            insert into courses values ('CS113','CALCULUS',4);
            insert into courses values ('CS114','HISTORY',4);
    
            insert into take values (1,'CS112');
            insert into take values (1,'CS113');
            insert into take values (1,'CS114');
            insert into take values (2,'CS112');
            insert into take values (3,'CS112');
            insert into take values (3,'CS114');
            insert into take values (4,'CS112');
            insert into take values (4,'CS113');
            insert into take values (5,'CS113');
            insert into take values (6,'CS113');
            insert into take values (6,'CS114');

    Hi, John,.

    Just use the SUM aggregate function.

    --
            select s.sno,
                   s.sname,
                   s.age,
                   sum(case when t.cno in ('CS112', 'CS114')
                            then 1
                            else 0
                       end) as takes_either_or_both
              from student s join take t
                               on (s.sno = t.sno)
           GROUP BY  s.sno,
                    s.sname,
                  s.age
           HAVING  sum(case when t.cno in ('CS112', 'CS114')
                            then 1
                            else 0
                       end)  = 1;
    

    Analytical functions are calculated after the WHERE - HAVING clause are applied. Use the results of an analytic function in a WHERE or HAVING clause, you need to calculate it in a subquery, and then you can use it in a WHERE - or the HAVING of a query clause Super.

  • Question about GROUP BY and double aggregation for example MAX (AVG (val))

    Good evening/morning,

    I am struggling with what is probably a simple problem.

    The objective of the exercise is to display the highest average earnings and his Department (with the EMP table).

    Easy to get the maximum average wage:
    select max(avg(sal)) as max_avg_sal
      from emp
     group by deptno;
    I could not figure out how to change this query to get the deptno associated AVG. max. Gave up on changing this query and came to this:
    select deptno,
           avg_sal as max_avg_sal
      from (
            select deptno,
                   avg(sal) as avg_sal
              from emp
             group by deptno
             --
             -- order causes 1st row to have the max(avg(sal))
             -- this will be exploited in the where of the outer query
             --
             order by avg_sal desc                                             
           )
     --
     -- get only the first row since that one has the values we want
     --
     where rownum <= 1;
    This works, but feels pretty disappointing compared to the simplicity of the first query (which I couldn't the deptno on.) That is the request more simple with that I could come.

    The QUESTION is:

    The query above is really the way simpler and easier to get the maximum average and its associated department number? If it isn't, I'm more interested in your simplest solution. :)

    Could someone to laugh at one of the alternatives that I came up with a "simpler": solution
    with x as
      (
       select deptno,
              avg(sal) as avg_sal
         from emp
        group by deptno
      ),
      max_avg_sal as
      (
       select max(avg_sal)                  as asmax
         from x
      ),
      deptno_max as
      (
       select deptno                        as dnmax
         from x where avg_sal = (select asmax from max_avg_sal)
      )
    select (select asmax from max_avg_sal) as max_avg_sal,
           (select dnmax from deptno_max)  as deptno_max
      from dual;
    The road to hell is simple, it is paved from selects < chuckle >,.

    Thank you for helping,

    John.

    Hello
    Try this

    SELECT MAX(AVG(sal)) AS max_avg_sal,
           MAX(DEPTNO) KEEP (DENSE_RANK FIRST ORDER BY AVG(SAL) DESC )  DEPTNO
    FROM scott.emp
    GROUP BY deptno
    

    Kind regards
    Anthony Alix

  • Question about grouping.

    Hello

    I have a problem with my data as I want, I have 2 tables: orders & Modifiedorders,.
    the Modifiedorders holds the orderid and some information on how the order is changed, sometimes orderid
    in the Modifiedorders table can repeat if the changed data are of different types, such as changing the quantity or the price...

    Now what I want is to make a report that displays data from the Orders table and when there is
    record (s) in the table modifiedorders that it should appear on the left, for example, but without repeating the orderid.

    What I tried creating a query of outerjoin between 2 tables and using the wizard I created a report with the style of left group and had Orderid as the grouping field, but again orderid. What should I do?

    Thanks in advance...

    What I tried creating a query of outerjoin between 2 tables and using the wizard I created a report with the style of left group and had Orderid as the grouping field, but again orderid. What should I do?

    You have made the right choice. Reuse the reports Wizard.

    What is your question?

  • I installed a new router. Now, one of the PC will not allow the rest of the pc s are there to connect. He is able to connect to each computer on the network. I can't find the question, any help?

    I have checked the computer name, sharing, turned off the firewall.  Still can't find the question.

    I've corrected in fact accidentally the problem today.  I uninstalled a Malware program and tada!, the other pc on the network were immediately able to access the XP pc.  The 'good' pc was always able to access internet, router, network between them.  The only problem we had was the 'bad' pc was able to connect at all, but the 'good' pc were unable to connect to the computer of 'bad '.

  • Windows Explorer - library questions: remove groups

    PROBLEM:

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

    WHAT I WANT IT to LOOK:

    I don't know how it happened, but it's really annoying and I want to fix this ASAP. The problem is in my music folder, it shows the text in blue, and I don't want it looking like that. It has never been like this before. It just happened by chance.

    Do a right click, group of > no

  • Question to group AD ISE

    Dear team,

    I will deploy cisco ISE (1.2) to one of our customer sites.

    I am able to join the ISE with Active directory and the users are able to authenticate with their domain login ID.

    Problem:-I'm not able to retrieve/see Active directory at the ISE group information.

    Please suggest how to fix this isse.

    Kind regards

    Rajesh

    Hi Renon,

    Kindl take a look at the below mentioned link:

    ISE with AD integration

    Kind regards

    Anim Saxena

    Community Manager

    * Make the rate of useful messages *.

  • I have a question in groups to help decode and case in pl/sql

    my request is something like this but with more column in select. When I shot this request it gives result but it's not good

    My problem is, as if there are more than 3 values for uh.sflowtype (0,1,2) then group by does not work for them and those coming in different line, I need them to be combined

    query is:
    Select substr (uh.sstartdatetime, 1, 8) DateTime,
    (case
    When uh.sflowtype = 7 then "sms".
    When uh.sflowtype = 9 then 'mms'
    When uh.sflowtype = 10 then "gprs".
    another "voice".
    end)
    as e_vpn_usagehistory flowtype UH where 1 = 1 and uh.nspid = '1' AND ((substr (uh.sstartdatetime, 1, 8) > = 20130507))
    AND (substr (uh.sstartdatetime, 1, 8) < = 20130606)) GROUP BY substr (uh.sstartdatetime, 1, 8), uh.sflowtype
    substr(uh.sstartdatetime,1,8) DESC order


    result:

    DATETIME FLOWTYPE
    -------- --------
    20130507 voice
    20130507 voice
    20130507 voice
    20130507 sms
    20130507 mms


    but I need

    20130507 voice
    20130507 sms
    20130507 mms

    so, what should I do?
    Please suggest me
    select  to_char(uh.sstartdatetime,'DD-MON-YY') DateTime
    ,       ( case when uh.sflowtype=7 then 'sms'
              when uh.sflowtype=9 then 'mms'
              when uh.sflowtype=10 then 'gprs'
              else 'voice'
              end ) as flowtype
    from   e_vpn_usagehistory uh
    where uh.nspid='1'
    AND   ((substr(uh.sstartdatetime,1,8) >= 20130507 )
    AND   (substr(uh.sstartdatetime,1,8) <= 20130606))
    GROUP BY to_char(uh.sstartdatetime,'DD-MON-YY'),
              ( case
             when uh.sflowtype=7 then 'sms'
            when uh.sflowtype=9 then 'mms'
            when uh.sflowtype=10 then 'gprs'
            else 'voice' end )
    order by to_char(uh.sstartdatetime,'DD-MON-YY') DESC
    

    Try this.

    If it doesn't work thanks for posting data.

    p.s. Your order will be not that useful as a varchar either

  • Under Firefox 4.0 (Windows 7) I tried to play pool on yahoo, but I can't access any group.

    I disabled the blocker and activated Java (last downloaded), but still no window opens when I try to access the game. I tried to play on another browser (Chrome) and his work. What should I do?

    I had this problem under linux. I realized there was no alias set. Where it says welcome and then has a drop down box, you should make sure that something is selected. If you can not select anything, you need to add an alias. If this isn't your problem, I don't know what would be the solution.

Maybe you are looking for

  • Try to upgrade to El Capitan

    I am running Snow Leopard on a Macbook in early 2008. I meet all the requirements for the upgrade to El Capitan, but the App Store said that I can not install on this computer. Any suggestions?

  • Try to restore Satellite U400 with external ODD

    Hi, I'm fighting with my laptop trying to restore it to factory settings, my cd player died some time ago and I have been using an external. I tried to restart using the recovery disks in the external drive, it starts the process and wants the recove

  • Toshiba 39L4363D: screen blinks after 7.1.90.22.01.1 firmware update

    Hi all yesterday, I had the latest firmware update and after that, my TV it is unusable, the screen flashes (since the start) I already did a factory reset but still flickering, it is present. Is anyone else having the same experience? Can I did a re

  • Equium M50 - wireless card and network card does not

    Hello I installed the drivers for my Equium M50 (PSM57E) laptop computer, but it happens with limited connectivity or not for some reason any. In Device Manager, it says its all fine, but I can't go to internet or anything to do with the network.I ha

  • s410p 3 USB ports not working not

    I installed win7 64 bit on my Ideapad S410p. The problem is 2-port USB3.0 cannot be used, only 1 USB 2.0 that can be used. The driver has been installed and nothing wrong. In order to use USB3.0, I need to plug in the device and then restart my lapto