ADF TreeTable: Tree Table refreshes twice - oracle-adf

I fetching some accounts and showing on TreeTable (ADF), accounts have hyperlink on click of which popup opens. When number of accounts is too much (e.g 200) and we scroll down to bottom of the treetable , on clicking account hyperlink treetable refreshes twice due to which popup doesn't open . Can somebody help me with it

Related

Click button until button disappears from webPage

I have web page in which it displays only 10 items if there are more then 10 items on the page then show more button displays, so need to click on show more button to see more then 10 items.
Problem is when I click on show more button it will display 10 more item and then again i have to click show more button to see next 10 more item and once all items are displayed on the page then show more button disappears from page.
Here I want to click show more button until all the items are displayed
How to achieve this using Selenium + Web driver?
Until "show more" button present keep clicking on that link in loop.
while(isElementPresent(By.linkText("Show more"))) {
driver.findElement(By.linkText("Show more")).click();
Thread.sleep(100);
}
Check here for isElemenetPresent() methods implimentation.
P.S : For safety break the loop after reaching some max limit.

Oracle ADF : Tabbed Pane - Showing always first tab when redirected to it

we are developing a web application using Oracle ADF. In this we have a page with tabbedpane as show below
In the above picture we have two tabs Account Payable and Accounts Receivable. Each tab is having green and red image(this is a commandImage). When user clicks any image means red or green he will be navigated to another page. In that page we have provided another button called Back. This tabbedpane and another page(second page) are .jsff and We dropped it as a region. Our problem is when user clicks back button in another page it is always showing first tab even though he clicked a button in second tab.
So we need to achieve the following.
If user clicks red or green image in first tab and when he clicks back button he has to be redirected to first tab.
If user clicks red or green image in second tab and when he clicks back button he has to be redirected to second tab.
How do we achieve this. Please help. Thanks in advance.
Presuming you are having backing bean on Session scope - myBean :
<af:panelTabbed id="pt1">
<af:showDetailItem disclosureListener="#{myBean.tabSelected}" text="Accounts Payable" disclosed="#{myBean.selectedTab == "sdi1"}" id="sdi1"/>
<af:showDetailItem #{myBean.tabSelected} text="Accounts Receivable" disclosed="#{myBean.selectedTab == "sdi2"}" id="sdi2"/>
</af:panelTabbed>
And you bean should look have :
public MyBean {
private String tabSelected; //make sure you add getter and setter too!!!
public void tabSelected(DisclosureEvent disclosureEvent) {
if (disclosureEvent.isExpanded()) {
UIComponent uiComp = (UIComponent)disclosureEvent.getSource();
tabSelected = uiComp.getId();
}
}
}
Your backing bean can have pageFlowScope as well, if both pages are part of the same bounded task flow.
More details, here:
https://docs.oracle.com/middleware/1212/adf/TROAF/tagdoc/af_showDetailItem.html
http://adfhowto.blogspot.co.uk/2011/05/when-disclosurelistener-of-paneltabbeds.html

Selection Changed IsPostBack or refresh

Is there a way for a SelectionChangeEvent to get refreshed after selecting an item? I'm having trouble on my windows phone application.
Here is the scenario, I have three items in my combo box, when you select an item it will navigate to a page. Now, if I select Item 1 I will be navigated to Item 1 page, but if I hit back button, then click Item 1 again, it will not navigate anymore or the event does not fire.
Is there a remedy for this please? I have wasted 3days to resolve this. Thanks much in advance for the help. Thanks.

Refresh/Update a report page with checkboxes

I am using APex 4.2. I have a page with a shuttle list, (page 31), where a user can select some job categories (e, a, c, x, etc). The user can then click a button, (Generate Report), and it will take them to a page (Page 27) where a report is displayed. Each row of the report has a checkbox that is defaulted to yes (starts off checked).
The report query is along these lines:
select 'Y' as Selector, name, id, etc
from table
where (instr(':'||:P31_JOB_CATEGORY||':',':'||JOB_CATEGORY||':') > 0)
where P31_JOB_CATEGORY represents the shuttle list.
I am passing the value of the shuttle list (P31_JOB_CATEGORY) to page 27, therefore having the actual query to the report on page 27.
I ultimately have a two part question.
Once the user views the report, they will see that each row is
checked and will be able to uncheck specific rows if neccessary.
Once they done checking/unchecking, the report should be
saved/submitted/refreshed with their made changes that will take
them to another page to see the report. I am having trouble
accomplishing this on button click.
Ultimately their changes will need to be seen on a pdf report,
where once they click the refresh button, the report will update
with their changes and then possibly redirect to a page that opens
up an open/save pdf report. But first I need to tackle refreshing
the page with the changes they made to the report by
checking/unchecking specific rows.
Any help would be greatly appreciated. Thanks in advance.

how to maintain the relation between tabs opened in a WPF Application

we have a wpf application..in the Home page we have Work,Help,Approve
Search tabs..
When user clicks on the Approve tab and selects a student..if student is
not qualified then ApproveStudent option is enabled,when clicks StudentApprove
screen opens in a newtab and there the user can approve the student.
In the StudentApprove screen there Approve and Disqualify buttons, so when they
click the approve the student is approved once he is approved the StudentApprove
screen should close and take back to the screen from which he come i.e ApproveStudent screen
This is like Ribbonbar
Work,Approve,Search, Help
under these ..when they select any option..under these new tab opens, let say search has 3 options..
when selects Approve ..students list is displayed....when clicked on any student another screen is opened...when they click Approve button ..this tab should be closed and take back to Approve screen
I would use ItemsList and specify
[ViewSortHint("01")]
when you export your views.
Why do you need TabContainer if order is important?

Resources