Refreshing ADF Query Component after changing some property of a criteria

Hi All
Use Case : Refreshing ADF Query Component after changing some property of a criteria attribute.
I have a query panel with 2 query criteria i.e. FirstName and DepartmentId where in DepartmentId is a drop down. The scenario is like when change the value of DepartmentId to 'Finance' with code value of '100' then my criteria attribute 'Firstaname' should be invisibe(queriable=false).
Approach: Have overriden the queryOperationListener of adfquery as " queryOperationListener ="#{backingBeanScope.backing_queryLstener.processQueryOperation}" "
My backing bean method goes as below :
public void processQueryOperation(QueryOperationEvent queryOperationEvent) {
// Add event code here...
if( queryOperationEvent.getOperation().equals(queryOperationEvent.getOperation().CRITERION_UPDATE) ){
DCBindingContainer bindings = (DCBindingContainer)this.getBindings();
DCIteratorBinding iter =bindings.findIteratorBinding("EmployeeView1Iterator");
ViewObjectImpl voimpl = (ViewObjectImpl)iter.getViewObject();
ViewCriteria vc = voimpl.getViewCriteriaManager().getViewCriteria("EmployeeViewCriteriaDemo");
Row currRow = vc.first();
System.out.println("Department :"+currRow.getAttribute("DepartmentId"));
if( (Integer)currRow.getAttribute("DepartmentId") ==100 ){
AttributeDef[] attrs = voimpl.getAttributeDefs();
int attrIndex = voimpl.getAttributeIndexOf("FirstName");
ViewAttributeDefImpl attrDef = (ViewAttributeDefImpl) attrs[attrIndex];
attrDef.setQueriable(false);
// AdfFacesContext.getCurrentInstance().addPartialTarget(getQryId1()); //here i need to refresh the query component which is not happening
// refreshQueryComponent(getQryId1());
Everything is happening as expected but the query panel s not get refreshed.When i refresh the whole link/page then i can see the change.
Please suggest.
Thanks in adv.
-Sanjeeb

Hi,
can's say anything about the first part of the question as more insight to the implementation would be required. However, have a look at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/83-bidi-synchronization-tree-form-401841.pdf, which may be what you are looking for
To the second part: You can programmaticallly refresh the tree component from a managed bean. So instead of using the declarative PPR option (or ChangeEventPolicy set to PPR on the iterator binding) you can wire the submit button to the managed bean, perform your validation and if it fails don't refresh teh tree
The call is
AdfFacesContext.getCurrentInstance().addPartialTarget(the_tree_instance)
Frank

Similar Messages

  • Programmtically Setting View Criteria in ADF Query Component

    I have created two view criterias for a View Object and used ADF Query component for searching. User can select any one of the View Criteria from "saved search" in ADF Query component. but i want to set it programmatically based on some business rules. How i can do that?

    No I don't want to set view criteria on search click. Actually I have ADF Query component on my page which is by default disabled. There are also some fields outside the query component on the value of which i enable ADF Query component and wants to set a particular ViewCriteria based on context. All ViewCriterias are defined and listed in "saved search" of ADF Query component but i don't want to allow user to select it but wants to application set it automatically based on context. For it i will be needed to set a particualar ViewCriteria for ADF Query component through code and then refresh ADF Query component to show newly set ViewCriteria. I know how to refresh query component or any other component through code but don't know how to set ViewCriteria on ADF Query component?

  • Multiple queries happeing in adf query component using LOV

    Hi,
    I am using a programmatic view object in adf query component and have created List of values for one attribute by adding another programmatic ViewObject as ViewAccessor.
    To populate the lov ViewObject, i have overwritten the method executeQueryForCollection in which i call the webservice to fetch the data. So lov is working fine inside QueryComponent.
    I have overwritten queryListener attribute of query component in my backing bean. In the queryListener method, to populate the result grid, am populating the view object by using createRow and insertRow apis. While doing so, Whenever i do setAttibute for the lov field, the overwrittern method executeQueryForCollection getting invoked. Hence my webService getting invoked. So if i have 10 rows, the webservice is getting invoked 10 times.
    I put sops in the executeQueryForCollection method for the queryMode and getName.
    System.out.println("executeQueryForCollection::::"+this.getQueryMode()); i get as 7
    System.out.println("executeQueryForCollection:::=" +this.getName());    i get as  CurrencySummaryLOVVO_5708_findByVC_   The number 5708 varies for every row.
    Please tell me How to avoid invoking the executeQueryForCollection everytime when i do setAttribute.
    One workaround i have currently is to have one dummry attribute for the lov which can be used for display in grid and actual attribute will be used in Query Component for the lov to function.
    Is there any other better workaround?
    Thanks a lot in Advance.
    Vivek
    Edited by: Vivek Singh on Oct 22, 2009 9:16 PM

    When you set a value to LOV field it tries to validate it from the LOV data. thats why it execute query.
    Try setting Row Level Bind Values = false for the accessor.
    yet, i would suggest to find an other way to populate values of LOV since the executeQueryForCollection will be executed many times when you use that LOV:
    [http://adfbugs.blogspot.com/2009/08/lov-execute-query-many-times.html]

  • Query is not giving output after changing some init parameter

    HI,
    I had recently changed some parameter:
    oracle version:8.1.7.0.0.
    database size =800gb
    os:SunOS suportal01 5.9 Generic_118558-08 sun4u sparc SUNW,Sun-Fire-V440
    load averages:  1.44,  1.32,  1.53                                                                                  13:36:42
    288 processes: 287 sleeping, 1 on cpu
    CPU states:     % idle,     % user,     % kernel,     % iowait,     % swap
    Memory: 16G real, 6726M free, 6563M swap in use, 9289M swap free
       PID USERNAME THR PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
    18856 oracle     1  59    0    0K    0K sleep    1:24 15.08% oracle
      1911 oracle    11  59    0    0K    0K sleep    4:47  4.38% oracle
    18870 oracle     1  59    0    0K    0K sleep    0:28  2.14% oracle
      4044 oracle     1  59    0    0K    0K sleep    2:29  0.50% oracle
    12753 oracle     1  59    0    0K    0K sleep    2:29  0.45% oracle
    18904 oracle     1  59    0    0K    0K sleep    0:25  0.38% oracle
      2996 oracle     1  59    0    0K    0K sleep   30:54  0.30% oracle
      4088 oracle     1  59    0    0K    0K sleep   23:43  0.30% oracle
       714 root      12  29   10   65M   23M sleep  785:09  0.12% java
    12042 oracle     1  59    0    0K    0K sleep    3:26  0.07% oracle
      2208 oracle     1  59    0    0K    0K sleep    7:03  0.06% oracle
      2602 oracle     1  59    0    0K    0K sleep   34:01  0.04% oracle
    19009 oracle     1  49    0 2440K 1376K cpu/3    0:00  0.03% top
    18996 oracle     1  59    0    0K    0K sleep    0:00  0.03% oracle
      6928 oracle     1  59    0    0K    0K sleep   11:19  0.03% oracle#sort_area_retained_size= 2097152(old)
    sort_area_retained_size= 104857600(new)
    #log_buffer = 163840(old)
    log_buffer = 1048576(new)
    #hash_area_size=8388608(old)
    hash_area_size = 209715200(new)
    The below query is to get withing 15 minutes, now it is taking more than 3 hours after changint this parameter.
    SQL> explain plan for
    2 SELECT /*+INDEX (D I_EVENT_TOTAL__ID)*/
    3 (SUM(D.AMOUNT)/1024) AS RATED_GBS
    4 FROM EVENT_TOTAL_T D,
    5 (select b.POID_ID0
    6 FROM EVENT_T B,
    7 account_t f,
    8 EVENT_SESSION_DIALUP_T A
    9 WHERE B.POID_ID0=A.OBJ_ID0
    10 and f.business_type < 4
    11 and f.poid_id0=b.account_obj_id0
    12 AND B.END_T BETWEEN PIN_DATE_TO_SECONDS('20-jan-2009', NULL) AND PIN_DATE_TO_SECONDS('21-jan-2009', NULL)) TMP
    13 WHERE D.OBJ_ID0 = TMP.POID_ID0 AND D.REC_ID IN (1000050, 1000114);
    Explained.
    SQL> @?/rdbms/admin/utlxpls.sql;
    Plan Table
    | Operation | Name | Rows | Bytes| Cost | Pstart| Pstop |
    | SELECT STATEMENT | | 1 | 55 | 876776 | | |
    | SORT AGGREGATE | | 1 | 55 | | | |
    | NESTED LOOPS | | 454K| 23M| 876776 | | |
    | HASH JOIN | | 454K| 16M| 331239 | | |
    | TABLE ACCESS FULL |ACCOUNT_T | 247K| 1M| 4704 | | |
    | MERGE JOIN | | 454K| 12M| 326302 | | |
    | SORT JOIN | | 108M| 934M| | | |
    | INDEX FAST FULL SCAN|I_EVENT_S | 108M| 934M| 852080 | | |
    | SORT JOIN | | 454K| 8M| 3854 | | |
    | TABLE ACCESS BY INDE|EVENT_T | 454K| 8M| 66825 | | |
    | INDEX RANGE SCAN |I_EVENT__ | 454K| | 5042 | | |
    | TABLE ACCESS BY INDEX R|EVENT_TOT | 119M| 2G| 2 | | |
    | INDEX RANGE SCAN |I_EVENT_T | 119M| | 3 | | |
    16 rows selected.
    tables sizes:
    EVENT_T=246 GB
    ACCOUNT_T= 150 mb
    EVENT_SESSION_DIALUP_T=15 GB
    Thanks
    Prakash GR
    Edited by: prakashdba on Jan 21, 2009 12:06 AM

    Hi Randolf,
    session wise i changed the the old init parameter:
    SQL> alter session set hash_area_size=8388608;
    Session altered.
    SQL> alter session set sort_area_retained_size= 2097152;
    Session altered.
    SQL> explain plan for
      2  SELECT  --+INDEX (D I_EVENT_TOTAL__ID)
      3  (SUM(D.AMOUNT)/1024)  AS RATED_GBS
      4  FROM EVENT_TOTAL_T D,
      5  (SELECT  b.POID_ID0
      6  FROM EVENT_T B,
      7  account_t f,
      8  EVENT_SESSION_DIALUP_T A
      9  WHERE B.POID_ID0=A.OBJ_ID0
    10  and f.business_type  < 4
    11  and f.poid_id0=b.account_obj_id0
    12  AND B.END_T BETWEEN PIN_DATE_TO_SECONDS('21-jan-2009', NULL) AND PIN_DATE_TO_SECONDS('21-jan-2009', NULL)) TMP
    13  WHERE D.OBJ_ID0 = TMP.POID_ID0 AND D.REC_ID IN (1000050, 1000114);
    Explained.
    SQL> @?/rdbms/admin/utlxpls.sql;
    Plan Table
    | Operation                 |  Name    |  Rows | Bytes|  Cost  | Pstart| Pstop |
    | SELECT STATEMENT          |          |     1 |   55 | 877951 |       |       |
    |  SORT AGGREGATE           |          |     1 |   55 |        |       |       |
    |   NESTED LOOPS            |          |   454K|   23M| 877951 |       |       |
    |    HASH JOIN              |          |   454K|   16M| 332414 |       |       |
    |     TABLE ACCESS FULL     |ACCOUNT_T |   247K|    1M|   4704 |       |       |
    |     MERGE JOIN            |          |   454K|   12M| 326302 |       |       |
    |      SORT JOIN            |          |   108M|  934M|        |       |       |
    |       INDEX FAST FULL SCAN|I_EVENT_S |   108M|  934M| 852080 |       |       |
    |      SORT JOIN            |          |   454K|    8M|   3854 |       |       |
    |       TABLE ACCESS BY INDE|EVENT_T   |   454K|    8M|  66825 |       |       |
    |        INDEX RANGE SCAN   |I_EVENT__ |   454K|      |   5042 |       |       |
    |    TABLE ACCESS BY INDEX R|EVENT_TOT |   119M|    2G|      2 |       |       |
    |     INDEX RANGE SCAN      |I_EVENT_T |   119M|      |      3 |       |       |
    16 rows selected.
    I think these parameters are not culprit, but apart from these parameters i haven't changed anything database level and this problem is coming from last 3 days afetr changing these parameters.
    [pre]
    What is your block size and what is your db_file_multiblock_read_count setting?
    [/pre]
    SQL> show parameter db_block_size
    NAME                                 TYPE    VALUE
    db_block_size                        integer 4096
    SQL> show parameter db_file_multiblock_read_count
    NAME                                 TYPE    VALUE
    db_file_multiblock_read_count        integer 8
    and
    EVENT_TOTAL_T table size =9 GB
    Thanks for your valuable time.
    Prakash GR                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to re-validate an import after changing some mappings?

    I imported a delimited text file into FDM. The import was successful.
    I then validated the import with the existing mappings. The validation was successful.
    I then exported the data to the target system (Essbase). The export was successful.
    I later found out that some of the mappings needed to be changed. For instance, instead of mapping A to X, I needed to map A to Y (both X and Y are valid targets).
    I thought after changing the mappings I would be able to go back to the workflow and just repeat the Validate step with the updated mappings, followed by the Export step (with the Replace option). What I found, however, is that none of the output records changed when I re-validated the import. The original mapping results were still in the output. It appears that re-validating didn't do anything at all. I had to repeat the entire workflow, starting over from importing the data, to get the updated mappings onto the output records.
    Is this the correct and expected behavior?  (I'm using FDM 11.1.1.2.).  Shouldn't I be able to make mapping corrections and have them take effect without having to re-import all of the source data?+
    I'm guessing there may be a logical reason for this behavior having something to do with archiving and/or auditing, since I successfully exported the data with the original mappings to the target system, but can anyone say for sure whether this is the way it's supposed to work and explain why?
    Thanks very much.

    Hi,
    If I Understand your issue correctly, You want to change some of the existing mappings and want to load the file again.
    I assume that the maps for that location is not derived from any other location. In the locations, the Parent location should be None, If not, You need to change the maps of the location metioned in the Parent location.
    Then update the grid and Please follow the workflow, It should reflect the changes you have done for the mappings.
    Regards,
    tvmk
    Edited by: tvmk on Mar 24, 2010 10:52 AM
    Edited by: tvmk on Mar 24, 2010 11:03 AM
    Edited by: tvmk on Mar 24, 2010 6:16 PM

  • After changing some settings I have to log in everywhere all the time!

    HELP! I followed the advise of Mozilla Support and changed some (privacy) settings because I kept having trouble with Adobe Flash Player that wouldn't run.
    Now I have to log in EVERY TIME on my email and other accounts, even if I've told them to 'remember me'
    I want to change that back again, but don't know where and how!

    To be more precise, if you are use "Clear history when Firefox closes":
    *do not clear the Cookies
    *do not clear the Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/remove-recent-browsing-search-and-download-history
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
    Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you would like to keep.

  • Refresh control hints lables after change the locale

    Hello,
    I'm building a web application using ADF ( JSP/BC4J/STRUTS ).
    I want to give the user the facility to change the display language, so i made an event on a Data Action that change both HTTP session locale and Application Module session locale
    the code is :
    public void onChangeLang(DataActionContext ctx)
    Locale userLocale = getLocale(ctx.getHttpServletRequest());
    String newLang = "en";
    if ("en".equals(userLocale.getLanguage()))
    newLang = "ar";
    Locale newUserLocale = new Locale(newLang,"") ;
    setLocale(ctx.getHttpServletRequest(),newUserLocale);
    ctx.getBindingContainer().getDataControl().setLocaleContext(new DefLocaleContext(newUserLocale));
    ctx.getBindingContainer().refreshControl();
    The locale change correctly after executing this action , but the control hint labels remain as it is !!
    So how i can refresh these labels, or how i correctly change the user language based on his event ?

    Hi,
    anybody can help in this problem !!

  • How do I go online on Safari after changing some IP stuff?

    I usa a mac and I wanted to get a static IP so I could host a game and not have to port forward every time it changes etc..
    So I went to System Prefences > Network > Wi-Fi > Advanced > TMI/IP and changed "DHCP "to "DCHP with manual address". I changed my IP and such accordingly, but the Internet wouldn't work after.
    I spend about half an hour changing all the IP's and other stuff back to the way it was before. It said "you are connected to (*my network*) with the IP: (my *IP*) "
    But, when I went to safari, it said "your computer is offline". I know it's not the my routers fault because my iPad3 works just fine on safari. But even though it says I'm connected to the Internet on my mac is still says that  "your computer is offline". Any help?
      So, to recap, my IP stuff is PROBABLY fine, it established a connection to the Internet. I'm pretty sure everything is the same as when I started My router is fine because the Internet works on my iPad. And no, I have been using any "spyware software" or anything that might disable my internet.
    The things I changed in Wi-Fi Advanced:
             Used DHCP with manual address (Was normally just DHCP)
            IPv4: (I changed the last digit. I don't know what the last digit actually was before that because it was a dynamic IP)
            Network mask: (I changed from 255.255.0.0  to  255.255.255.0)
    (  ^^Or whatever it is)
            Router: (I left it the same)
         Before I changed anything, there was already an IP for all of the above, but whenever I switch back to DHCP they all go blank. Nada. No way to edit them. So that's out of the question. I needed to go on Manual to fill out the four text fields, or else I can't get it to work. Also, there is a chance I might have tempered with some other stuff like Bluetooth trying to connect my mac to my iPad for Internet. Tell me if you want to know about that too.
    PS: If there is any way you can fix this and also get a static IP working, do let my know. But the Internet is the main thing I need. Sent on my awesome iPad ;)

    Doing that didn't work AT ALL by a long run. Although after two boring days, after I went to a laptop repairs shop, (to no avail) I figured out that by clicking "Join other network" and typing in my network and password again, it worked. I mean SRSLY! Is that all I had to do?! Just put my password in again?! Well, atleast now I have internet back on my mac.

  • What to restart after changing some parameters in instanceconfig 11g

    Hi all,
    I made some changes in 11g instanceconfig.What do I need to restart ti apply those changes? Is restarting of coreapplication from EM enough?
    Thanks

    Hi,
    Yes, to apply changes you can resrart coreapplication from EM or use opmnctl.bat with stopall, startall options.

  • Defaulting search fields in af:query component

    I have a search popup with af:query and a result table. My requirement is to default some of the fields in af:query when the popup launches.
    Since i could not achieve this, i wrote a temporary work around which should be removed as soon as we find a permanent solution.
    Work around:
    1. Wrote a method showQBE() in the bean. Wrote the logic to default the QBE fields by manually iterating through the component binding.
    2. Call showQBE() in the visible property of the af:query so that this executed when the popup is invoked.
    public boolean showQBE(){
    RichQuery rq = this.getResourcePickerQBE(); // Bindning for QBE
    QueryDescriptor dq = rq.getValue();
    List children = rq.getChildren();
    Iterator childrenItr = children.iterator();
    while (childrenItr.hasNext()) {
    RichPanelGroupLayout rpcl = (RichPanelGroupLayout)childrenItr.next();
    Iterator rpclItr = rpcl.getChildren().iterator();
    while (rpclItr.hasNext()) {
    // RichPanelLabelAndMessage
    UIComponent rplm = (UIComponent)rpclItr.next();
    Iterator rplmItr = rplm.getChildren().iterator();
    while (rplmItr.hasNext()) {
    UIComponent comp = (UIComponent)rplmItr.next();
    Iterator compItr = comp.getChildren().iterator();
    while (compItr.hasNext()) {
    UIComponent comp1 = (UIComponent)compItr.next();
    String class2 = comp1.getClass().getSimpleName();
    if (class2.equals("RichInputText")) {
    RichInputText rit = (RichInputText)comp1;
    if ("value40".equals(rit.getId()) ||
    "value41".equals(rit.getId())) {
    rit.setValue("Bryan");
    } else if ("value50".equals(rit.getId()) ||
    "value51".equals(rit.getId())) {
    rit.setValue(ADFUtil.evaluateEL("Adams"));
    } else
    rit.setValue("");
    AdfFacesContext.getCurrentInstance().addPartialTarget(rit);
    Popup code:
    <af:popup id="resourceSearch1"
    popupFetchListener="#{backingBeanScope.TerritoryProfileBean.showParentTerrOwnerReportsForTerrTeamMember}"
    binding="#{backingBeanScope.TerritoryProfileBean.resourcePickerPopup}"
    popupCanceledListener="#{backingBeanScope.TerritoryProfileBean.cancelButtonListener}"
    contentDelivery="lazyUncached" childCreation="deferred">
    <af:dialog id="d20" type="none" title="#{salesterrmgmtterritoriesuiGenBundle}">
    <af:panelGroupLayout id="pgl191" layout="vertical">
    <af:panelHeader id="ph21" text=" ">
    <af:query id="qryId2" headerText="#{applcoreBundle.QUERY_SEARCH_HEADER_TEXT}" disclosed="true"
    value="#{bindings.ResourcePickerSearchQuery.queryDescriptor}"
    model="#{bindings.ResourcePickerSearchQuery.queryModel}"
    queryListener="#{backingBeanScope.TerritoryProfileBean.onSearchBtn}"
    saveQueryMode="hidden" resultComponentId="::t3"
    binding="#{backingBeanScope.TerritoryProfileBean.resourcePickerQBE}"
    visible ="#{backingBeanScope.TerritoryProfileBean.showQBE}"
    queryOperationListener="#{backingBeanScope.TerritoryProfileBean.queryOperationListener}"/>
    </af:panelHeader>
    <af:panelStretchLayout id="psl2" startWidth="50px"
    visible="#{backingBeanScope.TerritoryProfileBean.showSearchTable}">
    <f:facet name="bottom"/>
    <f:facet name="center">
    <af:table value="#{bindings.ResourcesPicker.collectionModel}"
    var="row"
    rows="#{bindings.ResourcesPicker.rangeSize}"
    emptyText="#{bindings.ResourcesPicker.viewable ? applcoreBundle.TABLE_EMPTY_TEXT_NO_ROWS_YET : applcoreBundle.TABLE_EMPTY_TEXT_ACCESS_DENIED}"
    fetchSize="#{bindings.ResourcesPicker.rangeSize}"
    rowBandingInterval="0"
    selectionListener="#{bindings.ResourcesPicker.collectionModel.makeCurrent}"
    rowSelection="multiple" id="t3"
    binding="#{backingBeanScope.TerritoryProfileBean.resourcePickerTable}"
    contentDelivery="immediate"
    columnSelection="multiple" autoHeightRows="10"
    summary="#{salesterrmgmtterritoriesuiBundle.THIS_TABLE_LISTS_THE_RESOURCES}">
    <af:column sortProperty="ResourceName" sortable="true"
    headerText="#{bindings.ResourcesPicker.hints.ResourceName.label}"
    id="c3" rowHeader="unstyled">
    <af:inputText value="#{row.bindings.ResourceName.inputValue}"
    label="#{bindings.ResourcesPicker.hints.ResourceName.label}"
    required="#{bindings.ResourcesPicker.hints.ResourceName.mandatory}"
    columns="#{bindings.ResourcesPicker.hints.ResourceName.displayWidth}"
    maximumLength="#{bindings.ResourcesPicker.hints.ResourceName.precision}"
    shortDesc="#{bindings.ResourcesPicker.hints.ResourceName.tooltip}"
    id="it6">
    <f:validator binding="#{row.bindings.ResourceName.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="PrimaryPhoneNumber" sortable="true"
    headerText="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.label}"
    id="c6">
    <af:inputText value="#{row.bindings.PrimaryPhoneNumber.inputValue}"
    label="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.label}"
    required="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.mandatory}"
    columns="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.displayWidth}"
    maximumLength="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.precision}"
    shortDesc="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.tooltip}"
    id="it10">
    <f:validator binding="#{row.bindings.PrimaryPhoneNumber.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="EmailAddress" sortable="true"
    headerText="#{bindings.ResourcesPicker.hints.EmailAddress.label}"
    id="c5">
    <af:inputText value="#{row.bindings.EmailAddress.inputValue}"
    label="#{bindings.ResourcesPicker.hints.EmailAddress.label}"
    required="#{bindings.ResourcesPicker.hints.EmailAddress.mandatory}"
    columns="#{bindings.ResourcesPicker.hints.EmailAddress.displayWidth}"
    maximumLength="#{bindings.ResourcesPicker.hints.EmailAddress.precision}"
    shortDesc="#{bindings.ResourcesPicker.hints.EmailAddress.tooltip}"
    id="it1">
    <f:validator binding="#{row.bindings.EmailAddress.validator}"/>
    </af:inputText>
    </af:column>
    </af:table>
    </f:facet>
    </af:panelStretchLayout>
    </af:panelGroupLayout>
    <f:facet name="buttonBar">
    <af:group id="g41">
    <af:commandButton actionListener="#{backingBeanScope.TerritoryProfileBean.onApplyOrDoneFromResourcePicker}"
    id="cmdDone1" immediate="true"
    partialSubmit="true"
    text="#{acrGenBundle}">
    <af:resetActionListener/>
    </af:commandButton>
    <af:commandButton id="cb5" actionListener="#{backingBeanScope.TerritoryProfileBean.cancelButtonListener}"
    text="#{acrGenBundle}"/>
    </af:group>
    </f:facet>
    </af:dialog>
    </af:popup>
    * I created the same thread ADFbc forum: http://myforums.oracle.com/jive3/thread.jspa?threadID=632625. Since there is no response posting here.
    Thanks

    The af:query is based on a View Criteria from a PVO, so i wrote the following code to set the value for the criteria items in the View criteria.
    I wrote it in view object's getter in the AMImpl.java
    public ResourcePickerVOImpl getResourcePicker(){
    ResourcePickerVOImpl vo = findViewObject("ResourcesPicker");
    ViewCriteria vc = (ViewCriteria)vo.getViewCriteria("ResourcePickerSearch");
    ViewCriteriaManager vm = vc.getViewCriteriaManager();
    Row rows[] = vc.getAllRowsInRange();
    for(Row row : rows){
    List<ViewCriteriaItem> cit = ((ViewCriteriaRow)row).getCriteriaItems();
    Iterator<ViewCriteriaItem> itr = cit.iterator();
    while(itr.hasNext()){
    ViewCriteriaItem vtr = itr.next();
    vtr.setValue("Mathew");
    System.out.println("Column name: " + vtr.getColumnName() + " Value: " + vtr.getValue());
    I changed the contextDelivery = immediate and childrenCreation = immediate since the popup was always showing empty search fields.
    After changing this property i am seeing a new issue -> First time when i open the popup nothing is shown in the search fields. Then from the subsequent times it is showing the values defaulted through the above code.
    Any idea!
    Edited by: [email protected] on Aug 26, 2010 4:30 AM

  • ICloud status not displayed correctly after changing tags

    Hi everybody,
    I have just below 25 000 songs in the iTunes library that I use for iTunes Match (my complete library is actually much larger but I created a separate library to stay below the 25 000 songs limit).
    After changing some tags in iTunes (I had some artists listed twice, once in the format "<last name>, <first name>" and once "<first name> <last name>" and wanted to harmonize this) the iCloud status of most of my songs is no longer displayed correctly. If I create a smart playlist containing all "matched" songs it finds only about 1000 songs, a playlist for "uploaded" songs contains only about 250 songs, the vast majority of my songs simply have NO iCloud status whatsoever (not even "waiting").
    Trying to fix this, I selected all of my songs, option clicked and chose "Add it iCloud". After waiting some time, nothing changed. The funny thing is: iTunes match reports that 24 669 songs (the correct number) are available in iCloud.
    So basically everything works and I am also able to download all of my songs on my iPhone. Still, it's a little bit annoying that the iCloud status is not displayed correctly and smart playlists filtering for iCloud status don't work. Does anybody know a way to fix this?
    Thanks for any help,
    Andreas

    The reason why the C3850 switch stack is showing as standalone in LMS CiscoView is because
    it's returning sysObjectID as standalone.
    It should return as 1.3.6.1.4.1.9.1.1745 --cat38xxstack
    While, if you poll it for sysObjectID, the Catalyst 3850 stack switches will be returning OID 1.3.6.1.4.1.9.1.1641.
    This is an IOS bug "CSCul00003 - Incorrect Sys OID for Cat3850 Stack device".
    Unless this bug is fixed, LMS will not be able to show it as stack device.
    You can try to check if you can manually change the device identity to cat38xxstack from Inventory > add/edit device > edit identity.
    Else we need to wait for the fix of this bug.
    -Thanks
    Vinod

  • Reorder Saved Search items in af:query component

    Hi,
    Is there any way to change the order of Saved Searches listed in the af:query component. The order that the view criteria are displayed in this component does not seem to have any relationship to the order that they occur in the VO.xml file, nor are they listed alphabetically.
    I'm only interested in ordering the view criteria in the choice list, that I have configured at design time.
    Is this possible?

    forgot to mention in my initial post that I'm using Jdeveloper 11g Rel 1.
    Thanks,

  • Prompt constrain - prompt values are not refreshed after change in calendar

    Hello,
    I have prompt with Date, OrgUnit and Employee field in OBIEE 10g.
    Date - calendar component "date between"
    OrgUnit - multi-choice
    Employee - multi-choice
    I have checked "Constrain" checkbox on Employee field, because I want to show only employees from selected OrgUnit and also I have checked constrain on Date field.
    After first selection everything works fine. I select some dates (I have calendar component - date between), some OrgUnit and I can see list of employees constrained by selected OrgUnit and Dates
    - physical select is executed to get list of employees to multi-choice component
    After that I change date interval, open employees multi-choice component but no physical query is executed and I will get back some cached result from previous request.
    It seems that change in calendar component does not force refresh of data in other constrained components.
    If I select some other OrgUnit, Employees are refreshed.
    I tried to change component for Date from calendar to multi-choice. After some change of dates in multi-choice component. OrgUnit and also Employees are refreshed.
    I also tried some different combinations of constrain checkboxes but with no success
    So my question is: How can I force refresh (force execution of sql query) data in constrained fields after some change in calendar component?
    Thank you

    In my case It doesn´t refresh after change in calendar component. It does refresh after change in multi-select promot, or dropdown component, but doesn't refresh after change in calednar component.
    BI server cache is not enabled.
    If I open employee multi-choice component for the first time, physical query is executed. I change date to some other, open employee component for second time and no query is executed and I will get old values from previous action...

  • Changing Query Component's criteria items at runtime

    Hi All,
    As per my requirement i am changing query component's criteria items on some user input.
    So initially there were 9 components on query panel form and after user input it will become 7. I programatically used to set this two component's UI Hint as setVisible(false).
    Its working fine but if user input some value in to be removed 2 components it throws an null pointer exception.
    I understood the problem which is:-
    On query form if user input any value it used to persist. for same framework used to store this user entered value somewhere and after refresh it apply this value to the relevant components.
    Since two of the component are missing after refresh. it throws a null pointer exception as it tried to call setValue() method on removed component which is not there.
    After refresh the query panel form is rendered as per defined by QueryDescriptor object.
    Is there any way we can update this QueryDescriptor object with the changes...????

    Hi Simran,
    Yes, it is possible with the help of store procedure. In SQL Server there is a IF-Else Conditional block, which you can use inside store procedure. Create a SP with 2 additional parameter something like FlagReadAgain and KeyField. Pass the flag always as True or False. For the Key field pass the record key which you want to read again if you are passing the Flag as True else pass it as 0 or whatever.
    In the procedure check if the value of flag is True -> If yes, Read the entry with key name specified in where part.
    In the else part put the query which you are using for the normal flow.
    IF (FlagReadAgain) = TRUE
    BEGIN
       SELECT EmpName, EmpAddress
       FROM Employee
       WHERE EmpID = 'E001'
    END
    ELSE
       BEGIN
         SELECT EmpName, EmpAddress
         FROM Employee
         WHERE Status = 'N'
       END
    You may also use the approach which Srini mentioned. Create an application to restore any value to intial stage so that it can be picked up by XI when it poll again.
    Choose any approach which you like.
    Regards,
    Jitender Chauhan

  • ADF Faces: Changing "rendered" property in PPR: JDev 10.1.3

    Hello all,
    I have an ADF Faces page that has an af:CommandButton on it. The rendered property of the button is set to an EL expression that references the model (ADF BC). When the page is submitted (via an af:CommandButton with PartialPage=true), the rest of the page refreshes properly to reflect the changed model state, but the command button with the conditional rendered property is not disappearing as expected (the button is initially rendered=true). I remember reading recently about a similar issue if the button is initially not visible, and I'm not sure if this is related.
    Interestingly, if I click on the button (which should no longer be visible after the PPR event), it does nothing - so it appears to be merely a visual problem. I have also tried setting the disabled property to an EL expression that is the opposite of the rendered property, and the button does not change to be disabled, either.
    Any thoughts? At this point, it looks like a bug/feature.
    Kind regards,
    John
    Should I be able to do this?

    John,
    if you wrap the button in a panel (e.g. buttonpanel) and set the PPR to this panel, does it work ?
    Frank

Maybe you are looking for

  • Printing on paper without spaces ?

    Sir, I have a problem with printing the page of course it is printing the page without any problem but the problem does exists in the setup.I have used the code provided in the forum for printing.Where here when the printing is on, the printer starts

  • How do I get Reader to show up in Safari?

    How do I get Reader to show up in Safari? I can't find the reader button in Safari in the new version - it is the one feature I use the most as it hides all of the clutter. Is there some hidden setting (haven't found it yet)

  • Multi-level Purchase Order Release

    Hi All, Please help me on this. I have already tested in QAS multi-level release but the scenario is, there's only 1 Asst Manager(AM) before. So if AM release the PO/FO, then next would be the Manager and then MM Head. How to configure  in OMGS if sc

  • VLM configuration problem in RHEL 3.0

    Hello I am using oracle 10g R2 in RHEL3.0. My kernel version is 2.4.21-37.ELsmp. So, it will support upto 16GB RAM. I have 8GB RAM installed and so want to increase SGA size using VLM. I have following configuration in my spfile: *.compatible='10.2.0

  • Linksys EA6400 - PPPOE issue

            I have the following problem with my router : The ISP provides 500mb/s and my router only outputs on wire or wireless 200-230mb/s. The set up : 1) Router Linksys EA6400       firmware : 1.1.40.160989  2) Network cable : Gigabit  3) Wireless a