I've created a ADF Tree dynamically from a single table(Using recursive concept) in center region. User can select the required elements from ADF tree and then click on Command button. So far, I've achieved till this part.
The pending part is, two regions(Bottom & Right) need to refresh at a time with button click.
Now I need to display selected elements in bottom region. Also need to provide the selected nodes information to do some calculation in the right region at a time.
Thanks for your references.
Here I've different requirement. I need to pass all the selected nodes information to the two regions (bottom & right) at a time with command button click. You are right, we can use contextual events or passing parameters if we want to send predefined values (like department id). In my case, i need to pass all the selected nodes information. Can you provide a hint to pass the selected nodes information to the two regions at a time. Yes, we can use contextual event by publish/subscribe process inorder to send information to more than one region. How can I pass the selected nodes information?
It seems to be i can achieve the required functionality with programatic contextual event approach.
I tried to develop the sample as per the instructions, but i am getting issue at "configure the ConsumerPage's bindings to subscribe to the PublisherBTF's event".
Following is the instruction where iam facing issue.
Selecting the Looking Glass button on the Event field allows us via the resulting Select Contextual Event dialog to select the event "publisherEvent" from the PublisherBTF. Note it's possible to select the event from both the embedded PublisherBTF within the region of the ConsumerPage, or the event from the ADF Library. As the BTF has already been configured in the ConsumerPage, use the former:
I've only one option to select the event from 'ADF Library'. I don't have two options to select the required event.
Following are the steps followed to get ADF Jar into Consumer Master Application.
1. Go to Resource Palette
2. New Connection -> File System
3. Provided connection name (testFileSysConn) & directory path then test connection.
4. Test connection is success.
5. Then click on 'Ok'
6. Right click on PublishBTF1.jar from Resource Palette->File System-> testFileSysConn
7. Add to Project.
I couldn't find any changes under Data Control section with the above steps. Please correct me , if Iam wrong.
Also I found that, Publisher Dropdown is disabled in 'Subscribe to Contextual Event' popup window.
Finally able to communicate between two regions with the help of programmatic contextual event approach. Now I need to iterate through the dynamic tree in my event controller and then display the selected documents in bottom region. Following is the code for source fragment in which first region contains dynamic tree and second region contains selected documents list.