Dynamically updating data in ADF

Hi,
I am currently developing an adf application where I need to show some dynamic value to the user based on the user login in application.
Now I am getting this user specific value by using API calls and feeding the view table of ADF, which in turns creates the row dynamically and display the result to the user.
The issue is that since I am feeding the data in View table of ADF dynamically, if a different user log in to the application then at that time the API calls will fetch that user specific details and will delete the existing data from the table and will insert the new values.
So the value which was displayed to the 1st user will not be available for use.
Please help me in solving this issue.
I am using Jdeveloper 11.1.1.5

Hi TImo,
Thanks for the reply and suggestion. I will try the suggestion given by you and will let you know if face any issue.
Also please let me know if is there any way to dynamically displaying the data in ADF instead of inserting it first in table.
Thanks much !!!

Similar Messages

  • Dynamically updating data in a webpage ..... help/suggestions please?

    Hi All,
    I have a simple delimited text file of current weather observations (less than 20 items) updated every 15 minutes, which I display via an embedded  Flash animation.  I would like to do away with the Flash approach, and display the data in tabular fashion within a webpage.
    What do people  consider the best approach to getting the latest data out of the text file and into the webpage?  I already use some simple php to get the data into variables for the Flash approach (simply explode the text file into an array), but I don't know enough php to see how to flexibly use this within html ie use the array variables at later points in the html.
    I'm sure that there are several possible approaches here but I lack the depth of knowledge to decide where to start. So, suggestions please, and then I can go do some reading.
    Cheers in advance,
    Ian

    php is run only once and is done so before the user sees the page so it cannot display anything for you. The only way to do this without flash or java is with javascript and asynchronous xml. You may have heard this as AJAX and is what google uses for its suggestions, maps, w/e. I recommend using a javascript toolkit such as Mootools because it is simple, fast, and has better approaches than other frameworks. Simply give an id to a div you want to update regularly, and execute
    $('divid').load('pageurl');
    and it will inject the contents of the url into the div.
    It can call on a php script and every time you load the php file, the php file will get re-executed.
    http://mootools.net/
    Last edited by caelestis (2010-01-06 07:37:55)

  • Dynamic updated data management/displaying

    Hi
    I've a question regarding architecture selection for my project. I need to create something like bwin.com has in live betting. Customers have a page with current options that are changed very fast, admins have a page to change the options. The question is how to implement this to achieve best performance. That's my idea:
    Admin has a JSP page with AJAX stuff to add/remove/update things visible on customers side. When he changes anything, it's saved using EJB in db, but also in XML file.
    Customers site reads data (every 5 secs, using ajax as well) just from XML file to make sure db is not overloaded. Only when he wants to make an action on given data, double check (with data from db) is made.
    What do you thing about this? Is it the fastest solution? Other ideas? Maybe web service for getting data for client?
    Thanks in advance for all tips,
    Michal

    Hi Bhaskar,
    I deleted the request and again loaded with full load, still problem remains same.
    what do mean by how the data is stored in RSA3, I did get this pl clear to me.
    In the PSA I found "update Request is not genareted"
    in what case update request will miss, I think that is problem.
    can you help.
    Regards.
    Vijay

  • Is there a way to dynamically update date in the file comments every time I save the file?

    My files starts with comments on who has created them and such.
    I want to update the datefield where it says it was last modified. It would be very tiresome to update it manually every time, and I am looking for a easier way.
    Of course I can always check in SVN when someone did an update, but I would like to see it in the files as well.
    Could anyone point out if there already is a working solution for this or if I have to hack it myself?
    /Thanks

    More breadcrumbs on Subversion keywork substitution.

  • Execute Command "Update Data" of dynamic graphic xls with Java?

    hi, i want to write datas in tthe xls sheet, i have in other sheet from same file xls a dynamic graphic, and i want to update de graphic with the new datas writed, how can to execute the command "Update Data" in the dynamic graphi sheet??
    tnk for your help.
    HL

    You missed a space in the string after your WHERE clause.
    put an extra space after the 'WHERE' in your execute immediate statement.
         EXECUTE IMMEDIATE
              'UPDATE '|| affectedtable|| ' SET '|| affectedcol || '= :nvalue'||
              ' WHERE '|| affectedcol || '= :ovalue'
              USING newvalue, oldvalue ;

  • Dynamic Update in real time with slider control

    We have requirements to display complex data in a graphical format. So far this has gone well by leveraging ADF and DVT components (dvt:Map, dvt:gauge, dvt:bargraph, af:tables, af:inputNumberSlider, etc.); however, we recently have been asked to add real-time animation of these controls over time. In brief, the user requires the ability to control the on-screen visualization of data by sliding the control on an af:inputNumberSlider (or equivalent) that represents a multi-month time scale. While sliding this control, the user expects to see the data visualization controls dynamically update in real time, keeping up with the rate at which the user moves the slider control. Think of this like a flip book animation where the slider controls the page the user is looking at and they can flip through the pages forwards or backwards at any desired speed. The time slider increments are one hour.
    Our current application architecture:
    Oracle ADF Fusion Web Application (v 11.1.1.5)
    EJB 3.0
    Eclipselink
    Oracle 11g
    Any kind of help is highly appreciated.
    Thanks,
    Mehabub

    Hi,
    the af:inputNumberSlider does not provide this functionality. Your alternative is a custom component (or any component that raises a client JS event) and call an af:serverListener in a custom event to send the notification to the server.
    Frank

  • How to trigger pop-up window in report and update data base from report

    Hi All,
    I have a requirement, in a report output list to trigger a pop up window with some rejection codes corresponding to each sales order when i select from the output list. Also i need to update data base by selecting one of the rejection code in the pop-up window list for that sales order. Can any one please let me know how to achive this.
    Also, i have check boxes for each record in the output list. Also, i have added one more check box as "Select All'. When select 'Sleect All' check box , all check boxes need to be checked, how to achieve this. PLease let me know.
    Thanks in advance.
    Regards,
    Rajesh

    Hi check this code of editable ALV report... I updated the data base with the changes made..in the editable ALV
    *& Report ZJAY_EDIT_ALV
    REPORT zjay_edit_alv.
    * TYPE-POOLS *
    TYPE-POOLS: slis.
    * INTERNAL TABLES/WORK AREAS/VARIABLES
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
    i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
    w_field TYPE slis_fieldcat_alv,
    p_table LIKE dd02l-tabname,
    dy_table TYPE REF TO data,
    dy_tab TYPE REF TO data,
    dy_line TYPE REF TO data.
    * FIELD-SYMBOLS *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
    <dyn_wa> TYPE ANY,
    <dyn_field> TYPE ANY,
    <dyn_tab_temp> TYPE STANDARD TABLE.
    * SELECTION SCREEN *
    PARAMETERS: tabname(30) TYPE c DEFAULT 'MARA',
    lines(5) TYPE n DEFAULT 7.
    * START-OF-SELECTION *
    START-OF-SELECTION.
    * Storing table name
    p_table = tabname.
    * Create internal table dynamically with the stucture of table name
    * entered in the selection screen
    CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
    ASSIGN dy_table->* TO <dyn_table>.
    IF sy-subrc <> 0.
    MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
    LEAVE TO LIST-PROCESSING.
    ENDIF.
    * Create workarea for the table
    CREATE DATA dy_line LIKE LINE OF <dyn_table>.
    ASSIGN dy_line->* TO <dyn_wa>.
    * Create another temp. table
    CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
    ASSIGN dy_tab->* TO <dyn_tab_temp>.
    SORT i_fieldcat BY col_pos.
    * Select data from table
    SELECT * FROM (p_table)
    INTO TABLE <dyn_table>
    UP TO lines ROWS.
    REFRESH <dyn_tab_temp>.
    * Display report
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_structure_name = p_table
    i_callback_user_command = 'USER_COMMAND'
    i_callback_pf_status_set = 'SET_PF_STATUS'
    TABLES
    t_outtab = <dyn_table>
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    ENDIF.
    *& Form SET_PF_STATUS
    * Setting custom PF-Status
    * -->RT_EXTAB Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZSTANDARD'. "copy it from SALV func group standard
    ENDFORM. "SET_PF_STATUS
    *& Form user_command
    * Handling custom function codes
    * -->R_UCOMM Function code value
    * -->RS_SELFIELD Info. of cursor position in ALV
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    * Local data declaration
    DATA: li_tab TYPE REF TO data,
    l_line TYPE REF TO data.
    * Local field-symbols
    FIELD-SYMBOLS:<l_tab> TYPE table,
    <l_wa> TYPE ANY.
    * Create table
    CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
    ASSIGN li_tab->* TO <l_tab>.
    * Create workarea
    CREATE DATA l_line LIKE LINE OF <l_tab>.
    ASSIGN l_line->* TO <l_wa>.
    CASE r_ucomm.
    * When a record is selected
    WHEN '&IC1'.
    * Read the selected record
    READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
    rs_selfield-tabindex.
    IF sy-subrc = 0.
    * Store the record in an internal table
    APPEND <dyn_wa> TO <l_tab>.
    * Fetch the field catalog info
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = p_table
    CHANGING
    ct_fieldcat = i_fieldcat
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    IF sy-subrc = 0.
    * Make all the fields input enabled except key fields
    w_field-input = 'X'.
    MODIFY i_fieldcat FROM w_field TRANSPORTING input
    WHERE key IS INITIAL.
    ENDIF.
    * Display the record for editing purpose
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_structure_name = p_table
    it_fieldcat = i_fieldcat
    i_screen_start_column = 10
    i_screen_start_line = 15
    i_screen_end_column = 200
    i_screen_end_line = 20
    TABLES
    t_outtab = <l_tab>
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    * Read the modified data
    READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
    * If the record is changed then track its index no.
    * and populate it in an internal table for future
    * action
    IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
    <dyn_wa> = <l_wa>.
    i_index = rs_selfield-tabindex.
    APPEND i_index.
    ENDIF.
    ENDIF.
    ENDIF.
    * When save button is pressed
    WHEN 'SAVE'.
    * Sort the index table
    SORT i_index.
    * Delete all duplicate records
    DELETE ADJACENT DUPLICATES FROM i_index.
    LOOP AT i_index.
    * Find out the changes in the internal table
    * and populate these changes in another internal table
    READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
    IF sy-subrc = 0.
    APPEND <dyn_wa> TO <dyn_tab_temp>.
    ENDIF.
    ENDLOOP.
    * Lock the table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    IF sy-subrc = 0.
    * Modify the database table with these changes
    MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
    REFRESH <dyn_tab_temp>.
    * Unlock the table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table.
    ENDIF.
    ENDCASE.
    rs_selfield-refresh = 'X'.
    ENDFORM. "user_command

  • Need help in UPDATE data in SQL Query

    Hi all,
    I am trying to update data in the sql table as per below screenshot but couldn't able to do it. Can anyone help to update the data as I mention in screenshot.Appreciate you help.Thanks.
    Yellow highlighted columns are source
    Green highlighted columns are target
    Colored data should be update as per source data in sql table.Data is not static as it might have more rows to update and query should be bit dynamic.
    Maruthi...

    You have already asked this question once. You did not get any good answers, because you the information you gave was insufficient. And I'm afraid that the information is still in sufficient.
    Or more exactly, from the example you have given, the answer is: can't be done. And the reason it can't be done, is as I explained in response to you first thread: there is no information in the data to from which we can deduce that Clorox Company
    should be under "Week 1-1,K.B,F". The fact that rows are listed in a certain order in the screenshoot is of no importance, because a table is an unordered object.
    But you said in another post that you have a timestamp column. Maybe that column is usable - maybe it is not. But at least it is a key that you have more columns that the ones you show.
    The best way to get help with this type of problems is to post:
    1) CREATE TABLE statement for your table(s).
    2) INSERT statements with sample data.
    3) The desired result given the sample.
    4) A short description of the actual buisness problem you are trying to solve.
    5) Which version of SQL Server you are using.
    This makes it easy to copy and paste into a query window to develop a tested solution. Screenshots with an insufficient amount of data is not going to help you very much.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Question on Dynamic Query Data Source and Form Folders in Oracle Forms 6i

    Hi there -
    I have one interesting requirement in Oracle Forms.
    This is what I wanted to do.
    1. Have a LOV and Go button on Form.
    2. From LOV, I will select a pre-defined custom table and click Go.
    3. Based on the selected custom table, I have to populate the Block (Tabular Format).
    4. User should be able to do update, delete, insert on this block.
    5. User should be able to use the Oracle Form folders functionality (select only necessary column and save views etc. Std folder functionality).
    6. If user selects a different custom table name in the LOV on top, I need to refresh the data from the block based on this new table. Remaining functionality should be as it is (steps 3 to 5).
    You can see here, I am going to have dynamic query data source (Table Name as well as column mapping) on the block. I do not know before hand how many columns the user selected table has!
    This is what I have planned for this so far but I have some major questions before I can move on with this design:
    1. I am going to create a table structure with fixed number of column in form (40 cols assuming that the custom table will not have more that 40 cols). (Kind of limitation but it's okay as of now).
    2. Dynamically populate the block based on the table name selected by the user from LOV. Dynamically change the table column names based on the table selected etc.
    3. Perform insert, update, delete using PL/SQL package.
    So far it looks okay.
    Now my real question is,
    Can user still be able to user "Folders" functionality here? I have never done this kind of development before and I doubt the dynamic column naming, dynamic column data source will really work for "folders"!
    Also, I am not really sure whether user will be able to save these "folder" queries?
    Okay so form experts, can you ppl suggest me if this is really going to work? Are there any better ways to do this?
    Initially I tried to do this in OA Framework but I got stuck at because as per OAF developer guide "I cannot user OAF personalization for dynamic items, regions etc".
    For more info on that thread see this link...
    Re: setUserCustomizable issue!
    Thanks in advance for the help.

    Any suggestion anyone?

  • Updating data from grid to Oracle database.

    Hi
    I am having some trouble updating data in a grid back to the Database. I have provided an example below. I am using the ODP.NET protocol.
    The query in the proc is a simple SELECT * FROM xxxx. There are no joins (outer or inner) at all. The table xxxx has a primary key. The proc is used to fill a grid. It does this correctly by returning data to a DataTable which is then used as the data source for a grid. Then, when I make a change in the grid and press the update button, the application trys to use the da.UpdateCommand = cmdBuilder.GetUpdateCommand() statement and gets the error
    "Dynamic SQL generation failed. No key information found".
    Note I have tried to get around this problem by adding a key to the DataTable ... no luck.
    I also tried da.MissingSchemaAction = MissingSchemaAction.AddWithKey ... no luck.
    I have also tried da.FillSchema(dt, SchemaType.Mapped); ... no luck.
    What am I doing wrong? ... is there a better way?
    public partial class Form1 : Form
    private OracleConnection a_Conn = null;
    private DataTable dt = null;
    private OracleDataAdapter da = null;
    private OracleCommand cmd = null;
    public Form1()
    InitializeComponent();
    private void Form1_Load(object sender, EventArgs e)
    a_Conn = new OracleConnection();
    a_Conn.ConnectionString = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    a_Conn.Open();
    dt = new DataTable();
    //SPS_TEST is a stored proc that takes no param and simply returns a dataset
    cmd = new OracleCommand("SPS_TEST", a_Conn);
    cmd.CommandType = CommandType.StoredProcedure;
    //setup ref cursor (needed for oracle)
    cmd.Parameters.Add("Cursor", OracleDbType.RefCursor, ParameterDirection.Output);
    da = new OracleDataAdapter(cmd);
    //da.MissingSchemaAction = MissingSchemaAction.AddWithKey;
    DataColumn[] keys = new DataColumn[1];
    keys[0] = dt.Columns["Name of Column with primary key in Table I have queried"];
    dt.PrimaryKey = keys;
    da.Fill(dt);
    //grid is successfully filled at this point
    fpSpread1.DataSource = dt;
    private void btnUpdate_Click(object sender, EventArgs e)
    OracleCommandBuilder cmdBuilder = new OracleCommandBuilder(da);
    da.UpdateCommand = cmdBuilder.GetUpdateCommand();
    dt.AcceptChanges();
    da.Update(dt);
    Rob
    Edited by: user8803094 on 10-Mar-2010 19:38
    Edited by: user8803094 on 10-Mar-2010 20:56

    To the best of my knowledge, and I may be wrong here, a ref cursor does not contain any base table information. It simply contains metadata about what's in the cursor itself. The commandbuilder doesnt know what table the data came from , if it even came from an actual db table at all. As such, it's not possible for the commandbuilder to know how to generate an update statement.
    You CAN update a dataset you created from a refcursor, but you have to supply your own UpdateCommand in the case, rather than using a commandbuilder.
    If your ref cursor is simply a select from a table, it would probably be pretty easy to (at design time) get and note the updatecommand and parameters from a select * from the table, and then use that for the updatecommand of the dataset filled from a refcursor, as the metadata should match up. Probably not something you'd want to do on the fly though.
    Hope it helps,
    Corrections/comments welcome.
    Greg

  • Dynamically Updating Content Server Portlets

    [urlHi, I am currently having difficulty dynamically updating content server portlets.  I have a portlet of the following form:[/url]
    ArticleName Author Title Date mystory author1 title1 04/05/01
    story2 author2 title2 06/07/04
    story author3 title3 01/02/03
    So I have this table where each one of the line items is an article in the content server. So, for example the first line item is an article "mystory" by "author1", with title "title1" and date "04/05/01" additionally there is an article text field, but this isn't displayed unless I click on the article name.
    I can set up the basics of this portlet, but when I try to add any real functionality I run into one of two problems.
    First Problem: Passing Information
    I cannot find a way to pass information between content portlets. For instance, if the user would like to "re-sort" this table based on "date", I would like to have the user click on the "date" column heading and then reload the page. To do so, I would have to pass the section name back to the page so that it could resort based on this data. I have not found anyway to effectively pass information to a content server portlet. I am building these pages through use of the presentation template framework (so I can have access to the content items) but that seems to change the way portlets are handled.
    I got around this limitation with a regular portlet by creating an intermediary page which captures passed information and stores it to the session state. Once the information was in the session state, it is accessible to the portlet on the first page. However, this only works because remote portlets do not change their session id once loaded. Content Server portlets, on the other hand, change their session id after every reload of the browser or page change. I can send information from a content server portlet to an intermediary page, but I cannot send it back to the portlet because the session id has changed so I have no idea of knowing where to send the information. I can write it to a session state, but by the time I return to the portal page, the content server has changed its session id so it does not know where to look any longer.
    I suppose it would be possible to create an application state variable and append it with some static token (if there is some static variable per portal session) but I would rather not have to deal with application variables if at all possible.
    Second Problem: Dynamically Updating PCS Tags
    Even if I were able to the pass information back to my content server portlet, I run into another issue. The easiest way to sort content server items is using the filter command in the pcs:foreach tag. So, if I wanted to sort by author name, I could do something like the following <pcs:foreach var="item" expr="filter(folderByName('content'), filtered.name == '"name")" or something like that (the syntax may be incorrect, I just wrote this off the top of my head). However, it appears that the way the presentation templates are compiled goes in the order of PCS tags THEN JSP. So I would have no way of dynamically changing the variable on which I sort. For example, if I clicked on "Date" above in my table, I would like to be able to dynamically change my code so that I sort on date, and not name. I cannot find a solution to this problem.
    My workaround is to use the pcs tags to write out all the possible sortings to java array objects. This gives me access to the data on a JSP level and based on whatever the user will chose, I could then display that array. While this works, it is extremely ghetto and inefficient. Any help or suggestions would be fantastic.
    Thanks a lot,
    Jason Grauel

    You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
    However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
    function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
    return true;
    Randy

  • How do i dynamically add data to a JTabel?

    Hey
    How do i add the data to a JTabel dynamically from a HashMap?
    I tried the following:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package test;
    import java.util.HashMap;
    import java.util.ArrayList;
    import java.util.Set;
    import javax.swing.JTable;
    * @author Jesper
    public class Players {
        HashMap<String, Stats> players;
        public Players(){
            players = new HashMap<String, Stats>();
            addPlayer();
        public void addPlayer(){
            players.put("Martin ?rnskov", new Stats(19, 3, 1));
            players.put("Thomas Raun", new Stats(23, 6, 0));
            players.put("Jimmy Mayasi", new Stats(26, 26, 3));
            players.put("Lasse J?rgensen", new Stats(33, 0, 0));
        public JTable showPlayers(){
            String[] columnames = {"Spiller", "Kampe", "M?l", "R?de kort"};
            Object[][] data;
            Set<String> key = players.keySet();
            for(String player : key){
               data = {{player, players.get(player).getMatches(), players.get(player).getGoals(), players.get(player).getRedCards()}};          
            final JTable table = new JTable(data, columnames);
            return table;
    but on this line Netbeans says that variable is allready defined:
       data = {{player, players.get(player).getMatches(), players.get(player).getGoals(), players.get(player).getRedCards()}};          
    I can see the problem is this, but when it cant be done this way, how can i do it then?

    Instead of creating the table directly with data values, use a DefaultTableModel whose constructor is very similar. But DefaultTableModel has interesting method as addRow, removeRow... for dynamically handling data (and visually to table).
    Set<String> keys = players.keySet();
    Object[][] data = new Object[keys.size()][columNames.length];
    for(i=0; i<keys.size(); i++) {
       String key = keys.next();
       data[0] = player;
    data[i][[1] = players.get(player).getMatches();
    data[i][[2] = players.get(player).getGoals();
    data[i][[3] = players.get(player).getRedCards();
    DefaultTableModel model = new DefaultTableModel(data, columNames );
    JTable table = new JTable(model);
    Later in your code, as you want to dynamically update the table, work with the model instead of the table to add , remove, change cell values of the table.
    +PS : your code loop is probably wrong. You are setting data variable for each value of the set. I suppose you want to add a row to data array. data is a two dimension array+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Dynamic UPDATE statement with parameters for column names.

    Hello,
    On this* website I read "The SQL string can contain placeholders for bind arguments, but bind values cannot be used to pass in the names of schema objects (table or column names). You may pass in numeric, date, and string expressions, but not a BOOLEAN or NULL literal value"
    On the other hand, in this Re: execute immediate with dynamic column name update and many other
    posts people use EXECUTE IMMEDIATE to create a dynamic UPDATE statement.
    dynSQL:='UPDATE CO_STAT2 CO SET CO.'||P_ENT_B_G_NAME||' = '||P_ENT_E_G_WE||'
    WHERE ST IN
    (SELECT ST FROM STG_CO_STAT2_TEST CO WHERE
    '||P_ST||' = CO.ST AND
    CO.'||P_ENT_E_G_NAME||' > '||P_ENT_E_G_WE||' AND
    CO.'||P_ENT_B_G_NAME||' < '||P_ENT_E_G_WE||');';
    EXECUTE IMMEDIATE dynSQL ;
    Since this statement is part of a Stored Procedure, I wont see the exact error but just get a ORA-06512.
    The compiling works fine and I use Oracle 11g.
    http://psoug.org/definition/EXECUTE_IMMEDIATE.htm

    OK I extracted from all of your posts so far that I have to use "bind-variables with :"
    From all the other tuorials and forums posts, I assume using the pipe is correct so I added those as well into the script:
    set serveroutput on format wraped;
    DECLARE
    dynSQL VARCHAR2(5000);
    P_ENT_E_G_NAME VARCHAR2 (100) :='test1'; P_ENT_E_G_WE VARCHAR2 (100) :='01.02.2012'; P_ENT_B_G_NAME VARCHAR2 (100) :='01.01.2012';
    P_ST                VARCHAR2 (100) :='32132';
    BEGIN
    dynSQL:= 'UPDATE CO_STAT2 CO SET CO.'||:P_ENT_B_G_NAME||' = '||:P_ENT_E_G_WE||'
                  WHERE ST IN (SELECT ST FROM STG_CO_STAT2_TEST CO WHERE
                  '||:P_ST||'                           = CO.ST                  AND
                  CO.'||:P_ENT_E_G_NAME||'     > '||:P_ENT_E_G_WE||' AND
                  CO.'||:P_ENT_B_G_NAME||'    
    < '||:P_ENT_E_G_WE||')';
    --this is somehow missing after the last < '||:P_ENT_E_G_WE||')';
    dbms_output.enable;
    dbms_output.put(dynSQL);
    --EXECUTE IMMEDIATE dynSQL;    
    END;Problem:I think I figured it out, the dates that I parse into the query need additional '

  • How to generate a dynamic update query to update error flag in a mapping?

    i have a mapping in which i m loading log table through generated parameter file.But i want to update the error flag using dynamic update query.for that i have to generate a query and use update sqloverridw in target instances.but i m not getting how to implement it.Please help..!!

    Hi  All, I have a scenario. Below is the source record. field1|field2|field3|field4|field5|field6|field7
    5|20150329|1|980100001|500|My name is Lalita|25
    5|20150329|1|303444442|200|My name is |Lalita.I work in TCS|26
    5|20150329|1|442101001|1000|My name is Lalita.I worked Syntel|56
    5|20150329|1|446788900|300|My name|67  My source file is | separator. But for field6 the data might come with '|'.
    So I want to import the data along with '|' after separating all field in Informatica Layer.  Source team is not going to preformat the file. Please suggest how to achive this.

  • Updating date while enabling/Disabling user in AD

    Hi All,
    We are using FIM 2010 R2 SP1 and integrated with AD.
    All integration is done through synch rule and no coding.
    Now we have a new requirement to update date in AD while enabling and disabling user.
    Kindly suggest, how it can be achieved through synch rule.
    Thanks,
    Mann

    Hi Mann.Cool,
    You can't set a date dynamically thought sync rule. Instead, I suggest you parse useraccountcontrol and set an custom attribute with value enabled/disabled.
    See
    http://idmgnt.wordpress.com/xpath-custom-expression/ (Check if an account is enable or not)
    Once is done:
    Create two new sets "Enabled users" and "Disabled users"
    Create a WF with T4F Function Evaluator, to set your date attribute (http://oxfordcomputergroup.com/technology/software-tools-components )
    Create the mpr
    Let me know if you want more details
    Regards,
    Sylvain

Maybe you are looking for

  • Issue in Creation of new Value Field in CO-PA

    Hi, I have a query in CO-PA Value Field Linking. In my Development Client, 1. Created a New Value Field (No Transport Request Generated) 2. Linked to the above to new Conditon type created in SD. (Tranport request was generated) i.e. in Flow of Actua

  • Dobj.schtm_invalid_dup error in oim while unlocking user

    When trying to unlock a user in oim 9.1.0.2 we get the following error. We have customized task created for this functionality to work.The task Xs Unlock User from UF to PF is getting rejected giving the following error Error Details Feb 20, 2013: Ad

  • How to configure jar files in BAT file

    hi to all .I have one doubt. how to configure the no.fo jar files in BAT file. can any one help me thanks

  • Printing to pdf gives improper formatting (page is cut off on one side)

    Safari 7.0.5 on Mavericks 10.9.4: printing to pdf gives improper formatting (page is cut off on one side). Any suggestions?

  • Initial Load Error IDM 7.0

    Hello Exports, We have completed the IDM 7.0 Installation and Configuraiton.we are in the process of running the Initial Load During the intial load with ABAP system we received below errors Under IDentity Center->Management -> System log Date;Type;"