Need help | How to clear the filter of af values: table on table linen

Hello

JDeveloper version 11.1.1.7

I have af:table inside a taskflow to which has been added to several pages as a region.

The problem I'm facing is if I enter any value in current input for the data in the column filtering and if I navigate to another page that has even added taskflow as a region filter values is still visible.

How can I clear the values entered in the input of the filter text.

code fragment:

< af:table value = "#{bindings." BulletinDataVO21.collectionModel}.

Binding = "#{pageFlowScope.bulletinArchieveBean.bulletinTable} '"

var = "row".

lines = ' #{bindings. " BulletinDataVO21.rangeSize}.

emptyText = "#{bindings." BulletinDataVO21.viewable? "{customtaskflowsBundle ['table.no.data.to.display']: customtaskflowsBundle ['table.access.denied']}."

fetchSize = "#{bindings." BulletinDataVO21.rangeSize}.

filterModel = "#{bindings." BulletinDataVO21Query.queryDescriptor}.

queryListener = "#{pageFlowScope.bulletinArchieveBean.onQuery} '"

filterVisible = "true" varStatus = "vs."

rowBandingInterval = "0" id = "t1".

styleClass = "datatable_inside_wrapper."

autoHeightRows = "25" width = "700" >

the queryListener at the bean code:

{} public void onQuery (QueryEvent queryEvent)

QPF FilterableQueryDescriptor =

(FilterableQueryDescriptor) queryEvent.getDescriptor ();

Map map < String, Object > = fqd.getFilterCriteria ();

If (log.isDebugEnabled ()) {}

{for (String key: {map.keySet ())}

log. Debug ("touch of filter criteria:" + key + ", value:" +)

Map.get('zoom') (Key));

}

}

final String publishingFromKey = "Publishingfromdate";

final String publishingToKey = "Publishingtodate";

Object publishingFrom = map.get('zoom') (publishingFromKey);

Object publicationdans = map.get('zoom') (publishingToKey);

String titleValue = (String) map.get('zoom') ("Value");

If (StringUtils.isNotEmpty (titleValue)) {}

Map.put ("Value", "%" + titleValue + '%');

}

String targetDepts = (String) map.get('zoom') ("Targetdepts");

If (StringUtils.isNotEmpty (targetDepts)) {}

Map.put ("Targetdepts", '%' + targetDepts + '%');

}

Category String = (String) map.get('zoom') ("Category");

If (StringUtils.isNotEmpty (category)) {}

Map.put ("Category", "%" + category + '%');

}

DCBindingContainer links =

(DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

OperationBinding = setPublishingFromDateStartOperationBinding

bindings.getOperationBinding ("setPublishingFromDateStart");

OperationBinding = setPublishingToDateEndOperationBinding

bindings.getOperationBinding ("setPublishingToDateEnd");

setPublishingFromDateStartOperationBinding.getParamsMap () .put ("value",

publishingFrom);

setPublishingToDateEndOperationBinding.getParamsMap () .put ("value",

Publicationdans);

Map.Remove (publishingFromKey);

Map.Remove (publishingToKey);

setPublishingFromDateStartOperationBinding.execute ();

setPublishingToDateEndOperationBinding.execute ();

DcIteratorBinding = DCIteratorBinding

bindings.findIteratorBinding ("BulletinDataVO2Iterator");

ViewObjectImpl = bulletinVO

(ViewObjectImpl) dcIteratorBinding.getViewObject ();

final String publishingFromCriteria = "QueryByPublishingFromDate";

final String publishingToCriteria = "QueryByPublishingToDate";

If (publishingFrom! = null) {}

bulletinVO.setApplyViewCriteriaName (publishingFromCriteria, true);

} else {}

bulletinVO.removeApplyViewCriteriaName (publishingFromCriteria);

}

If (publicationdans! = null) {}

bulletinVO.setApplyViewCriteriaName (publishingToCriteria, true);

} else {}

bulletinVO.removeApplyViewCriteriaName (publishingToCriteria);

}

JSFUtils.invokeMethodExpression ("#{bindings.") BulletinDataVO21Query.processQuery} «»

Object.Class, QueryEvent.class,

queryEvent);

Map.put ("Value", titleValue);

Map.put ("Targetdepts", targetDepts);

Map.put ("Category", category);

Map.put (publishingFromKey, publishingFrom);

Map.put (publishingToKey, publicationdans);

}

Please let me know we can clear the values entered in input boxes of text for filtering on whenever the load table.

Thank you

Madhukar

Hi all

I could solve the problem.

Clear the fault and implicit criteria VO display!

Here's the code to do the same.

Hope it will be useful for others as well, also let me know if this can be done in the best way.

Bean code:

DCBindingContainer links =

(DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

DCIteratorBinding data binding =.

bindings.findIteratorBinding ("TestDataView1Iterator");

If (dataBinding! = null) {}

ViewObjectImpl = testDataVO

(ViewObjectImpl) dataBinding.getViewObject ();

testDataVO.reset ();

The below two lines code clears the default and display implicit criteris

which gets set in ViewCriteriaManager when we filter the data in the table to help

This table filter text box in the column af:table headings

NOTE: It will not erase the other criteria of which are defined by users in VO

testDataVO.getViewCriteriaManager () .removeViewCriteria (ViewCriteriaManager.DFLT_VIEW_CRITERIA_NAME);

testDataVO.getViewCriteriaManager () .removeViewCriteria (ViewCriteriaManager.IMPLICIT_VIEW_CRITERIA_NAME);

If (param.equalsIgnoreCase ("home")) {}

testDataVO.setWhereClause ("attachment = 'Y'");

} else {}

testDataVO.setWhereClause ("attachment = ' n '");

}

testDataVO.executeQuery ();

}

Thank you all for the suggestions.

Thank you

Madhukar

Tags: Java

Similar Questions

  • Need help - how to open the 2007wfp cover? Monitor has intermittent problem with vertical sync.

    To open the lid of my 2007wfp monitor I removed the 4 screws located on the site where the monitor gets attached to the bar, but the cover will come off the coast. There must be some tighten hidden somewhere, which I couldn't find.

    Does anyone know how to open the box?

    Is there a manual to repair available somewhere?

    Any help is greatly appreciated!

    Message edited by HEW399 on 03/28/2008 19:42

  • Need help - how to purge the log of the Scheduler.

    10.1.3.4 release
    E12602-01 part number

    Without success, I could not find a way to purge the Planner newspapers by the front-end BI Publisher Web. In its current wording, we have over 1000 journal entries and none of them spent 14 days are necessary. In the front, there is the option select all and delete however it is only for entries on the current page.

    If it is not one option, the only other alternative, I can think of is to remove the entries through SQL, but I'm not sure of the model of data and what are the constraints might possible be violated.

    Just use.
    Update xmlp_sched_output set remove = 'Y' where created< 14="">

  • How to clear the search results in an af:table?

    Hi all
    I use Jdeveloper 11 g with ADFBC.

    I have a query with a table of readonly page to display the result of the query, and there is a "Reset" button on the page (NOT reset in motion control) to clear the search results in the table.
    I try the following code to clear the contents of the search results, BUT it does not work. The data in the table is always run after the code below here.
    DCIteratorBinding binding = ADFUtils.findIterator("UserVO1Iterator");
    if (binding!=null) {
        binding.clear();
    }
    Can someone help me? How to clear the contents in an af:table supporting the Java bean code?

    Kind regards
    Samson Fu

    You can also try to call the method executeEmptyRowSet() on the view of the iterator object instance

    Sample:

    binding.getViewObject().executeEmptyRowSet()
    

    Jean Lou

  • the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    Hello

    It seems that you want to restore the files removed from the memory card.

    I will definitely help you with this.

    I would say you can search the Internet for data recovery software by using your favorite search engine.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    It will be useful. If you have any other questions, feel free to let us know. We will be happy to help you.

    Thank you.

  • It will not play a video cd due to 'insufficient memory' I closed the programs on the taskbar - did not help! What can I do... or how to clear the memory?

    I am running Win 7 on my emachine, and this is the first time, he will not play a video cd due to 'insufficient memory' I closed the programs on the taskbar - did not help!  What can I do... or how to clear the memory?  anyone?

    Hi Ernie,.

    First, you use any type of applications to run your videos?

    Also check links theses below, you may find them useful. (Click on it)

    How to prevent out of memory problems

    A guide to increase the speed of your computer

    I hope this helps.

  • All my photos are displayed such as BW because somehow I saved a preset to quickly develop and it records in BW.  This is for all of my photos.  Individually, I can cancel their but did need help how to get rid of the pre-selection, so he's going to defau

    All my photos are displayed such as BW because somehow I saved a preset to quickly develop and it records in BW.  This is for all of my photos.  Individually, I can cancel their but need help how to get rid of the preset then all photos of goes to Default or in the shot. Thank you

    Go to the develop module and highlight all the images in the film at the bottom of the screen. Enable automatic synchronization, and then click the reset button. To reset all the images in your camera default settings.

  • How to clear the old cumulative game data in the collection of solitaire Microsoft - Windows 8

    How to clear the old cumulative game data in the collection of solitaire weird... is to say total games, victories, % etc...

    Hello

    Microsoft Solitaire Collection is a combination of card games and he has not a good reset option for all games.

    Some games have the New Deal option when you right click to start a new game.

    However, on some games have the ability to reset the cumulative Scores. Follow the instructions and check if this.

    (a) click here to open the game.

    (b) press on Windows key + C.

    (c) click settings.

    (d) click on Game Options.

    (e) whether specific game and click reset a cumulative Score .

    Let us know the status of the issue. If you need help, please after return. We will be happy to help you.

  • How to clear the print queue on a printer hp x 6420

    How to clear the print queue on printer HP 4620?

    Hello

    From the desktop, hold down the Windows key and press R.  In the run window, type services.msc and press to enter.  Scroll down to the print spooler service, right click and select Properties, then click the Stop button.  Now search for C:\Windows\System32\Spool\PRINTERS, then delete the work inside this folder - you may need to click a command prompt to get the authority to open the PRINTERS folder.

    Restart the computer and you should find that the documents have been deleted.

    Kind regards

    DP - K

  • can someone tell me please how to clear the cache of adobe flash

    Hi can someone please tell me how to clear the cache of adobe flash? Please, I beg you. Thank you.  Tom.   for windows xp.

    Just click on clear all Web sites, and that's all!
    I hope this helps!
  • I really need HELP! I received the nugel.exe virus on my laptop and I really missed the whole system! PLEASE HELP ME SOLVE THIS!

    I really need HELP! I received the nugel.exe virus on my laptop. I have Windows XP and I was reading how to remove it. They told me to go to click on the Start button in it, then click on run. type msconfig and on the Startup tab, uncheck everything that ends with TSSD. Well, none of which ended in TSSD was there, so I was told everything that had an UNKNOWN manufacturer in buttons SERVICES and STARTUP uncheck. I restarted my computer and the NELSON was always there.  Then suddenly my computer shut down on its own and restarted with a screen that says now "Windows didn't start because the following file is missing or corrupt: \system32\hal.dll .» Please reinstall a copy of the above file. "Does anyone know how to do this? I feel that I've dealt with the virus stupid for days and I'm going crazy! Can someone please help me solve what I did wrong? PLEASE, I BEG YOU!

    Hi ehaze64,

    Looks like you have made incorrect changes in system configuration utility.

    See the Microsoft articles below to solve the problem by installing the recovery console and use the Bootcfg.exe tool to rebuild the Boot.ini file.

    How to install and use the Recovery Console in Windows XP

    http://support.Microsoft.com/kb/307654

     

     

    Error message: "Windows did not start because of a configuration of the disk of the computer problem.

    http://support.Microsoft.com/kb/314477

     

    "Invalid Boot.ini" or "Windows did not start" error messages when you start your computer

    http://support.Microsoft.com/kb/330184

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to clear the administrative events - Event Viewer log

    Hello:

    Anyone know how to clear the administrative events log listed under custom in the event viewer views?

    All the logs listed in Windows logs do not have options to clear, but the back above.

    Thank you

    ColTom2

    Hey Colonel,

    It is because this isn't 'really' a newspaper, in itself.
    This is a Search of the newspaper (and there is MUCH more that most people know), filtered to show all events in administrative type.
    The source column shows you which newspaper it came from originally.

    To get rid of them, you will need to erase all records.

    If you want to get an idea:
    Go down to the Applications and Services logs, and expand.
    Microsoft, expand it.
    Then Windows.

    Nice list?
    You need to open and delete all. To really delete it.
    VP Tech Services

  • How to clear the account display battery when I get out of the application

    Hello

    I use the screen push method to call another screen in my application...

    When you use this method after awhile my request become slow bacuase stack display (several frames in the queue).

    If suppose that at some point if I check using the method of counting to screen it shows 36 screens are queued,

    so I would like to know how to clear the number of queue display stack when I get out of the application

    I agree with arkadyz here.  It may be something other than just a bunch of screens on the stack.

    If after reviewing your design, you still need to pop all the screens, here's a snippet of code that will do just that:

    public void popAll() {
            UiApplication ui = UiApplication.getUiApplication();
        int screenCount = ui.getScreenCount();
        for (int i = 0; i < screenCount; i++) {
            Screen activeScreen = ui.getActiveScreen();
            ui.popScreen(activeScreen);
        }
    }
    

    But if you are out of the app, there is no need to do so either.

  • How to clear the cache of the browser using the Blackberry API

    Hello

    Can someone help me. How to clear the browser cache? Is it have any API?

    Hello

    There is no API to clear the browser cache, it must be done manually from the menu of Options of the browser application.

  • How to clear the jam printer for HP E709N

    How to clear the jam on HP model printer-E709N all-in-one

    HI - go ahead and follow the steps described in this document.  It guides you through the compensation jame paper and check the printer works properly.

    Hope that helps.

Maybe you are looking for