Additional column in a table


Hi all

I would like to add an additional column in a table, and it must have the values Valiid or Invallid.

I mean that I need to have the list of values for the invallid or column showing which.

Please let me know, how to get there.

Thank you

Kumar.

Hi Kumar,

user624202 wrote:

Hi all

I would like to add an additional column in a table, and it must have the values Valiid or Invallid.

I mean that I need to have the list of values for the invallid or column showing which.

Please let me know, how to get there.

Thank you

Kumar.

Assuming that you want to add the column to capture valid or not valid and store it in the database, if this is the case.

1 Add this column that will contain the values for valid and invalid in the table to your query in a table

Here I added the status column that will keep VALID and INVALID in the database

select
"EMPNO",
"ENAME",
"JOB",
"MGR",
"STATUS"
from EMP

2. go to the attributes of the region-> column to change the STATE of

Goto column attributes

Display as-> list of selection (named LOV)

Named LOV-> select your Lov

Attributes of tabular form Goto

Owner of the reference Table-> select the scheme name

Reference Table name-> the name of the table

Name of column reference-> give the name of column

Hope this helpe you,

Kind regards

Jitendra

Tags: Database

Similar Questions

  • 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.

  • Addictional columns in the TABLE of $ J

    Hello

    I need to store additional columns in the TABLE of $ J.
    The reason is:

    I build summaries on the tables of my target. The target table does not contain the primary key of the source table.
    He is allowed to delete the data on the source table and in this case, the process must recalculate the summaries. The problem is I know that the primary key of the record deleted on the source tables and I can't recognize what summaries I have to recalculate.

    My idea is to use additional columns for a updated key in the ARRAY $ J that would be filled if the record has been deleted.

    Any better idea? How could I add some columns of addition to the TABLE of $ J?

    Thank you
    Marcin

    OK, so,.
    J$ Table is created by the Journal to create the JKM, stage
    By changing some settings, you can add some information set by Oracle.

    You can change 2 things to recover more than the PK.
    -First of all to the JKM, Journal created in step: change the value of the Capture_values parameter to "both."
    --> This will retrieve the rows in table 2 J$ for an update (UU as the old value) and the United Nations as the new value and integer values for Delete and Insert.

    -You must now change the JV$ and JV$ D views in order to group the 2 lines for the updates.

    I think that's what you need, if I understand.

    Brice

  • Valueset TABLE based at SSHRC does not display the additional columns

    Hello

    I created a valueset, which is the base of the table. I added a column in the extra column. I use this valueset in an EIT. I created a page of SSHRC s for the EIT.

    My problem is, that valueset shows the additional column when you open the valueset in EIT of FORMS, but does not show the additional column on the page of SSHRC.  Is this a bug?


    Hi Alex,

    I have the solution for this. Basically, you specify the alias column name and specify the width with it.

    for example: aa.segment1 'Destination' (20)

  • Target table has 3 additional columns

    GG version 11.2.1.0.3
    Platform: RHEL 5.4
    DB: Oracle for Oracle (Source and target is 11.2.0.3)

    Use of GoldenGate we must replicate the LMD of a table (Uni-directonal) source to target.

    In the target, due to operational requirements, the table will have 3 additional columns. These 3 columns will fill separately by an application that is scheduled to run every midnight. .

    For the initial charge, we will make expdp, impdp from source to the target. Once the import is complete, we will launch the next column, adding commands in the target DB.
    alter table crtn_hdr_dtl add lv_rotate varchar2(30);
    alter table crtn_hdr_dtl add blnd_smt varchar2(30);
    alter table crtn_hdr_dtl add run_type varchar2(5) ;
    To process the additional columns in the target table, what are configuration changes that must be accomplished in the extracted parameter files and replicate for this table?

    In the param repeated file, instead of ASSUMETARGETDEFS you need to use SOURCEDEFS with a file of the source table definition. You can still use USEDEFAULTS in the COLMAP clause.
    No change is required to extract file param.

  • Oracle BPM 12.2.1 workspace how to add additional columns to the DB table tasklist

    Hi all

    I need to add some required columns to the table from the list of tasks (for example, activity and status of the activity referred to in the task line), I decompiled adflibTaskListTaskflow.jar and found a class named TaskModel.class in this package: oracle.bpel.worklistapp.tasklist.beans.model, if decompile you this class, you can see that at the table from the list of tasks, data are expressed here by using ITaskQueryService now how more columns may add other tables or is there another easier solution?

    Hi Hadi,

    You can add columns to your table of task list in the workspace by changing the current view, or even create a new (more and icons in pencil). The situation of activity is available in the list of columns.

    You can also add columns to the list view based on flexfields tasks that you create.

    If you manually change the adflibTaskListTaskflow.jar you can have problems in the future given that libraries can change between versions and of course are not recommended to do.

    I have add columns to the list of tasks, and at that time here, we have created a list of custom task based on BPM Middleware. If you follow this method, you will have complete freedom to show what you want.

  • Query all columns of the tables

    I have 100 columns in tableA, and I want to run a query to return all the columns plus additional column called AS_OF_DT which is hardcode in 2001. How I achieve it? I don't want to code 100 names of columns, is he got a way something like

    ' select *, 1 as AS_OF_DT from tableA'?

    
    select a.*,1 mycol from dba_tables a;
    
    
    

    Keep in mind the usual risks of select *.  If your table is changed, which means that a column is there (or not) can break.

  • How can I activate validations on columns in a table

    Hi all

    Background

    I have a tabular presentation, which consists of four columns. The form is based on a view.

    The four columns are: localID EXAMPLE 2 EXAMPLE 3 EXAMPLE 4

    There are three buttons. Submit, cancel and add the line

    I need to allow users to add and edit information from localID but users are not allowed to change the LocalID field.

    At first, I thought that it would be best to leave this field to display in text form but only when a user clicks on the add a line to the field LocalID is empty or null, said

    So I decided to leave this field as a texfield rather than "show as text (State stops or other)"

    I want a validation that invites an error message if a user changes an existing localID

    For example:

    The table gives the following results

    Charlie123 charles anderson 55

    Randall12 randall luzzi 20

    The user tries to send the current values of the localID change form

    123 charles anderson 55

    12 randall luzzi 20

    Any ideas of how I can do this?

    Thank you

    CharlieMack

    Hello

    The validation is triggered for each field in the column DEPTNO. Also for the new fields. If you are not allowed to transfer the column DEPTNO field at all.

    Your question, it turns out, is a rather difficult pickle. In short: there is, as far is I know, simple way to validate a column only for existing records, but not for new.

    My idea would be to take your little question and look at what you're trying to accomplish: stop the upgrade on a column, but allow insertions.

    Take a look at the table of the DEPT on your page 850. I added a dynamic action that defines all DEPTNO existing read-only, but leaves new lines as entrable.

    Alternatively, you can fill your LOCALID column by a trigger. This way you can set your column as diplay only (or not entrable) and it will always get a value.

    If you want to persist with leaving LOCALID as input fields and launch a validation error on submit, you will need at least a column more than you fill a trigger/sequence. You need something to uniquely identify each line as a reference to records in database.

    For the latter, I page 851, the configuration using the EMP table. Validation, each line is identified solely by the EMPNO column. If you change your ENAME, the record is put in correspondence with the value of database based on the EMPNO. If the EMPNO is null, obviously facing a new line, for which we allow an entry for the ENAME field.

    Note that adding an additional column is necessary to match each line with the existing values in the database, but requires a change to your datamodel.

    This choice I'll give to you

    Good luck with it.

    Kind regards

    Vincent

  • New to Dreamweaver. Make an additional column.

    My boss found out I have some computer background and wanted med to fix something on the website of the company. I have a Web page for more than a decade, so I am completely new to coding and Dreamweaver. The page he wants fixed looks like this:

    dreamweaver1.png

    There is a lot of extra space between the map and contact information. He wants a second column with contacts. How can I fix?

    Any help appreciated.

    (http://www.stadt.no/kontakt.html)

    The page is a table-based page layout. Adding an additional column could be as simple as to change this (notice my change suggested in bold).

    e-post: [email protected]">[email protected] ".

    on this subject.

    e-post: [email protected]">[email protected] ".

    Then adjusting your cell widths and alignments in function. Fill in the additional column with the desired content.

  • Multiplication of the columns in the table and displays the result

    Hello Experts!
    With the help of Jdeveloper 11 g Release 1:
    I have a situation where I have a two tables showing the relationship of the master / detail. Now the main table shows the available quantity and the unit price and will then multiply to show the total price.
    The Details table does the same thing but has an additional column (added manually) with another text entry that requires the 'quantity' and then I need the total price with this value as well. So overall, the user has the option to select a quantity that is less than or equal to the quantity available (from the main table) and then to calculate the new total price based on user input.
    How can I go about it?
    All of the suggestions! ?
    s =

    I apologize in advance if this does not work for you, but here's my point of view.

    (1) add QtyDesired as a transitional editable column with a set of expressions Qty.
    (2) make your transitional column TOTALCOST an expression of QtyDesired * UNITPRICE.
    (3) according to how your page is set up, your QtyDesired may need to raise a contextual event. Otherwise, it might be enough to assign partial release of your TotalCost your column QtyDesired column to allow a partial page refresh. I do something similar by editing the line of my table in a popup, and then when the dialog box closes, it refreshes the table with the new values.

    Hope that helps. Just throwing some ideas out there. AutoSubmit and partial triggers seem to trouble many of my problems of refresh.

  • 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

  • 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 calculate the sum of the values of some columns in a table

    Hello

    I want to get the column just the average of the values of some columns not all columns of the table.what I have to change exactly in this block diagram.even if the table size is 25 average, I want the division as the number of values in each column (= number of lines)

    just like that:


  • How can, during the collection of data, start a new column in my table every 100 data points?

    Hello! I have a problem with my data - I get in a wide range of 1 x 1000, but it's the repeated measures, each taking about 500 data points. I want to break this table for this data string start a new column in my table every 500 points given. I don't know how to do it-please help!

    datacompiler100 wrote:

    Hey thanks for the sponsor and the first off I must apologize for the State, I am attaching my VI. I put the part of the VI that I am working on (my team has access, so didn't post everything here) and also attached the data file (when just written in a spreadsheet file, not through the attached VI). I want to convert the long row of data and then start a new column every 50, 100, 5 points (user-defined).

    Using the data from the file, you can reshape everything simply (as you already!), followed by transposition (since you want columns instead of rows). 2D arrays must always be rectangular, so the last column is filled with zeros if necessary. Is that what you want?

    Of course if you try to add a new column in a file, that will not work. You can only add lines in an existing file because of the way the data is organized. To add columns, the entire file must be read, intertwined and all re-written new data in the file.

  • How can I insert a number to a specific index (row and column) to a table

    I had the most with function 'insert into array' problem because of its counter-intuitiveness. I want to insert a number I got inside a loop IN a table. The ROW and COLUMN of this table I want enter the number is specified by the number of loops of two loops FOR. It did not work.

    So, I have isolated and tested this function further. Frankly, I initialized a table 2D with ZEROS and plugged into the "insert into array" function (on top of entry). I then put the number '1' for the index (line) and the number "2" for the index (column) and then put the entry number "6" for the "new item/sub-table. Then, I hung a picture of 2-D (indicator) output to the output of the function "insert into array. When I did all that, it means I want to just put the number '6' in line '1' and the column '2'... This isn't letting me do it.

    How can I do this SIMPLE?

    Hi Darrell h...,

    Looks like you can use the function "autoindexing. Take your value and connect it to your loop, it will be a default autoindexing. Right-click on the last tunnel of output and select Create indicator, the result is your table.

    It will be useful.

    Mike

Maybe you are looking for