brand value in the time table with colors according to the selected employee

Hello
My question is
I created the time table for a class for a bit longer want to filter to the time table used.

for example. If I select the emp_id he's from, select the list then this period of teaching should be highlighted time table.
Please can u help me.

the table name is:-Time_Table
the columns are:-

EMP_ID
CLASS_ID
SECTION
SUBJECT_ID
PERIOD_NO
DAY
DATE


Thank you
Nisha

Published by: Nisha Rani on September 3, 2009 02:57

Published by: Nisha Rani on September 3, 2009 23:08

Hi Nisha,

Try this:

SELECT
DY,
MIN(CASE WHEN LEC_NO = '1' THEN
CASE WHEN EMP_ID = :P1_EMP_ID THEN '
' || SUBJECT_ID || '-' ||emp_id || '
' ELSE '
' || SUBJECT_ID || '-' ||emp_id || '
' END ELSE NULL END) PERIOD1, MIN(CASE WHEN LEC_NO = '2' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
' || SUBJECT_ID || '-' ||emp_id || '
' ELSE '
' || SUBJECT_ID || '-' ||emp_id || '
' END ELSE NULL END) PERIOD2, MIN(CASE WHEN LEC_NO = '3' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
' || SUBJECT_ID || '-' ||emp_id || '
' ELSE '
' || SUBJECT_ID || '-' ||emp_id || '
' END ELSE NULL END) PERIOD3, MIN(CASE WHEN LEC_NO = '4' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
' || SUBJECT_ID || '-' ||emp_id || '
' ELSE '
' || SUBJECT_ID || '-' ||emp_id || '
' END ELSE NULL END) PERIOD4, MIN(CASE WHEN LEC_NO = '5' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
' || SUBJECT_ID || '-' ||emp_id || '
' ELSE '
' || SUBJECT_ID || '-' ||emp_id || '
' END ELSE NULL END) PERIOD5, MIN(CASE WHEN LEC_NO = '6' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
' || SUBJECT_ID || '-' ||emp_id || '
' ELSE '
' || SUBJECT_ID || '-' ||emp_id || '
' END ELSE NULL END) PERIOD6, MIN(CASE WHEN LEC_NO = '7' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
' || SUBJECT_ID || '-' ||emp_id || '
' ELSE '
' || SUBJECT_ID || '-' ||emp_id || '
' END ELSE NULL END) PERIOD7 FROM TM_TEACHER_LEC_DETAIL WHERE CLASS_ID = :P1_CLASS_ID and SECTION = :P1_SECTION GROUP BY DY order by dy

As I do not have the structure of your table or any data, I can't test this. Let me know if it works for you

Andy

Tags: Database

Similar Questions

  • Restore the value of the selected line in the editable Table.

    Hello, I use Jdeveloper 11.1.2.1.0.

    My problem is:
    1. Select a line in the editable table.
    2. change the value inside elements of the af:inputText of columns.
    3. tap on restore.
    4. the values of the selected line remains the same.

    If I select another line, before the restore, the restore will work as expected.

    I want to when you press the button cancel the values of the selected row to be rollback-ed as well.

    Set the immediate on all the inputTextFields in the table and it worked.

    Thank you.

  • How to use the Type of Oracle Table values in the Select statement.

    Hello

    I get the initial set of values in the Table of Type Records of the Oracle and want to use the list of values in the Select statement.

    For example, try something like the following:

    TYPE t_record () IS RENDERING
    ID TABLEA.ID%type,
    NO TABLEA.NO%type

    );
    v_record t_record;
    T_table TYPE IS the v_record TABLE % TYPE;
    v_table t_table;

    -Code to fill the values of v_table here.

    SELECT ID, NO, COLLECT in BULK IN < some other table variabes here > FROM TABLEA
    WHERE ID IN (i) v_table USER.USER;

    I want to know how to use the Type of Oracle Table values in the Select statement.

    Something like this:

    create or replace type t_record as  object (
    id number,
    no number
    )
    /
    
    CREATE or replace type t_table AS TABLE OF t_record;
    /
    
    set serveroutput on
    declare
    
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    
    begin
    
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
    
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
    
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
    
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /
    

    No test!

    P;

    Published by: bluefrog on March 5, 2010 17:08

  • Cannot get the value of the selection of OAMessageChoiceBean

    Hello

    Of our 11i to R12 upgrade, in the customer's advanced search page, we are unable to get the handle suitable for OAMessageChoiceBean (in extendedCO).

    The snippet for the bean handling is as follows:

    OAMessageChoiceBean PartyStatusFilter = (OAMessageChoiceBean) vOAPageContext.getRootWebBean () .findChildRecursive ("xxfeF426PartySearchStatus");
    String xxTest = PartyStatusFilter.getSelectionValue (vOAPageContext);

    The value of the above xxTest (in R12 approx.) is coming with a null value. Considering that the same code works in 11i environment and the xxTest output = "A".

    So we cannot get the value of the selection of the messagechoicebean in our environment of R12. I already looked in previous similar positions in this forum, also tried to use getSelectionText (vOAPageContext) or getSelectedValue(), however, it did not work.

    Pointers please?

    Thank you very much
    Zahid

    Hi Zahid,

    Try with this ID = HzPuiPartyStatus

    -Had

  • Toggle button depends on the value of the selected row

    Hello.

    My problem is:

    I have a Table "singleSelect" and a button Delete.

    I´d want to toggle the button depends on the value of the selected row.

    I mean:

    C1: DepartmentId
    C2: Yes/No

    For each line: If c2 = "" then disable the rest button activates the button.

    I hope you can help me.

    I'm from Venezuela my English is not very good. :)

    Disabled = "#{row." C2 eq 'No'} '.

  • How to use the value of the select in SQL queries list

    I have a list with the list of states (P1_STATE) in Page 1. When I send the page, I get the VALUE of P1_STATE in Page 2 to the format: DC:AS:AK. I use the application to display the form in the Page 2 below.

    Select *.
    of STATE_REF
    where IN location_id (: P1_STATE)

    Now the format of P1_STATE will not work in the query. So it's not fetch all results. Is there a way in which the values of the selection list can be used in SQL queries. Thanks for the help.

    Hello

    Try something like:

    select *
    from STATE_REF
    where ':' || :P1_STATE || ':' LIKE '%:' || LOCATION_ID || ':%'
    

    Andy

  • get the values of the selected items to RichSelectManyChoice

    Hi all

    I have a RichSelectManyChoice

    When the user clicks on the "submit" button I want to get the values of the selected items...


    ----------------------------------------------------------page.jspx-----------------------------------------------------------------------------

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1"xmlns:f =" " http://Java.Sun.com/JSF/core "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "

    < jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

    < f: view >

    < af:document title = "untitled1.jspx" id = "d1" > "

    < af:messages id = "m1" / >

    < af:form id = "f1" >

    < af:panelGridLayout id = "pgl1" >

    < af:gridRow height = "100%" id = "gr1" >

    < af:gridCell width = '100% ' halign = "stretch" valign = "stretch" id = "gc1" >

    <! - content - >

    < af:selectManyChoice value = "#{bindings." CountriesView1.inputValue}.

    label = "#{bindings." CountriesView1.label}"id ="smc1.

    valuePassThru Binding = "#{suspect." Country}"="true">

    < f: selectItems value = "#{bindings." CountriesView1.items}"id ="si1"/ >

    < f: validator binding = "#{bindings." CountriesView1.validator} "/ >"

    < / af:selectManyChoice >

    < / af:gridCell >

    < / af:gridRow >

    < / af:panelGridLayout >

    < text af:button = "Button 1" id = "b1" action = "#{suspect.valide}" / >

    < / af:form >

    < / af:document >

    < / f: view >

    < / jsp:root >

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

    --------------------------------------------------------------------suspect.java-------------------------------------------------------------------

    package test.view;

    import com.sun.org.apache.xpath.internal.operations.String;

    Import oracle.adf.view.rich.component.rich.input.RichSelectManyChoice;

    public class suspect {}

    RichSelectManyChoice campaign private;

    String string = null;

    public suspect() {}

    ????????????????????????????????????????

    }

    public void valide() {}

    }

    {} public void setCountry (RichSelectManyChoice country)

    This.Country = country;

    }

    public RichSelectManyChoice {} getCountry()

    back country;

    }

    }

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


    Anyone has an idea please?

    Hello

    You can use

    JUCtrlListBinding listBindings = (JUCtrlListBinding) getBindings () .get ("CountriesView1");

    Object [] str = listBindings.getSelectedValues ();

    for (int i = 0; i)< str.length;="" i++)="">

    System.out.println (STR [i]);

    }

    in this loop, you will get all the values of selectManyChoice, for details see Ashish Awasthi (Jdev/ADF) Blog: using the selection Multiple (component selectManyListbox & selectManyCheckbox) in ADF

    hope it helps

  • Value of the selected tree node

    Hello

    I'm new to Apex (4.1.1) and I'm having a small problem.
    I had 2 Pages. The frist one is composed of a treeregion and a "submit" button.
    The Second is a report.

    I want to create a workflow, the user selects a treenode shipment and presses. Then it will be redirected to the reportspage,
    that will show him a report according to the treenode that he selected on the first Page.

    Problem:
    I don't know how I can read the value of the selected treenode.

    I hope you can help me.

    Thank you
    Frédéric

    Hi Frederic,.

    To get the value of the selected tree node, you can make use of the "selected Page element node' attribute on the attributes of the tree page. Just create an element of your page and set the "Page of selected node element" of this new item page. Then fill the point via the BINDING of your tree query parameter. For an example, take a look at the following: http://apex.oracle.com/pls/apex/f?p=36648:6, where I put my point page P6_SELECTED_NODE to the value of the node selected in the first tree that is empno. Your report query must refer to the node selected item "Page, to make sure it displays information about the selected tree node.

    I hope this helps.

    Kind regards
    Hilary

  • Refreshing a report on the change in value of the selection list

    -Very well, this should be very easy, but I can't seem to do things.

    I have 2 items on a page: a list of selection and a report.

    The report contains a WHERE clause that uses the value of the selection list.

    So when I change the value of the selection list, the report needs to be recharged.

    I don't want to use a 'Redirect and set' when I change the selection list, because I don't think it's very pretty.

    So I created a dynamic action that updates the State when the selection list is changed.

    Now for the problem: the report get updated, but the new value of the selection list is not used!

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    Thank you.

    popovitsj wrote:

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    It is in the region of report definition: Page to submit items in the Source section.

  • How to get the value of the selection of the text box list

    Hello

    I have a selection list that I want to retrieve the value of the selection of the text box list.

    How can I do this?


    Kind regards
    Santini.

    Hi Sarah,.

    Yo can use Java script for this...

    Dynamically the value will enter in the text box.

    Use the script below.

    
    

    See you soon,.
    Shan

  • Some columns of the values of the selected line returns NULL in the table of the adf.

    Hello..

    My version of jdev 11.1.1.5.0

    I have a vision with some columns. This view is mapped to a table of adf with some of the displayed columns. My task is to get the column values selected line (including the values of the column not displayed).
    But I'm certain values such as null, although there are values present when I run the query from the view.
    My code:
    DCIteratorBinding tableVO = ADFUtils.findIterator ("myVO");
    ViewObject voTableData = tableVO.getViewObject ();
    Line rowSelected = voTableData.getCurrentRow ();


    + / / codeto display column and the values +.
    int x = 0;
    * for (the names of the objects: rowSelected.getAttributeNames ()) {*}

    * for (int i = x; i < rowSelected.getAttributeValues () .length; i ++) {*}
    * System.out.println (x + "." + name + "=" + rowSelected.getAttribute (i)); *
    break;
    *}*
    x ++ ;
    continue;
    *}*


    MY table:
    * < af:table value = "#{bindings.myVO.collectionModel}" *.
    * var = "row" rows = "#{bindings.myVO.rangeSize}" *.
    * EmptyText = "#{Bindings.myVO.Viewable?" "{'No data to display.': 'Access Denied.'}". *
    * fetchSize = "#{Bindings.myVO.rangeSize}" *.
    * rowBandingInterval = "0."
    * filterModel = "#{Bindings.myVO.queryDescriptor}" *.
    * queryListener = "#{Bindings.myVO.processQuery}" *.
    * filterVisible = "true" varStatus = "vs."
    * selectionListener = "#{myBean.method_onRowSelect}" *.
    * rowSelection = "single" id = "t1" styleClass = "AFStretchWidth."
    "* partialTriggers =": sbcClose: sbcOpen: socWarehouse. "
    * inlineStyle = "height: 217px;" / > *.


    Thank you

    Question: the attributes are not null in the DB?
    The attributes are part of the past of the query select?
    And they are part of the binding of the tree?

    Timo

  • Select the color based on the value of the selected list

    Hello

    Is could someone please tell me if it is possible to display a LOV with a background color according to the selected value?

    In fact, I have a report with many selection lists whose value can be N/A Y, N, and I would like that the corresponding LOVs have the background in color according to the value.

    Thanks in advance,

    Andreea

    Published by: user12064977 on October 20, 2009 02:15

    Oh! I have not read the word "report" in your original post and I took your page as a form... :(

    OK, first of all, run your page and see the HTML source generated for it. Note the value of the attribute "name" for all the columns in the report when you use selection lists. Now using JS, set the background color for them.

    Suppose "f03" is the name for your selection list value, then

    Try the code in the following page footer section

    
    
    CheersHari 
    
  • With the help of data values for the selection of members

    Hello everyone:

    I know there are operating functions, with members, strings, names of members... so that you are able to convert a string to a member (@MEMBER) and vice versa.

    But, is it possible to use a value of Member to select someone else?. For example, if in the account dimension, I'm a member of 'parent' with value '100'. Could I put a value, using the value '100' in the '100' member registered in 'parent' to select this member. So if its value is '200', I should put in '200' member.

    Thank you

    Kind regards

    Javier

    Hello

    First, you insert the CDF, essbase server. in the zip file, you have a small description how draconian make zip archive contains a file bat with a script maxl who do all the work. then restart the essbase server and then a new list of functions should be available on the script calc under Group Editor "functions only the user".

    Here is a small piece of code I created for my current project.

    This store a substring product code number on the cube

    "Produccion_pan"->"Prod_CC_4"->"Referencia"=@JgetDoubleFromString(@SUBSTRING(@NAME(@CURRMBR("CompCosto")),6));
    

    then I read that number and use it again as a member of another Sun name

    "Produccion_pan"->"USD"="Produccion_pan"->"USD" + "Prod_CC_5"->"M3"*"Disponible"->"Total_Puesto"->@MEMBER(@CONCATENATE("PP_",@JgetStringFromDouble(codigo_p,@_false,@_false)))->"Coeficiente_v";
    

    I hope it helps you. concerning

  • ADF Table - View column value of the selected line, need help

    Hi all

    I am newbee in ADF and needed to get the value of the column in the selected line in ADF inputTest.
    (I tried to navigate link without success)

    Pls tell me is it possible without coding, that is to say using partialTrigger etc.

    Please indicate the steps to follow.


    Thank you
    Amit

    Hello

    I'm not clear on your condition, where is your inputtext, is it inside the table or just outside the table?

    From my understanding, I realized that you have a table and a text entry next to the table where you want to display the value of a particular column of a selected line. That's what you're looking for (in which case above suggested solution works) or something different?

    Jean Lou

  • Reset the value of the selection list

    APEX version: 4.2.2

    I'm fighting to implement a solution to reset the value of an element from the list of selection on a page in my application.

    I currently have about 4 pages in my application with a level of tabs with every page on its own tab.

    I have a report of Emp page that lists employees. The page contains an element of selection list for emp_no who submits the page when the value changes. The query for the list of selection queries the emp for name and emp_no table. It has:
    Display additional values: Yes
    Display Null values: Yes
    Display NULL value: all THE
    Return NULL value:
    (no value for the return NULL value)
    Page, in itself, works the way you want. During the first visit to the page, EVERYTHING is selected and the report shows all the EMOS. If I select a specific employee, the page refreshes with just this employee.

    On the Main page is another employee list report. The report has a link between the employee id column and the Emp report page. The link sets the value of Emp.emp_no to the value of Main.emp_no. It works very well so if I take emp hand 123, 123 shows Emp.emp_no and the report shows that retail for emp 123.

    The problem is when a specific employee has been selected previously from the homepage or the Emp page and I click on a tab to another page, say the status tab / page and then click on the tab of the page of the Emp. The current behavior of the page, is that it continues to show some used was previously selected regardless of how it has been set, either Emp or to the homepage page. I want to reset select Emp.emp_no ALL (or null) if I navigate to the page of the Emp to any other page except hand or Emp itself.

    I searched through the forums and tried to use processes at the level of the page and after region to reset the value of Emp.emp_no, but nothing has worked. I believe there is a 'simple' way to do it that doesn't require coding on each page to set Emp.emp_no on a null value before calling it.

    I would like ideas on solving this seemingly simple task that has managed to escape.

    Thanks in advance.

    cagora

    Use a query in your link for filtering the selection list. Create a compuation on the definition page of the selection to NULL list if the request is NULL > PL/SQL Expression >: APPLICATION IS NULL. In this way, you can check the list of selection gets nulled while accessing the page normally.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    https://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

Maybe you are looking for

  • How to add the computer to the ethernet network

    For some unknown reason, a MacBook Pro than on the ethernet network home. Previously I would just plug the ethernet cable and the connection is between my Mac Pro and the laptop, but not more. What are the settings must be restored?

  • Pavilion 14 b-130sa: upgrade Windows 10: Touchpad freeze

    Hello Recently installed windows 10 on my laptop, everything seems to work fine, although I noticed that whenever I press a key on the keyboard, my trackpad will be disabled / gel for between 5 to 10 seconds. Sound ' of course very annoying. I looked

  • His slow on Tecra S1

    Hello I have a little problem. Since last weekend, the sound of my tecra s1 is slower than normal (the sound seems to be stretched. I tested it with my other PC laptop is on 30sek reading 5 slower than normal sek)I have not now why it happened. I tho

  • replacement of Spanish keyboard for Yoga 14?

    Hello I recently bought this laptop at BestBuy: THINKPAD YOGA 14 - 20DM009GUS (2 in 1) I need to get the keyboard in Spanish (with the N key) This room is available for purchase? could someone give me the part number? I have the instructions to chang

  • HP PhotoSmart 5520 will not print in black

    Hello Recently, I bought a printer Photosmart HP 5520. I have tested it and love the printer!I was testing to print some pages in internet (wireless) and given my laptop (HP, too ;-)) the command to print the pages in black. But when the pages came o