Custom AF:table, the default filtering view filtered etc.

JDeveloper 12.1.3

I am trying to assemble the pieces, I found on these forums and elsewhere on the web, given that I use 12.1.3 do not know if what I found, it is best practice, given that some ideas are dated.

Let's say I have a table of addresses, several fields such address_id,address_line, city, state, zip, country... but what is important for this use case, the table has a current flag, which is always either Y or N.

1. try to implement filtering without using table blockable af. The main reason is that users do not want to see this side of filter above the column headers. In addition, the table should be filterable by a single attribute (current flag), and finally this even filterable column is not used in the presentation of the table, only the addresses in the table. The current filter is af:selectOneChoice something like:

< af:selectOneChoice label = "Current"? ID = "soc2" simple = 'true '.

valueChangeListener = "#{backingBeanScope.backing_view1.filterChanged} '"

autoSubmit = "true" binding = "#{backingBeanScope.backing_view1.currentFilter}" >

< af:selectItem label = "All" value = "All" id = "si2" / >

< af:selectItem label = 'Current' value = 'Y' id = "si3" / >

< af:selectItem label = "Non-routine" value = "N" id = "i5" / >

< / af:selectOneChoice >

2. the second condition is that when the user opens the page for the first time, more high af:selectOneChoice is defined on < af:selectItem label = 'value' = 'Y' id = "si3" / > and the table is filtered to display only the lines with the flag set to y. user can use af:selectOneChoice to set the table to any other option. If the user navigates to this page and returns, the table and the 'filter' must retain value selected previously.

3. If a table is filtered with say < af:selectItem label = 'value' = 'Y' id = "si3" / > and the user modifies or creates record, such as modified or new address is marked with current = 'n', (and this is done in the form of popup dialogue), after the closure of the pop-up window CRUD, newly edited/created record cannot be demonstrated.

I guess I'd know how to implement these requirements individually (not sure about 2 though) but putting all the best practice way, probably not. Any help is appreciated, I'll close this thread once I have a complete solution for this use case (which I or someone else will publish) so that it can be useful in the future.

My 5 cents:

1.

valueChangeListener = "#{backingBeanScope.backing_view1.filterChanged} '"

backingBeanScope is specific scope adf provided for declarative components.

If your code is not part of these components so it is best to use a different scope (for this use case, application scope is probably sufficient and you can't even write the requestScope prefix)

Binding = "#{backingBeanScope.backing_view1.currentFilter}" > "

It is usually bad practice (any component of a binding class is a standard approach for desktop applications, but not for the JSF).

In short, you should bind the component to a managed bean that you must handle with any component (which is rare).

In all other cases, you must create a concrete property binding (as the "value", "label", "read-only",...)

2. you are talking about the value of the element, so it would be 'natural' to link the 'value' variable in some managed bean property.

Because this bean must survive browsing, it should be placed in pageFlowScope or sessionScope.

3. well, you will probably be filter your lines using ViewCriteria.

Then maybe that you can use ViewObjectImpl.rowQualifies () method of applied access VC, read the value of the bind variable and determine if this line should be displayed or not.

Something like this: binary: the substitution of ViewObjectImpl::rowQualifies (...) for memory filtering of the child nodes of a tree component

Dario

Tags: Java

Similar Questions

  • No web address space or the buttons (Tools, view, back, etc.)

    Removing a toolbar, I accidentally downloaded during the installation of software, I lost the space for entering web addresses and also all the buttons - file, view, tools, etc.. Help.

    This has happened

    Each time Firefox opened

    == I deleted the toolbar of Device Doctor

    You can hide the menu bar in Firefox 3.6 on Windows, on "view > toolbars" or via the contextual right click menu on a toolbar.
    Press in and hold the Alt key to display the menu bar.
    Go to "view > toolbars", right click on the menu bar, or press Alt + V T to select the toolbars to show or hide.

    See also what happened to the file, edit and view menus?

  • the default PDF Viewer does not work

    I understand that Firefox has a default PDF Viewer, but it does not work on my Mac OS 10.6.8. When I click on a pdf document, nothing happens.

    When you click on a link to a PDF file, you get a blank page or a black background with an empty progress bar, or you get absolutely nothing?

    Can you try to change your setting as described in the following article to launch the PDF outside Firefox and see if that works? After this test, you can change it back and repeat the internal viewer. How to disable the built-in PDF Viewer and use another Viewer

    A little luck?

  • Customer Web missing the Home button (roles, licenses, etc.).

    We run Web Client Version 5.0.0 Build 6216225 and seem to be missing the Home button that displays the administrative options vCenter as roles, licenses, etc. Based on the screenshots on the web I see there should be a button in the upper left corner of the screen, but this Forum seems to be missing this important component (or perhaps I looking in the wrong place?). I don't remember if this option was still present, but I have recently installed a (replaceing the default self-signed certificate) valid SSL certificate for Web customer service... and wonder if it is related to my problem.

    Any help would be apprciated, included is a screenshot of the Web Client by default start page without the Home button.

    WebClient.jpg

    For me, the second screenshot looks like vCenter 5.1, while you use vCenter 5.0 that does indeed have no Home button.

    André

  • Related custom object records the Segment export view

    Hello

    I have records history of purchases in Eloqua-specific custom objects.

    These records are related to contacts.

    When I create a segment, I have the ability to filter the contacts based on the data stored on these custom objects.

    I want to export all the records in the custom objects related to all the contacts in the segment view, I can do?

    Hi Ofir,

    There is no way to do it directly from Eloqua. Segments will allow you only to view Contact data, and there is no equivalent way to custom segment object stores the data. To generate this list, you will need to export all history of purchase of your custom object records and then cross the two lists to identify records of custom object related to the Contacts in your industry to export all the contacts from your Segment view.

  • The default page view and zoom

    I would like to really all my PDF Acrobat Reader DC Windows 7 files to open by default as single page and zoom 100%. I put the options in the menu below, but it does not work. What should I do?

    Thank you

    Max

    2015-06-15_090320.jpg

    You can specify in the accessibility preferences.

  • There is no subscription promotion zone in the default library view in V25 or V26

    In the new version, there is no promotion subscription zone. But we like the promotion of the subscription. How can we implement with V25 or V26 version?  Is it possible to put this kind of info of promotion in banner (left side)? and if I click on the left side of the banner, it will trigger the subscription dialog. I have no idea how to do it. Please help me. Thank you very much.

    OK, now I understand the question. From v25, you can have a banner of right or a tile of the subscription, but not both. If you want to enable both options once again, you can file a request here: www.adobe.com/go/wish

  • Notepad. Change the default format [fonts. margins, etc.]

    How to check changes in the margins, fonts, headers, etc., to have the new default value in Notepad?

    Simply, make the changes and click Save.
  • windows easy transfer and pulled the bookmarks and the profile of the old xp system password, why doesn't Firefox recognize the profile and view bookmarks, etc.?

    I FIND THE TRANSFERRED FROM THE OLD XP COMPUTER PROFILE.
    I'M NOT COMPUTER LITERATE, SO I RELATE THAT THE FILE DOES NOT HAVE DATA IN THE FAVORITES AND PASSWORDS.
    I DID A FEW WEEKS AGO AND PICKED UP FIREFOX AND DISPLAY INFORMATION WHEN HE WANTED TO!
    DELL HAD TO DO A RELOAD OF OPERATING SOFTWARE AND I START ALL OVER AGAIN.

    HOW THE DATA GET PICKED UP AND LOADED IN FIREFOX TO USE.
    WENT FROM XP TO WINDOWS 7 SP1

    G ' Day TYRELL.

    Please follow the documented procedure to the recovery of data from an old profile and answer here if you have problems at any stage. Specifically the Favorites are stored in places.sqlite and password are stored in key3db and signons.sqlite (the two files are necessary).

    Please mind that Firefox generates random names for the profile directories: d not copy the directories of any profile, as their name will not work on another computer. Instead, copy the contentof the profile folder.

  • If the default value in columns on slot form of table does not work.

    Hello

    I created a tabular form and I want to set some default values to columns that are based on the values of page elements.

    so I put the page element to the value of the column in the attributes in a table by selecting the value & P24_ISSUE_ID. default type as Expression PLSQL & DEFAULT function there but
    in the same way, I tried for the other column by selecting the type default as pl/sql expression and function by default the value & P24_CASE_NAME.

    but it throw an error of this type could not parse the SQL query: ORA-00904: "C254DB": invalid identifier

    I don't understand where I did wrong, I checked for the data types of columns, all right.

    so please help me out of this problem.

    1243 Tulasi wrote:
    for the first column

    I chose
    The DEFAULT TYPE as PL/SQL Expression & FUNCTION

    As the default * & P24_ISSUE_ID.* it is a number data type column

    2nd column

    The default Type as PL/SQL Expression & function

    As the default * & P24_CASE_NAME.* it's column of type Varchar2.

    Element (name of the page element or application) for the default Type and the name of the default item ( P24_ISSUE_ID, P24_CASE_NAME etc.) options appropriate for a default value for a page element.

    * & P24_ISSUE_ID.* is not a "PL/SQL Expression or function.

    but it throws an error, because this guy could not parse the SQL query: ORA-00904: "C254DB": invalid identifier

    What you're doing results in the engine of the APEX, P24_CASE_NAME 'C254DB' value in the default value and then try to assess this string as a piece of PL/SQL. Outside a block in which it is defined as a variable, constant, or a function 'C254DB' is not a valid expression of PL/SQL.

  • HUGE default page view

    Just installed Firefox for Windows8. The default page view is, I guess, 140%. In fact, I have to zoom out to get to a normal size. Is there any sort of SETTINGS that will allow me to set a smaller default view for web pages?

    Reset the zoom of page on pages that are causing problems.

    • View > Zoom > reset (Ctrl + 0 (zero); 0 + Command on Mac)
  • With the help of Windown 10, not all pdf documents launch Adobe Reader DC.  As a result, I have not all normally available printing options.  How can I get Reader to open the default player.  I need to clear, step by step direcitons, please.  Thank you

    With the help of Windows 10, not all pdf documents launch Adobe Reader DC.  As a result, I have not all normally available printing options.  How can I get Reader to open the default player.  I need to clear, step-by-step instructions, please.  Thank you

    Hello

    Please visit the following link to set the reader as default PDF reader.

    Restoration of Adobe Acrobat Reader in the default PDF Viewer

    Concerning

    Sukrit diallo

  • Research Manager custom, caching of the «question»

    I have a custom research manager that is used on the attributes of qualitative research to provide a list of choices based on a SQL, other PLM objects. It works fine in that it shows the type of choice in the pop-up selection dialog box and fills the value of the attribute correctly when the user selects a choice and later when they consult the specification outside editing mode. The question that I am running is that, even if the result of changes to the search query, the available choices in the dialog box pop up (and those who are already related to attribute values) reflect not the updated values since they are apparently put cached after the first use of research (call AllLookupItems). The new values will be displayed after an IIS reset.

    Y at - there a way to force the cache for this choice list refresh every time the pop-up dialogue box opens, and also when PLM retrieves values from existing attributes by using the custom search when the specification is viewed? Potential impact of performance of database hits are included, I was wondering if this is possible.

    I appreciate all advice, thank you.

    The app updates cached custom within our service of extended attribute values of research manager.
    You can schedule a query cache to cache group dump "Extended attributes / Custom Sections ' which I think will purge your cached values.

  • Set default values 'All' in the quick filters in bold

    Hi people,

    I have a requirement, simple but clean, to show all the default values in the format "BOLD" quick filters.

    For example: user input: list selection all

    I think this has to do in CSS, guide me if I am wrong.

    Thank you

    PJ

    Use the below in any of the DB object or even to change views.css file by adding the weight of the font: "BOLD"; in the category

    {.promptMenuOption}

    make-weight: bold ;}

    Mark as correct

    ~ http://cool-bi.com

  • How to display a CUSTOM message after the filters are applied on an analysis

    Hi Experts

    I created an analysis which consists of the following filters:


    Status is equal to / is full
    AND
    Quote value is greater than 40000

    But after I appy these filters there is no data to display (as there is no data that meets the requirements of the filter)

    Is it possible to display a CUSTOM message instead of display the results by default 'No '.

    Please could you help

    Franck

    11 g - http://santoshbidw.wordpress.com/2012/06/10/obiee-11g-no-results/

Maybe you are looking for