Setting row level field in table using jQuery

Hi,
I'm utilising the following to read and then set values in the same row within a report.
Re: Referencing a row level field value in an Interactive Report using jquery
Consider the following snippet
// read information eg
var row = $x_UpTill(this.triggeringElement, 'TR');
var dateCompleted = $('input[name="f03"]', row)[0];
console.log(dateCompleted.value);
// write information eg
var dateBooked = $('input[name="f02"]', row)[0];
//dateBooked.value = 'xyz'; // sets to xyz, as expected
dateBooked.value = return_date; // sets the actual code, not returning stringAll works as I'd expect except the last line. I have a js function returning a formatted string (Set Date With Javascript but in this case my field now contains the actual code definition, not the date string the function actually returns.
I'm thinking I'm just misunderstanding a simple concept for JavaScript here?
A simple workaround could be to create field P0_SYSDATE, calculated to TO_CHAR(SYSDATE,:F_DATE_FORMAT), then apply
dateBooked.value = $v('P0_SYSDATE');but I'm trying to improve my understanding of javascript/jQuery...
Cheers,
Scott

So are you saying that return_date is an actual javascript function that returns the formated string/date you want?
If so, then I think you simply need parenthesis to run the function:
dateBooked.value = return_date();Or... am I missing something here?
Thanks
-Jorge

Similar Messages

  • How to get selected row values in a table using check box

    Hi ADF Experts,
    JDEV Version 11.1.1.7.0
    My requirement is getting the selected row valuesof a af:table using a checkbox(multi select).
    Thanks,
    Animesh

    Hi,
    add a transient attribute to the POJO entity and update this through a check box. The ensure you have autosubmit=true set on the check box. In a value change listener set or remove the row's checbox attribute value
    Frank

  • How to set default value of a table using sequence number

    Dear all,
    Does any body know that how to set default value of a table
    using sequence number.
    But I don't want to use trigger to do that.
    Please help!!!!
    Eldon

    Andrew is essentially correct. You can get around the trigger,
    but not the sequence, if (and this may be a very big if) you can
    guarantee that every time an insert is done into the table, from
    whatever source, the statement looks something like
    INSERT INTO tbl VALUES (sequence.nextval,other_columns_values)

  • Referencing a row level field value in an Interactive Report using jquery

    I have an Interactive Report with a row level select_list:
    select ename "Employee Name",
    mgr "Manager",
    empno,
    APEX_ITEM.SELECT_LIST(
    p_idx => 3,
    --p_value         =>   deptno,
    p_list_values => 'Copy;Copy,Delete;Delete,Export to PDF;Export to PDF',
    --p_attributes    =>   'style="color:red;"',
    p_show_null => 'YES',
    p_null_value => NULL,
    p_null_text => '--Select--',
    --p_item_id       =>   'f03_#ROWNUM#',
    p_item_id => 'P6_IR_SELECT_LIST',
    p_item_label => 'Label for f03_#ROWNUM#',
    p_show_extra => 'YES') "Actions"
    from emp e, dept d
    where e.deptno = d.deptno ;
    When a user selects "Delete", i'd like to delete the EMPNO based on the row where the user selected "Delete". I have tried alerting on the following, but cannot figure out how to capture the row-level EMPNO:
    alert($v('apexir_EMPNO'));
    alert($('#apexir_EMPNO').val());
    Can someone tell me how to reference the specific EMPNO per row?
    Thanks in advance!
    John

    What about this:
    Dynamic action
    Event: change
    selector: jQuery selector:
    select[name="f21"]
    True action
    Exec JS code
    var row = $x_UpTill(this.triggeringElement, 'TR');
    var otherElement = $('input[name="f20"]', row)[0];
    console.log(otherElement.value);
    http://apex.oracle.com/pls/apex/f?p=45448:11 (bottom half)

  • Inserting rows in a database table using JDBC

    Hi,
    I am trying to insert a row in a table using the follwing code:
    String Query_String = "Insert into Table_Name (Field_1, Field_2, Field_3)" +
    "Values (Value_1, Value_2, Value_3)";
    stmt.executeUpdate (Query_String);
    Field_1 is a Date field, Field_2 is a String, and Field_3 is an integer.
    Any of the fields could be null. If the user does not enter a value for any
    one of these fields what would be the values for
    Value_1, Value_2, or Value3 in the Query_String?
    Thanks.

    Hi,
    I am trying to insert a row in a table using the
    follwing code:
    String Query_String = "Insert into Table_Name
    (Field_1, Field_2, Field_3)" +
    "Values (Value_1,
    "Values (Value_1, Value_2, Value_3)";
    stmt.executeUpdate (Query_String);
    Field_1 is a Date field, Field_2 is a String, and
    Field_3 is an integer.
    Any of the fields could be null. If the user does not
    enter a value for any
    one of these fields what would be the values for
    Value_1, Value_2, or Value3 in the Query_String?
    Thanks.Keep in mind that each database server probably has their own way of storing date values. For now, I'm going to assume that you're going to be using MySQL.
    // Initialize variables to null
    String Value_1 = "";
    String Value_2 = "";
    String Value_3 = "";
    try
    // Get Date
    Date date = new Date();
    SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
    Value_1 = dateFormat.format(date);
    // Get String value
    Value_2 = "some string";
    // Get Integer value
    Value_3 = String.valueOf("2");
    String query = INSERT INTO T_NAME VALUES('" + Value_1 +"', '" + Value_2 + "', '" + Value_3 + "');
    int iUpdated = stmt.executeUpdate(query);
    catch(Exception e)
    // Catch Code
    System.out.println("Number of records updated: " + iUpdated);
    This will just enter empty string values if the strings are empty.
    Is this what you wanted to know?
    If not, provide a bit more information and I'll try to help as best as I can

  • Row Level Security in OBIEE using OID as authentication Mechanism

    Hi OBIEE Gurus,
    I am trying to implement Row Level Security in OBIEE . Currently I have setup OBIEE to have OID do the user authentication.
    I want to implement RLS by doing the following :
    1. Have Security Groups defined in OID and assign users with group membership.
    2. Import these Security Groups into OBIEE metadata
    3. Apply filters to these Security Groups
    4. Run Answers requests to see if RLS works or not
    Please let me know if this approach works. If this is not the right way or most efficient way to do this, please let me know if there is any document I can follow to accomplish this.
    Appreciate your help.
    Edited by: drakesh on Sep 26, 2008 7:09 AM

    Follow the steps in the following link to set up OID and Row level security:
    http://www.rittmanmead.com/2007/05/21/using-initialization-blocks-with-ldap-and-database-queries-to-control-authentication-and-authorization/
    Instructions for the link above:
    1.In place of Edit Data Source as database you have to select LDAP,define the groups and default initializer as filter expression.
    2.A more simpler approach ,is to create the groups explicitely using the Security Manager in BI Administrator, add filters to those groups, and assign users to those groups.
    Otherwise follow Matt's view
    Thanks,
    Amrita

  • Help on  Setting logical Levels  in Fact tables and on Dimension tables

    Hi all
    Can any body provide any blogs or any king of material on what exactly is levelling .
    Like after creating the Dimensional hierarchies we need to set the logical levels for the LTS of fact tabels ri8 .So what is the difference between setting logical levels to fact tabels and also Setting levelling on Dimension tables .
    Any kind of help is appreciated
    Thanks
    Xavier.
    Edited by: Xavier on Aug 4, 2011 10:50 AM

    I have read these blogs ,but what my question is
    Setting the logical levels in LTS of Fact tables i understood .
    But we can also set the logical levels for dimensions also ri8 .I didn't understand why do we set the logical levels for dimensions .Is there any reason why we go with the levelling at dimensions
    Thanks
    Xavier
    Edited by: Xavier on Aug 4, 2011 2:03 PM
    Edited by: Xavier on Aug 4, 2011 2:32 PM

  • Add Row in a SAPUI5 Table using xmlModel

    Hi, experts,
    I want to add a new row in a table using a button.
    My table was loaded by xmlModel and now i want to add a new row using a toolbar buton. I dont know how i can do it with xmlModel. I Saw some examples with JsonModel.
    Anybody can help me?
    Regards,
    Marcelo

    Hi Raman,
    Option to add/delete row is available in studio. You can double click and select any particular cell and right click to see the 'Table' options.
    It is a little tricky to get it correct in versions prior to 12.0. Consider saving the changes each time.
    Thank you,
    Sruthi Jayasimhan

  • How to display dynamic values in poplist at row level in advanced table

    I want to display dynamic values in poplist at row level based on a row value in advanced table, with lov i can achieve it, is there any way to achieve this in poplist
    Thanks
    Bbau

    Babu,
    You have been long enough in forum and still come out with these one liners. Problem statement is not clear.
    --Shiv                                                                                                                                                                                                                                                               

  • Dynamicaly setting SCREEN-INPUT field in TABLE CONTROL

    hai guys,
    in my table control i have REFNUM field and some other fields.
    now my task is,
    in every row,i have to enable the REFNUM field of table control for editing only if REFNUM is blank.
    else i shud disable it.(when REFNUM is filled).
    all other fields should be always disabled.
    (right now,i am just able to either totaly enable the entire REFNUM coloumn or or totaly disable it for editing,irrespective of the values it is holding.)
    shravan ramidi

    is this not possible?
    can some one confirm it..

  • Can you set fields as requied at the row level in a table?

    I have a table that is used to add data (rows). Can certain fields be set to required base on other values in that row?

    It is not clear from the developers guide exactly how to accomplish this. When I follow the example given all rows are still impacted by a change. This is probably because the PVO has only one record in it and not a record for each row. Is that correct?

  • Programmatically Set ReadOnly in an ADF Table using EL

    I have a requirement to allow updates only on the first record returned in a query returning multiple records - two of columns in the record can be updated and the rest are read-only by default.
    The records will be ordered so the most recently added record is displayed first and update-able.
    I would like to use EL to return a TRUE or FALSE within the ReadOnly column in the ADF table columns.
    Is there an EL expression that will indicated a "first record" that I can then compare to a static value?
    Something like: #{currentRowNum = 1}
    Is there a better approach to only allowing the first record to be updated, and setting the remaining records to be read-only?
    Thanks in advance...

    You could disable the fields if the row selected is not the first row of the view. Almost all of the af: control has the disabled or readOnly attribute available.
    Mel

  • How to delete rows in the target table using interface

    hi guys,
    I have an Interface with source as src and target as tgt both has company_code column.In the Interface i need like if a record with company_code already exists we need to delete it and insert the new one from the src and if it is not availble we need to insert it.
    plz tell me how to achieve this?
    Regards,
    sai.

    gatha wrote:
    For this do we need to apply CDC?
    I am not clear on how to delete rows under target, Can you please share the steps to be followed.If you are able to track the deletes in your source data then you dont need CDC. If however you cant - then it might be an option.
    I'll give you an example from what im working on currently.
    We have an ODS, some 400+ tables. Some are needed 'Real-Time' so we are using CDC. Some are OK to be batch loaded overnight.
    CDC captures the Deletes no problem so the standard knowledge modules with a little tweaking for performance are doing the job fine, it handles deletes.
    The overnight batch process however cannot track a delete as its phyiscally gone by the time we run the scenarios, so we load all the insert/updates using a last modified date before we pull all the PK's from the source and delete them using a NOT EXISTS looking back at the collection (staging) table. We had to write our own KM for that.
    All im saying to the OP is that whilst you have Insert / Update flags to set on the target datastore to influence the API code, there is nothing stopping you extending this logic with the UD flags if you wish and writing your own routines with what to do with the deletes - It all depends on how efficient you can identify rows that have been deleted.

  • Problem setting the fillColor on dynamic tables using javascript

    I try to set the background color on some text fields that I put in a dynamic table. When I set the border color, everything works fine, but not with the fillColor. If I set the fillColor for the enter event for example, the field will only get a colored border, and when I click another field, the field turns completely colored. If I set an exit event with a different color, the field flickers before changing back to white. This happens in dynamic tables only. I am using Designer 8 on Windows XP. This problem has been confirmed by others, and in different forms.

    this.border.fill.color.value = "value" works for me
    value is in 255,255,255 rgb format

  • How to delete the row from the ADF table using popup box

    Hi,
    I have one requirement like need to delete a record from the table, but that time need to show one popup window for confirmation of the deletion. I am using Delete buttom from the vo operations. I am able to delete the row with out popup but when i used the popup that time deletion is not happening.
    Can any one help me in this.
    Regards,

    Issue was resolved.

Maybe you are looking for

  • Deleting a single item list in dropdown choices

    Perhaps I am just not seeing the obvious simple solution but how do I provide a user the option to simply delete his choice in a dropdown selection. I have added a clear form button to wipe all form data, but how do I allow a user once he/she has sel

  • Slow performance Designer 10g (on 10gR2 database)

    We are busy testing Designer 10g version 10.1.2.5 (windows XP) on 10gR2 64 bit database (Sun solaris) . The repository was migrated from Designer 6.0. But the performance/response is rather slow. Example: At first, opening a server model diagram took

  • SIS Statisitcs Group for Outbound Delivery

    Dear Gurus, There is a requirement to get a report on Qty Ordered, Actual Delivered Qty Open Qty Is it possible to achieve it using SIS? I checked in the system and "Outbound Delivery' Document 'LF'  doesn't contain Statistics Group. I came across th

  • How to remove faces added on Facebook?

    Hello there, I'll try to describe my problem as precisely as possible. I have recently noticed that, after posting pictures on Facebook through iPhoto and then identifying some persons over there, their names do show up on my iPhone Photo App as sepa

  • I Require standard names for Sapscript form

    hai to all , would any body help me in finding the standard sapscripts forms names and their correponding standard print programs for the following topics; 1. RFQ 2. QUOTATION 3. CONTRACT 4. CUSTOMER STATEMENT 5. FI-INVOICE 6. FI-CREDIT MEMO 7. DUNNI