What is the best way to refresh the table after autosubmit (10.1.3.4)
What is the best way to refresh the table after autosubmit?I have a page that contains a table where if one of the fields is changed it autosubmitted where the view object changes some attributes, based on the field having been changed. I need these modified attributes that appear in the table. But without doing anything, the only way to see these values is to cause the iterator updated table.
I've been refreshing the table is having a method in a grain of beacking called "getSystemSettingIter.getCurrentRow ();". This seems to be a bit of a hack for me and I was wondering if there is a better way to get the table to update.
Thanks in advance!
Have you tried setting between the two partial page refresh?
http://www.Oracle.com/pls/as111120/lookup?ID=ADFUI385
http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/web_form.htm#CACEIEEI
Tags: Java
Similar Questions
-
What is the SQL to determine what are the table objects in the KEEP buffer pool?
What is the SQL to determine what are the table objects in the KEEP buffer pool?
Select owner, table_name
from dba_tables
where USER_TABLES = "KEEP."
/
David Fitzjarrell
-
How to see what was the text after I changed it to outlines?
How to see what was the text after I changed it to outlines?
Hamish,
You should always keep (a copy of) the work, you are about to destroy it. You can duplicate the layer with the direct Type and do what you have to do (after hiding the original).
And you need to keep previous versions as backup.
With only the type indicated, he is lost.
-
What is the best way to clear a table? (performance and resources)
Array.Length = 0;
array = [];
array.splice(0);
Array.Length = 0;
-
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. -
Hello friends...
I need your help my friends...
We are currently working on Oracle Applications: 12.1.1
I would like to know the best way to get the name of the Table to form based on a Web...
Concerning
Yas.Hello
Please see this thread and documents referenced in it.
RECORD HISTORY (or) COLUMNS in R12?
RECORD HISTORY (or) COLUMNS in R12?Kind regards
Hussein -
What are the tables that store data card pay self-service?
Hello
Please tell us what are the paintings that self-service stores data card pay in it.
Best regardspay_action_information
Your location may also have built views above this table.
-
I have a popup that the user gets when they click my button 'Add '. The form inside the pop-up window is linked to the same database as the table.
The table that his partialTrigger is configured for the popup and when I opened the popup, I see the new row in the table which is ok. However, when I click the ok button in my popup and data are saved in the database (with a commit), the table does not get updated.
How can I do so?
These are fragments of my code:
the table:
the pop-up window:<af:table value="#{bindings.RekeningFullVO1.collectionModel}" var="row" rows="#{bindings.RekeningFullVO1.rangeSize}" emptyText="#{bindings.RekeningFullVO1.viewable ? 'No data to display.' : 'Access Denied.'}" fetchSize="#{bindings.RekeningFullVO1.rangeSize}" rowBandingInterval="0" filterModel="#{bindings.RekeningFullVO1Query.queryDescriptor}" queryListener="#{bindings.RekeningFullVO1Query.processQuery}" filterVisible="true" varStatus="vs" selectedRowKeys="#{bindings.RekeningFullVO1.collectionModel.selectedRow}" selectionListener="#{bindings.RekeningFullVO1.collectionModel.makeCurrent}" rowSelection="single" id="t1" partialTriggers=":::popAdd">
RekeningBean:<af:popup id="popAdd" popupFetchListener="#{RekeningBean.addPopup}" contentDelivery="lazyUncached" popupCanceledListener="#{RekeningBean.cancelAdd}"> <af:dialog id="dlgAdd" title="Rekening toevoegen" dialogListener="#{RekeningBean.addListener}" affirmativeTextAndAccessKey="Toevoegen" cancelTextAndAccessKey="Annuleren">
So when I run the validation, the table must be informed that the data has been updated but who can't... My popup closes and the blank line in the table remains the same. When I press F5 to refresh the page, I see my data. How can I do this without making the F5?public void addPopup(PopupFetchEvent popupFetchEvent) { BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); OperationBinding createInsert = (OperationBinding) bindings.get("CreateInsert"); createInsert.execute(); if(createInsert.getErrors().size() > 0) { List errors = createInsert.getErrors(); Iterator it = errors.iterator(); while(it.hasNext()) { System.out.println("Error: " + it.next()); } } } public void cancelAdd(PopupCanceledEvent popupCanceledEvent) { BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); OperationBinding createInsert = (OperationBinding) bindings.get("Rollback"); createInsert.execute(); System.out.println("Rollback"); } public void addListener(DialogEvent dialogEvent) { if(dialogEvent.getOutcome().name().equals("cancel")) { BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); OperationBinding createInsert = (OperationBinding) bindings.get("Rollback"); createInsert.execute(); System.out.println("Rollback"); } else if(dialogEvent.getOutcome().name().equals("ok")) { BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); OperationBinding createInsert = (OperationBinding) bindings.get("Commit"); createInsert.execute(); System.out.println("Commit"); } }
I guess the problem is that the trigger part that you put on the table gets called before validating the data in the code of the bean.
Try adding a partial trigger in the bean code that refreshes the table.
Put an ID to your table (or link the table to the bean), then use the code below to trigger an update after the transaction commit or rollback.UIComponent ui = JSFUtils.findComponentInRoot("tableid"); RequestContext.getCurrentInstance().addPartialTarget(ui);
Here is the code for the findCommponentInRoot method:
/** * Locate an UIComponent in view root with its component id. Use a recursive way to achieve this. * Taken from http://www.jroller.com/page/mert?entry=how_to_find_a_uicomponent * @param id UIComponent id * @return UIComponent object */ public static UIComponent findComponentInRoot(String id) { UIComponent component = null; FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext != null) { UIComponent root = facesContext.getViewRoot(); component = findComponent(root, id); } return component; } /** * Locate an UIComponent from its root component. * Taken from http://www.jroller.com/page/mert?entry=how_to_find_a_uicomponent * @param base root Component (parent) * @param id UIComponent id * @return UIComponent object */ public static UIComponent findComponent(UIComponent base, String id) { if (id.equals(base.getId())) return base; UIComponent children = null; UIComponent result = null; Iterator childrens = base.getFacetsAndChildren(); while (childrens.hasNext() && (result == null)) { children = (UIComponent) childrens.next(); if (id.equals(children.getId())) { result = children; break; } result = findComponent(children, id); if (result != null) { break; } } return result; }
Timo
-
How to refresh the table after changing model
12.1.3 JDEV
My Table of the ADF is limited to a list of dataRows in my SampleDataModel class.
My button is limited to a method of createDataRow of SampleDataModel class.
Then click the button, a new item is added to the list of dataRows.
There is a partial trigger button on the table.
I expect after the button clicked, the table is updated with the newly added row.
But what I see is: new dataRow is added to the list of dataRows and the flashes of the table, but it does not show the line.
Anything I missed? Thank you.
< af:toolbar id = 't3' >
< af:button actionListener = "#{bindings.createDataRow.execute}" = "createDataRow" text "
Disabled = "#{!}" Bindings.createDataRow.Enabled}"id ="b7"partialSubmit ="true"/ >
< / af:toolbar >
< af:table value = "#{bindings.dataRows.collectionModel}" var = 'row' "
Rows = "#{Bindings.DataRows.rangeSize} '"
emptyText = "#{bindings.dataRows.viewable?" "{'No data to display.': 'Access Denied.'}".
rowBandingInterval = '0 '.
selectedRowKeys = "#{bindings.dataRows.collectionModel.selectedRow} '"
selectionListener = "#{bindings.dataRows.collectionModel.makeCurrent} '"
rowSelection = 'unique' fetchSize = "#{bindings.dataRows.rangeSize}" id = "t1" "
"partialTriggers =": b7 "editingMode ="clickToEdit">
How you have implemented the createDataRow method to add the line?
A table using an iterator in the pagedef, you have updated this iterator?
Timo
-
Refresh the table after the creation of the new BO of Toplink
Hello
I have the following problem and I hope someone can help me. I use ADF11g/Taskflows with BOs TopLink-mapped (no ADF BC).
Consider the Taskflow (s) following:
the main activity is a (display) jsff page showing a table of BOs. From this point of view, two actions-defined results are called 'Edit' and 'create '. The edit action called an another Taskflow constisting of a pageFragment, showing the detailForm of the Soundtrack of data. This Taskflow has an input and output parameter (Soundtrack edit) and two are called "save" and "Cancel". Add Action calls a method called "createNewBO" first, and then calls the Taskflow mentioned also. Each Taskflow has ist own Bean managed in the pageFlowScope to work as a controller and DataControl to the TaskFlow and directly included views.
The edit action works fine. The action also add except that the table of the default activity of the first taskflow does not update after return from the second Taskflow. I tried to put the property of refreshment in the PageDef of all possible values, in combination with the RefreshCondition, but no combination works. I can do a manual refresh or change the sort then the new Soundtrack is shown in the table.
Is it possible to call a refresh of a jsff since a taskflow or I can force a refresh on entering the jsff?
I am really stuck and appreciate any help ;)
FriedrichYou can try this:
-on your taskflow diagram select the page that contains the table that you want to update, and add a Page parameter (from #{true} # {viewScope.refresh})
-in pageDef page add an invokeAction in executable files and that it points to methodAction which fills the iterator to update
-for newly created invokeAction, value refresh ifNeeded and condition of refreshment to #{viewScope.refresh}This should refresh the iterator each loading of the page (fragment).
I hope this helps!
Pedja
-
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:
Then, after 'refreshment' with the filter:
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
-
Best way to resolve this table?
Lets say you're dealing with these two tables:
CREATE TABLE VEHICLES
(
NUMBER OF VEHICLE_ID
VEHICLE_NAME VARCHAR2 (100 BYTE),
NUMBER OF MILES
);
CREATE TABLE VEHICLE_PARTS
(
NUMBER OF PART_ID,
VEHICLE_ID NUMBER OF NON-NULL,
PART_TYPE NUMBER OF NON-NULL,
PART_DESCRIPTION VARCHAR2 (1000 BYTE) NOT NULL,
START_SERVICE_DATE DATE NOT NULL,
DATE OF END_SERVICE_DATE,
PART_TYPE_NAME VARCHAR2 (100 BYTE)
);
And some data for example as follows:
Insert into VEHICLES (VEHICLE_ID, VEHICLE_NAME, MILES) Values (1, "Honda Civic", 75500);
Insert into VEHICLES (VEHICLE_ID, VEHICLE_NAME, MILES) Values (2, 'Ford Taurus', 156000);
Insert into VEHICLE_PARTS
(PART_ID, VEHICLE_ID, PART_TYPE, PART_DESCRIPTION, START_SERVICE_DATE, END_SERVICE_DATE, PART_TYPE_NAME)
Values
(1, 1, 1, "1.4 VTEC",)
TO_DATE('07/07/2009_00:00:00',_'MM/DD/YYYY_HH24:MI:SS'), TO_DATE (3 MAY 2010 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), "ENGINE");
Insert into VEHICLE_PARTS
(PART_ID, VEHICLE_ID, PART_TYPE, PART_DESCRIPTION, START_SERVICE_DATE, PART_TYPE_NAME)
Values
(2, 1, 1, "1.6 VTEC",)
TO_DATE('05/03/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'ENGINE');
Insert into VEHICLE_PARTS
(PART_ID, VEHICLE_ID, PART_TYPE, PART_DESCRIPTION, START_SERVICE_DATE, END_SERVICE_DATE, PART_TYPE_NAME)
Values
(3, 1, 2, 'Happy new year all seasons',)
TO_DATE('07/07/2009_00:00:00',_'MM/DD/YYYY_HH24:MI:SS'), TO_DATE (10 AUGUST 2010 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'TYRES');
Insert into VEHICLE_PARTS
(PART_ID, VEHICLE_ID, PART_TYPE, PART_DESCRIPTION, START_SERVICE_DATE, PART_TYPE_NAME)
Values
(4, 1, 2, 'Bridgestone Blizzaks',)
TO_DATE('08/10/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), "TIRES");
Insert into VEHICLE_PARTS
(PART_ID, VEHICLE_ID, PART_TYPE, PART_DESCRIPTION, START_SERVICE_DATE, PART_TYPE_NAME)
Values
(5, 2, 1, "3.5 L Duratec",)
TO_DATE('06/01/2008 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'ENGINE');
Insert into VEHICLE_PARTS
(PART_ID, VEHICLE_ID, PART_TYPE, PART_DESCRIPTION, START_SERVICE_DATE, END_SERVICE_DATE, PART_TYPE_NAME)
Values
(6, 2, 2, 'Happy new year all seasons',)
TO_DATE('06/01/2008_00:00:00',_'MM/DD/YYYY_HH24:MI:SS'), TO_DATE (15 MARCH 2009 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'TYRES');
Insert into VEHICLE_PARTS
(PART_ID, VEHICLE_ID, PART_TYPE, PART_DESCRIPTION, START_SERVICE_DATE, END_SERVICE_DATE, PART_TYPE_NAME)
Values
(7, 2, 2, 'Michelin All-Seaon',)
TO_DATE('03/15/2009_00:00:00',_'MM/DD/YYYY_HH24:MI:SS'), TO_DATE (12 JANUARY 2011 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'TYRES');
Insert into VEHICLE_PARTS
(PART_ID, VEHICLE_ID, PART_TYPE, PART_DESCRIPTION, START_SERVICE_DATE, PART_TYPE_NAME)
Values
(8, 2, 2, "Nokian")
TO_DATE('01/12/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), "TIRES");
And you need produce a view that shows the flattened attached data where each vehicle has one row with columns representing their most recent part (which has a service as Start Date of null terminator).
Like this:
Car: Engine: tires:
Honda Civic 1.6 VTEC Bridgestone Blizzaks
Ford Taurus 3.5 L Duratec Nokian
There he has a fast and efficient to do that?
My current approach, which is the brute force method is to have a separate outer join for each column, I need to shoot with the condition of max (START_SERVICE_DATE) to get the current part for each type (engine, tires, etc...).
but its so slow and painful code.
I thought pivot but I don't think that Pivot help here since there is no aggregation going, right?
Anything with the partition could over aid? IM unfamiliar with this syntaxHello
Trant says:
Lets say you're dealing with these two tables:CREATE TABLE VEHICLES
(
NUMBER OF VEHICLE_ID
VEHICLE_NAME VARCHAR2 (100 BYTE),
NUMBER OF MILES
); ...Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!
I thought pivot but I don't think that Pivot help here since there is no aggregation going, right?
Pivot is always aggregation; you take any number of rows in the table and only one line display. It is the aggregation.
Anything with the partition could over aid? IM unfamiliar with this syntax
Yes: ROW_NUMBER analytic function can help to identify the most recent line for each vehicle_id and part_type_name in vehicle_parts.
Here's a way to do it:
WITH got_r_num AS ( SELECT vehicle_id , part_description , part_type_name , ROW_NUMBER () OVER ( PARTITION BY vehicle_id , part_type_name ORDER BY start_service_date ) AS r_num FROM vehicle_parts WHERE end_service_date IS NULL ) SELECT v.vehicle_name , MIN (CASE WHEN r.part_type_name = 'ENGINE' THEN r.part_description END) AS engine , MIN (CASE WHEN r.part_type_name = 'TIRES' THEN r.part_description END) AS tires FROM vehicles v LEFT OUTER JOIN got_r_num r ON v.vehicle_id = r.vehicle_id WHERE r.r_num = 1 GROUP BY v.vehicle_name ORDER BY v.vehicle_name ;
You must add another column in the main query for each part. It's just one line of code, not nearly as bad but to join another subquery.
Whenever you have a problem, don't forget to tell what version of Oracle you are using.
The above query will work in Oracle 9 (and), but if you have Oracle 11, you'll want to use SELECT... PIVOT. -
best way to create a table based on another table
Hello
I am trying to create a table based on another table with all the data in it. It contains important data.
create table < tablename > select * from table1.
Is the best way to do it, or is there another way. Please advice.
Thank youInsert / * + append * / in
as select * from ; It should be->
insert /*+ append */ into
select * from ; Kind regards.
LOULOU.
-
Best way to update a table with separate values
Hi, I would really appreciate some advise:
I need to regularly perform a task where I update 1 table with all the new data that has been entered in another table. I cannot perform a complete insert because this will create data duplicated each time it works, so the only way I can think of is the use of cursors in the script below:
CREATE OR REPLACE PROCEDURE update_new_mem IS
tmpVar NUMBER;
CURSOR c_mem IS
SELECT nom_membre, member_id
OF gym.members;
CREC c_mem % ROWTYPE;
BEGIN
OPEN c_mem.
LOOP
SEEK c_mem INTO crec;
EXIT WHEN c_mem % NOTFOUND;
BEGIN
UPDATE gym.lifts
Name = crec.member_name
WHERE member_id = crec.member_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN NULL;
END;
IF SQL % NOTFOUND THEN
BEGIN
INSERT INTO gym.lifts
(name, member_id)
VALUES (crec.member_name, crec.member_id);
END;
END IF;
END LOOP;
CLOSE C_mem;
END update_new_mem;
This method works, but y at - it a (faster) easier way to update another table with new data only?
Thank you very much>
This method works, but y at - it a (faster) easier way to update another table with new data only?
>
Almost anything would be better than this treatment of slow-by-slow loop.You don't need a procedure, you should just use MERGE for this. See the examples in the section of the MERGER of the doc of the SQL language
http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_9016.htmMERGE INTO bonuses D USING (SELECT employee_id, salary, department_id FROM employees WHERE department_id = 80) S ON (D.employee_id = S.employee_id) WHEN MATCHED THEN UPDATE SET D.bonus = D.bonus + S.salary*.01 DELETE WHERE (S.salary > 8000) WHEN NOT MATCHED THEN INSERT (D.employee_id, D.bonus) VALUES (S.employee_id, S.salary*.01) WHERE (S.salary <= 8000);
-
Analyze the table after loading
Hi gurus
Let me know how we analyze the target table after loading to finish using an interface.
Concerning
SreeHi Mary,
There are two ways to do it,
1. customize your IKM own target of Analyze table step added.
2. create a procedure of ODI which will analyze the target table and can be called after the success of the loading data.
Thank you
Guru
Maybe you are looking for
-
When I try to open Firefox I get this message, the application could not start properly (0xc0000022). To open it, I have to do a restore to the previous version. A time to do an update and a reset, but neither helped. Once I close out I have to go th
-
First HP: The first HP splash screen disabling
I love my first HP but I'm a little tired of seeing the logo of "HP" pop a few seconds every time I turn on my computer. Is it possible to disable? (or by shortening the time)It was ok when I used it just here and there, but now that I use it for
-
Power calibration error - Mat * a UJ - 830 s drive Satellite M45
Hello! I have a problem writing files on my carpet * a writer uj-830 s. My laptop is Satellite M45. When I try to burn a CD or DVD in nore or dla, it gives the power calibration error. I'm sick and tired of this!Can someone help me please?
-
Downgrade of HP mini 110-3109sl
Hi, I'm Italian and I have a problem. I want to downgrade my hp mini 110 3109sl but before that I would like to know 3 things: I break the warranty?I need to put some whit nlite driver in my original cd Windows XP SP3?Should I install ubuntu or XP? T
-
MOSFET, modeling of the measures
Hi all I've taken a few steps (for the most part IV tanks and others) on one of my classmates built a transistor and I want to simulate it in Multisim. I panned on just edit the template for the virtual PFET. Could someone please tell me where I can