Click a report link, a column in the table should be incremented

Hi all
I have a report and a link on the first column if I click the link it will go to another page (i.e. the details of this record).
Now, every time when I click on the link, a column (SNo_Of_Times) in a table (table 1) should get increased. IE I need to know how time I'm clicking on the link (IE look at this record)
the TABLE1 table is to have the columns
Number of SNo
SName varchar2 (30)
SADD varchar2 (35)
Number of SNo_Of_Times

Thanks in advance
Good bye
Sonny_starck

Hi Sonny_starck,

I suggest you to have a process on the second page that runs before the header. You can set this as a condition that the primary key field (for example, P1_SNo) is not not null and do something like:

DECLARE
 vCOUNT NUMBER;
BEGIN
 SELECT nvl(max(SNo_Of_Times),0) INTO vCOUNT FROM TABLE1 WHERE SNo = :P1_SNo;
 vCOUNT := vCOUNT + 1;
 UPDATE TABLE1 SET SNo_Of_Times = vCOUNT WHERE SNo = :P1_SNo;
END;

Andy

Tags: Database

Similar Questions

  • Firefox is configured as the default browser, but if I click on a link in MS Word, the link opens with MS Internet Explore. Why?

    Firefox is configured as the default browser, but if I click on a link in MS Word, the link opens with MS Internet Explore. Why?

    I have the same problem, but the difference is in the opening of the MS WORD hyperlinks to download documents (for example http://ntv.spbstu.ru/2011/hss_2011_3.pdf#page=145 ). This link wants to call MS IE.
    At the same time, all the HTML links are opened in FireFox.

  • I have a table of the adf, I added a column that contains a button that I created, when I click it must remove this row in the table, but it is not, please help

    I have a table of the adf, I added a column that contains a button that I created, when I click it must remove this row in the table, but it is not, please help

    I don't understand. You use vo and eo for you to use business components.

    Again, this kind of code call in trouble.

    You must post the changes to make them visible to the eo find vo. You must then run the query for the changes in the business layer strips then you must update the iterator he table is based on.

    In your code I see that happen, hooch maybe because it is more often than not formatted and undocumented.

    My advice is to do a small test case that you can manage with easy sql. Once you get it to run transfer you the results to the actual application.

    Timo

  • Relationship need master / detail to post a link Master column to the different retail pass 2

    I have a form with a relationship master detail. The main block is a rec_shipments of table of database with a primary key of the shipment_id and a bunch of other columns. The retail block is a rec_containers table with a container_id as the primary key most column shipment_id, split_shipment_id, weight, volume, etc. The shipment_id and the split_shipment_id are nullable.

    When a shipment is received a shipping record is created and container records are created with the populous shipment_id and the split_shipment_id null. Under the shape of what a relationship is created between the block of the expedition and the block container as shipment_id = shipment_id. It works very well. However, they have the ability to spit the original containers in small containers easier to manage for the distribution. For example, if they receive a railroad car full of pallets of printer paper they can take and divide the, 1 tray of rolloff half-and-half into another tray of mitigation. The bins of rolloff will get a unique container_id for follow-up. Registration in the system created in the rec_containers table will be the populous split_shipment_id and the shipment_id null. On the screen, they want to see the (railroad car) original containers and containers of split (ferries rolloff) when the query expedition.

    What they want:
    Shipment_id - and additional information
    ID drive to railway and additional information
    Rolloff Bin 1 ID and additional information
    Rolloff Bin 2 ID and additional information

    My problem is the attenuation of bins do not arise with the current relationship because the shipment_id is set to null in the 2 files of bin rolloff.

    I tried to create a view on the rec_containers table that is all columns in the table plus 1 additional column which is
    NVL (shipment_id, split_shipment_id) comp_ship_id

    then assign the relationship shipment_id = comp_shipment_id. I have the comp_shipment_id column value query Yes and insert & update or not because I don't want to not update this column in the view.

    The problem is I can't update all the columns, I get a cannot book record to update or delete the error.

    Does anyone have any ideas how I can get the block of containers to query all records where the shipment_id or the split_shipment_id is shipping block shipment_id and still be able to update the records?

    Thanks for any help.

    Your idea of using a view is the best approach. To perform the update block, you have OHS 'Query' property only for your item derived to 'yes '. Witn, the column will not appear in any other dml. On lock... maybe the forms is no longer able to make a regular blocking when a block is based on a view. In this case, put a LOCK ON trigger on the block and lock the record for yourself to SELECT for NOWAIT UPDATE on registration. Just try if it would work, you use a NULL value in the POCKET ON right to xheck if dml himself operations will work. If your view is based on a single table, you have a good chance that there is nothing to change, if you get an error like 'Unmodifiable view', you need to make some additional adjustments
    -Choose the Mode key for the block to 'uneditable '.
    -Set the 'primary key' property to 'Yes' for the pk-point in your block.

    hope this helps

  • Select all checkboxes in the column of the table during the 11 G radio button click

    Hello

    I have a table where I inserted a checkbox in the column of the table. I have two outside this table option button, Yes and no. When I select the option button Yes all the boxes in the table to spread and when I select any option button all the boxes should get deselected. As the boxes are inside the columns of the table, we can use setSelected(). How to do this please give ideas.



    Thank you.

    Hi, Maxim,.

    Is your table based on a view object or some bean code?
    If it is based on the view object, the column Boolean checkbox is bound to some transient attribute?

    Have you tried view iteration object rows (if your table bound to viewobject) /POJO(if created list of pojo instances in bean and bound to table) and by setting the Boolean attribute related to the box to true/false on valueChangeListener option button?

    Can you post an example of code to get an idea of your problem?

    Jean Lou

    Published by: Israel Jean Lou on October 24, 2009 04:50

  • Impossible to extract the data of an additional column in the table advance

    Hello

    We have an obligation to add an extra column to the table of advanced search. In addition, we need sort the table using this additional column.

    Now, we have achieved the following:

    1. the required VO was already extended previously and the additional column (LAST_UPDATE_DATE) is already present in the definition of the EO. So, we just added the tag for LAST_UPDATE_DATE in YOUR XML in the form:

    < ViewAttribute

    Name = "LAST_UPDATE_DATE".

    IsPersistent = "false".

    Type = "Oracle.jbo.domain.date"

    ColumnType = "DATE".

    AliasName = 'LAST_UPDATE_DATE. '

    Expression = "LAST_UPDATE_DATE."

    SQLType = 'DATE' >

    < / ViewAttribute >

    2 added a new MessageStyledText column, and updated the following property:

    Prompt = LastUpdateDate. Discover the Instance = TaskPerzSumVO. Display attribute = LAST_UPDATE_DATE. Sort Allowed = true

    The field is now visible in table advance and whenever we seek, attaches the value as ' 1901-01-01'. While I checked manually in the respective table, we have the appropriate data. But in the front end we do not get the data in our additional column of table in advance. In addition, if we try to sort the table by clicking the column LAST_UPDATE_DATE, we get the NPE error. Spec of NullPointerException is as follows:

    # # 0 in detail

    1. java.lang.NullPointerException

    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:989)

    Kindly help us to obtain the appropriate data in the additional column. Thank you!

    Kind regards

    Zahid

    Hi Zahid,

    This is the error:

    29000: unexpected exception caught: oracle.jbo.NoObjException, msg = Houston-25003: TaskEO.LAST_UPDATE_DATE object of type entity activity not found

    Tag entity by its use should have only name of EO and not the name of the attribute.

    Use instead under the tag:

    EntityUsage = "TaskEO".

    Also, I mentioned that rather tags manually, add it please try Wizard VO to add this attribute in EO attributes available list.

  • Unable to add a new column to the table of the LCD? Option, just usually add it.

    I have a form of LCD with a table in it. Im trying to simply add a new column to the table. The option is there, but the column appear just after clicking Add the column to the left. I selected a column, right click the space > insert > column to the left. But the habit intsert. The object table properties tab shows lines and colum numbers, but they are grey.

    See screenshots:

    http://www.emermed.NET/staging/forums...

    http://www.emermed.NET/staging/forums...

    It is a dynamic array, where a new line can be inserted using a button. Is that the dynamic nature of the question? ID hate to cancel all the flow dynamics and programming just to add a column, and then reapply them all.

    Thank you!

    Hello

    You do not add the columns in the object > palette (screenshot 2) of the Table. I suspect that the problem is that it is not enough on the page (in the content area) to add the column. In the screenshot 1, if you look at the width of the column highlighted from the space to the right of the table, you will see that a column can be added due to restrictions of space.

    Reduce the width of the column highlighted (temporarily), and then add a column. Once added, you can resize the columns to match the width of the page.

    Hope that helps,

    Niall

  • Columns of the table must have a header, or by the attribute "headerText"...

    With the help of JDev 11.1.1.3; get the design above time warning on pages where I have a table and don't need a column header (because for example, there is only 1 column and a section through another component header is sufficient), so empty on the column headerText property. The table appears fine without the header line and otherwise works fine, but I get the warning of design time. Is there a way to get around this? How is it is usually without warning?

    Thank you

    robli,

    This warning can be disabled if you wish (it is just a warning and not an error, after all). To do this, open the Preferences dialog box in JDev (Tools-> preferences), expand the category to Audit, and then click profiles. In the rules tab, expand the category of "Accessibility rules faces of ADF" and disable the rule "check that the columns of the table have the headers".

    The fact that the rule is in the section "accessibility" means that your approach to set the header text that can also cause problems if a sighted user needs to use your application with a screen reader, but I can't comment further on the impact of your approach.

    You can always ignore the warning as well.

    Best,

    John

  • The sidebar to view the columns of the table without opening table

    In earlier versions of SQL developer, when I clicked on the button "expand" next to a table, it would be a list of columns that the table had without open the table in the main window. If I right click on the name of the table, there are open table.

    Is there a way to get 2.1 to return to this behavior?

    Open objects with a single click Explorer to be controlled through tools | Preferences | Database | ObjectViewer | Open the object by a simple click. I have it turned off and that it must be a double click on the name or right click and select open before the opening of the object browser. However, even with this, I need to click on the name of the object (not the 'expand' button) before the object viewer opens. By clicking on the button "expand" always expands the list of columns and open object viewer regardless of the value of preference.

    theFurryOne

  • Dynamic number of columns in the table

    Hello

    I use JDev 10.1.3.3.0 with ADF. I just want to create a table, with a dynamic number of columns in the table. The background is that a user of my webapplication can create and submit a sql query. Now, I have to show him the results. My idea was, I have save the result in a bean managed (ResultTable), which is stored in the session context and map at my table in my page.

    If I search the Forum and don't get only one useful thread: {: identifier of the thread = 971888}, but I don't exactly understand. What is the CollectionModel? Do I need this?

    I'm trying to report on the following:

    ResultTable
    public class ResultTable {
    
        public static final String SESSION_NAME = "ResultTable";
        private ArrayList<ResultColumn> columnList; 
        private CollectionModel collectionModel;
    
        public ResultTable() {
        }
    
        public ArrayList<ResultColumn> getColumnList() {
            return columnList;
        }
    
        public void setColumnList(ArrayList<ResultColumn> columnList) {
            this.columnList = columnList;
        }
    }
    ResultColumn
    public class ResultColumn {
        
        private ArrayList<ResultRow> rowList;
        private String name;
    
        public ResultColumn() {
        }
    
        public ArrayList<ResultRow> getRowList() {
            return rowList;
        }
    
        public void setRowList(ArrayList<ResultRow> rowList) {
            this.rowList = rowList;
        }
    
        public String getName() {
            return name;
        }
    
        public void setName(String name) {
            this.name = name;
        }
    }
    ResultTable
    public class ResultRow {
        
        private String value;
    
        public ResultRow() {
        }
    
        public String getValue() {
            return value;
        }
    
        public void setValue(String value) {
            this.value = value;
        }
    }
    My showResult.jspx
    <af:table emptyText="No items were found"
              value="ResultTable.columnList"
              var="column"
              varStatus="colStatus"
              id="table1">
      <af:forEach items="#{column.rowList}" var="row" varStatus="rowStatus">
        <af:column sortable="false" headerText="#{column.name}" 
                   id="column#{colStatus.index}">
          <af:outputText value="#{row.value}"
                         id="outputText#{rowStatus.index}"/>
        </af:column>
      </af:forEach>
    </af:table>
    The ResultTable was filled with data, but the Board is not filled. So, I think, it must be rejected to the data binding.

    I get warnings and errors to run too. But I don't know if they are the result or cause of my problem.
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.renderkit.core.xhtml.TableRenderer renderTableWithoutColumns
    WARNUNG: Table with id: form1:table1 has no visible columns!
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElement
    SCHWERWIEGEND: Element End name:span does not match start name:div
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElement
    SCHWERWIEGEND: Element End name:span does not match start name:div
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElement
    SCHWERWIEGEND: Element End name:form does not match start name:span
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElement
    SCHWERWIEGEND: Element End name:body does not match start name:form
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElement
    SCHWERWIEGEND: Element End name:html does not match start name:body
    Concerning

    Majo

    Hi Mario,.

    
      
        
          
        
      
    
    

    Note that your JSPX snippet above has serious shortcomings:

  • 'ResultTable.rowList' is not an EL expression, but the value attribute of the af: table must refer to an EL expression
  • Items AF:foreach = "#{row.cellList}"-you don't have to store information about the columns of all rows, more it won't work as af:forEach tag may not see the value of the expression of EL #{line} (or any component EL expression created). " See the tagdoc here: http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/forEach.html
  • "ID =" Column #{cellStatus.index} "and id =" outputText #{rowStatus.index} "are invalid and that they don't compile even as id attributes cannot contain EL expressions.

    .

    I think to solve your problem, you need three things:

  • List of columns (for example the list If you need to store only the names of column or list If you need additional information),.
  • list of lines,
  • a line can be a map (with the name of the column - cell data mapping; card e.g.) or a list (with columns indexed; for examplelist).

    Example with the lines of the map:

    JSPX snippet:

    
      
        
          
        
      
    
    

    The ResultTable bean:

    public class ResultTable {
    
        private List columnList;
        private List> rowList; 
    
        public ResultTable() {
        }
    
        public List getColumnList() {
            return columnList;
        }
    
        public void setColumnList(List columnList) {
            this.columnList = columnList;
        }
    
        public List> getRowList() {
            return rowList;
        }
    
        public void setColumnList(List> rowList) {
            this.rowList= rowList;
        }
    
    }
    

    Type ResultColumn:

    public class ResultColumn {
    
        // additional fields if needed...
        private String name;
    
        public ResultColumn() {
        }
    
        public String getName() {
            return name;
        }
    
        public void setName(String name) {
            this.name = name;
        }
    }
    

    AF:table display correctly after the initialization of the values in your beans properly filled ResultTalbe (e.g. to fill the list of rank with the lines).

    Hope this helps,
    Patrik

  • Regd select the column in the table area

    Hello

    I have a search page... Have used autocustomization to create... This page will be used to query data from a table and then we must also update two fields of results table and save.

    There is a region of results. I've included the multiselect table option that made me select a column as the first column of the table. Also, including a tableaction and a button upate with whom...

    I need to write a handler for the update now... but do not understand all the slect column...

    Whenever a user clicks on the boxes to select specific records and change the fields and click Update to save, how to write code to check whether the checkbox option has been activated or not?


    Please help me as soon as possible...


    Kind regards
    Preeti

    Hello

    Take a Transient attribute tell 'SelectFlag' in view object and to set the Instance of the view and the view attribute
    for multipleselection in the table.

    Now that the update is click on the button:

    If (PageContext.GetParameter ("Update")! = null)
    {
    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    OAViewObject vo = (OAViewObject) am.findViewObject ("projVO1");
    Line [] row = vo.getAllRowsInRange ();
    Loop through lines
    for (int i = 0; i)<>
    {
    Check if checbox is checked or not
    If (line.getAttribute("SelectFlag").toString().equals("Y"))//means checbox is checked for this line.
    {
    write your logic
    }
    }
    }

    Thank you
    Gerard

  • ADF 11g - adding serial No. sum of column/calculation of column in the table of the ADF.

    Hello

    -How can I add serial number of column in the table of the ADF.
    -What is the way to calculate the sum of a column at the end of the table. (Table of the ADF). That is to say.
    10
    20
    15
    ______
    45


    Niaz M

    Hello

    Here you have some links to blog posts how do the sum:
    http://apps.branislavnemec.com/blogs/faces/bjanko/blogs.jsp?blog=bjanko20070725180020
    http://Kuba.zilp.pl/?id=781

    Kind regards

    Branislav

    Published by: Branislav Nemec June 6, 2011 11:23

  • How to remove columns from the table on the master 1-0?

    I have an array of 96 columns with strings. I also have the array of int 96-elemets (mask) with 1 and 0.

    What I want to do is to is to remove (or hide - but I read that it is not possible) all the columns with index corresponding to 0 in the mask table.

    example:

    columns in the table

    1 2 3 4 5

    mask

    0 1 0 0 1

    I want to remove the columns 1, 3 and 4 and leave only 2 and 5 in my table.

    How can I do?

    If I create loop for with i as the index of the column, when I do DeleteTableColumns() columns number decreases, and I get an error of range out of

    Or do I have an option to hide the unnecessary columns (not set their width to 1, it's very ugly-looking)?

    Please help me (())

    Hello rovnyart!

    1. removal of columns in the table:

    I suspect that the reason why you get the out-of-range error is due to fact that in your loop, you delete the columns in the table, you'll eventually end up by referring to a column that no longer exists, because the other columns before it have been deleted. While you remove each column of your table in the loop for example, the column index number will move, because you deleted the other columns in front of her.

    To resolve this, even if you delete a column in your loop, make sure that you take also into account that the index of the column is moved because of the removed columns.

    2 hide columns in table:

    You can use the ATTR_COLUMN_VISIBLE attribute to hide columns in the table:

    http://forums.NI.com/T5/LabWindows-CVI-idea-exchange/add-attr-column-visible-attribute-for-table-Col...

    http://zone.NI.com/reference/en-XX/help/370051Y-01/CVI/uiref/cviattrcolumnvisible_column/

    3 alternatives:

    Note that another alternative would also use a tree instead, control as the tree control also supports the hidable columns:

    http://forums.NI.com/T5/LabWindows-CVI/table-hide-column/TD-p/569773

    Best regards!

    -Johannes

  • How to create a status column in the table

    Hello everyone

    I am trying to create a column of the table status in frontview Panel. I enclose a picture with her to say clearly what I say.plz tell me how to create the active status column in the table.

    I want to show green for safety stock and red for safety stock below.


  • How to find the primary key columns in the tables in MS Access using SQL queries

    How to find the primary key columns in the tables in MS Access using SQL queries

    Hello

    This is the forum for Windows Vista programs related issues.

    For better assistance, please try instead the Forums in SQL Server .

    Thank you! Vincenzo Di Russo - Microsoft MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003. ~ ~ ~ My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo

Maybe you are looking for