Refresh two regions at a time

Hi,
Iam new to ADF Framework. Using JDeveloper 11.1.1.5.0. Following is the high level description of our requirement.
I've JSF page with four regions localted at left,Center, Bottom & Right. Left region having three buttons. Based on button click, center region will be populated with corresponding tree. User can select the required elements from the each tree & then click on 'Submit' button (which is in Center region).
As of now Iam able to achieve till this part with the help of " Programmatic Partial page refresh (PPR) with dynamic regions »http://asktown.co.uk/?p=223"
Now the pending part is, If user clicks on 'Submit' Button then need to send the selected item references to bottom region & right region at a time to do some thing. i.e Bottom region will display the selected items and right region will perform calculation part.
There are two things pending as I know
1. Getting the selected nodes from three trees(Each botton will display separate tree in center region)
2. Refreshing two regions (bottom & right) at a time with Submit click.
Ihope, If i could achieve these two things,Iam almost done with my task.
Can you provide hint to proceed on these two things. It would be helpful, if some one provide pointer to achive this task.
Thanks in advance,
MSR.

Hi,
if you use shared data controls then this is not so difficult to achieve. Here's what you would do
1. http://docs.oracle.com/cd/E23943_01/web.1111/b31974/web_masterdetail.htm#sthref2108 --> "Using the TargetIterator Property" explains how to synchronize iterators with the selection in the tree. Say the tree has locations, departments and employees. Then when you click the employees node, a employees iterator is synchronized
2. For each iterator used or referenced by the tree create an attributeValue binding for the value you want to pass on to the other regions
3. the region input parameters of the two regions to synchronize point to a managed bean in view scope. The refresh condition is set to if needed on the task flow binding so that when the input parameter value changes, the region restarts the contained task flow
4. See http://www.oracle.com/technetwork/developer-tools/adf/learnmore/50-synchromize-form-treeselection-169192.pdf (--> page 6, "Building the Custom Selection Listener"). Change this code so that whenever a user selected a tree node you
i) retain the default functionality
ii) determine the selected node and read the attribute value binding for this node. Say the node is employees and the attributeValueBinding you created is for EmployeeId. Then the code looks like
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
AttributeBinding attr = (AttributeBinding) bindings.get("EmployeeId);
Object selectedNodeValue = attr.getInputValue();
5) Set the selectedNodeValue to the managed bean property referenced from the region input parameters
6) Call AdfFacesContext.getCurrentInstance().addPartialTarget(region reference) for each region
7) The last thing to consider is that the tree is in a region itself. So here is some complexity that you handle following the idea mentioned in this blog (http://one-size-doesnt-fit-all.blogspot.de/2010/09/master-child-btf-chaperone-contextual.html)
Since the two dependent regions are refreshed by the parent view, you need to define a managed bean in view scope for the parent view and then pass the bean as an input parameter reference to the region having the tree component. You use this handle then to pass the selected EmployeeId and the partial refresh notification to the view bean. The bean then sets the managed bean property read by the task flows in the dependent regions
Frank
Ps.: This is a very complex use case for a start with ADF
Frank

Similar Messages

  • Refresh Two selectOneChoice  on run time ADF rich client

    HI...
    i have two selectOneChoice .. the first from master table and the second from detail table
    i have create view link between the two VO .
    in the page.jspx i display the allies in the selectonechoice for bothe
    now.. first* i need to refresh the second one depend on the first selectonechoice selected value
    second* i need to know the value of the selected item at the run time to do some operation before commit
    i use refreshCondition but it is not work ...
    plz help me
    thanks
    Edited by: AJWEH on Sep 22, 2008 5:05 PM

    Hi,
    first:
    you have to set partialTrigger of master to detail.
    Cascading LOV refresh
    second:
    Re: How to get selected value from SelectOneChoice
    regards
    Peter

  • For the last week or three Firefox refreshes two or three times for each refresh, and sometimes for no obvious reason..

    For the last week or three Firefox refreshes two or three times for each refresh. Sometimes it refreshes for no obvious reason. For instance, I'll be in the middle of typing into a forum's post block & it refreshes. Or filling out an online form. Or simply viewing a page.

    You can check for issues caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to refresh a region during tab change

    Hi All,
    In my page I have two tabs.There is one region each in each tab.
    Tab 1 region is on top of Parent View Object and Tab 2 region is on top of Child view object. Relationship is one-to-one.
    In tab 1 region, If populate some attributes <of ParentVO> then, those attribute values will be copied to the Child View Object by calling an AM method from the tab disclosure listener.
    When I switch from tab 1 to tab 2 for the first time all the populated attributes < Parent VO in Tab1 > are getting copied to child VO and I can see those values in tab 2 <UI> .
    But after that when I switch back to Tab 1 and change some attributes and go to tab 2 then, the newly populated attributes are not shown in the second tab.
    But If I go to the next page and come back to the same page then in the second tab I can see all the newly populated attributes..
    refreshCondition of the task-flow is ifNeeded.
    In my disclosure listener I am trying to refresh the region binding programmatically. <AdfFacesContext.getCurrentInstance().addPartialTarget(regionbinding)>.
    But the region in tab 2 is not getting refreshed.
    Please Help...
    Am I missing some thing here...

    Thanks a lot for your response...
    Earlier I had tried #{true} as refreshCondition. But that didn't help. And I had tried changing an input parameter value by calling a bean method [toggleValue: which will toggle the parameter RefreshFlag ]
    and keeping the refresh Condition as ifNeeded. But in this case it didn't work. Earlier I had tried this approach and it was always working.
    Now I will try with the option you gave me.. Calling refresh method of UIXRegion. The method seems to be the exact one which I was looking for from the doc.
    The documentation says...
    refresh
    public void refresh(javax.faces.context.FacesContext context)
    Refreshes this region's model. This method calls RegionModel.refresh(javax.faces.context.FacesContext), and adds this region as a PPR target. This method must only be called during PhaseId.INVOKE_APPLICATION phase. A RegionNavigationEvent is always queued.
    So can I call this method on a tab disclosure listener..?
    Or Do I need to check for the Phase and call this method.. It would be great if you can make it a bit more clear.
    Do I need refresh or refreshCondition along with this approach..
    Thanks a lot..
    Abhilash

  • Uploading two images at a time on to modulepool screen

    Hi all,
    I uploaded one image on to the module pool screen using the custom container. Now i want another image on the screen. I used one more container and tried. But the old image is beeing overwritten by the new one in the first container only. Is it possible to upload two images at a time?
    Thanks in advance,
    Dev.

    This is the code in TOP,
    DATA CONTAINER  TYPE  REF TO  CL_GUI_CUSTOM_CONTAINER.
    DATA PICTURE TYPE  REF  TO  CL_GUI_PICTURE.
    DATA URL(256).
    DATA CONTAINER1  TYPE  REF TO  CL_GUI_CUSTOM_CONTAINER.
    DATA PICTURE1 TYPE  REF  TO  CL_GUI_PICTURE.
    DATA URL1(256).
    Code in F01. I have written a similar subroutine for the other image also.
    form load_pic_from_db  changing p_url.
      DATA query_table LIKE w3query OCCURS 1 WITH HEADER LINE.
      DATA html_table LIKE w3html OCCURS 1.
      DATA return_code LIKE  w3param-ret_code.
      DATA content_type LIKE  w3param-cont_type.
      DATA content_length LIKE  w3param-cont_len.
      DATA pic_data LIKE w3mime OCCURS 0.
      DATA pic_size TYPE i.
      REFRESH query_table.
      query_table-name = '_OBJECT_ID'.
      query_table-value = 'ZTEST_ICICI'."name of logo
      APPEND query_table.
      CALL FUNCTION 'WWW_GET_MIME_OBJECT'
        TABLES
          query_string        = query_table
          html                = html_table
          mime                = pic_data
        CHANGING
          return_code         = return_code
          content_type        = content_type
          content_length      = content_length
        EXCEPTIONS
          object_not_found    = 1
          parameter_not_found = 2
          OTHERS              = 3.
      IF sy-subrc = 0.
        pic_size = content_length.
      ENDIF.
      CALL FUNCTION 'DP_CREATE_URL'
        EXPORTING
          type     = 'image'
          subtype  = cndp_sap_tab_unknown
          size     = pic_size
          lifetime = cndp_lifetime_transaction
        TABLES
          data     = pic_data
        CHANGING
          url      = url
        EXCEPTIONS
          OTHERS   = 1.
    endform.                    " load_pic_from_db
    Dev.

  • How to send report output to  two  detinations at a time from command line?

    Hi ,
    how to send my report to two detinations at a time from command line i.e FILE and Mail ?
    i created batchfile in that i mentioned one line for file(DESTYPE=FILE) perpose and another line for mail perpose(DESTYPE=Mail).i don't want to mention to lines.
    i want to send my report out put two destinations at a time insted of running two times.
    thx in advance.....
    raghu

    hello,
    did you try to use distribution for that ? check out the reports distribution facilities available in 6i.
    regards,
    the oracle reports team

  • Apex Application inserting into two tables from two regions in a page

    Hey Guys,
    Fairly new to apex like two days. So please bare with me. I am using apex 4.0.2.00.07.
    I have a page with two regions. The first region has only one row and I have no problems accessing it and inserting those values into the table this is what I used to access one column from that one row APEX_APPLICATION.G_F03(1)
    The second region is an interactive report, to which I have managed to add a checkbox and a textbox.
    1)So if a checkbox has been checked off the row should be inserted
    2) if the textbox has been entered it should replaceone of the values.
    My question is how to access the second region? I started a loop based on the rows in the collection but that is as far as I got.
    FOR idx IN 1..l_collectionTable_name
    loop
    end loop
    Any help would be greatly appreciated?
    Thank you
    Edited by: Aj05 on Aug 2, 2012 2:10 PM

    Hi Phil I used the following code
    <cfquery name="qArrivalDates" datasource="rayannesql">
    SET NOCOUNT ON
    INSERT INTO booking (book_made, book_checkin_date,
    book_checkout_date, book_adults, book_children)
    VALUES('#FORM.book_made#','#FORM.book_checkin_date#','#FORM.book_checkout_date#','#FORM.bo ok_adults#','#FORM.book_children#')
    SELECT SCOPE_IDENTITY() AS theNewId;
    SET NOCOUNT OFF
    </cfquery>
    <cfquery name="qArrivalDates" datasource="rayannesql">
    INSERT INTO Customer( firstname, lastname, address, address2,
    city, state, postalcode, country, phone, mobile, email, notes)
    Values (#qArrivalDates.theNewId# '#FORM.firstname#',
    '#FORM.lastname#', '#FORM.address#', '#FORM.address2#',
    '#FORM.city#', '#FORM.state#', '#FORM.postalcode#',
    '#FORM.country#', '#FORM.phone#', '#FORM.mobile#', '#FORM.email#',
    '#FORM.notes#' )
    </cfquery>
    When I tried to complete the form, I got the following error
    Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][SQL Native Client][SQL Server]Incorrect syntax
    near 'Fred'.
    The error occurred in
    C:\Inetpub\wwwroot\rayanne\customerinsertsql.cfm: line 16
    14 : <cfquery name="qArrivalDates"
    datasource="rayannesql">
    15 : INSERT INTO Customer( firstname, lastname, address,
    address2, city, state, postalcode, country, phone, mobile, email,
    notes)
    16 : Values (#qArrivalDates.theNewId# '#FORM.firstname#',
    '#FORM.lastname#', '#FORM.address#', '#FORM.address2#',
    '#FORM.city#', '#FORM.state#', '#FORM.postalcode#',
    '#FORM.country#', '#FORM.phone#', '#FORM.mobile#', '#FORM.email#',
    '#FORM.notes#' )
    17 : </cfquery>

  • How to Refresh System Form in Run Time

    Dear All,
    Please give me idea for Refresh System Document in Run Time using DI,basically I am using  system columns for update for some scenarios.
    So please give solution that how should refresh system form.
    Thanks a lot.
    Ashish Singh.

    Hi,
    Please post above discussion in SDK forum.
    Thanks & Regards,
    Nagarajan

  • Hiding the two region in same position

    hi all,
    I have a region called addexist under that p6_search(txtbox),p6_item(hidden),p6_item2(hidden),p6_searchbutton,p6_viewall.
    Under the region AddExist i created a sub regions named hidden1(Report type=Sql Query) and hidden2(Sql Query).
    I have created process hidden1,hidden2(before comp and val) and dyanmic actions hidden1,hidden2 and proces hidden1,hidden2(on load after region).
    For hidden1(before comp and val) when button pressed = p6_viewall. For hidden2(before comp and val) when button pressed = p6_search button.
    The problem is when i press the view all button it displays the hidden1 region But the hidden2 region also displaying it is not hidden. When i press the p6_searchbutton it displays hidden1 region and hidden2. And I have selected the two regions is body(1) position. hidden1 sequence=60, hidden2=70.
    Now i want to disply hidden1 region when when the p6_view_all button selected it should not display hidden2 region likewise, when i press the p6_searchbutton it should display hidden2 region only not along with hidden1 region.
    Edited by: apex on Jun 2, 2011 10:46 PM

    Hi all,
    Can anyone share your valuable comments on this issue.
    Edited by: apex on Jun 3, 2011 3:26 AM

  • Since the recent update, my Text Messages no longer permit me to send messages to more than two people at a time. How do I resolve this issue?

    Since the most recent update, my IPhone 5c no longer permits me to send text messages to more that two people at a time. How can I resolve this to send text messages to more than two people in a group message.

    It would appear that I can send an SMS to multiple contacts, providing that it's not a forwarded message. This means that I have to start from scratcheach time, and then I can send it to over 30 recipients at a time. Not sure why though, and I'm not sure why the sign doesn't appear all of the time as an option for me to press. At other times, it is particially obscured by the curser/text box. This is obviously a glitch in the system, as it happens inconsistently.

  • Pulling out two records at a time

    I have a TABLE with multiple records in it, of which i want to pull out two records at a time (as if they were one record), of those records that meet the WHERE criteria. Order is not important. Basically, i have a TABLE of things that wither need processing or have been processed already. I can process two at a time. (In a related search, that i am not up to yet, i can do 20 at a time.) How would i go about doing that?
    My first thought was a CTE with ROW_NUMBER() RN, using CONNECT BY RN = PRIOR RN + 2, and have a sub-query (or joined TABLE) pull out the second record:
    WITH Moo (SELECT ... ROW_NUMBER RN FROM Table WHERE ...)
    SELECT ..., (SELECT ... FROM FROM Moo Moo2 WHERE Moo2.Id = Moo.Id + 1)
    FROM Moo CONNECT BY Id = PRIOR Id + 2;
    Or a join. Is there a better way to approach it?

    Pretty much everything you just said is wrong.
    >
    I generally keep away from CURSORs, as i want the DB to handle the set processing for me, as opposed to a CURSOR which tells the DB how to do it's job.
    >
    If you do any DB queries then you are using cursors. You have the wrong idea about them. All result sets are obtained using a cursor. A cursor does NOT tell a DB how to do a job; that is what the query and execution plan do.
    >
    (And, Tom Kyt's mantra of "You should do it in a single SQL statement if at all possible") But that's just a rule of thumb.
    >
    No - that isn't a rule of thumb. That is exactly what you should do if possible which is what I said. But I also said
    >
    Well the general use is to use SQL instead of PL/SQL but since you already need to use a function you might as well make that function as efficient as possible.
    >
    If you are already using a function then you should get the most bang for the buck from it and make it as efficient as possible.
    >
    If the CURSOR is the most efficient, so be it. But as you point out, if i'm already going to use a CURSOR, i might as well do all the work in the CURSOR LOOP. Why bother switching contexts.
    >
    All queries are done using cursors. It isn't a question of whether they are more efficient; it is the only way possible. I think you are referring to a user creating an explicit cursor and performing explicit manipulation of that cursor. That isn't normally what you want to do.
    A cursor loop is the slowest way to process results especially if all you are doing is row-by-row processing to perform essentially SQL-related work. PL/SQL should be used for the transactional part of the processing. In your case that transactional use is consolidating two records together for specialized processing.
    As for context switches if you perform any PL/SQL you are going to have a context switch: functions, procedures, triggers. The function you already planned to use would have caused a context switch. What I am saying is that if you are going to perform a context switch then you want to maximize the amount of work (transactional work) done in the PL/SQL engine so that you minimize the context switching.
    You still haven't explained exactly why 2 records at a time is any more ideal than 1 or if you could also process 50, 100, or 10000 at a time. Is the limit what needs to be passed somewhere else? What is the reason for a max of two? What exactly are you doing with the data to prepare it before you have to pass it on?
    Bulk collect processing is more efficient, with fewer context switches, if you process 20, 50, or 100 records in the loop at a time.
    See Chap 13 Using Pipelined and parallel Table Functions in the Data Cartridge Dev Guide
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28425/pipe_paral_tbl.htm

  • How can I view more than two pages at a time?

    How can I view more man two pages at a time?
    As a muscian reading digital sheets on Reader, being able to veiw as many as 3 to 5 pages at a time would be more helpful. Also, if it was possible to view any number of pages at time such as pages 1 and 2, 2 and 3, 3 and 4, or 5,6,7,and 8 instead of just 1 and 2 or 3 and 4 etc. my experience would be even better. thanks.

    The only way I could make Reader show 4 pages was to
    set View to 2 pages scrolling
    zoom out to display four pages:
    But for me that it to small to read anything...

  • HT201177 My mac os frequently freezes for one to two minutes at a time. I have uninstalled and reinstalled flashplayer 11.3 several times because I sometimes get a crash report on flashplayer. I would like other suggestions as to what I can do.and re

    My mac os frequently freezes for one to two minutes at a time. I have uninstalled and reinstalled flashplayer 11.3 several times because I sometimes get a crash report on flashplayer. I would like other suggestions as to what more I can do.

    The next time you have the problem, note the exact times when it starts and ends: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Scroll back in the log to the time you noted above. Post any messages timestamped during that interval – the text, please, not a screenshot.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • Reg: To automate deletion of data in two cubes at a time

    Hi,
    I want to automate deletion of two cubes at a time using abap code. The selection criteria will be same for both the cubes.
    Will it be possible to do?
    Please help.
    Regards,
    Sameer.

    HI,
    please see the below link
    How can we automate the process of selective deletion in process chain
    and there is a good PDF document is there on this
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/603a9558-0af1-2b10-86a3-c685c60071bc#rating
    thansk & Regards,
    Sathish

  • How To Position Two Regions Side-By-Side

    Hello.
    I am using Apex 4.2.1 with Oracle 11R3 and mod_plsql. The Apex app I created is using Theme 21.
    I've created a classical report one of whose fields is an HTML link.  When this link is clicked, an HTML region appears (it appears only when the link is clicked).  This HTML region contains several form fields users will populate.
    I am trying to get the HTML form region to appear to the immediate right of the report region (with, say, an inch of intervening space between the two regions) but am not having success.  Instead, the HTML form region appears immediately underneath the report.
    I searched this Forum for ideas and saw recommendations about creating a "container" type HTML region which serves as the "parent" for both my report and HTML form regions.  And so, I did this.  My report region has the sequence 10 while my HTML form region has sequence 20.
    I've tried playing with the options within the "Grid Layout" section of the page:
      Start New Grid = "Yes"
      Start New Row = "No"
      New Column    = "Yes"
    I've set the report to "No Template" and did the same for my HTML form region.  Still no help.
    The Display Point for all my regions (the containing HTML region, the report, and the HTML form region) is position "01".
    All to no available.  The HTML form region stubbornly displays under the report region.
    At this point, I want you to know that, though I like building web/database applications using Apex (indeed, I've been using it more than eight years now), there are days (like today) when I wish Apex would act more like FrontPage or DreamWeaver.  I would like to use my mouse to drag a region to a point on the page and have Apex automagically write the appropriate positioning CSS code.  Sigh!
    In any case, would anyone know how to get my HTML form region to appear to the right side of my report region (with an inch or so of intervening space)?
    Any help/tips would be appreciated.
    Thank you.
    Elie

    Hi, Check this
    User Interface
    Template
    Sequence
    Parent Region
    Display Point
    Column
       2
    [Body][Pos.1][Pos.2][Pos.3][Pos.4]
    Change column to 2 in the form region section as above

Maybe you are looking for

  • Is there a tool that works like 'Liquify' for Photoshop Touch on Ipad

    I always use photoshop on my PC and i am thinking of getting an IPAD. Photoshop Touch looks good but there a few tools that i cant find much info about online, so please help of you can. I would like to use it for fashion and beauty images so i need

  • Scheduler Not Work

    Hi all, i want some help with scheduler, the case is: the database installed first time when the database locale in normal calendar, the server is in hijri , when i create any job schedule dont work when next run comes, please help

  • My xbox 360 will not see my AirPort Extreme basestation wirelessly.

    I just bought a new AirPort Extreme from my local Apple store last night.  All devices work great (iPad, iPhone, MacBook Air, Win7 Laptop) all exept my Xbox 360.  My Xbox will not even see the AirPort base station via the older white Xbox wireless ad

  • Highlight only Searched keywords in a Datagrid

    Hi I have a datagird and a searchfunction wich shows only datagridrows containthe searched Keyword. Now i would like to highlight the Searched Keyword in the datagird, i can get acces to the row or cell contains the keyword and also highlight them(fo

  • When did AppleCare become AppleCare+ ?

    I bought an iPhone 4 in early October, just before the new iPhone 4S came out. I bought it from AT&T, and got a good deal on it. I put off buying AppleCare until later, knowing that under the old rules I had any time during the first year. I now find