ADF Table need to be refresh after deleting row
In the table.
After deleting the row use the VO,
ViewObject reqVO = getRequestVO("Requests");
reqVO.clearCache();
reqVO.executeQuery();
then refresh the table to display rows.
AdfUtil.addPartialTarget("tableID");
The table seems to be refreshed, but the row already be deleted still in the table.
If leave the table page, and go back the table page,then the table display rows correct, can't the row that already be deleted.
What is the wrong with the refreshing table?
Can you try refreshing the iterator before setting the partial target as below?
DCBindingContainer bindings =
*(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();*
DCIteratorBinding iteratorBinding =
*(DCIteratorBinding)bindings.get("<ITERATOR_NAME_IN_PAGEDEF>");*
*if (iteratorBinding != null) {*
iteratorBinding.executeQuery();
Thanks,
Navaneeth
Similar Messages
-
How to refresh after delete the records in ALV report ?
Hi Friends,
How to refresh after delete the records in ALV report.
I am deleting records in ALV report .
After successful delete the screen should refresh.
u201C Deleted records should not appear in the screen u201C.
Please guide me.
Regards,
SubashHi subhash,
FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.
WHEN 'BACK'.
Refresh the internal table from the ALV grid
PERFORM update_alv_tab.
ENDFORM. "user_command
FORM update_alv_tab .
DATA : e_grid TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = e_grid.
CALL METHOD e_grid->check_changed_data.
"update_alv_tab
CALL METHOD e_grid->refresh_table_display.
ENDFORM. " UPDATE_ALV_TAB
Then see in Debug mode is it updating or not..
Please confirm .
And please paste the code if you can.
Regards. -
Non-database/Non-VO based ADF table: need programmaticall access! 11g
Hello there,
I have ADF table with 2 attributes coming from a managed-bean. The table lies within *.jsff page in popup panelWindow. I am able to populate the table from the managed-bean after performing some actions.
My question is:
How to get access to the selected row of that table programmatically? Since I want to perform delete of the selected row (including the values from the managed-bean corresponding to the selected row).
One of the table attributes contains unique values, but is not set as PK. I don't know if it is necessary to set that attribute to behave as PK. If yes, how do I achieve that, since is not VO-based table ?
Thanks a lot.
Regards,
ValonHi,
I would like to know how to populate af:table from a managed bean:
This is what I am trying:
There is a managed bean: StudentBean.java
This is registered in adf-config.xml as ADFStudentBean and also registered in faces-config.xml as JSFStudentBean.
Now I create a jspx page and create a JSF dataTable which I bind to JSFStudentBean. This works fine.
Next I create an ADF table and try to bind it to ADFStudentBean. It does not get bound since the columns are not appearing in the binding.
So I try to bind it to JSFSudentBean. This one works. But it throws a runtime exception:
This message may be avoided by performing initADFContext before using getCurrent().
<RegistrationConfigurator><handleError> Server Exception during PPR, #1
javax.servlet.ServletException: java.lang.StackOverflowError
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:333)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
The steps are as follows:
1. Create Student.java
2. Create StudentBean.java
3. Register StudentBean.java as JSFStudentBean in faces-context.xml in request scope.
4. Register StudentBean.java as ADFStudentBean in adf-config.xml in request scope.
5. Create jspx file: Use f:dataTable like:
<h:dataTable value="#{JSFStudentBean.studentData}" var="var" id="dt1">
<!--oracle-jdev-comment:Faces.RI.DT.Class.Key:oracle.apps.view.Student-->
<h:column id="c3">
<f:facet name="header">
<h:outputText value="Stud Name" id="ot3"/>
</f:facet>
<h:outputText value="#{var.studName}" id="ot4"/>
</h:column>
<h:column id="c2">
<f:facet name="header">
<h:outputText value="Stud Roll" id="ot5"/>
</f:facet>
<h:outputText value="#{var.studRoll}" id="ot1"/>
</h:column>
<h:column id="c1">
<f:facet name="header">
<h:outputText value="Stud Class" id="ot6"/>
</f:facet>
<h:outputText value="#{var.studClass}" id="ot2"/>
</h:column>
</h:dataTable>
This works well.
6. Create af:table and try to bind it to "#{ADFStudentBean.studentData}
Does not work. The columns do not come in the create table wizard.
7. Hence I create af:table and bind it to #{JSFStudentBean.studentData}"
"<af:table value="#{JSFStudentBean.studentData}" var="row"
rowBandingInterval="0" id="t1">
<af:column sortable="false" headerText="Stud Name" align="start"
id="c1">
<af:outputText value="#{row.studName}" id="ot1"/>
</af:column>
<af:column sortable="false" headerText="Stud Roll" align="start"
id="c3">
<af:outputText value="#{row.studRoll}" id="ot3"/>
</af:column>
<af:column sortable="false" headerText="Stud Class" align="start"
id="c2">
<af:outputText value="#{row.studClass}" id="ot2"/>
</af:column>
</af:table>"
Bindings work but fails with the servletException
Target URL -- http://127.0.0.1:7101/ADFWebApp2-ViewController-context-root/faces/student.jspx
<ADFContext><getCurrent> Automatically initializing a DefaultContext for getCurrent.
Caller should ensure that a DefaultContext is proper for this use.
Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
This message may be avoided by performing initADFContext before using getCurrent().
<ADFContext><getCurrent> Automatically initializing a DefaultContext for getCurrent.
Caller should ensure that a DefaultContext is proper for this use.
Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
This message may be avoided by performing initADFContext before using getCurrent().
<TableRenderer><encodeAll> Table with ID: t1 has no visible columns.
<ADFContext><getCurrent> Automatically initializing a DefaultContext for getCurrent.
Caller should ensure that a DefaultContext is proper for this use.
Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
This message may be avoided by performing initADFContext before using getCurrent().
<RegistrationConfigurator><handleError> Server Exception during PPR, #1
javax.servlet.ServletException: java.lang.StackOverflowError
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:333)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at oracle.adf.controller.faces.FacesServletEnvironment.getLocale(FacesServletEnvironment.java:54)
at oracle.adf.share.http.ServletEnvironment.getRequestLocale(ServletEnvironment.java:120)
at oracle.adf.share.ADFContext.getLocale(ADFContext.java:1129)
at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createSessionOptions(ADFContextMDSConfigHelperImpl.java:89)
at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:52)
at oracle.adf.share.ADFContext.getMDSSessionAsObject(ADFContext.java:1289)
at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.detectChanges(MdsMetadataResourceProvider.java:610)
at oracle.adf.controller.internal.metadata.MetadataService.getPerUserCache(MetadataService.java:733)
at oracle.adf.controller.internal.metadata.MetadataService.getPerUserCache(MetadataService.java:707)
at oracle.adf.controller.internal.metadata.MetadataService.getAdfPageFlow(MetadataService.java:437)
at oracle.adfinternal.controller.util.StateUtils.getCurrentPageFlow(StateUtils.java:141)
at oracle.adfinternal.controller.beans.ManagedBeanFactory.getManagedBeanInCurrentPageFlow(ManagedBeanFactory.java:818)
at oracle.adfinternal.controller.application.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:91)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
at com.sun.el.parser.AstValue.getValue(AstValue.java:107)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
at javax.faces.component.UIViewRoot.getLocale(UIViewRoot.java:824)
at oracle.adf.controller.faces.FacesServletEnvironment$PrivilegedFacesLocaleAction.run(FacesServletEnvironment.java:118)
at oracle.adf.controller.faces.FacesServletEnvironment$PrivilegedFacesLocaleAction.run(FacesServletEnvironment.java:107)
Student.java:
public class Student {
private String studName;
private Integer studRoll;
private String studClass;
public Student() {
super();
public Student(String studName, Integer studRoll,
String studClass) {
this.studName = studName;
this.studRoll = studRoll;
this.studClass = studClass;
public void setStudName(String studName) {
this.studName = studName;
public String getStudName() {
return studName;
public void setStudRoll(Integer studRoll) {
this.studRoll = studRoll;
public Integer getStudRoll() {
return studRoll;
public void setStudClass(String studClass) {
this.studClass = studClass;
public String getStudClass() {
return studClass;
StudentBean.java:
package view.example;
import java.util.ArrayList;
import java.util.List;
public class StudentBean {
private List <Student> studentData;
public StudentBean() {
studentData = new ArrayList <Student> ();
studentData.add(new Student("Rakesh", 23, "Six"));
studentData.add(new Student("Hari", 12, "Two"));
studentData.add(new Student("Rajesh", 61, "Five"));
public void setStudentData(List<Student> studentData) {
this.studentData = studentData;
public List<Student> getStudentData() {
return studentData;
Please tell me why am I not able to use af:table and the managed bean registered in adf-config.xml?
Thanks,
Subhranshu. -
ADF: Tab needs to be refreshed when I revisit the tab with Dynamic Tab shell
Hi ADF Experts,
we are using dynamic tab shell template in our project.I have many tabs opened in page ,When I navigate from one tab
to another tab , current tab needs to be refreshed.
when I navigate from tabs below mwthod will execute.
public void tabActivatedEvent(ActionEvent action)
RichCommandNavigationItem tab =
(RichCommandNavigationItem) action.getComponent();
Integer tabIndex = (Integer) tab.getAttributes().get("tabIndex");
List<Tab> tabs = getTabs();
Tab currTab = tabs.get(getSelectedTabIndex());
if (currTab.isDirty())
//JRS set the dirty tab as the current tab, so when the dialog handles 'YES'
// it will be getting the correct tab index to close
setSelectedTabIndex(getSelectedTabIndex());
_showDialog(getTabDirtyPopup());
return;
setSelectedTabIndex( tabIndex);
public void setSelectedTabIndex(int index)
_tabTracker.setSelectedTabIndex(index);
initTrackTabDirty();
refreshTabContent();
public void refreshTabContent()
AdfFacesContext.getCurrentInstance().addPartialTarget(getTabsNavigationPane());
AdfFacesContext.getCurrentInstance().addPartialTarget(getContentArea());
Help me if anyone knows how to achieve this.
Thanks in advance.Hi,
well, you refresh the tab but not its data. To refresh the data displayed in the tab you need to reset the region. For this, on the af:region reference of the tab, you need to call the "refresh()" method
Frank -
SERIOUS PROBLEM! I need to reinstall quicktime after deleting the .app
I am trying to reinstall quicktime that came with my macbook pro, after deleting the quicktime.app file and the folders in the library.
You might ask why I did this? I have quicktime pro to install, but it's version 7.1.1, and would NOT install over 7.1.2; I messed up though, I know that now.
How do I fix it? Trying to reinstall quicktime 7.1.2 that I downloaded just crashes the installer.
Thanks!No, I have not deleted the Quicktime712.pkg from Library/Receipts. Should I do this, or put the OSX disk back in the drive and then run the package that is in my Receipts folder?
I run software update religiously, so I know that is not an issue.
Thanks for the info, hopefully what I told you helps narrow the problem a bit. -
ADF Table sorting not working for newly inserted rows
Hi,
I am using Oracle Jdeveloper 11.1.1.6.2
I am trying to sort the table after inserting the mew rows using ADF Table UI sort option, But the newly inserted rows are not getting sorted.
The code i am using to add a row is:
ComplianceLibraryAMImpl am = getDataControl();
EmKeywordVOImpl rep = am.getEmKeywordVO1();
NameValuePairs nvp = new NameValuePairs();
nvp.setAttribute("KeywordName", keyword);
Row row1 = rep.createAndInitRow(nvp);
rep.insertRow(row1);After this addition we are doing ppr on the table and then trying to sort using sort icon in table.
But the newly added rows are not taking part in sort.
What am i missing?
Thanks,
TripureshThis is the expected behavior. Check bug 9109010 - newly added and unsaved rows don't participate in sorting as per design. Try saving the rows and then sorting.
Regards,
Aditya -
The detail part of table doesn't refresh after deleting a row
Hello!
I'm developing a Master-Detail table with some a functionality. Particularly, I want to invoke a DELETE function in the Detail part of the table.
For this purpose, I placed a Command button to the tableSelectOne component of the Detail part of the table, which stores current row key and calls another page. On this (<another>) page I created a ReadOnly form with data related to the row of Detail table, which key is stored. In addition, I added there two Command buttons. First of them is a CancelButton, which does nothing except returning to master-detail page. The second is a DeleteButton, which executes a RemoveEntity method and returns to master-detail page, too.
When I'm tried to delete in this way a row from detail part of table, I discovered, that this row is really deleted from the database, but it doesn't affect on the content of the Detail part of the table. Any kinds of refreshing couldn't aid me, only restart of the application.
Could anybody help me to solve this problem?
Thank in advance.Hi,
I'm facing the same problem but Frank's solution doesn't fix it.
you need to define an invoke action in the binding
for your m/d page and set it into the page binding's
execute section. Then set the condition for invoking
the action to !postback. This will re-execute the
iteratorThis efectively re-executes the iterator, so the master table data is refreshed. You can see the TopLink log showing the query to the db (I'm using TopLink instead of BC). The problem is that the detail rows are queried only once and only the inserts and updates are displayed, not the deletes.
I think the problem may be related to PPR or some cache issue.
See the BC tutorial
http://www.oracle.com/technology/obe/ADFBC_tutorial_10
13/ADFBC_tutorial.pdf
See page 86 "Adding the ServiceHistories Data". This
defines a invoke action for this kinf of task. More
example code is contained in the SRDemo sampleThe tutorial doesn't contain a scenario with master-detail deleting detail records (neither the BC tutorial, nor the TopLink one) so it can't help me :(
The only solution I can think of is using a different model method (a method in the SessionFacade for TopLink) for the detail table (one that takes the master PK as parameter and retrieves the corresponding detail records) and have a selectionListener in the selection component of the master re-execute the method (passing the PK from the master table current row).
Is there a solution that doesn't require the use of a separate method for the detail?
Thanks,
Miguel -
Network Desktop needs to be refreshed after waking from sleep mode
My network is running Win 7 32bit SP1,
All users have their documents and desktop saved on the network.
I'm testing two computers for a new sleep mode policy, and I've noticed that after waking up from sleep outlook will be disconnected and/or require the user credentials again. I seemed to have fixed this by not allowing the computer to turn off the NIC when
going to sleep. However, on the other test machine the desktop icons are gone when waking up from a long sleep (I haven't been able to pinpoint a specific time frame but it has happened after only three or four hours of sleep), if I refresh the desktop the
icons pop up right away. If I start sleep mode manually and wait thirty minutes or so everything is still there.
There are a few different models throughout our network so I want to make sure I have a good policy set to cover any possible nuances. The test machine that this is happening on is a Dell Optiplex 3010.
Also, does anyone know how long it would take the NIC to shut down if it was supposed to and is there a good way to verify and test the network connection while the machine was in sleep mode?
ThanksThank you for your help.
This is the details of the policy. It is enforced and enabled. I made the adjustments you suggested and it still happening, also it is now happening on both test machines (the other is a Vostro 260), and also to remind you it even happens when I start sleep
mode manually. 1 out of 10 times it doesn't happen, but it's randomly and without me making any changes. In the event log under windows/system I see an event ID 1 "Realtek PCIe GBE Family Controller is disconnected
from network." when it wakes up from sleep. This event has been visible under the the machine I was having trouble with orginally, now it is on both of them.
I really can't wrap my head around this one.
UPDATE: I changed nothing else in the GPO and made one change to both of the computers i manually changed the NIC settings to
Allow the computer to turn off this device, Allow this device to wake up the computer and using a magic packet.
The reason I put that registry preference was because I believed this is the setting that was causing Outlook to ask for a password after a long night or so of sleep.
...Still a bit confused but I'll continue the testing.
sleep mode-TEST
Data collected on: 8/21/2013 11:17:05 AM hide all
Computer Configuration (Enabled)hide
Policieshide
Administrative Templateshide
Policy definitions (ADMX files) retrieved from the central store.System/Power Management/Hard Disk Settingshide
Policy Setting Comment
Turn Off the Hard Disk (Plugged In) Enabled
Turn Off the Hard Disk (seconds): 120
System/Power Management/Sleep Settingshide
Policy Setting Comment
Allow Standby States (S1-S3) When Sleeping (Plugged In) Enabled
Require a Password When a Computer Wakes (Plugged In) Enabled
Specify the System Hibernate Timeout (Plugged In) Enabled
System Hibernate Timeout (seconds): 0
Policy Setting Comment
Specify the System Sleep Timeout (Plugged In) Enabled
System Sleep Timeout (seconds): 180
Policy Setting Comment
Specify the Unattended Sleep Timeout (Plugged In) Enabled
Unattended Sleep Timeout (seconds): 0
Policy Setting Comment
Turn Off Hybrid Sleep (Plugged In) Enabled
System/Power Management/Video and Display Settingshide
Policy Setting Comment
Turn Off the Display (Plugged In) Enabled
Turn Off the Display (seconds): 120
Preferenceshide
Windows Settingshide
Registryhide
PnPCapabilities (Order: 1)hide
Generalhide
Action Update
PropertiesHive HKEY_LOCAL_MACHINE
Key path SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0010
Value name PnPCapabilities
Value type REG_DWORD
Value data 0x18 (24)
Commonhide
OptionsStop processing items on this extension if an error occurs on this item No
Remove this item when it is no longer applied No
Apply once and do not reapply No
Item-level targeting: Filter GroupAttribute Value
bool AND
not 0
Item-level targeting: Recur EveryAttribute Value
bool AND
not 0
period WEEKLY
dow SUN
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow MON
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow TUE
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow WED
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow THU
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow FRI
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow SAT
User Configuration (Enabled)hide
Preferenceshide
Windows Settingshide
Registryhide
PnPCapabilities (Order: 1)hide
Generalhide
Action Update
PropertiesHive HKEY_LOCAL_MACHINE
Key path SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0010
Value name PnPCapabilities
Value type REG_DWORD
Value data 0x18 (24)
Commonhide
OptionsStop processing items on this extension if an error occurs on this item No
Run in logged-on user's security context (user policy option) No
Remove this item when it is no longer applied No
Apply once and do not reapply No
Item-level targeting: Filter GroupAttribute Value
bool AND
not 0
Item-level targeting: Recur EveryAttribute Value
bool AND
not 0
period WEEKLY
dow SUN
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow MON
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow TUE
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow WED
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow THU
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow FRI
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow SAT
Control Panel Settingshide
Power Optionshide
Power Plan (Windows Vista) (Name: Balanced)hide
Power Plan (Windows Vista and later) (Order: 1)hide
Propertieshide
Action Create
Make this the active Power Plan: Enabled
Name Balanced
When computer is: Plugged in Running on batteries
Require a password on wakeup: Yes Yes
Turn off hard disk after: After 2 minutes After 2 minutes
Sleep after: After 3 minutes After 3 minutes
Allow hybrid sleep: On On
Hibernate after: Never Never
Lid close action: Sleep Sleep
Power button action: Shutdown Shutdown
Start menu power button: Do nothing Do nothing
Link State Power Management: Moderate power savings Maximum power savings
Minimum processor state: After 5 minutes After 5 minutes
Maximum processor state: After 100 minutes After 100 minutes
Turn off display after: After 2 minutes After 2 minutes
Adaptive display: On On
Critical battery action: Do nothing Hibernate
Low battery level: After 10 minutes After 10 minutes
Critical battery level: After 5 minutes After 5 minutes
Low battery notification: Off Off
Low battery action: Do nothing Do nothing
Commonhide
OptionsStop processing items on this extension if an error occurs on this item No
Run in logged-on user's security context (user policy option) No
Remove this item when it is no longer applied No
Apply once and do not reapply No
Item-level targeting: Filter GroupAttribute Value
bool AND
not 0
Item-level targeting: Recur EveryAttribute Value
bool AND
not 0
period WEEKLY
dow SUN
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow MON
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow TUE
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow WED
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow THU
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow FRI
Item-level targeting: Recur EveryAttribute Value
bool OR
not 0
period WEEKLY
dow SAT -
How to retrieve data from the Database after deleting rows from VO ?
Hello,
I am using Jdeveloper 11.1.2.1.0
I have a master and a child .
So according my use case when a value in the master vo changes the corresponding child has to be deleted.
but when i change back to any other value i want to undo the delete operation and get back the values in the child.
Is there any way to do it?
Regards,
Nigel.
Edited by: Nigel Thomas on Mar 29, 2012 5:07 AM
Edited by: Nigel Thomas on Mar 29, 2012 5:09 AMHi all,
I want to do a validation based on a SelectOneChoice List Value.
Based on which value in the select one choice is being selected, thedata from the VO should be DELETED or NOT-DELETED.
To do this I wrote a Managed Bean and the delete part is working fine if a particular value of the SelectOneChoice is selected.
Since the rows are deleted from the VO, after I change the SelectOneChoice value to the previous one I cannot retrieve the rows.
I thought of two ways:
1. As the Deleting option in the SelectOneChoice is selected the rows should be deleted from the VO and when reverted back to not-Deleting option the Rollback of Transaction method written in the Managed Bean should take place.
2. As the Deleting option is selected the data should be deleted from the VO and when reverted back to non-Deleting option, a query should be made from the Database.
The first plan was dropped because it is not VO-specific. If there are more than 1 VO in the page then whatever changes are made in the page will be reverted back as soon ad Rollback of transaction is done.
So the now i am left to go with the second plan.
Is there any way to implement the second plan?
If so...Will it compromise the performance of the application?
Or else, Is there any other way to implement my Use-Case ???
Regards,
Nigel. -
Focus on next navigatble item in ADF Table after refresh
Hi,
How to set the focus in the ADF table to next navigable item after Table Refresh.
I have valueChangeListner set to one of the columns in the table. Once the Value is changed in the Column we perform calculations based on the value and update the RowIterator.
To get the updated values I refresh the Table. It shows the updated values correctly.
After refresh the contorl/focus moves to the Table header.
Instead We would like to have the focus on the next navigable Item in the Table.
Or is there a way to change the values in the Table without refreshing by Partial trigger on the Table.
Thanks,
SatyaHi Arun,
I did that but it doesn't seems to be working as it need to refresh its own column.
eg:
Row COL1 COL2
R1: Rxxxx Val1
R2: Lxxxx Val2
R3: Exxxx Val3
R4: Fxxxx Val4
When I modify Val1 Val4 need to be calculated using val1-val3/val2
I'm doing this in ValueChangeListener. and setting attribute values by finding the correct row using RowsetIterator.
When I refresh the Table Iterator in Row R4 Val4 is showing the correct values.
But If I refresh the COL2 it doesn't change the value in row R4
I have tried by setting IterartorBinding Refresh to always / ifneeded. Tried both declarative and Dynamically. There is no effect.
Thanks,
Satya -
Refresh adf table and selection row
Hi,
I create web application. I have created entity Users from MySQL database and managed Bean. In this managed Bean (sessionScope) is method for connection to database and method for adding new row (data) in database. It works.
I have 2 problems.
The first.
I have form for adding User and commandButton Add.
How I can refresh (update) adf table after executing SQL command (in commandButton Add) ? Now I must reconnect session.
The second problem:
I want to show a panel with data from one row from adf table.
How I can selection this row in popup ?
My table:
<af:table var="user" rowBandingInterval="0" id="t2"
inlineStyle="margin:20px 30px; width:578pt; height:160pt;"
value="#{userController.users}"
rows="15"
emptyText="#{bindings.UsersprototypView11.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.UsersprototypView11.rangeSize}"
editingMode="clickToEdit" rowSelection="single"
selectedRowKeys="#{userController.selectedUser}"
selectionListener="#{userController.selectedUser}"> ---- Here I have problem.
<af:column sortProperty="#{user.user_id}"
sortable="false"
headerText="ID"
id="c11" width="33">
<af:commandLink id="ot34" text="#{user.user_id}">
<af:showPopupBehavior popupId="p4" triggerType="action"/>
</af:commandLink>
</af:column>
<af:column sortProperty="#{user.firstname}"
sortable="false"
headerText="Firstname"
id="c20" width="111">
<af:outputText value="#{user.firstname}" id="ot27"/>
</af:column>
<af:column sortProperty="#{user.lastname}"
sortable="false"
headerText="Lastname"
id="c12">
<af:outputText value="#{user.lastname}" id="ot31"/>
</af:column>
<af:column sortProperty="#{user.address}"
sortable="false"
headerText="Address"
id="c9" width="95">
<af:outputText value="#{user.address}" id="ot32"/>
</af:column>
<af:column sortProperty="#{user.city}"
sortable="false"
headerText="#City"
id="c10" width="76">
<af:outputText value="#{user.city}" id="ot33"/>
</af:column>
<af:column sortProperty="#{user.username}"
sortable="false"
headerText="Username"
id="c7" width="102">
<af:outputText value="#{user.username}" id="ot29"/>
</af:column>
<af:column sortProperty="#{user.email}"
sortable="false"
headerText="E-mail"
id="c21" width="106">
<af:outputText value="#{user.email}" id="ot28"/>
</af:column>
<af:column sortProperty="#{user.regdate}"
sortable="false"
headerText="Registration"
id="c8" width="108">
<af:outputText value="#{user.regdate}" id="ot30">
<af:convertDateTime pattern="#{user.regdate}"/>
</af:outputText>
</af:column>
</af:table>userController is name managed Bean.
users is list of users.
My panel window (popup):
<af:popup childCreation="deferred" autoCancel="disabled" id="p4">
<af:panelWindow id="pw9" title="Delete user">
<af:panelFormLayout id="pfl6">
<af:panelLabelAndMessage label="ID:"
id="plam16">
<af:outputText value="#{userController.selectedUser.user_id}" id="ot50"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="Firstname:"
id="plam17">
<af:outputText value="#{userController.selectedUser.firstname}" id="ot51"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="Lastname:"
id="plam18">
<af:outputText value="#{userController.selectedUser.lastname}" id="ot52"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="Address:"
id="plam19">
<af:outputText value="#{userController.selectedUser.address}" id="ot53"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="City:" id="plam20">
<af:outputText value="#{userController.selectedUser.city}" id="ot54"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="Username:"
id="plam21">
<af:outputText value="#{userController.selectedUser.username}" id="ot55"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="E-mail:" id="plam22">
<af:outputText value="#{userController.selectedUser.email}" id="ot56"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="Registration:"
id="plam23">
<af:outputText value="#{userController.selectedUser.regdate}" id="ot57">
<af:convertDateTime pattern="#{userController.selectedUser.regdate}"/>
</af:outputText>
</af:panelLabelAndMessage>
</af:panelFormLayout>
<af:commandButton text="Delete" id="cb18"
inlineStyle="width:80pt; margin:10px 0px 0px 0px;"/>
</af:panelWindow>
</af:popup>When I cut out row: selectionListener="#{userController.selectedUser}
Popup (for deleting user) looks like this:
http://imageshack.us/photo/my-images/404/popupc.jpg/
I need to get the outputs from <af:outputText> in this popup.
Thanks for help.
Edited by: user9202624 on 26.2.2013 7:52thanks for answer.
I added partialTriggers in af:table
<af:table var="user" rowBandingInterval="0" id="t2"
inlineStyle="margin:20px 30px; width:578pt; height:160pt;"
value="#{userController.users}"
rows="15"
emptyText="#{bindings.UsersprototypView11.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.UsersprototypView11.rangeSize}"
editingMode="clickToEdit" rowSelection="single"
selectedRowKeys="#{userController.selectedUser}"
partialTriggers="::t1" >What next ? What should I do next ? Sry, I'm newbie in adf and jDev.
Edited by: user9202624 on 26.2.2013 8:55 -
ORACLE ERROR ORA-32314: REFRESH FAST unsupported after deletes/updates
hi,
I have a materialized view created with fast refresh on demand option. Now when i try to refresh it manually the next day, it gives me an error . I have both count(*) and count(1) inside the materialized view. There is update and delete transactions done on most of the tables. The refresh is set to be at 4 am though a refresh group . But it fails with the error shown below . Please help. thanks
here is the script from toad
DROP MATERIALIZED VIEW MYPORTAL.ACCOUNT_COST_CATEGORY_MV;
CREATE MATERIALIZED VIEW MYPORTAL.ACCOUNT_COST_CATEGORY_MV
TABLESPACE USERS
PCTUSED 0
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOCACHE
LOGGING
NOCOMPRESS
NOPARALLEL
BUILD IMMEDIATE
USING INDEX
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
REFRESH FAST ON DEMAND
WITH PRIMARY KEY
AS
/* Formatted on 2011/01/07 10:04 (Formatter Plus v4.8.8) */
SELECT ac.account_id,
ac.account_manager mgr_id,
ac.account_number,
ac.account_name,
bc.burden_center_name burden_center,
p.surname_isi || ', ' || p.first_name account_manager,
p.division_id,
item.code_id,
item.code_name cost_category_item,
TO_NUMBER (TO_CHAR (ap.first_day, 'YYYY')) period_year,
ap.first_day period,
ap.fiscal_system_period_cal_yr_eq || ', ' || ap.fiscal_year period_asr,
COUNT (*) total_row_count,
COUNT (1) total_one_count,
SUM (NVL (ad.current_expense, 0)) expense,
SUM (NVL (ad.total_budget, 0)) budget,
SUM (NVL (ad.cumltv_expense, 0)) cumltv_expense,
SUM (NVL (ad.commitments, 0)) commitments,
SUM (NVL (ad.budget_balance, 0)) budget_balance
FROM accounts ac,
burden_centers bc,
personnel p,
asr_headers ah,
asr_details ad,
codes item,
codes costcat,
all_periods ap,
codes cost_element,
accounting_base_group abg
WHERE ac.account_manager = p.personnel_id
AND ac.burden_center_id = bc.burden_center_id
AND ac.account_id = ah.account_id
AND ah.asr_header_id = ad.asr_header_id
AND ah.period_asr =
ap.fiscal_system_period_cal_yr_eq || ', ' || ap.fiscal_year
AND abg.cost_element_cat_item_id = item.code_id
AND cost_element.code_id = abg.cost_element_id
AND ad.object_code = cost_element.code_value
AND item.code_parent_id = costcat.code_id
AND ( costcat.code_name = 'Report 1'
OR (costcat.code_name = 'Base' AND item.code_name = 'MTDC')
GROUP BY ac.account_id,
ac.account_manager,
ac.account_number,
ac.account_name,
bc.burden_center_name,
p.surname_isi || ', ' || p.first_name,
p.division_id,
item.code_id,
item.code_name,
TO_NUMBER (TO_CHAR (ap.first_day, 'YYYY')),
ap.first_day,
ap.fiscal_system_period_cal_yr_eq || ', ' || ap.fiscal_year;
COMMENT ON MATERIALIZED VIEW MYPORTAL.ACCOUNT_COST_CATEGORY_MV IS 'snapshot table for snapshot MYPORTAL.ACCOUNT_COST_CATEGORY_MV';
CREATE INDEX MYPORTAL.ACCOUNT_COST_CAT_MV_IDX ON MYPORTAL.ACCOUNT_COST_CATEGORY_MV
(ACCOUNT_ID, CODE_ID, PERIOD)
LOGGING
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
-- Note: Index I_SNAP$_ACCOUNT_COST_CATEG will be created automatically
-- by Oracle with the associated materialized view.
here is the error :
10:10:04 SQL> exec dbms_mview.refresh('account_cost_category_mv');
BEGIN dbms_mview.refresh('account_cost_category_mv'); END;
ERROR at line 1:
ORA-32314: REFRESH FAST of "MYPORTAL"."ACCOUNT_COST_CATEGORY_MV" unsupported after deletes/updates
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2254
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2460
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2429
ORA-06512: at line 1
10:10:14 SQL>Check out the error cause and action:
ORA-32314: REFRESH FAST of "string"."string" unsupported after deletes/updates
Cause: One or more deletes or updates has been performed on one or more of the detail tables referenced by the specified materialized view. This materialized view does not support fast refresh after deletes or updates.
Action: Use REFRESH COMPLETE. Note: you can determine why your materialized view does not support fast refresh after deletes or updates using the DBMS_MVIEW.EXPLAIN_MVIEW() API. -
Space reusage after deletion in compressed table
Hi,
Some sources tell, that free space after DELETE in compressed table is not reused.
For example, this http://www.trivadis.com/uploads/tx_cabagdownloadarea/table_compression2_0411EN.pdf
Is it true?
Unfortunatly I cannot reproduce it.Unfortunatly the question is still open.
In Oracle 9i space, freed after DELETE in compressed block, was not reused in subsequent inserts.
Isn't it?
I saw many evidences from other people. One link I gave above.
But in Oracle 10g I see another figures. After delete rows in compressed blocks, and subsequent insert into that block, block defragmented!
Please, if who know any documentation about change in this behavior, please post links.
p.s.
in 10g:
1. CTAS compress. Block is full.
2. after, deleted every 4 from 5 rows.
avsp=0x3b
tosp=0x99e
0x24:pri[0] offs=0xeb0
0x26:pri[1] offs=0xea8 -- deleted
0x28:pri[2] offs=0xea0 -- deleted
0x2a:pri[3] offs=0xe98 -- deleted
0x2c:pri[4] offs=0xe90 -- deleted
0x2e:pri[5] offs=0xe88 -- live
0x30:pri[6] offs=0xe80 -- deleted
0x32:pri[7] offs=0xe78 -- deleted
0x34:pri[8] offs=0xe70 -- deleted
0x36:pri[9] offs=0xe68 -- deleted
0x38:pri[10] offs=0xe60 -- live
0x3a:pri[11] offs=0xe58 -- deleted
0x3c:pri[12] offs=0xe50 -- deleted
0x3e:pri[13] offs=0xe48 -- deleted
0x40:pri[14] offs=0xe40 -- deleted
0x42:pri[15] offs=0xe38 -- live
0x44:pri[16] offs=0xe30 -- deleted
0x46:pri[17] offs=0xe28 -- deleted
0x48:pri[18] offs=0xe20 -- deleted
0x4a:pri[19] offs=0xe18 -- deleted
0x4c:pri[20] offs=0xe10 -- live
...3. insert into table t select from ... where rownum < 1000;
Inserted rows were inserted in a several blocks. Total number of not empty blocks was not changed. Chains did not occure.
Block above looks as follow:
avsp=0x7d
tosp=0x7d
0x24:pri[0] offs=0xeb0
0x26:pri[1] offs=0x776 - new
0x28:pri[2] offs=0x84b - new
0x2a:pri[3] offs=0x920 - new
0x2c:pri[4] offs=0x9f5 - new
0x2e:pri[5] offs=0xea8 - old
0x30:pri[6] offs=0xaca - new
0x32:pri[7] offs=0xb9f - new
0x34:pri[8] offs=0x34d - new
0x36:pri[9] offs=0x422 - new
0x38:pri[10] offs=0xea0 - old
0x3a:pri[11] offs=0x4f7 - new
0x3c:pri[12] offs=0x5cc - new
0x3e:pri[13] offs=0x6a1 - new
0x40:pri[14] sfll=16
0x42:pri[15] offs=0xe98 - old
0x44:pri[16] sfll=17
0x46:pri[17] sfll=18
0x48:pri[18] sfll=19
0x4a:pri[19] sfll=21
0x4c:pri[20] offs=0xe90 -- old
0x4e:pri[21] sfll=22
0x50:pri[22] sfll=23
0x52:pri[23] sfll=24
0x54:pri[24] sfll=26As we see, that old rows were defragmented, and repacked, and moved to the bottom of block.
New rows (inserted after compressing of table) fill remaining space.
So, deleted space was reused. -
Percentage of used table space not reduce after deletion
Hi..
This is my query to delete data from database:-
delete from $tb_data where to_char(partition_dt,'MON') = '$mm';
The $tb_data and $mm is variable and the $tb_data will be read input table name (as example backup_nx160, backup_ngn and etc) and the $mm will be capture the input month.
My question is why the percentage of used table space is not reduce after delete query was executed. Could somebody help me..
Please help me..
Thank you,
Baharinbaharin wrote:
Hi..
Is it the deleted space will be reused by the system ?Yes.
.. How could i check the real free tablespace or real usage table space ?If you have gathered statistics on the schema recently, then sum (avg_row_len*num_rows) should give you the exact number of bytes that are being consumed - assuming all tables are in a single tablespace under consideration. You can subtract this value from sum (dba_data_files.bytes) figure for the tablespace, to know exact free space. -
Transient attriute of VO exposed as checkbox in adf table is not updated
Hi,
We are constructing a page where we need to display a adf table, we provide check boxes against each row to allow multiple selections.
Checkboxes are transient attributes on VO with updatable property set.
A strange issue is noticed, checkbox model for the very first row of adf-table is not updated.
Tested this scenario in 11gR2 also, and seems to be a bug.
https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B9C7sgjVyCnoZTlmN2Y5MDItYTJhNy00MzA3LWE0ZTctOGRhNjZiMmYzNzZm&hl=en_US
Please help us.
Thanks,
Sunil.Is this issue got resolved?
I have the same issue, i have one transit VO and i drop one of the attribute as check box, now when i select all check boxes and try to remove the rows its alway refreshing when delete popup appear, only 1st row is selecting remaining check boxes are refreshing.
Can any one have any idea on this.
Maybe you are looking for
-
What makes the Magsafe charging light remain dim (VERY PALE GREEN)?
It is mentioned in threads going back to 2006 so the Magsafe charge indicator clearly has a *PALE GREEN* state -- in addition to amber, (bright) green, and off. Does anybody know what that *PALE GREEN* is supposed to indicate? I can't get to an Apple
-
Workflow Created Tasks not showing up in My Tasks
I'm relatively new to SharePoint and am having trouble with the My Tasks list in SharePoint 2013. Tasks created manually in any task list show up in My Tasks as expected. However, tasks that are created by a workflow using create item in list for t
-
Validating a selection-screen field
Hi all, I am Anil.can any body explains me how to validate a selection-screen field for the following scenario? I have customer nos ranging from 100-1000.among them i dont have any sales orders for the customers who are in between 150-250.I have sale
-
is there way for it to automatically play in hd?
-
Bridge not saving toning/applying post production - like 20K images to tone!!
Hi - Am desperate - have 10 weddings to do post production on and my bridge is acting up. I am having a bridge isssue - when I apply the toning/cropping/color correction to images and press done it is not saving the work. In addition when I do the wo