update of the value entered in the report to the table item

Hi all


I want to change the dnom report... and wt never dept I checked shud update the db...



I've created a report in the

Select apex_item.checkbox(1,deptno) "Select", apex_item.text(2,dname) "dname" of the Department;


and submitt I m writing a process as


Start
BECAUSE me IN 1.APEX_APPLICATION. G_F01. COUNTY
loop
update the set dname = apex_application dept. G_F02 (i) where deptno = apex_application. G_F01 (i);

-I want to update the text entered in the table report.
commit;
end loop;
end;

Hello

You get an error? Or how it will not work?

BR, Jari

Tags: Database

Similar Questions

  • PPR for the updating of the table after a click in a butto in Jdeveloper 10.1.3 - thanks

    Hi people,

    I looked through many messages about refreshing the page, but still did not solve my problem. Please help me. It's quite URGENT.

    I have a table with a command button. After you click the data insertion is engaged and the table is supposed to be updated to reflect the changes.

    Now I use PPR as my solution: the button is the initiator and the table is the target. I put the button property: part delivery = true and its id as a partial release of the table value

    What I missed, please?

    Note: reloading of the entire page is not a solution for me. (The table is incorporated within a region of showOneTab and there are other tables in different tabs)

    Thanks in advance!

    Assuming that nothing wrong with the JavaScript syntax, the explanation might be: If you ActionListener Installer (data transaction method) and javaScript on a button-click the button, the button click javaScript will not be executed. (???)

    This is not the case. In my application, the two actions of script and java onclick button are executed. Javascript onclick fires first, then the action of the button. It should be the same for actionlistener as well.

    Regarding the updating of the table after a click of a button inside the table, you can do this by forcing the partial relaxation of the table of a bean to support using addPartialTarget.

    On the actionListener to the button call the below the backup method of bean.

    Here is the code example:

        public void btnSample_actionListener(ActionEvent actionEvent) {
           // First execute the method on the button
           BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("buttonMethod");
            Object result = operationBinding.execute();
    
            //Refresh the iterator of table and partial trigger the table
            OperationBinding operationBindingTab =
                bindings.getOperationBinding("RefreshTable");
            Object resultTab = operationBindingTab.execute();
            AdfFacesContext.getCurrentInstance().addPartialTarget(myTable);
    

    RefreshTable is an action that runs the Execute method on the table iterator.

    Thank you
    Mitesh.

  • [ADF, JDev12.1.3] af:table - how to select by program level 1 (on the updating of the table)?

    Hallo,

    I have an af:table that displays the result of a custom search form.

    I need to update the properties of some of the buttons every time that a row in the table is selected.

    I would like to handle this in a SelectionListener I associated with the table.

    public void myTableSelectionListener(SelectionEvent selectionEvent) {
      ELUtils.invokeEL("#{bindings.SearchEmployee1.collectionModel.makeCurrent}",
                       new Class[] { SelectionEvent.class },
                       new Object[] { selectionEvent });
      Row selectedRow = (Row) ELUtils.evaluateEL("#{bindings.SearchEmployees1Iterator.currentRow}");
      System.out.println(selectedRow.getAttribute("Name") + " - " + selectedRow.getAttribute("Surname"));
    }
    
    

    I noticed the System.out.println prints the values of the selected line only when the user clicks on a line while that no value does print when the grid is recharged after clicking the search button.

    To resolve this problem, I guess I need to select by program level 1 in the table whenever the grid is charged, but I have not found a working method to do this.

    You kindly explain how to select by program level 1 of an af:table?

    Thank you

    Federico

    Hi Federico
    only for research you can handle this in your action of the search button (because your selection listener code works for another action), after research get the current row of your table (it would be the first rows) and run your code

    If you are using af:query, then override default query listener to run custom code

    See -Ashish Awasthi (Jdev/ADF) Blog: the substitution of the listener default query, validation in the field of af: query-Oracle ADF

    Thank you

  • Build/update dynamically the table 3D

    Hi all

    I'm having a problem with the dynamic generation of a 3D of the following set of data table:

    x: {1,2,3,4,5}

    y: {1,2,3,4,5}

    Z_1: {1,2,3,4,5}

    Z_2: {1,2,3,4,5}

    Z_3: {1,2,3,4,5}

    Z_4: {1,2,3,4,5}

    Z_5: {1,2,3,4,5}

    where there is (5) Z amplitudes associated with each measurement location.  What I am able to statically (from the above values x and y tables 1 d and 2D table Z) is to create a 3D Board made up of x and is indexed intensity to the graphic format of the 2D tables.  Each page of the table corresponds to each of the 5 Z amplitudes measured at each location.  In the attached VI, the Array Build function works perfectly for the static case where the entire data is available.  I followed the example of a another discussion forum will be subject to the provisions of nest two loops construction 2D array in the inner loop and incrementing the pages on the outer loop. The static situation is resolved.

    However, my goal is to graphically present data he is taken, point by point, to the user.  The other attached VI simulates this scenario, incrementation of x and y positions based on the measure button.  Z matrix indicator shows that the 2D Array (each individual page) is in the proper format.  The construction of the 3D picture is dynamically where I'm having problems.  I tried to build table and replace a subset of table, but none of these functions to produce the desired result.

    In the case of building table, 3D table is correctly based on the first measure: for x = y = 1, 2D array page0 is set Z_1 in position (1,1), page1 has the Z_2 value in the position (1,1), page2 Z_3, etc..  However, on the second measure, as expected, the berries are concatenated page5 have Z_1 values in the (1,1) and (2,2) positions.  This result is properly formatted, however, should the counted array 3D page is limited to 5 (page0, 1, 2, 3, 4).  So ideally, page5 should in this case replace page0.  So build array results in the correct format but concatenation is not desirable.

    The subset of spare board was made with the index of the page (outside of the loop) number to specify the subset of the 3D Board needs to be replaced.  The result was an empty 3D array.

    Thank you any help to solve this problem.

    kmsk wrote:

    Any suggestions on how to handle filling out table 3D of unknown size?

    If the size of the final table has a reasonable upper limit, you can initialize an array of slightly oversized, then keep using the subset of the table replace. It will be much faster and more effective memory than gradually more and more large networks.

    When the purchase is made, you can cut to the final size.

    Aircraft add to a table 3D using 'insert into array' or 'Build array' (favorite?), cause memory frequent shifts and might slow down your code by orders of magnitude in casing of excessive fragmentation of memory.

  • Updating of the table after insert shows empty cells

    Hello experts,

    I'm trying to insert some custom values of certain fields in a table displayed on my page. The table comes a VO based entity with a sequence number and a few constraints.

    The sequence numbers batteries managed automatically by the database.

    The entry fields are related to a bean managed to get the value with 'GetValue' and then I create a string for the entry. The string then gets cut in the VO as some attributes with the following SQL calculation example:

    REGEXP_SUBSTR (attribut3, "[^,] +' 1, 5")

    But it is on the ViewObject/database layer.

    After I call the method of the VO Impl to create the new line like this:

    Managed bean:

    OperationBinding operationBinding = bindings.getOperationBinding ("addRow");

    operationBinding.getParamsMap () .put ("Value1", someInt);

    operationBinding.getParamsMap () .put ("Value2", someIntToo);

    operationBinding.getParamsMap () .put ("Value3", someString);

    operationBinding.execute ();


    Impl VO:


    ' public void addRow (integer value1, value2 Integer, String value3) {}


    ViewObject vo = this;

    NewRow row = vo.createRow ();


    newRow.setAttribute ("attribut1", value1);

    newRow.setAttribute ("attribut2", value2);

    newRow.setAttribute ("attribut3", value3);


    vo.insertRow (newRow);

    this.getDBTransaction () .commit ();

    }

    I capture without exception again, but when I place everything correctly and trigger the code bean managed via a button action, the table shows the new line with the correct integers, but the channel cut in two by the calculation of SQL from the top shows only blank cells. After that research with the filter of the table and remove the search filter once again, the strings appear correctly.

    For example, after you insert:

    table1.PNG

    Then, after 'refreshment' with the filter:

    table2.PNG

    What can I do about it? I can't really put the data through the InsertWithParams, because I need build the string with the Java Code.

    It only does not show data after insertion, PartialTrigger (s) also will not work.

    You must re-run the sql query after validation (with: vo.executeQuery ())

    Dario

  • Update on the table by extracting the data from the table even under certain conditions

    Hi Experts,

    I have the table EMP which currently has 6 entries.

    EMP_SYS BATCH_NO JOIN_DATE LOGIN_ID STATUS FLAG

    1 FEBRUARY 10 PROD 84 Y IND123 ABC

    DEV 1-23 APRIL 98 Y IND123 ABC

    2 12 APRIL PROD 98 Y IND123 ABC

    2 2 APRIL DEV 98 Y IND123 ABC

    3 13 APRIL PROD 98 Y IND123 ABC

    3 3 APRIL DEV 98 Y IND123 ABC

    CONDITION: I need to take lines which has the minimum BATCH_NO for each of the EMP_SYS

    for example,.

    1 FEBRUARY 10 PROD 84 Y IND123 ABC

    DEV 1-23 APRIL 98 Y IND123 ABC

    For the above two lines, I need to update the status of DEF. How to select this criterion and update in the same query?

    Currently, I used the query to select the minimum BATCH_NO for each of the EMP_SYS below.

    SELECT EMP_SYS, BATCH_NO, JOIN_DATE, FLAG, LOGIN_ID, STATUS

    Of

    (

    EMP_SYS, BATCH_NO, JOIN_DATE, FLAG, LOGIN_ID, STATUS, SELECT ROW_NUMBER)

    COURSE NR (PARTITION BY ORDER OF EMP_SYS OF EMP_SYS)

    FROM EMP

    WHEN STATUS = 'ABC' AND FLAG = "Y".

    )

    WHERE

    NR = 1;

    If I try to use the update on the above query statement... It updates every 6 rows instead of 2 rows.

    Please suggest me a way to update only the two lines that has the minimum BATCH_NO for each of the EMP_SYS.

    But is possible to write the query without using the Group of?

    Update e EMP

    set STATUS = "DEF".

    where BATCH_NO = (select min (BATCH_NO) from EMP I where STATUS = 'ABC' AND FLAG = 'Y' and i.emp_sys = e.emp_sys)

  • Problems during the update of the table of contents

    Hello

    does anyone know why additional section numbers and points appear every time I update my OCD? Normally I just delete them.

    Thank you!

    Try to remove the numbering of paragraph TOC style options. I am sure that what is happening is to make a numbered list on the table of contents entries AND pick up the existing numbers in the text.

    Peter

  • remove duplicate in the table items

    I use under the code to two areas of clips. On the left 10 clips consisting of 2 columns and 5 rows. On the right an exact replica. It starts with the clip 1 on the left, as it is duplicated on the right, then clip 2 on the left, as it is duplicated on the right etc. Until the left and right are the exact same 10 clips in the same order.

    Now, I've added an event listener. The way I'd like it works when I click on for example the clip 4 left, not only this clip should be removed, but also his counterpart cut 4 right. And even the opposite effect: by clicking on the clip on the right 4 should remove both the right claw 4 as the left clip 4.

    The way I work now is is that if clicking the clips on the left. Who removes this clip and the clip on the right. I use indexOf to mid-range. By removing the clip on this site indexOf, which would be a clip on the left and the right clip by adding 1 to that indexOf. Since in the table, the clip of law (duplicate) immediately follows the left (foreground).

    Of course this does not the other way, when I click on a good clip first. Because I then have to subtract 1 from the location of indexOf to get the left clip version. But I can't think of a way to determine if the item clicked on is on the box on the right or left. I commented on this second line removeChild since it does not work when you click on a clip to right.

    Can anyone thing of the kind?

    var clipcopies:Array = new Array();

    for (var: lines: uint = 0; lines < 5; lines ++)

    {

    for (var cols: uint = 0; < 2; passes passes ++)

    {

    for (var: Cops: uint = 0; < 2; cops cops ++)

    {

    var character: clips = new clips();

    persona.scaleX =. 5;

    persona.scaleY =. 5;

    persona.gotoAndStop(cols+1+rows*2);

    Persona.x = (COL * (persona.width + 20) + 10) +(cops*300);

    Persona.y = (lines * (persona.height + 20) + 10);

    persona.addEventListener (MouseEvent.CLICK, clickPersona);

    addChild (persona);

    clipcopies.push (Persona);

    }

    }

    }

    function clickPersona(e:MouseEvent):void

    {

    var thisclip:uint = clipcopies.indexOf (e.target);

    trace (thisclip);

    removeChild (clipcopies [thisclip]);

    removeChild (clipcopies [thisclip + 1]);

    }

    use:

    var clipcopies:Array = new Array();

    for (var: lines: uint = 0; rows)<5; rows++)="">

    for (var cols: uint = 0; cols)<2; cols++)="">

    for (var: Cops: uint = 0; cops)<2; cops++)="">

    var character: clips = new clips();

    persona.scaleX =. 5;

    persona.scaleY =. 5;

    persona.gotoAndStop(cols+1+rows*2);

    Persona.x = (COL * (persona.width + 20) + 10) +(cops*300);

    Persona.y = (lines * (persona.height + 20) + 10);

    Persona.Name = line + "," + COL + "," + cops;

    persona.addEventListener (MouseEvent.CLICK, clickPersona);

    addChild (persona);

    clipcopies.push (Persona);

    }

    }

    }

    function clickPersona(e:MouseEvent):void {}

    removeChild (MovieClip (e.currentTarget));

    removeChild (getChildByName (e.currentTarget.name.split (",") [0] + ',' + (1 - int (e.currentTarge t.name.split (",") [1])));)

    }

  • Direct Descriptive Flexfields update on the table HR_ALL_POSITIONS_F

    Hello! I am currently developing something that requires the HR_ALL_POSITIONS_F Table.

    I have a test instance that is a clone of our Live/Production environment. They have the same values in HR_ALL_POSITIONS_F.

    I added a FDF for ATTRIBUTE1 value ~ ATTRIBUTE4 of HR_ALL_POSITIONS_F in our Test environment.

    I would now like to migrate these values in the direct environment.

    Is it preferable that I directly update the values of the ATTRIBUTES to help

    UPDATE HR_ALL_POSITIONS_F

    ATTRIBUTE1 SET = VAL1,

    ATTRIBUT2 = VAL2,

    ATTRIBUT3 = VAL3,

    ATTRIBUTE4 = VAL4

    WHERE = WHERECLAUSE;

    I was also looking for a comand FNDLOAD for these de FACTO forces, but I can't find.

    Hoping for your help!

    Thank you!

    Please see if https://community.oracle.com/thread/3648553 help.

    You can also save an SR to confirm the same thing with Oracle support.

    Thank you

    Hussein

  • update of the table at the entrance to the page

    Hello

    What is the best way to update a table at the entrance to the page?

    I have a file I need to add a value of 1 for once it is loaded (it is not a counter)

    By default, the value is 0 added by mysql. I want to update for when the user saw that record when the page loads message.php for this page id.

    I did until now, but I want to submit without going through a button on the page.

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "update_message_status")) {}
    $updateSQL = sprintf ("mailbox to UPDATE the VALUE displayed = %s WHERE mailbox_id = %s",
    GetSQLValueString ($_POST ["watched"], "text").
    GetSQLValueString ($_POST ['mailbox_id'], "int"));

    @mysql_select_db ($database_db, $db);
    $Result1 = mysql_query ($updateSQL, $db) or die (mysql_error ());

    $updateGoTo = "message.php? id ='". $row_messagesList ['mailbox_id] "]." ' « ;
    If (isset {}
    $updateGoTo. = (strpos ($updateGoTo, '?'))? « & » : « ? » ;
    $updateGoTo. = $_SERVER ['QUERY_STRING'];
    }
    header (sprintf ("location: %s", $updateGoTo));
    }

    < do action = "<?" PHP echo $editFormAction;? ">" method = "POST" name = "update_message_status" >
    < input name = "mailbox_id" type = "hidden" value = "<?" PHP echo $row_messagesList ["mailbox_id"];? ">" / >
    < input name = "consulted" type = "hidden" value = "1" / >
    < input type = "hidden" name = "MM_update" value = "update_message_status" / >
    < / make >

    Thank you

    your code all the junk and put something like this:

    @mysql_select_db ($database_db, $db);
    $mailbox_id = "-1";
    If (isset($_row_messagesList['mailbox_id'])) {}
    $mailbox_id = $_row_messagesList ["mailbox_id"];
    }
    $updateSQL = sprintf ("mailbox to UPDATE the displayed VALUE = '1' WHERE mailbox_id = %s", GetSQLValueString ($mailbox_id, "int") ");
    $Result1 = mysql_query ($updateSQL, $db) or die (mysql_error ());

  • How to convert varchar to date datatype all insert or update in the table

    Hai All

    I need to convert to varchar type to date.

    I have two Tables T1, T2

    Structure of T1

    Code varchar

    Time varchar

    Date varchar

    Structure of T2

    Var EmpName

    Empcode var

    Date of the respondent

    Outtime date

    Intrinsically date

    Date of Introut

    Att_date

    Now I need to spend the time form T1 to T2 respondent, outtime, intrinsically, introut under certain conditions

    So now I need to convert Varchar to Date so that the insert or update

    I tried something

    Insert into T1 (code, respondent, att_date) values

    (To_date(Date|| dele de code temps, «hh24mi de mon-dd-yyyy»), att_date);

    OR update while

    Setting a day set Outtime T2 = To_date(Date||) Time, 'hh24mi mon-dd-yyyy') where...


    I got an error Ora-01861


    Concerning

    Srikkanth.M

    You did not show an example of your date or time values, control may be necessary to add a space between them, like

    To_date(Date || ' ' || time,'dd-mon-yyyy hh24mi')
    
  • How can simple trigger for verification of status update on the table... - I get upd sql then?

    Hi guys,.

    I need to do a temporary simple audit on all updates on a table.

    That's why I create a trigger for her...

    However, I need to capture the SQL statement to make the update as well... However I have no way to do it, because it is always replaced by a SQL code I run to get the SESSION ID...

    Here is the trigger...
    ----------------------

    create or replace
    alert_setting_trg relaxation
    before the update on user_alert_settings
    for each line
    declare
    number of v_sid;
    v_username varchar2 (100);
    v_osuser varchar2 (100);
    v_machine varchar2 (100);
    v_program varchar2 (100);
    v_module varchar2 (100);
    v_prevsqlid varchar2 (100);
    v_sqltext varchar2 (100);

    Start
    SELECT SYS_CONTEXT ('USERENV', 'SID')
    IN v_sid
    FROM DUAL;

    SELECT the username, osuser, machine, program, module, PREV_SQL_ID
    IN v_username, v_osuser, v_machine, v_program, v_module, v_prevsqlid
    SESSION $ v where SID = v_sid;

    SELECT sql_text
    IN v_sqltext
    V $ sqltext
    WHERE SQL_ID = v_prevsqlid;

    INSERT INTO alert_settings_log
    VALUES (sysdate, v_sid, v_username, v_osuser, v_machine, v_program, v_module, v_sqltext,: new.user_id,: new.service_grp,: new.alert_setting_id,: old.alert_active,: new.alert_active);

    end;


    Now the problem is that...
    the capture of SQL statement will always be

    SELECT SYS_CONTEXT ('USERENV', 'SID')
    IN v_sid
    FROM DUAL;


    and not the UPDATE table statement.

    1st quarter) I have to get the SID of the session before I could know what SQL it is running.

    However, once I get the SID, the SQL to UPDATE the SID is run changes the SQL that gets the SID.

    What can I do?

    Rgds,
    Noob

    Instead of to the request in three steps, do it in 1. Replace all three of your queries with something like:

    SELECT s.username, s.osuser, s.machine, s.program, s.module, q.sql_text
    INTO v_username, v_osuser, v_machine, v_program, v_module, v_sqltext
    FROM v$session s, v$sql_area q
    WHERE s.sid = SYS_CONTEXT('USERENV','SID') and
          s.prev_sql_id = q.sql_id
    

    John

  • Update of the table based on another

    Hello

    I'm trying to update a date column in a table based on another table. There is a unique ID in each table that identifies and connects each person:
    update patient_bu a set a.entry_date = (select b.entry_date from CLIENT_MED_DT b where a.id = b.id)
    This is the error:

    ORA-01427: einreihig subquery returns multiple rows


    The problem (I think) is that the select statement back several dates for records people. There are some people / records that have multiple entry dates, but I'm only interested in the most recent date.

    How can I update this table with only the most recent date?

    Thanks for any help,
    Matt

    Oh well, I forgot the UPDATE clause:

    SQL> create table patient_bu
      2  (id number
      3  ,entry_date date);
    
    Table created.
    
    SQL> create table client_met_dt
      2  (id number
      3  ,entry_date date);
    
    Table created.
    
    SQL> merge into patient_bu a
      2  using (select id
      3               ,max(entry_date) max_date
      4         from   client_met_dt
      5         group  by id
      6        ) b
      7  on    (a.id = b.id)
      8  when  matched then update
      9        set a.entry_date = b.max_date;
    
    0 rows merged.
    
  • in writing the new value to the table, do not change the scroll position

    I have a program that writes a new value to a chart of every minute.  (The x axis is time).  I show the last weeks of a data value in the graph, but I also axis scroll bar visible so that users can scroll back to see the previous weeks.  The problem is that if they have scrolls in a few weeks and the graphical update of one minute that happens, the graph jumps at the present time (week last of the watch).  Is it possible to have the table simply stay put even when when a new value is written for her?

    John,

    I believe you can use the property of 'Reporter Panel updated' to achieve this.  Set the property to TRUE on a mouse of the user enter event of the chart in order to prevent the update of the table while the user moves the scroll.  Set it to false on mouse leave. I tried the same thing with a mouse to the bottom/mouse event, but it does not behave as expected.  You can PLAY autour with different events to see what works the best, but this basic technique should work.  Take a look at the attached screenshot for details.

    Dan

  • Form doesn't work after updating the table

    I did a form and that you added prior insertion for the block trigger. And the form works perfectly well without any problems.
    Two new columns have been added to the table and must be added to the form now.
    I opened the block of data in the form wizard and made an update of the table to get the two columns. After I pressed on the "refresh" and then tried to launch the form (but has not added new columns), the trigger for prior insertion fails and begins to throw me an error that the value must be entered. (FRM:40202)

    After further analysis I also discovered that there is a null value is passed into another element. In fact when I update the Datablock Assistant I see this column on the left side to be present on the right side.

    Kindly if you could help on the same.

    Guy wrote:
    Details: I just start the form. The error appears in a pop-up window as soon as the form application opens (without any input from me)

    Hello Guy

    Pls check if you have a TIME-NEW-FORM-BIFURCATION, PREFORM, etc an EXECUTE_QUERY;

    If so, then this is the reason for the error arise...

    Please note: all lines with null, associated with the two old columns will cause the error

    Action: insert a value for columns NOT NULL...

    I hope this helps...

    Kind regards

    Abdetu...

Maybe you are looking for

  • How to add the Skype app to the guest account

    Hi all Can you please advise on the following questions: 1. how to add any application like Skype to the guest account2. how to add any application like Skype in the Local user account3. how to separate the user of Skype from microsoft for the partic

  • New router lost Time MAchine

    Now later in my problems without end with networking... This morning I installed a new router (former a packed) which is identical to the former - a BT Home Hub 5. I had a list established this: ... that is the time Machine / aka basic Station (why t

  • Start the upgrade to Windows 7 BSOD

    Satellite L300 was running Vista 32 sweet as a nut, never any problems. Upgrading to 7 and twice in the last few weeks have had an error at startup 'Page in the nonpaged area failure'. The Startup Repair utility was not able to fix it, but ok after s

  • How to download pictures from my mobile phone via bluetooth

    I have pictures on a samsung mobile I want to download via bluetooth on this laptop - how do ido please?

  • Cannot access within LAN of Cisco Anyconnect

    I'm new to the firewall and try to get my Anyconnect test configuration to connect to addresses within my Local network. The Anyconnect client connects easily, I can get to addresses Internet and tracer package told me it falls to phase 6, svc-webvpn