JSF component to create a html table view

Jdev 11.1.1.4

I would like to know what is the preferred jsf component create a view in an HTML table.

My screen must have a 'head of column table' and 'line the table header '. It is composed of several rows and columns. In each cell, I need to insert a different inputText mapped to the different attributes of VO. I have many attributes of VO... (one per cell). Something like a MS-Excel crosstab table.

I am currently using a real html table, but I'm having some problems when the contents are adjusted inside a cabinet (sometimes the right side of the table out of the box of control panel). I also have problems with the help toolltip (property shortdesc) text that sometimes does not display exactly where are the input fields and the shadow of this ToolTip apears incorrectly overlapping content (in fact the ToolTip apperars in one place and he the shadow in a different place from the screen like a gray rectangle.)

I don't know if all this strange behaviors could be caused due to the use of html tables.

Hello

Check this box
http://MyFaces.Apache.org/Trinidad/Trinidad-API/tagdoc/trh_tableLayout.html

Kind regards

Tags: Java

Similar Questions

  • [OBIEE 11 g] Create customized to group columns in a table view column header

    Hello world

    I got a requirement to group certain columns in the table view with a custom column header name (for example to create a two-level header).

    The layout I have now:

    [Jan]     [February]     [Mar]     [Apr]     [May]     [June]     [Jul]     [August]     [Total sales]

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

    1          2          3            4          5           6           7          8           36

    The layout I want to achieve:

    [                  Q1                    ] [                   Q2                   ]    

    [Jan]     [February]     [Mar]     [Apr]     [May]     [June]     [Jul]     [August]     [Total sales]

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

    1          2          3            4          5           6           7          8           36

    I use Table View, is it possible to get the above provision? Any comments appreciated. Thank you.

    See you soon,.

    Kayip

    Hello

    It is a simple parameter, it is unpacking already...

    The property "of the topic folder" of your columns allows you to enter the required text.

    PS: Do you really have columns in your field with the name of the month? Is it not something better managed with a hierarchy of real time and using a pivot to display the month columns? In this case the grouping of quarters is already there...

  • Create a Page item: stop and start the HTML Table presentation - location?

    Where is the "Create Item-> stop and start HTML Table Layout Page" located at? I can't find it.

    kilo1-1 wrote:
    Where the "create point Page--> stop and start HTML layout table" is located at? I can't find it.

    4.2 elements 'Stop and start in HTML table' are replaced by setting new Start grid in grid presentation properties of each element.

    (Please always indicate which version APEX your question relates to.)

  • How to find the views created on a table... ?

    Hi all

    I have a table name, EMP. I want to know what are the views created on this table. Is there any SQL query is there for this or any other
    How to find.

    Thanks in advance.
    PAL

    You can use ALL_DEPENDENCIES to this:

    SQL> create view emp_v as select * from emp;
    
    View created.
    
    SQL> select name
      2  ,      referenced_name
      3  ,      referenced_type
      4  from   all_dependencies
      5  where  name = 'EMP_V';
    
    NAME                           REFERENCED_NAME                                                  REFERENCED_TYPE
    ------------------------------ ---------------------------------------------------------------- ----
    EMP_V                          EMP                                                              TABLE
    
    1 row selected.
    
    SQL> select name
      2  ,      referenced_name
      3  ,      referenced_type
      4  from   all_dependencies
      5  where referenced_name = 'EMP';
    
    NAME                           REFERENCED_NAME                                                  REFERENCED_TYPE
    ------------------------------ ---------------------------------------------------------------- ----
    EMP_V                          EMP                                                              TABLE
    EMP_TRG                        EMP                                                              TABLE
    
    2 rows selected.
    
    SQL> 
    

    Remember it's important if you limit the NAME or REFERENCED_NAME.
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/statviews_1041.htm#sthref935

    Edit

    Ah, Gave!
    If you don't want to teach him something and become independent?

    Now you made me feel guilty ;) (don't know what that Johan position initially, but anyway...)
    I blame my currently terribly slow connection for this...

    Anyway, OP, always start a quick search of the documentation first.
    Chances are that you will find you your answer.
    Houses:
    http://www.Oracle.com/pls/db102/homepage
    http://www.Oracle.com/pls/db112/homepage

    Published by: hoek on 15 October 2010 14:53

  • How to insert values into a view created on multiple tables

    Hi all

    My goal for insert values in a view
    So for this I created a trigger
    then I tried to insert the value in the view, im getting as inserted row, but the value is not getting inserted

    Here are the steps I followed:


    SQL > create table (x int primary key)
    2.

    Table created.

    SQL > create table b (x references a, varchar2 (30)) y
    2.

    Table created.

    SQL > insert into a values (1)
    2.

    1 line of creation.

    SQL > insert into b values (1, 'One')
    2.

    1 line of creation.

    SQL > create or replace view v
    2 as
    3 select a.x, b.x as b_x, a y, and b where a.x = b.x
    4.

    Created view.

    SQL > select * from v
    2.

    X B_X Y
    ---------- ---------- ------------------------------
    1 1 a

    SQL > create or replace trigger v_t
    2 instead of inserting it on v
    3 for each line
    4 start
    case 5: old.x <>: new.x then
    6. Insert in a values(:new.x);
    7 end if;
    case 8: old.b_x <>: new.b_x then
    9 insert into b values (:new.b_x,:new.y);
    10 end if;
    11 * end;
    SQL > /.

    Trigger created.

    SQL > insert into v values (20,20, 'Twenty')
    2.

    1 line of creation.

    SQL > select * from v
    2.

    X B_X Y
    ---------- ---------- ------------------------------
    1 1 a


    Can anyone suggest me a valid query to insert data into a view that is created on several tables.

    Thanks in advance,
    Shalini

    Hi Shalini,

    You don't need the code if in your trigger.
    That's more like code when you update, you don't compare OLD and insert the NEW values on.

    MHO%xe> create table a(x int primary key);
    
    Tabel is aangemaakt.
    
    Verstreken: 00:00:00.11
    MHO%xe>
    MHO%xe> create table b(x references a,y varchar2(30));
    
    Tabel is aangemaakt.
    
    Verstreken: 00:00:01.09
    MHO%xe>
    MHO%xe> insert into a values(1);
    
    1 rij is aangemaakt.
    
    Verstreken: 00:00:00.01
    MHO%xe>
    MHO%xe> insert into b values(1,'One');
    
    1 rij is aangemaakt.
    
    Verstreken: 00:00:00.06
    MHO%xe>
    MHO%xe> create or replace view v as
      2  select a.x
      3  ,      b.x as b_x
      4  ,      y
      5  from   a
      6  ,      b
      7  where  a.x = b.x;
    
    View is aangemaakt.
    
    Verstreken: 00:00:01.07
    MHO%xe>
    MHO%xe> select * from v;
    
             X        B_X Y
    ---------- ---------- ------------------------------
             1          1 One
    
    Verstreken: 00:00:00.04
    MHO%xe>
    MHO%xe> create or replace trigger v_t
      2  instead of insert on v
      3  for each row
      4  begin
      5      insert into a values(:new.x);
      6      insert into b values(:new.b_x,:new.y);
      7  end;
      8  /
    
    Trigger is aangemaakt.
    
    Verstreken: 00:00:01.64
    MHO%xe>
    MHO%xe> insert into v values(20,20,'Twenty');
    
    1 rij is aangemaakt.
    
    Verstreken: 00:00:00.06
    MHO%xe>
    MHO%xe> select * from v;
    
             X        B_X Y
    ---------- ---------- ------------------------------
             1          1 One
            20         20 Twenty
    
  • Created by af:table program does not properly

    I have this JSF page:

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html>
    <f:view xmlns:f="http://java.sun.com/jsf/core" 
            xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="myFirstPage.jsf" id="d1">
        <af:form id="f1">
              <af:table binding="#{createAdfComponents.table}"/>
         </af:form>
        </af:document>
    </f:view>
    
    

    Here's the bean "createAdfComponents":

    @ManagedBean(name = "createAdfComponents")
    @SessionScoped
    public class CreateAdfComponents {
        public String[] columns = new String[]{"customerID", "firstName", "lastName", "address", "dob"};
       
    
        private RichTable richTable = null;
        public RichTable getTable() {
            return richTable==null ? richTable=createTable() : richTable;
        }
    
        private RichTable createTable() {
            RichTable table = new RichTable();
            List<Customer> data = getCustomerList();        
            table.setValue(data);
            table.setVar("c");
            table.setRowBandingInterval(0);
            table.setId("t1");
            int i =1;
            for (String column : columns) {
                RichColumn richColumn = new RichColumn();
                richColumn.setSortable(false);
                richColumn.setHeaderText(column);
                richColumn.setId("c"+ i);
           
                RichOutputText columnValue = new RichOutputText();
                columnValue.setValueExpression("value", createValueExpression("#{c."+column+"}", getClassType(column)));
                columnValue.setId("ot" + i);
                richColumn.getChildren().add(columnValue);
               
                table.getChildren().add(richColumn);
                i++;
            }
            return table;        
        }
        private ValueExpression createValueExpression(String valueExpression, Class<?> valueType) {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            return facesContext.getApplication().getExpressionFactory().createValueExpression(
                            facesContext.getELContext(), valueExpression, valueType);
        }
    
    }
    
    

    And, for completeness, here's the Customer.java class:

    public class Customer {
        private long customerID;
        public String firstName;
        public String lastName;
        public String address;
        public Date dob;
        public long getCustomerID() {
            return customerID;
        }
        public void setCustomerID(long customerID) {
            this.customerID = customerID;
        }
        public String getFirstName() {
            return firstName;
        }
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        }
        public String getLastName() {
            return lastName;
        }
        public void setLastName(String lastName) {
            this.lastName = lastName;
        }
        public String getAddress() {
            return address;
        }
        public void setAddress(String address) {
            this.address = address;
        }
        public Date getDob() {
            return dob;
        }
        public void setDob(Date dob) {
            this.dob = dob;
        }
    }
    
    

    Now, when I run the above on IntegratedWebLogicServer JSF page in JDeveloper 12.2.1...  The columns in the table, but instead to display all the data, the page keeps refreshing repeatedly.

    And in doing so... I see the following exception in JDeveloper console output:

    javax.el.PropertyNotWritableException: //D:/JDeveloper/system12.2.1.0.42.151011.0031/o.j2ee/drs/Application1/ViewControllerWebApp.war/index3.jsf @8,59 binding="#{createAdfComponents.table}": The class 'CreateAdfComponents' does not have a writable property 'table'.
      at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:136)
      at javax.faces.component.UIComponent.processEvent(UIComponent.java:2419)
      at org.apache.myfaces.trinidad.component.UIXCollection.processEvent(UIXCollection.java:918)
    
    

    This exception keeps showing up over and over again... Presumable for every time the page refreshes, it does so constantly with little or no break.

    Now, when he has none of the elements of input text and only items of output text, so why would he try a set operation?  Not must not only be fulfilling get operations?

    PS I'm new JSF, and ADF.

    Many thanks to all.

    The error message tells you that your bean class holding the table needs a Set accessor method for the table. The Set accessor is called by the framework when the page was created.

    Add a setTable (RichTable t) viod your beans and it should display the table.

    As you initialize it the table the first time that call you the Get accessor, you need not store the table through the Set accessor.

    Timo

  • How to create a second table containing the first?

    I have a table with data source. I would like to create a second table that feeds these data. I will use the second table for the filtered views, etc. I am currently copying a range of cells through, referring to table 1. However, if a new line is added to table 1, it does not table 2. How can I configure things so that any changes - including the new lines/columns would be automatically carried over to table 2?

    Table 2 cannot automatically grow the new rows or columns. If you want it to be completely 'automatic', your second table must be as large or larger than your first picture will be never. In other words, there need to additional rows and columns to allow growth. If is not bigger than 1 table, when you add rows or columns to the table 1, you must also manually add rows or columns to the table 2.  The problem is that all these lines/additional columns in table 2 will have formulas that are referred to non-existent rows/columns in table 1, which is a mistake. What you do next depends on what you do with table 2. If it is just for display of data and your existing formulas are all as = 1::A1 Table, you can change to = SIERREUR (array 1::A1, "") to get rid of the errors.  To hide all blank lines, you can set up a filter to show only the rows where column A is not a space (for example) character. There is no filter to hide additional columns, however.

  • Display HTML table in the BBUI screen

    I want to write an application that displays a custom calendar (month view). Now, I use java script to render an HTML table, and insert this code in the data screen as below.

    function viewSelectedMonth() will make only the HTML for the table. But when I run the action menu does not work. Could you tell?


       


           
    Help

           
    On

           
    Parameters

       


        
        


       


           

    Home

           
    Toast


           

    Today


    Hi there, I don't have an exact answer as to why your code behaves like that.

    The best thing I can say is that you use Web Inspector to debug your application. If there are errors as they appear in the Console of the Web Inspector, and you will be able to solve much better.

    More info @ https://developer.blackberry.com/html5/documentation/v2_2/getting_started_web_inspector.html

  • Complete export dashboard in excel gives error generate document in the table view of subtotals

    Hi all

    We have dashboard with several tabs and you try to export the whole dashboard in excel.

    Excel file is generated with all tabs on the dashboard as the leaves, but few of these leaves are empty with error message of document generation in the first cell.

    After further analysis, we concluded that the cause is seen with subtotals on table. PivotTables with subtotals are generated correctly.

    Workaround obvious to re-create the table views in the articulation points is not possible due to a large number of reports.

    We run Oracle Business Intelligence Product Version 11.1.1.7.150120 (Build 150113.1200 64-bit)

    Any ideas or solutions to this problem would be appreciated.

    Thank you;

    Klaudio

    We just found guilty

    Lines per page to display in the table must be 999999999 max which is more than enough for our needs.

  • How can I filter the data and display it in the html table?

    Hello

    How do I filter data that contains the database table and already displayed in html table, then when the user write a data to filter or search, it will automatically display the data in html table. ?

    can someone help me to do this? Here is my php code for the table that will display the data:

    <?php
      $servername = "localhost";
      $username = "root";
      $password = "pass";
      $dbname = "ses";
       
       
      // Create connection
      $conn = new mysqli($servername, $username, $password, $dbname);
      // Check connection
      if ($conn->connect_error) {
      die("Connection failed: " . $conn->connect_error);
      }
       
      $sql = "SELECT No, Calon, ID, Jurusan FROM candidates";
    
      $result = $conn->query($sql);
      ?>
    
    <?php
      if ($result->num_rows > 0) {
      echo "<table >
    
      <tr>
      <th>NO</th>
      <th>Candidate</th>
      <th>ID Number</th>
      <th>Programme</th>
      <th>Edit</th>
      <th>Delete</th>
      </tr>";
      // output data of each row
      while($row = $result->fetch_assoc()) {
      echo "<tr>
      <td align='center'>" . $row["No"]. "</td>
      <td>" . $row["Calon"]. "</td>
      <td>" . $row["ID"]. " </td>
      <td>" . $row["Jurusan"]. "</td>
      <td align='center'><a href='main2.php?edit=".$row["No"]."'>Edit</a></td>
      <td align='center'><a href='delete.php?del=".$row["No"]."'>Delete</a></td>
      </tr>";
      }
    
      echo "</table>";
      } else {
      echo "0 results";
      }
      $conn->close();
      ?>
    

    hope someone can help me with this.

    Thank you.

    You must first create a search form for the user to enter a search word:

    Then create a page named search_page.php and insert the following code into it and save it. The code in red below Gets information from the search form field name = "Calon" and the SQL query finds in the "Calon" database field for a game.

    <>

    $servername = "localhost";

    $username = 'root ';

    $password = "pass";

    $dbname = 'his ';

    Create the connection

    $conn = new mysqli ($dbname, $servername, $username, $password);

    Check the connection

    If {($conn-> connect_error)

    Die ("connection failed:".) $conn-> connect_error);

    }

    $Calon = trim($_POST['Calon']);

    $sql = (' SELECT no, Calon, ID, Jurusan candidates WHERE Calon = "'.") $Calon.' » ") ;

    $result = $conn-> Query;

    ?>

    <>

    If ($result-> num_rows > 0) {}

    ECHO '.

    ";

    each line output

    While ($row = {$result-> fetch_assoc())}

    ECHO '.

    ";

    }

    ECHO '.

    NO. Candidate Identification number Program Edit Delete
    " . $row ["no"]. " " . $row ["Calon"]. " " . $row ['ID']. " " . $row ["Jurusan"]. " Edit Delete
    ";

    } else {}

    echo "0 results."

    }

    $conn-> close();

    ?>

  • How to switch to the default library of a HTML link view

    Hello

    I created a HTML content to a new tab in the navigation options.

    I created buttons (link) in the HTML files and I'd like to link to the library view (no HTML).

    I used what was stated in the manual and the information related to this issue:

    Goto://ApplicationViewState/library

    But it does not work.

    I saw all the other discussions when it is appropriate to use the API of DPS

    https://forums.Adobe.com/thread/1484170

    But it is not useful because I do not understand how to integrate it in HTML.

    Could someone tell what is the code needed to add the link in html to display the library?

    It is necessary to link the API in HTML code?

    Thank you

    Andrea

    A workaround is to create a link using the custom URL schema. For example, if I create a hyperlink to "com.bringhurst.dpstips://" listen to this link will launch the library DPS tips on iOS devices.

  • How to create LOV on object view with herself


    Hello

    My scenario is that I COUNTRY with columns Country_Code, Country_Name and table.

    I need to display the Country_Name under selectonechoice. The user selects a country name, and then I should get the Country_Code associated the Country_Name selected in the Managed bean.

    Could you please suggest how to achieve?

    Kind regards

    Vinod

    Hello

    My English is not very good.

    create an obj COUNTRY table view and then drag & drop data view obj as a single selection and Adf and select Select a choice and from here you can select the attribute to display.

    in managed bean, you can get the Country_Code from code below:

        DCBindingContainer = dcBindings
            (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
        DCIteratorBinding = iteratorRow
            (DCIteratorBinding) dcBindings.get ("iterator to view obj name");
        Line = iteratorRow.getCurrentRow ();
        System.out.println ("rank [] =" + row.getAttribute (0));

    Habib

  • To access the tables/views outside of the APEX

    According to the request of Andrew as a separate and somewhat more extensive thread here:

    We have several tables/views created under some schemes; all equipped with grants and public synonyms.

    These tables is visible and accessible by all users-ORACLE (via forms and States - as it has recently used)

    Now, I started with APEX a few days ago - OK, seems to work - but with objects such only created inside of this APEX workspace.

    This kind of things outside OF THE SUMMIT is not visible.

    Why? What is missing? It was one of my questions 1.

    How do these objects visible in the APEX? Of course, we do not want all that stuff again, and existing in bulk.

    I guess that as a very common problem.

    (One solution I found already: creating views inside the APEX to access objects outside.) "It is not comfortable).

    Thank you

    Wolfgang

    Object browser is rudimentary, but behaves in the same way that developer SQL will report on these objects.

    Notice the 'Plan' selection list at the top right.

    If you have tried ' select * from abcxyz "SQL commands, you should have success - in the same way, you should have success in the creation of form/report on abcxyz via the synonym.

    Scott

    .

  • PLS-00357: Table, view or unauthorized reference sequence "POC_AD0FFFKMZ6QQ0"

    Hello

    A scheculer to perform the following procedure.
    create or replace procedure GENERATE_LOAD_TYPE (p_module_type in varchar2)
    as
    cursor c is
    select id,view_name
    from   poc_test
    where  view_name='POC_AD0FFFKMZ6QQ0';
    
    
    Begin
    
    for c_rec in c loop
        BEGIN
          DBMS_SCHEDULER.create_job (
            job_name        => c_rec.view_name||'_job',
            job_type        => 'PLSQL_BLOCK',
            job_action      => 'BEGIN POC_LOADER('||c_rec.id||','||c_rec.view_name||'); commit; END;',
            start_date      => SYSTIMESTAMP,
            repeat_interval => 'SYSTIMESTAMP + 365 /* 1 Year */',
            enabled         => TRUE);
        exit;
       END;
       
    end loop;
    
    end;
    
    exec GENERATE_LOAD_TYPE('1');
    
    PL/SQL procedure successfully completed.
    But the task is failed on the following error message:
    select additional_info from DBA_SCHEDULER_JOB_LOG where job_name='POC_AD0FFFKMZ6QQ0_JOB'
    
    
    ORA-06550: line ORA-06550: line 1, column 505:
    PLS-00357: Table,View Or Sequence reference 'POC_AD0FFFKMZ6QQ0' not allowed in this context
    ORA-06550: line 1, column 476:
    PL/SQL: Statement ignored , column :
    The problem is with this line:
      job_action      => 'BEGIN POC_LOADER('||c_rec.id||','||c_rec.view_name||'); commit; END;',
    When I remove the parameters (for example: c_rec.id | ',' | c_rec.view_name) has worked well.
    Please advice.

    Thank you

    Try to change this line

    job_action      => 'BEGIN POC_LOADER('||c_rec.id||','||c_rec.view_name||'); commit; END;',
    

    TO

    job_action      => 'BEGIN POC_LOADER('||c_rec.id||','''||c_rec.view_name||'''); commit; END;',
    

    URS

  • The reference to the table, view, or the sequence is not allowed in this context

    Hello

    I am triying to run the SP that I describe below and the OS gives me an error:
    CREATE OR REPLACE PROCEDURE DWARE.P_CSCV_AGR_MONTH_REVENUE
    (
        TBL_NAME VARCHAR2,
        START_DATE DATE,
        RESULT_ OUT NUMBER
      ) AS
      BEGIN
      
      DECLARE 
      
        v_tbl_name VARCHAR2(30);
        v_start_date DATE;
        v_result NUMBER := 0;
        
        v_select_aux VARCHAR2(32767) := ' ';
        v_temp_table VARCHAR2(30);
        v_exists NUMBER;
    
      BEGIN
        v_tbl_name := TBL_NAME;
        v_start_date := START_DATE;
      
        v_temp_table := 'temp_' || v_tbl_name;
        
        SELECT count(*) INTO v_exists FROM tab WHERE lower(tname) = lower(v_temp_table);
        IF (v_exists = 1) THEN
          v_select_aux := '
            DROP TABLE ' || v_temp_table || ' CASCADE CONSTRAINTS PURGE
          ';
          EXECUTE IMMEDIATE (v_select_aux);
          COMMIT;
        END IF;
        
        v_select_aux := 'CREATE TABLE ' || v_temp_table || ' AS 
                                  SELECT ch.date_ month_revenue,
                                       s.date_sub month_sub,
                                       s.codpromoter,
                                       u.OPERATOR,
                                       SUM (ch.total) AS TOTAL_OK
                                       FROM cscv_sub_charges_' || to_char(v_start_date, 'YYYY_MM')|| ' ch
                                       INNER JOIN cscv_subs s
                                       ON ch.id_sub = s.ID
                                       INNER JOIN cscv_users u
                                       ON s.id_user    = u.ID
                                WHERE ch.STATUS = 0
                                GROUP BY ch.date_, s.date_sub, s.codpromoter, u.OPERATOR';
                                
        EXECUTE IMMEDIATE (v_select_aux);
        COMMIT;  
         v_select_aux := '
     INSERT INTO ' || v_tbl_name || ' (
             month_revenue,
             month_sub,
             codpromoter,
             operator,
             TOTAL_0,
             TOTAL_1,
             TOTAL_2,
             TOTAL_3,
             TOTAL_4,
             TOTAL_5,
             TOTAL_6,
             TOTAL_7,
             TOTAL_8,
             TOTAL_9,
             TOTAL_10,
             TOTAL_11
          )
            SELECT 
             month_revenue,
             month_sub,
             codpromoter,
             operator,
             TOTAL_0,
             TOTAL_1,
             TOTAL_2,
             TOTAL_3,
             TOTAL_4,
             TOTAL_5,
             TOTAL_6,
             TOTAL_7,
             TOTAL_8,
             TOTAL_9,
             TOTAL_10,
             TOTAL_11
            FROM 
            (
               SELECT 
                  month_revenue,
                  month_sub,
                  codpromoter,
                  operator,
                  sum(total_ok) total_0,
                  0 total_1,
                  0 total_2,
                  0 total_3,
                  0 total_4,
                  0 total_5,
                  0 total_6,
                  0 total_7,
                  0 total_8,
                  0 total_9,
                  0 total_10,
                  0 total_11
                 FROM '|| v_temp_table ||'
              WHERE to_char(month_sub,''mm/yyyy'') = to_char(sysdate,''mm/yyyy'')
              GROUP BY month_revenue,month_sub,codpromoter, operator
              UNION ALL
              SELECT 
                  month_revenue,
                  month_sub,
                  codpromoter,
                  operator,
                  0,
                  sum(total_ok),
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0
                 FROM '|| v_temp_table ||'
              WHERE to_char(month_sub,''mm/yyyy'') = to_char((to_date(sysdate,''dd/mm/yy'') - INTERVAL ''1'' MONTH),''mm/yyyy'')
              GROUP BY month_revenue,month_sub,codpromoter, operator
              ) 
            GROUP BY month_revenue,
             month_sub,
             codpromoter,
             operator
               ';    
        
        EXECUTE IMMEDIATE (v_select_aux);
        v_result := v_result + SQL%ROWCOUNT;
        COMMIT;
        
        v_select_aux := '
          DROP TABLE ' || v_temp_table || ' CASCADE CONSTRAINTS PURGE
        ';
        EXECUTE IMMEDIATE (v_select_aux);
        COMMIT;
        
        RESULT_ := v_result;
      END;
      END P_CSCV_AGR_MONTH_REVENUE;
    /
    ------------------------------
    BEGIN
    DWARE.P_CSCV_AGR_MONTH_REVENUE(CSCV_AGR_MONTH_REVENUE,'01/01/2010');
    END;
    /
    and the output is:
    Error at line 1
    ORA-06550: líne 2, column 32:
    PLS-00357: The reference to the table, view or sequence 'CSCV_AGR_MONTH_REVENUE'  is not allowed in this context
    ORA-06550: líne 2, column 1:
    PL/SQL: Statement ignored
    What could I do to fix the problem?

    Thanks in advance...

    Hello

    Signature of the procedure is

    CREATE OR REPLACE PROCEDURE DWARE.P_CSCV_AGR_MONTH_REVENUE
    (
    TBL_NAME VARCHAR2,
    START_DATE DATE,
    RESULT_ OUT NUMBER
    ) 
    

    either he's expecting two input parameters, tbl_name in VARCHAR2 and the other START_DATE date format format. Also you need a variable with the number data type to store the value of the PARAMETER RESULT_

    Now, look at the way you call this procedure

     BEGIN
    DWARE.P_CSCV_AGR_MONTH_REVENUE(CSCV_AGR_MONTH_REVENUE,'01/01/2010');
    END;
    /
    

    first parameter must be a VARCHAR2, so place CSCV_AGR_MONTH_REVENUE in single quotes.
    second parameter must be a date, so use to_date() function.
    Finally declare a variable with the data type of number to maintain the value of the parameter RESULT_

    Something like this:

    declare
    t_num number;
    begin
    a('CSCV_AGR_MONTH_REVENUE',to_date('01/01/2010','MM/DD/YYYY'),t_num);
    dbms_output.put_line(t_num);
    end;
    

    Vivek L

Maybe you are looking for

  • Error when you try to open the app Itaú

    When I try to open the app Itaú (Bank of Brazil), this error occurs: Note: I've already opened a ticket with the support of Itaú, but this error occurs only with me. A few months ago, this app worked great. Newspaper report: Process: aplicativoitau [

  • . DATS adopted WMP icon

    Hello I have a Satellite M70-169 with Windows XP SP2. When using WinDVD Creator I seem to have accidentally tried to open with WMP a file that could not be opened. Since then, my. DAT files have a WMP icon.I managed to turn the tide by going to the r

  • My Windows 7 laptop displays no text!

    Good so it is a big problem. My phone does not text, display when I turn on the only things that appear are the icons and button startup, but with no text anywhere. If you click on anything that it won't work. If you try to click on the start menu, n

  • On a start box appears and says can not find.ini:d\driver\chipset\asussetup_hotfix.ini

    My computer starts up fine but when the screen shows Office I get two error boxes that say can not find.ini:d\driver\chipset\asussetup_hotfix.ini It seems to be looking for drivers for Asus in my DVD player. All the drivers are installed and everythi

  • BlackBerry Q10 why the videos are so short?

    I tried to send videos on my q10 and the maximum length is 5 seconds. I want to know what is the maximum and if I can do it any longer. Thank you