Add a column with customization. How do to this capture in a table.

Hello

I added a column in a standard page with personalization. Please tell me how to capture this value and store it in a custom table. I went through various websites, but please tell me in a simple way to add this code.

i. do I need to extend the controller?
II. do I need to create a package? (can I do without creating a package.)
III. I will add the code directly in the standard CO.java


Kind regards
Prakash

Prakash

What you can do, is extend the controller. Get the value entered by the user in your domain, and then pass this value to data bases and save it in the database using the procedure. As a reference, you can go through the code below.

import oracle.jdbc.OracleCallableStatement;

 OAMessageTextInputBean mstb = (OAMessageTextInputBean) plb.findChildRecursive("Attribute1");
in_parm1=mstb.getValue(pageContext);

String stmt = "BEGIN test(in_parm1 => :1); END;";
OADBTransaction txn = getOADBTransaction();
OracleCallableStatement cs = (OracleCallableStatement)txn.createCallableStatement(stmt,1);
try
{
cs.setInt(1, in_parm1);
//cs.registerOutParameter();
cs.execute();
cs.close();
getOADBTransaction().commit();
}
catch (Exception e)
{
throw OAException.wrapperException(e);
}

Thank you
AJ

Tags: Oracle Applications

Similar Questions

  • How can I add a column with my favorites for my screen?

    I just started using Firefox now and can not find a way to add a column on the left side of my window in Firefox (which I didn't in Internet Explorer) showing all the links to my favorite site. In which case it is important, I use Window XP as my operating system).

    To show your Firefox Bookmarks Sidebar ("Favorites" are in IE, not Firefox), use CTRL + B to open or close the sidebar. If the bookmarks bar is open when you exit Firefox (Firefox button > exit or file > exit), it should be open when you restart Firefox.

    • You can also use the following to open or close the bookmarks bar

      • Press ALT or F10 to temporarily show the Menu bar, click View > sidebar > bookmarks to check/uncheck it (checked = displayed; United Nations-checked = not displayed
      • Hold down the ALT key while pressing the VEB keyboard letters

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • Need to add a column with a default value

    I need to add a column of type char (1) to a table and there should be a value default of'm '

    I want to check first if this column already exists in this table.
    If so, I still want to check if the default is am'

    How can I do this?

    I was able to all_tab_columns to query for the presence of column with the type of data and all, but not able to do the second part.

    Thanks in advance.

    The DATA_DEFAULT field in dba_tab_columns stores information.

  • How to update columns with the value of other lines in the same table

    Hello

    I use Oracle 11.2, I'd use SQL statements to update a column based on values in other rows in the same table. Here are the details:

    create table TB_test (number 4 myId, crtTs date, date of MDPU);

    insert into tb_test (1, to_date ('20110101', 'YYYYMMDD'), null);
    insert into tb_test (1, to_date ('20110201', 'YYYYMMDD'), null);
    insert into tb_test (1, to_date ('20110301', 'YYYYMMDD'), null);
    insert into tb_test (2, to_date ('20110901', 'YYYYMMDD'), null);
    insert into tb_test (2, to_date ('20110902', 'YYYYMMDD'), null);

    After you run the SQL code, I would like to have the following result:

    1, 20110101, 20110201
    1, 20110201, 20110301
    1, 20110301, null
    2, 20110901, 20110902
    2, 20110902, null

    Thanks for your suggestion.

    I guess you need this, otherwise please explain logic correctly:

    SQL> merge into tb_test t
      2  using (
      3    select rowid as rid
      4         , lead(crtts) over(partition by myid order by crtts) as updts
      5    from tb_test
      6  ) v
      7  on (t.rowid = v.rid)
      8  when matched then update
      9   set t.updts = v.updts
     10  ;
    
    5 rows merged.
    
    SQL> select * from tb_test order by 1,2;
    
          MYID CRTTS     UPDTS
    ---------- --------- ---------
             1 01-JAN-11 01-FEB-11
             1 01-FEB-11 01-MAR-11
             1 01-MAR-11
             2 01-SEP-11 02-SEP-11
             2 02-SEP-11
    
  • You attempt to add a column with a SUM function

    Hello

    I am new to Oracle (using 11 g) and I try to add a new column in my table with one facility amount.

    Currently, I have a weekly Chronicle of salary, but I would like to add an annual salary that uses the data of the week.

    Example I tried was:

    change the emp table add)

    yearly_wage SUM(WEEK_WAGE*52));

    Is it possible to do this please?

    Thank you

    Create a virtual column.

    http://www.Oracle-base.com/articles/11g/virtual-columns-11gr1.php

  • Homepage with password - how to remove this page

    I've had the laptop set up for finger print password... I turn on the computer and the screen with the fingerprint came... I cut my finger and could not participate. So I found where going you to the BIOS to change the whidh passwords I tried to get a password in the ther. Somehow, I now have the password in and can use or fingerprint. But in the process of what is happening now is when I turn on my computer... the screen is black... I hear a beep loud... and a screen says ENTER the word PAST ADMINISTRATOR or POWER ON PASSWORD.

    then after I put the password in... my screen rises with fingerprint or can I use the password... which is what I wanted to...

    What I don't want is this screen popping up all the time every time I turn on my computer... and I put this password who wants the administrator password... Please how to make that out of there... I hope just that I havn't really messed my phone up... thanks you all for your time...

    Deea

    Please turn off the power on password in BIOS

  • Is there a way how to do this if tempXML not table xmltype but simple?

    update tempXML 
               set object_value = updateXML(tempXML, Variables(i).nodepath||'/text()', dome, 0)
       WHERE 
            regexp_substr(Variables(i).nodepath||'/text()','#.*#') = Variables(i).nodevalue;
    Is there a way that tempXML not xmltype table, but simple xmltype? :)
    SQL> desc myxml
     Nome                                      Nullo?   Tipo
     ----------------------------------------- -------- --------------------
     X                                                  PUBLIC.XMLTYPE
    
    SQL> select * from myxml;
    
    X
    --------------------------------------------------------------------------------
    xxx
    
    SQL> select updateXML(x, '/a/b/text()', 'yyy')
      2  from myxml;
    
    UPDATEXML(X,'/A/B/TEXT()','YYY')
    --------------------------------------------------------------------------------
    yyy
    
    SQL> update myxml
      2  set x = updateXML(x, '/a/b/text()', 'yyy');
    
    Aggiornata 1 riga.
    
    SQL> select * from myxml;
    
    X
    --------------------------------------------------------------------------------
    yyy
    

    Max
    http://oracleitalia.WordPress.com

  • Add new columns to iExpense Table of Adv. finished Non-Employee Information

    I have a requirement where in I need to add three columns to the table in iExpense DetailsPG at the table of the advanced non-employee information (GuestTableRN). I was able to add three areas through customization (I know that this can be done by extending the CO, but tried through customization)

    If there was DFFs, it would have been easy, but there is no DFFs.

    I created a table with the columns attendee_line_id and report_line_id that are also in the oie_attendees_all table. Then next created the necessary business components, first OS based on the table custom and then expanded the VO on the page, ExpAttendeesVO and also added the custom to the VO EO.

    I put the code in the java VoImpl extended to insert or delete lines and moved these files on the server, insert data into the table manually. The data is displayed in the three new Non-employee table columns. I was able to update the existing data on the details page. But I can't do an insert or delete it from the page.

    I need suggestions on how to address this issue.

    Thank you
    Kishore

    Hi Kishore,

    You cannot update two tables using an EO (even if you extended it). What I propose is to write PLSQL API and call that could insert data into your custom table. Another option is to write a trigger on your table planted (on insert) and check for certain key conditions based on which you can insert data into your custom table.

    Concerning
    Sumit

  • Classic report - add the column "select box"?

    I have a classic report and you want to add a column with a check box so that the user can select several lines and perform an action on all of the lines (delete selected, for example).  Looks like it should be easy and maybe integrated features, but I don't find it.  Is there a standard way to do this?

    Steve

    APEX 5.0

    Hello

    to add a box to your classic report using apex_item.checkbox like this API function:

    select
        APEX_ITEM.CHECKBOX(p_idx=>1, p_value=>DEPTNO)  as select_dept,
        DEPTNO as DEPTNO,
        DNAME as DNAME,
        LOC as LOC
    from DEPT
    

    You can access the values checked (for example in a process page)

    declare
    v_deleted_depts number := 0;
    begin
    FOR i in 1..APEX_APPLICATION.G_F01.count
    LOOP
      v_deleted_depts := v_deleted_depts + 1;
      delete from dept where deptno = APEX_APPLICATION.G_F01(i);
    END LOOP;
    :P1_DEPTCOUNT := v_deleted_depts;
    end;
    

    P1_DEPTCOUNT (hidden) is just for later interaction with this procedure - for example, you want to present your users with a message of success and error custom as "Deleted & P1_DEPTCOUNT. departments. »

    Maybe you would like to add an option to check all checkboxes at once. If so, read this blogpost Blog of Carl Backstrom: September 2007.

    Kind regards

    Pavel

    Edit: don't forget to toggle the leak key for special characters not your column "checkbox.

  • Is that we can add a column to the existing index

    Hello

    I did some research but I just want to get some clarification

    I have an index create index n1 on emp (comm);

    now I want to add a sal column in this index n1, an option is droping and create the index, can we just add a column with falls, more (regarding my review and research, we can not do, but just confirm with you)

    If we are unable to add it, I want to know the reason behind it, why we can not do?


    Thank you
    Sunil Noothi

    The reason why you can't just add a column to an index has to do with the nature of a Btree index. A Btree index is structured in a very special way, so that all the index entries appear in the order when the index is read. Essentially, all indexes are unique indexes. Those who are not declared unique add ID to the key in order to get a unique sort order.

    If you just add another column to the index, there is no guarantee (and in fact, it would be extremely unlikey) that the new column would sort in exactly in the same way as the old column more the rowid. So, to add a column to the index, the entire structure should be demolished to maintain good order sorted, which would be at least the same amount of work as a creation of the index of zero and probably more work.

    John

  • You will need to insert update column with the username?

    Hi all

    I'm new to this forum of the apex. New to apex as well.

    My question is do we have a form and a single column is editable by the user. whenever an update to this column, I need to write their name in the update column.

    I heard that we can do with trigger using the variable app_user. But in our project, they made authentication ldap for this form and when an employee login with their company login id they can see only this form of apex. no other option.

    In the same form, they were able to show the user name. I checked how they did it. they used * & user * variable for this. , It makes sense for you gentlemen?

    all I have to do is insert this & user in the column value.

    How to do this. I'm started working in the apex for the past four days alone. willing to bare with me if im a very stupid question.

    Thank you
    knani

    PS: I know that what im asking is the user name for the Web page the user name of the apex.

    Published by: kart on May 26, 2010 11:45

    Hello

    You can use: APP_USER substitution string.
    If you like to use that in the syntax of database trigger is v('APP_USER') for example

    :NEW.CHANGED_BY := NVL(v('APP_USER'), user);
    

    BR, Jari

  • Column with numbers filling

    Hello

    I want to fill a column with numbers from 1 to the end of the table. I need to create a function for him?


    THX in advance

    2890953 wrote:

    Hello

    I want to fill a column with numbers from 1 to the end of the table. I need to create a function for this?

    THX in advance

    What of it?

    SQL > create table mytable

    (

    number of N1

    number of n2

    )

    Table created.

    SQL > insert into mytable (n1)

    Select the level of + 1000 - number + 1000

    of the double

    connect by level<=>

    10 rows created.

    SQL > update mytable

    the value of n2 = rownum

    10 lines to date.

    SQL > select * from myTable

    N1 N2

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

    1001 1

    1002 2

    1003 3

    1004 4

    5-1005

    1006 6

    1007 7

    8 1008

    1009 9

    10 1010

    10 selected lines.

    Kind regards.

    Alberto

  • Please let me know how I can add a new column with a constraint not null, table already has data, without falling off the table... Please help me on this issue...

    Hello

    I have an emp_job_det with a, b, c columns table. Note that this TABLE ALREADY has DATA OF THESE COLUMNS

    IAM now add a new column "D" with forced not null

    Fistly I alter the table by adding the single column "D", if I do, the entire column would be created with alll of nulls for the column DEFAULT D

    ALTER table emp_job_det Add number D; -do note not null CONSTRAINT is not added

    Second... If I try to add the constraint not null, get an eoor as already conatained null values...

    (GOLD)

    In other words, if I put the query

    ALTER table emp_job_det Add number D NOT NULL; -THROWS ERROR AS TABLE ALREADY CONTAINS DATA

    So my question is how how can I add a new column with a constraint not null, table already has the data, without falling off the table

    Please help me on this issue...

    Add the column without constraint, then fill the column. Once all the rows in the table are given in the new column, and then add the constraint not null.

  • I have a column with two values, separated by a space, in each line. How to create 2 new columns with the first value in a column, and the second value in another column?

    I have a column with two values, separated by a space, in each line. How do I create 2 new columns with the first value in one column and the second value in another column?

    Add two new columns after than the original with space separated values column.

    Select cell B1 and type (or copy and paste it here) the formula:

    = IF (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    shortcut for this is:

    B1 = if (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    C1 = if (Len (a1) > 0, Member SUBSTITUTE (A1, B1 & "", ""), "")

    or

    the formula of the C1 could also be:

    = IF (Len (a1) > 0, RIGHT (A1, LEN (A1) −FIND ("", A1)), "")

    Select cells B1 and C1, copy

    Select cells B1 at the end of the C column, paste

  • How to fill a column with numbers and maintain when adding or deleting lines?

    So far, I've discovered two ways to fill a column with the number:

    1. Enter '1' in a single cell, '2' in the one below, select both, and then use the yellow dot to drag down - it will do the rest.

    2 create a formula such as 'A2 + 1' and drag also.

    However, in both cases it will work if I manually this continues to do for each newly added line at the bottom. Now, that alone would not be that big of a problem if it wasn't for the fact that I'm working with a table where the lines can be added among other rows in the future.

    Having said that, could someone please tell me how to create a column with a number that will increase automatically? I mean - if I add a new line between line 56 and 57, I want the new line to have a '57"in it, and the" old 57 "would now be"58"and so on." " I don't want to drag the whole column, which can be hundreds if not more than a thousand lines.

    Try to put this in the cells in the column:

    = ROW()

    In the formula, you can add or subtract a number if necessary to get the starting number that you need.

    SG

Maybe you are looking for