How to assign a value of the element from page to main page in the column element when Cre

I have a form build on table T1. The T1 has a primary key defined (T1PK) and four other columns (C1 - C4). I have a form in this table. This form accepts the values of C1 to C4 and displayis an extra point, is not based on columns of T1 - P1_DUMMY. The form for T1PK element has the value "hidden and protected.
When creating the form, I wanted that the value of the primary key (T1PK) will be obtained through existing trigger. I want to use the value stored in the page called "P1_DUMMY" for P1_T1PK.

No matter what I do, I always get this error when I hit the button 'CREATE' on the page of the form:

ORA-01400: cannot insert NULL into ('DEV'. "" T1 ". ("' T1PK")

The Create button is a condition not to show if the the P1_T1PK page element is NULL. I created page rendering process, the process of transformation of page like this bock of PL/SQL:

: P1_T1PK: =: P1_DUMMY

But I still get ORA-01400. The form has the P1_DUMMY as display only, not not to store the State, so I can see that the P1_DUMMY element has the value I want (2).

How to assign the value stored in P1_DUMMY in P1_T1PK when I click on the button CREATE on this form?

Thank you for your time.

Daniel

Hello
The belief question is the way in which the calculation is being defined. You are not using the &. rating (dot ampersand) in PL/SQL and SQL.

Try this.

1 define the calculation on P1_T1PK of Type calculation of value of the element
2. on the next page to load textarea, enter P1_DUMMY. No. colon or &
3. give appropriate conditions

Kind regards

Tags: Database

Similar Questions

  • How to assign a value to the attribute support bean viewcriteria?

    Hello

    I have a readonly VO with the following query

    Select value attr2, attr1, attr4, attr3
    from sometable

    I have a criterion for display in the t above, something like
    attr1 =
    and attr2 =

    I dragged and dropped this criterion on a Status.jsff page in the Panel of the query with table. If the user can search the records by manually entering the values in the query Panel. In addition, there are another page Main.jsff where, if the user clicks on a button, it redirects him to the page Status.jsff carrying a digital value from the page Main.jsff. Now, I have to assign this numerical value of "attr1" criteria to display and execute this VO and show results updated in the Status.jsff page.

    I used the code below:
    ViewObject vo = appModule.findViewObject("VOName");
    ViewCriteria criteria = vo.getViewCriteriaManager () .getViewCriteria ("CriteriaName");
    criteria.getVariableManager () .setVariableValue ('attr1', numericValue);
    vo.applyViewCriteria (criteria);
    vo.executeQuery ();
    For the above code, I got an error saying that "attr1" Variable not defined in the 'VOName '.

    Then I tried to place where simple clause of
    vo.setWhereClause ("attr1 =" + numericValue);
    vo.executeQuery ();
    For this code, I got an error saying that the SQL error in the preparation of the statement. Statement: SELECT * FROM (select attr1, attr2, attr3, attr4, of VOName) QRSLT WHERE (attr1 = 1234)

    Please let me know the solution to this problem.

    You can set the variable bind display property to hide. If variable binding will not appear in the query.

    bindvariable control flag > show hint > hide.

    TUTTU JOSE

    Published by: josetuttu on November 13, 2011 21:45

  • The assignment of value to an element of Application via JS

    Hi guys,.

    I am trying to assign a value to an element of application using javascript. But I can't do that when I try to view with alarm the result is empty. You have an idea how can I assign a value to an element of the application using javascript?

    Another yew (action is "ASSIGN")
    {
    var moname = $(el).children("td[headers='SOURCE']").text ();
    $s ('F10_SELECTED_OBJ', moname);
    Alert ($v ('F10_SELECTED_OBJ'));
    }

    Thank you

    You cannot reference elements of apex in javascript application because they are not rendered in the HTML DOM.

    See what {message identifier: = 10343221}

  • How to use the values in the columns of an interactive report (Apex 5)

    Hello

    I have an interactive report and a link column and I click to set the value of four fields in a subregion with the value of four columns of the report.

    This without submitting the page every time so I think using javascript.

    But what is the right way to do this in 5 Apex?

    How to have a reference to the column of a report (customer.name to the customer or customer.city, for example)?

    Concerning

    Gianpaolo

    Hi gianpagi,

    gianpagi wrote:

    I can't run your code as well, on apex.oracle.com, I have re-product the situation with the emp table and the columns ename, sal and the fields p1_ename, p1_job, p1_sal

    Can you help me.

    https://Apex.Oracle.com/pls/Apex/f?p=4550:1:103040501310506:

    https://Apex.Oracle.com/pls/Apex/f?p=102726:LOGIN_DESKTOP:104044067688962:

    user and developer demo/demo (TR1 workspace)

    Check the application now. I've done the column 'Empno' as link and execution of your dynamic action on click on the link.

    Here are the changes:

    • Edited the "Empno" column attributes and perform the following settings in the properties of 'column link:

    Text link: #EMPNO #.

    Link attributes: class = 'empdetails '.

    Target: URL

    URL: javascript:void (0);

    NOTE: The link does nothing but on the onclick for the event of link DA no real logic.

    • Edited the dynamic action 'assign values' and set the following properties:

    Selection type: jQuery Selector

    jQuery Selector: a.empdetails

    Kind regards

    Kiran

  • assign a value to the object?

    Hello

    I try to assign a value to the object like the following code.

    < mx:Script >
    <! [CDATA]

    public var emailData:Object;

    public function sendEmaildata (): void {}

    emailData.email = "[email protected];

    }

    []] >
    < / mx:Script >

    But I get an error like this "cannot access a property or method of a null object reference."

    I confuse how to set a value for the object, please help me.

    Thank you

    M

    I think you need new Object() when you declare your object. Try this code:


    http://www.Adobe.com/2006/mxml"initialize =" sendEmaildata () ">"

    [Bindable]
    public var emailData:Object = new Object();

    public function sendEmaildata (): void {}
    emailData.email = "[email protected];
    }
    ]]>



  • Drag the control example and how to record a value of the indicator?

    Hello world

    I want to drag the Boolean buttons on my front panel in the time of execution, how can I do?

    I remember that I have seen an example or why, it's a map on the front panel, but I don't remember the name TT someone knows?

    and the second question is how to store a value of the indicator, like the first time, you set the value and close the vi and run it again, the value will remain unless you change in the second run time?

    Thanks in advance

    Thanks to you two, are there good examples of mouse followed the structure of the event available?

    and my second question is for example: read a file using the vi, I created the first, that the value of all the positions of the button on the front panel, and the 'get file vi extension' shows the name of the file on the front panel. then I close the vi and open it again, the button positions is always there where they are, but the file name string is empty.

    How can I save the filename so indicator when I opened that vi still once, if not the other position button file selection, the filename indicator still shows the previous name?

  • How can I replace the value of the column with a particular value in SQL

    Hi all

    Is someone can you please tell me how can I format my output with the replacement of a column value with a specific value that really depends on the current value of the column

    I am executing the following SQL statement

    Select state, count (id) from < table_name > where composite_dn = < composite_dn_name > Group by State;
    My current performance is:

    State Instance number
    1 3
    3 28

    I want to replace the value in the State column as follows

    No.OfInstances State
    3 filled
    28 faulted

    I want '1' to be reppaced of 'Done' and '3' is replaced by 'Faulted. '

    Is is possible with SQL or PL/SQL, if it is then how I can achieve this required. Help, please!

    Thanks in advance!

    Published by: Roshni Shankar on October 27, 2012 12:38 AM

    Hi Claude,.

    I guess this CASE clause can be simulated by a DECODE and also it is very easy to use.
    See - http://www.techonthenet.com/oracle/functions/decode.php

    select decode(t1.state,t2.state_id,t2.state_name), t1.count_id
    from  t2, (select state,count(id) count_id
     from 
     where composite_dn= 
    group by state) t1
    where t1.state = t2.state_id;
    

    HTH
    Vanessa B.

    Published by: Vanessa B on October 27, 2012 14:02
    -link added

    Published by: Vanessa B on October 27, 2012 14:19
    -added code sample

  • How to find if the DEFAULT VALUE of the COLUMN is stored as metadata?

    Hello
    I am using Oracle 11 g enhanced functionality add a COLUMN. Adding new columns with the DEFAULT values and unconstrained NULL is no longer requires that the default value in all existing records.
    Sometimes, we change DB columns not NULL with default with the DEFAULT value null. This operation "materialize" the default for the column.
    Y at - it an easy way (see Dictionary) how to find the default value of the COLUMN is stored as metadata or 'materializes '?
    Thank you. Filip

    Version of Oracle RDBMS: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    Look at the table SYS COL$. He has a column called PROPERTY.

    It will have the magic number 1073741824 for columns that have been added by using this new feature...

  • How to find this value in the oracle database to find out the table

    Hi expert,

    I know there is a value in the oracle database, please show me how to find this value in the oracle database to find out the table that contains this value.

    Thank you very much

    918440 wrote:
    Hi expert,

    I know there is a value in the oracle database, please show me how to find this value in the oracle database to find out the table that contains this value.

    Thank you very much

    Go to the online documentation and discover the data dictionary. You may be interested in reading about ALL_TAB_COLUMNS, but you will need to know what you want until you can query the view to find information

  • How to use the prompt value in the column of the report

    Hello

    I have a quick report column which is 'Adj Type' that contains values 10,20,30, and when the user selects Adj Type = 10, this value should be passed on to the column of the report.

    For example. Value in column 1 is 10 and this should multiple with the prompt value and production is expected to be 10 * 10.

    Ideas how to capture the prompt values in the column of the report for the calculation.

    Hi hsekar,

    (1) declare a presentation online in the section variable set Variable--> Variable--> P_var presentation

    (2) in Fx Table_name. Your_column * @{P_Var}

    @{P_var} {20} (20 is the default, it replaces when a user selects the value in the command prompt

    Thank you
    Saichand.v

  • How to highlight the line of the ADF table based on the value of the column?

    Hi all

    I use jdev 10.1.3.4. I want to highlight a table row or a cell based on the value of the column.

    Lets say, I have a table emp with column empid, empname and sal. I want to emphasize the lines that have sal = 10000.

    How can I achieve this? Please help me with this.

    Thank you
    Abhijit

    Hello

    You want to highlight the lines? or set a different color for the lines? If it's the second, you can set the inline style based on the salary. (+ Edit: well, never mind, both are same :)) +)

    Something like

    
    

    If you want the entire line to be a different color, you have 2 options.

    1. define the same style inline for all columns in the table (good if you want to do only for a single table).
    2. create a style class and apply the styleclass based on the value of sal (preferably if you want the same behavior in all of your application).

    Arun-

    Published by: joel Ramamoorthy, October 23, 2009 16:56

  • How Oracle to store geometry values in the columns of the table?

    How Oracle to store geometry values in the columns of the table?

    Check this box:
    [Oracle Spatial User guide | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14255/toc.htm]

    Check other documents space here.
    [http://www.oracle.com/pls/db102/portal.portal_db?selected=7]

    Published by: Anantha R on August 20, 2009 13:43

  • How to render a table on the value of the column in the other table. in the adf.

    I have an A.It table have a column b column B have value is xxx then table C will go to true.any you suggest how to achieve this.
    I use jdev 10.1.3.3

    Please suggest
    Thank you
    Emine

    Published by: vinay kumar on March 27, 2009 18:51

    You can use in the detail of the line?

    In this case, put the af:table component in the af: column and assess the condition of rendering on the value of the column.

    Tocarli

  • How to display the value of the column

    Oracle 10g on Linux

    I want to display the value of the id column in the table of www if count (distinct id) is 1. The following query is fine except that it does not display the value of the column ID help, please.
    SELECT count(distinct id)
                   FROM www c
                  WHERE C.x_code IN (SELECT D.x_code
                                                     FROM www_app d
                                                    WHERE d.y_code = '1151299386')
                  having count(distinct id) = 1                                                

    I think you can use MAX in this case

    SELECT max(id)
                   FROM www c
                  WHERE C.x_code IN (SELECT D.x_code
                                                     FROM www_app d
                                                    WHERE d.y_code = '1151299386')
                  having count(distinct id) = 1
    
  • need to update the value of the column automatically (exists and the new value)

    Hello

    (1) I Segment1, Segment2, Segment3, Segment4, item_status (new column modified in the Temp table)

    Must update the form OFA and the DB Temp table item_status value in the column when I click APPLY to SAVE the Inserted records in the DB table and form and must register the mtl_system_items_b Segment1, Segment2, Segment3, Segment4 in which the condition

    Note: need to update automatically item_status for existing and new inserted records in the Table and the form

     Serializable[] param = {Segment1, Segment2, Segment3, Segment4
                       };
                       am.invokeMethod("InsertRecord", param);
                       row.setAttribute("SelectFlag", "N");
    

    Thank you

    Renon,

    When you write code, try to understand what makes each line. (If you don't understand all the lines, feel free to ask)

    row.setAttribute ("ItemStatus", row.getAttribute ("ItemStatus"));

    What do you think that the above line done? You try to get the value of the attribute and trying to put the same value. How is it, that will have an impact?

    You need to do 2 things.

    1. change the insertRecord method and the State of return of this method.

    Change the definition of the function:

    public String InsertRecord (String itemstyle, String itemcust, String itemsize, String itemcolor, String ordrno,

    String desc)

    Add a return statement at the end after validation.

    TR.Commit ();

    return the situation;

    }

    2 accept that status in CO and set the value to the attribute details VO.

    String status = (String)am.invokeMethod ("InsertRecord", param);

    row.setAttribute ("ItemStatus",status);

    I hope this helps.

    See you soon

    AJ

Maybe you are looking for

  • Satellite Pro L - where can I find the serial number?

    I received a damaged Toshiba Satellite, I can't find a serial number or number of product on him and he has what looks like a label of Hong Kong Customs in this respect, is possible that I can find some ID when I boot it? The display is damaged and I

  • Need advice on lenses

    I plan to buy a 80 d with 18-135mm IS USM Canon. If I want to take pictures of some sports (baseball, for example), should I the 55-250 mm of STM IS? I currently own a Canon 100-300mm F/4.5-5.6 ultrasonic lens, but it doesn't have image stabilization

  • BlackBerry 10 turn off AutoSave BBM

    When I created my new z10, I chose to save my BBM messages. It was a mistake. I don't want my bbm conversation to be saved, and I can't understand how he pass so that I can delete previous conversations. Help, please!

  • T60 wireless adapter problem

    Hello world! I reinstalled windows on my T60 and had no problems with my Intel PRO Wireless 3945ABG adapter. After one day it stopped working. The little green light on, even if a press fn + F5. I tried to reinstall the driver, and it did not help. I

  • Photos are not print with the photo cartridge

    Hello I have a Photosmart e 7510 and am trying to print photos.  I have installed HP Premium paper and HP Photo cartridge installed.  When I print the photos that are green - I printed both a progress report and a report of print quality and the cart