Add numeric value to Table Column

Hello,
my problem:
I have a VO with a numeric attribute (Sal). This VO is shows in a table in a JSF Page.
I need to add to the column value a numeric value.
I try with #{row.bindings.Sal.attributeValue*2} or #{row.Sal+2} or #{row.Sal.inputValue+2} But I get an error.
Can someone help me ?
Thank You
JDev 11.1.3

Hi,
an option would be to use a transient attribute in the VO to compute the maths or to populate the column field from a managed bean. You can point the column field to a managed bean property (say sumSal). In this method getSumSal() you
1. Use ELContext, ValueExpression, and ExpressionFactory to resolve the #{row} reference (you can cast it to oracle.jbo.domain.Row
2. call row.get("attribute_name") to access the field value
3. Perform the computation and return the value to display in the table
Note that using a transient attribute may be easier to achieve and easier to reuse in other usages of the VO. However, you have to options
Frank

Similar Messages

  • Popup Key LOV, NULL and "Invalid numeric value undefined for column"

    Hello.
    I've created an item based on database column of NUMBER type and set the following properties:
    Display As = Popup Key LOV (Displays description, returns key value)
    List of values definition=select 'display_value' d, 1 r from dual
    Null display value=%
    Null return value=
    Display Null=Yes
    When I select "%" in the LOV and try to apply changes to database I get error:
    ORA-20001: Error in DML: p_rowid=1781, p_alt_rowid=N1, p_rowid2=, p_alt_rowid2=. ORA-20001: Invalid numeric value undefined for column N2
    Error Unable to process row of table TTT.
    If I set Display As = Select List, all works fine. But I need Popup Key LOV.
    Could anybody help me?
    I use Application Express 2.2.1.00.04

    Hi all,
    I did my homework and solved this issue. First I would like to thank Patrick Wolf for the invaluable help he gives out on thread Re: Null value handling in LOVs The code presented here is just a minor edit to his code, but an essential one when dealing with Popup Key LOV items.
    Here's what I did:
    1. Create an Application Process.
    Name: RemoveNulls
    Sequence: 0
    Point: On Submit: After Page Submission - Before Computations and Validations
    Process Text:
    BEGIN
        FOR rItem IN
          ( SELECT ITEM_NAME
              FROM APEX_APPLICATION_PAGE_ITEMS
             WHERE APPLICATION_ID   = TO_NUMBER(:APP_ID)
               AND PAGE_ID          IN (TO_NUMBER(:APP_PAGE_ID), 0)
               AND LOV_DISPLAY_NULL = 'Yes'
               AND LOV_DEFINITION   IS NOT NULL
               AND LOV_NULL_VALUE   IS NULL
        LOOP
            IF (V(rItem.ITEM_NAME) = '%null' || '%' OR V(rItem.ITEM_NAME) = 'undefined')
            THEN
                Apex_Util.set_session_state(rItem.ITEM_NAME, NULL);
            END IF;
        END LOOP;
    END;Error Message: #SQLERRM#Condition: None
    2. You should be able to submit a Popup Key LOV with a NULL value now.
    Once again, THANKS, Patrick! You rock! I'm seriously thinking of trying ApexLib now :)
    Georger

  • How do I add numeric values as text in XML??

    HI,
    So, I've developed a 3d carousel using this tutorial and the  XML, and customized the XML in Dreamweaver.
    http://www.gotoandlearn.com/play?id=33
    Now,  I've got the carousel set up exactly the way I would like, but the only  trouble, is how do I add numeric values as the text for the xml file???
    Here's an example to the working carousel and where text is loaded for each item on it.  (put your sound on mute if you don't want to hear the video)
    http://iongeo.com/collaboration_test_dev/video_arctic_imaging.html
    For  example, in my XML, if I would like the text to be "3d images", when I  export the FLA, only "d images" comes through because the numeric  values can't be added as the text for the tooltip.
    Does anyone  have any ideas?
    Here is an example of how the XML is loaded into  the .swf - the text loads great, but just not the numeric characters.
    The  same story can be said for special characters, I would like to know how  to add a "&" sign too.
    <icons>
    <icon  image="images/Subsalt_E_P_Partnerships.png" tooltip="3D Images"  content="Text Copy.">
    </icon>
    </icons>
    Any  help would be greatly appreciated.
    Thank you.

    Hi Randy,
    Thanks a lot for the reply.  Your post got me thinking that it's actually a flash problem, as the actual descriptor text shows 123,etc and "&".
    The trouble is that the icons are dynamically loaded from the XML to movie clips on the flash file.  I've asked the flash forum to see if they could take a look.
    Thanks again.
    Mike

  • WebDynpro ABAP - Display Short Text instead of values in table column.

    Hi WebDynPro Experts,
        i have Column in a table which displays subject. This column has domain associated ZDE_SUBJECT with fixed values & short text
    Fix.Val    Short Text
    01             Level 1
    02             Level 2
    03             Level 3
    04             Level 4
    05             Level 5
    when i bind this cloumn to a table UI element. And have records for this table. At runtime inside the table column. i see values returned as 01, 02 , 03 ( basically fix val) my requirement is to display the corresponding short text. Is there any easy approach to do this???

    Hi Prash
    I think you need to bind the short text values  to the table UI.
    I am not sure if there is any other easy approach for this.
    Regards
    Naresh

  • Sql Loader INFILE name value in table column Value

    Hi,
    Here is my Sql Loader Script
    LOAD DATA
    infile '%1'
    APPEND INTO TABLE XX_SUPPLIER_UPD
    FIELDS TERMINATED BY ";" OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
    ACTION Char
    ,ADDRESS_TYPE Char
    ,REGION Char "LTRIM(RTRIM(:REGION))"
    ,PO_BOX Char
    ,,WWW_ADDRESS Char
    ,status Char "NVL(:status,'X')"
    ,filename Char "replace(:infile,'\"','')"
    I am getting the infile name as the parameter and i want to insert that parameter value in the column name fillename. Can any one guide me to how to do.
    Cheers!
    Jayaraj.S

    If you were to use external tables instead of SQL*Loader, you can dynamically change the location of the external table (i.e. the filename) using a simple ALTER TABLE statement.
    External tables also mean that all the control is inside the database rather than relying on external utilities and external scripts.
    ;)

  • Query only non numeric values in a column

    How to query only non numeric values in a cloumn.
    For example:
    Table1 has a column1(col1)
    Values:
    Row Value
    1 27376
    2 47D99
    3 83039
    4 DKFI*
    5 3J6
    Query should retrieve only rows(2,4,5).
    Thanks! for help
    Murali

    Version 2(PL/SQL) above is not clear enough, It can be tuned to the following:
    -- Create a function
    Create or replace function IsVARCHAR(pCol VARCHAR2) return VARCHAR2
    AS
    vNumber NUMBER := 0;
    begin
      vNumber := to_number(pCol);
      RETURN NULL;
    Exception
      When Others Then
        RETURN pCol;
    End;
    -- To See VARCHAR values (alpha-numeric) only!
    SELECT col1 FROM tab1
    WHERE IsVARCHAR(col1) IS NOT NULL;
    -- To See NUMBER values only!
    SELECT col1 FROM tab1
    WHERE IsVARCHAR(col1) IS NULL;Versatility here with PL/SQL, but I personally like SQL versions.
    Thx,
    SriDHAR

  • Retrieving numeric values of a column from another table..

    Hi there, so i have the following query that returns a label and a value from a database table:
    select key_field,value_field from table1 where some_id = 'id1' and key_field is not null;
    This will return a result in which the key_field may or may not be numeric, which is fine:
    key_field | value_field
    2 | street
    6 | dog
    car | mazda
    5 | tea
    1 | unknown
    I have another table table_num_vals where the value for those numeric fields are stored:
    key_field | display_field
    2 | address
    6 | animal
    5 | drink
    I want to be able to return the non-numeric fields as they were, all numeric fields translated if it can be found, and if not then leave the original number, desired result:
    key_field  | value_field
    address | street
    animal | dog
    car | mazda
    drink | tea
    1 | unknown
    I tried doing the following:
    select display_field from table_num_vals where key_field in (
        with numericCol as (
            select key_field from table1 where some_id = 'id1' and key_field is not null;
        ) select case when regexp_like(key_field,'^[[:digit:]]') then key_field else '' end from numericCol
    It gives me the labels for the ids that it can find.. (address, animal, drink) but then I can't seem to put it all together with the original query.. could someone please help?
    Thanks in advance,

    Yes you are right .. Thank you so much
    I let it work using
    select student_ID, Level from Student where Level ='Graduate'
    But when i run different kind of form to Graduate_Student table and try to create a new row , I cant see the Student_ID  !  I see it only if I use Form using SQL but this one doesn't add/delete/update record.
    I am new to oracle apex, sorry for that.

  • How to add selected values from table(selected using checkbox)to table?

    Hi All,
    i have created simple page with search panel with table in table i have created one column as check box for selecting.
    here what my requirement is i need to do search multiple times to add some roles to from some different categories.here whenever i searched i ll get some roles into table there i ll select some role and i ll click add buttion. whenever i click add i need to add those roles into some other table finally i ll submit added roles.
    here i followed one link http://www.oracle.com/technetwork/developer-tools/adf/learnmore/99-checkbox-for-delete-in-table-1539659.pdf
    i used same code and able to see selected row in console, as object array how to add these into table.
    please help me out
    Thanks in advance
    siva shankar

    Thank you for a quick reply
    i used the same thing before i go for table check box concept.here what i observed is when i search i am getting some results i am able to shuttle.but if i search again the shuttle is refreshing with new values even not available list its refreshing selected list. IF dont want refresh selected ones.
    my usecase after make some searches I will select some roles from different categories at finally i ll submit.
    i hope you understand me requirement. please suggest me is this requirement is possible in shuttle component? if yes please guide me.
    thanks
    Siva Sankar

  • Add ComboBox Value to Table

    Hi,
    I have a problem. I created table, UDO and set form.objecttype with UDO. On the form I have some EditText items and ComboBox. After Add values from EditText items are insert into table, but ComboBox value not. I bind ComboBox with Column in a table. is there anything else what must be done with it?
    Regards,
    Hmg

    I solved the problem. Data didn't update because of matrix that was binded to same table. But anyone know why is it happenig? When there are edittext items and a matrix on the form and they are binded to same table and columns, why Update don't work?
    Regards,
    Hmg

  • Get value from table column

    Hi,
    I am new to OAF, I am trying to get the value from the table in order to make validation. I have the following PG:
    SearchResultsTableRN
    itemRow
    DetailsCell
    DetailsTableLayout
    ShortDescRow
    ShortDescCell
    ShortDesc
    LongDescRow
    LongDescCell
    LongDesc
    AttributesRow
    AttributesCell
    AttributesTableLayout
    Attributes1Row
    Attribute11Cell
    ect...
    Can anyone help me please in how to go into the table --> row --> column to retrieve the value from a specific column?
    If their is a document or example that can help I will appreciate it. Since I tried searching in devguide and didn't find any results.
    Note: I am extending the controller and reached till the following code:
    public void processFormRequest(OAPageContext oapageContext, OAWebBean webBean){
    super.processFormRequest(oapageContext, webBean);
    String event = oapageContext.getParameter("ShortDescRow");
    OATableBean advtable = (OATableBean)webBean.findChildRecursive("SearchResultsTableRN");
    OARowBean rowtbl = (OARowBean)advtable.findChildRecursive("DetailsCell");
    String message = "test:"+event+"|"+advtable+"|"+"|"+"|"+"|";
    throw new OAException(message, OAException.INFORMATION);
    Thanks and Regards
    Patrick

    Patrick,
    My first advice would be go through OAF guide and do tutorial examples, for such basic details.
    If ur talking about tablelayout region
    u can use pageContext.getParameter(<Item id of UIX bean whose value u want>);
    If you are talking about table
    You can Iterate through the VO based on primary key ...on which the table is based, and retrive the corresponding Vo attribute value.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Add Sequence Value to table

    Hello, I have a table that uses a sequence as a primary key. My question is, how do you add the NEXTVAL to a row when you are in the data section of that table. I tried adding mysequence.nextval, but when I commit the row, it takes it as a literal string.
    Thanks, sck10

    As said in following threads, you can't:
    Inserting records
    Sequence: possible to use sequence in "Data" tab
    K.

  • How to insert parameter value into multiple columns and rows

    Hi All,
    I have one procedure insert_tab and I am passing
    100~101~102:103~104~105:106~107~108 as a parameter to that procedure. I wanted to insert each numeric value into one column. The output of the table should contain
    Table:
    Col1 Col2 Col3
    100 101 102
    103 104 105
    106 107 108
    Awaiting for your reply..

    That's not more clear for me...
    Anyway, if you really want a procedure for that, try :
    SQL> create table tblstr (col1 number,col2 number,col3 number);
    Table created.
    SQL>
    SQL> create or replace procedure insert_fct (p_string IN varchar2)
      2  as
      3  v_string     varchar2(4000):=p_string||':';
      4  v_substring  varchar2(4000);
      5 
      6  begin
      7      while instr(v_string,':') > 0 loop
      8            v_substring := substr(v_string,1,instr(v_string,':')-1)||'~';
      9            insert into tblstr(col1,col2,col3)
    10            values (substr(v_substring,1,instr(v_substring,'~',1,1)-1),
    11                    substr(v_substring,instr(v_substring,'~',1,1)+1,instr(v_substring,'~',1,2)-instr(v_substring,'~',1,1)-1),
    12                    substr(v_substring,instr(v_substring,'~',1,2)+1,instr(v_substring,'~',1,3)-instr(v_substring,'~',1,2)-1));
    13            v_string:=substr(v_string,instr(v_string,':')+1);
    14      end loop;
    15  end;
    16  /
    Procedure created.
    SQL>
    SQL> show err
    No errors.
    SQL>
    SQL> select * from tblstr;
    no rows selected
    SQL> exec insert_fct('100~101~102:103~104~105:106~107~108')
    PL/SQL procedure successfully completed.
    SQL> select * from tblstr;
          COL1       COL2       COL3
           100        101        102
           103        104        105
           106        107        108
    SQL> exec insert_fct('109~~')
    PL/SQL procedure successfully completed.
    SQL> exec insert_fct('~110~')
    PL/SQL procedure successfully completed.
    SQL> exec insert_fct('~~111')
    PL/SQL procedure successfully completed.
    SQL> select * from tblstr;
          COL1       COL2       COL3
           100        101        102
           103        104        105
           106        107        108
           109
                      110
                                 111
    6 rows selected.
    SQL> Nicolas.

  • Type conversion from numeric value to time format

    hi guys,
    i hvae column called (Time in seconds).i need to convert the numeric value of one column into time format HH:MM:SS. for example 3012 =00:50:12.
    how can i proceed the same in the front end.
    Thanks & Regards,
    Nandu

    Hi..
    here is the code.. (assuming 10000 in the following code is your seconds, replace that with your value...)
    cast(TRUNCATE(10000/3600,0) as varchar(2)) || ' : ' || cast(TRUNCATE(60*((10000/3600)-(TRUNCATE(10000/3600,0))),0) as varchar(2)) || ' : ' ||cast(60*((60*((10000/3600)-(TRUNCATE(10000/3600,0))))-(TRUNCATE(60*((10000/3600)-(TRUNCATE(10000/3600,0))),0))) as varchar(2)) You can also use floor instead of truncate...
    Above will give only h:m:s format if hh (or) mm (or) ss are between 0 and 9. So, you may need to add case when condition before each concatenation: if hh is between 0 and 9 then need to concatenate with 0 else the same code...
    Thanks...

  • How to display 'Alpha numeric values' in lower character?

    Hi,
    We have 'Alpha numeric value' in one column and i need to display alphabets in lower character.
    I tried but throwing error.
    SQL> select * from a439487.ora_dev_inventory;
    HOST_NM HA INV_DT
    SMMK94 - 21-AUG-08
    SQL> select to_lower(HOST_NM) from a439487.ora_dev_inventory;
    select to_lower(HOST_NM) from a439487.ora_dev_inventory
    ERROR at line 1:
    ORA-00904: "TO_LOWER": invalid identifier
    I want 'HOST_NM' to be displayed in lower value.
    I need o/p like 'smmk94'.
    Any idea?

    Where did you find the TO_LOWER function? Can you
    show us?I would guess it was just an assumption based on the fact we have to_char, to_date, to_number...
    ;)

  • Whats the available privileges on a table column

    Dear all,
    i want to know whats the available privileges that i can assign on a table coulmn.
    and the revoke privileges
    Best Regards,
    Shooosh

    If I have well understands, the principals are
    The following are the object privileges that can be granted to users of the
    database:
    SELECT Grants read (query) access to the data in a table, view, sequence,
    or materialized view.
    UPDATE Grants update (modify) access to the data in a table, column,
    view, or materialized view.
    DELETE Grants delete (remove) access to the data in a table, view, or
    materialized view.
    INSERT Grants insert (add) access to a table, column, view, or
    materialized view.
    EXECUTE Grants execute (run) privilege on a PL/SQL stored object, such
    as a procedure, package, or function.
    GRANT SELECT, UPDATE ON CUSTOMER TO JAMES;
    You can revoke a user’s object privileges and system privileges by using the
    REVOKE statement.
    but I believe that you am more profit reading manual: dba administrator or sql reference

Maybe you are looking for

  • ITunes 8.1.1 will not sync

    Since iTunes 8.1.1 I just get; The iPod "Phillip's iPod" cannot be synced. An unknown error occurred (-48). The only option it gives you is (OK) and to close the error window. I'm having the exact same problem as of today with my iPod nano 3rd gen on

  • Function to change alpha of a movie clip

    Hi all, I am having this bit of code not working for me. I want to have a function 'thisAplha'to analyze a mc's alpha stage, and depending on it either appear or disappear it. Basically I am trying to disappear/appear on screen the inv0 mc when you c

  • IPhone 4 Bumper and Older Chargers

    Before you get a bumper you should know it does not connect with some older chargers. The ones where the connection to your iPhone is twice as thick as the newer versions. My old iPhone home charger and car charger will not fit with the bumper on. Th

  • Where can I get a link to reinstall Creative Suite 5 Master Collection?

    I have the product key, but I really need to re-install this software.  Where can I download it?

  • Sh counter and line dot3StatsSymbolErrors

    Hi, I have to module WS-X6148-GE-TX and I have to message "dot3StatsSymbolErrors" with error. I see my server giga, but I not have menu for modify parameter of reception... Any know this problem ? > 12 dot3StatsSymbolErrors = 499 > 0 txPause = 0 > 1