Why the custom SelectionListener not working on a data-bound table?
I followed this Re: How to get query table current row? to customize a SelectionListener on a table as following:
public void mySelectionListener(SelectionEvent selectionEvent) {
invokeMethodExpression("#{bindings.MyVO.collectionModel.makeCurrent}",
Object.class,selectionEvent.getClass(),
selectionEvent);
DCIteratorBinding voBinding = getItrtBindings("MyVO1Iterator");
Row currentRow = voBinding.getCurrentRow();
Object pAttr = currentRow.getAttribute("PoNo");
Object bcAttr = currentRow.getAttribute("BcId");
During runtime, I noticed the following messages showing up on the console when I selected a row on the table
Nov 11, 2009 1:07:33 PM oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel getSelectedRow
WARNING: ADFv: rowIterator is null.
Nov 11, 2009 1:07:33 PM oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel makeCurrent
WARNING: ADFv: No row found for rowKey: null.
When I debugged the selection listener, the "currentRow" always point to the 1st row regardless what I actually selected on the table.
What is missing in my view object that make the selection listener failed to find the current selected row?
I checked my view, there are two key fields defined in the view.
Hi,
The code seems to be fine for me, worth to check following things:
- Have you bound the custom selection listener to the selectionListener property of table?
- Are the iterator names and the EL expression given for makeCurrent inside custom selection listener correct?
- Is rowSelection property of table set to "single"?
Sample Code:
<af:table value="#{bindings.MyVO.collectionModel}" rowSelection="single" selectionListener="#{Bean.mySelectionListener}" ...>
</af:table>Sireesha
Similar Messages
-
Problem in SQL with CURSOR( ) ,Why the CURSOR did not work?
hi All:
I have a problem in SQL with CURSOR.
The data is as the attachments.
Here is the SQL statement as follow:
SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
FROM F3102 X
WHERE X.IGDOCO=A.WADOCO
AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
WHERE A.WADOCO='10004'
The statement above returns records as follow:
WADC WADOCO IGCOST DETAIL
WO 10004 A1 CURSOR STATEMENT : 4
CURSOR STATEMENT : 4
IGLITM
1KV90CPG2
1KV90CPG2
1KV90CPG2
But, after I add one statement in the subquery, there is no record returned from CURSOR.
Here is the SQL statement:
SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
FROM F3102 X
WHERE X.IGDOCO=A.WADOCO
AND X.IGCOST=B.IGCOST
AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
WHERE A.WADOCO='10004'
The statement above returns records as follow:
WADC WADOCO IGCOST DETAIL
WO 10004 A1 CURSOR STATEMENT : 4
CURSOR STATEMENT : 4
no rows selected
Why the CURSOR did not work?
The database version is Oracle Database 10g Release 10.2.0.4.0 - 64bit Production.
F3102 DATA:
IGDOCO IGDCTO IGLITM IGCOST
10004 WO 1KV90CPG2 A1
10004 WO 1KV90CPG2 B1
10004 WO 1KV90CPG2 C3
10004 WO 1KV90CPG2 D1
F4801 DATA:
WADCTO WADOCO
WO 10004
Edited by: user2319139 on 2010/3/2 上午 1:17
Edited by: user2319139 on 2010/3/2 上午 1:20Why this structure and not a join?
The cursor() function returns a cursor handle that needs to be processed - in other words, the client needs to fetch data from it. The Oracle® Database SQL Reference+ (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions005.htm#i1035107) describes it as being equivalent to a ref cursor handle.
Thus why are you creating ref cursor handles as a column in a SQL projection - where each row will have a "+nested+" ref cursor handle to process. What problem are you attempting to hack solve this way? -
Why the games are not working properly in my ipad after installing iOS7
Why games are not working properly in my ipad in my iOS 7
The games you mention would have been written and therefore designed for the previous version of iOS - you've most likely had a lot of updates lately in the run-up to the release of iOS 7 and if these games haven't had an update then chances are these will need to be adapted to iOS 7 by the developers if not working correctly.
Regards,
Steve -
Why the call is not working with android?
dear community,
I have been trying to make a phone call with someone who lives overseas but it keep saying call faild ! and we even tried to send text it doesnt deliver it at all.
but when i called my friend who is in same city it worked well
so what is the problem?
why its not working when we want to make a call with someone abroad?
I need a solution as soon as possible please
we both tried to update,delete, re-install the app its just never work T^T
Solved!
Go to Solution.When trying to call somebody abroad make sure you have chosen the correct country or reigien code upon opening the dial pad within skype we have the same phone's appart from mine is a s3 so this process will be exactly how I say as I was saying when. The skype dial pad is open just where the numbers display at the top of the screen right below you will see white writing chat the area code to the country you are trying to call.
I hope this help any more problems or if this persists cone back and I'll see if I can help some more if not then perhaps try customer services on the live chat link via the website
Adam.k -
The customer themes not working after installing support package.
Hi,
In a Web dynpro ABAP aplication that i made in a project, we have a customer theme. We transported the development of a new host that had a higher level of support package, and it has stopped working properly the customer theme. We´ve gone from 7.0 sp 9 to sp 20. Well, when you run the programa WD_THEMES, in the ALV appeared to me not the customer theme. So I exported the standar themes and with Eclipse, I´ve copied and re-created the customer theme by modifying the latter.
Once changed, I try exporting to the test environment and it is here that the level of support package was sp18. I could not import it because the version was not the same.In the development environment was 7.0.19.1 and in the test environment was 7.0.15.1.
The question that comes to me is when we have a customer theme in a environment and upgrade the level of support package, is the version of all themes listed in the program updated or only the standar themes?. If this is so, if we upgrade the level of support package we will have to re-export the standar themes, copy one of theme and go back to redo our theme, right?.
Thanks and hope your answer.Hi Karthik,
Let me clarify on "Not working"
It showned synchrozation successuffly but no data transfer between client and middleware and vs. For instance, the user never receive any new work orders, or their times never got transfered back to R/3. Even though, there is no error on the client.
It appear that step 1-4 are required otherwise, you get ABAP Runtime error (using ST22):
Runtime Error CALL_FUNCTION_NOT_FOUND
Except. CX_SY_DYN_CALL_ILLEGAL_FUNC
Date and Time 02/07/2007 08:12:27
After we performed step 1-4 but there were data transfer between client and R/3. The only way to get it working, we had to delete client and re-assign MAM 2.5 back to each users.
No, we didn't apply client patch SP19. We are still using SP16.
As we speak, everything is working because we had to re-assign MAM 2.5 for every users. but I hope we don't have to do this next time we apply another Support Package.
Thanks.
Dai Ly -
Please be informed me... with my battery or charger problems....
my iPad 2 charger is not working....
since I've got it for five days ago, I only use it for three times....
Are they going to replace it with a new one ?Most likely yes. There's a manufacturers warranty against defects for a year. I'd contact your place of purchase and talk to them about it.
-
The Youtube videos is loading slowly on my mac but it loads normally on other device. It always buzzing every single second.
One of the following steps should help.
1. Install Adobe Flash Player.
http://get.adobe.com/flashplayer/
Quit Safari.
Restart computer. Relaunch Safari.
2. Enable Plug-ins
Safari > Preferences > Security
Web Content: > "Enable Plug-ins".
or
Internet Plug-ins > "Allow all other plug-ins
3. Check whether you are currently in YouTube HTML 5 trial.
http://www.youtube.com/html5
At the bottom left of the page uncheck the box for
"You are currently in the HTML5 trial".
4. Reset Safari.
Click Safari in the menu bar.
From the drop down select "Reset Safari".
Uncheck the boxes next to all items.
Check the box next to "Remove all website data".
Click "Reset".
5. Turn off Extensions if any.
Safari > Preferences > Extensions
Best. -
Why the Nvidia is not working as the Graphic Device in the Screens???
I have a HP Envy 17, product number E0K90UA#ABA .It has the Nvidia GeForce GT 750M, and the Intel HD Graphics 4600.I want to use the GeForce as the main card. In the screens, but, just the Intel does it!I saw this as a problem in any posts... why HP does not do something about??? Is the windows 8.1 upgrade that make the wrong choice???I tryed delete the intel device in windows, I tryed update the Nvidia drivers. Tryed to instal the Nvidia Control PAnel... Please help! Tks, Luciano
hi,
You just need to write :
Select a d, b r
from table where c =
( select c from table2 where d = x)
where
d - display value
r - return value
regards,
kartik -
My message is about the battery longivity, in MAC pro, I noticed my mac pro slow and eat more battery, while it was Ok before I download App LION, I think App lion is not good App. Because of one significant reason, it too much utlize power.
I appreciate suggestions or solutions,Mmmm... The "Mac Pro" does NOT have a battery... The MacBook Pro does have a battery... and yes, there are many posts in this forum dealing with battery life and Lion. You might want to read those posts by doing a search...
-
Sorting for the procedure is not working
can you help why the sorting is not working here.I am running the below procedure to sort asc and desc and when I do sort in descending order by a different column it gives me a different rows sorted in desc order. what i
want the proecdure to do it to sort the recordset in asc and desc order without changing the selected rows
SQL> exec trnsportitems.gettrnsportitems(1,10,'itemnumber desc', :n, :c);
PL/SQL procedure successfully completed.
SQL> print c;
ITEMNUMBER R IDESCR IDESCRL IUNI IS I ITEM
2011.601/00002 1 TUNNEL CONSTRUCTION LAYOUT STAKING TUNNEL CONSTRUCTION LAYOUT STAKING LS 0
2011.601/00003 2 CONSTRUCTION SURVEYING CONSTRUCTION SURVEYING LS 05 N 2011601/00003
2011.601/00010 3 VIBRATION MONITORING VIBRATION MONITORING LS 05 N 2011601/00010
2011.601/00020 4 REVISED BRIDGE PLANS REVISED BRIDGE PLANS LS 05 N 2011601/00020
2011.601/00040 5 DESIGN DESIGN LS 05 N 2011601/00040
2011.601/00050 6 DESIGN AND CONSTRUCT DESIGN AND CONSTRUCT LS 05 N 2011601/00050
2011.601/08010 7 SUPPLEMENTAL DESCRIPTION SUPPLEMENTAL DESCRIPTION LS 05 N 2011601/08010
2011.601/08011 8 SUPPLEMENTAL DESCRIPTION SUPPLEMENTAL DESCRIPTION LS 05 N 2011601/08011
2011.601/08012 9 SUPPLEMENTAL DESCRIPTION SUPPLEMENTAL DESCRIPTION LS 05 N 2011601/08012
2011.601/08013 10 SUPPLEMENTAL DESCRIPTION SUPPLEMENTAL DESCRIPTION LS 05 N 2011601
10 rows selected.
SQL>
SQL> exec trnsportitems.gettrnsportitems(1,10,'idescr DESC', :n, :c);
PL/SQL procedure successfully completed.
SQL> print c;
ITEMNUMBER R IDESCR IDESCRL IUNI IS I ITEM
2563.613/00040 1 YELLOW TUBE DELINEATORS YELLOW TUBE DELINEATORS UDAY 05 N 2563613/00040
2563.602/00100 2 YELLOW TUBE DELINEATOR YELLOW TUBE DELINEATOR EACH 05 N 2563602/00100
2565.602/00940 3 YELLOW LED INDICATION YELLOW LED INDICATION EACH 05 N 2565602/00940
2502.602/00040 4 YARD DRAIN YARD DRAIN EACH 05 N 2502602/00040
2411.601/00030 5 WYE STRUCTURE WYE STRUCTURE LS 05 N 2411601/00030
2557.603/00041 6 WOVEN WIRE FENCE WOVEN WIRE FENCE L F 05 N 2557603/00041
2557.603/00043 7 WOVEN WIRE WOVEN WIRE L F 05 N 2557603/00043
2563.613/00615 8 WORK ZONE SPEED LIMIT SIGN WORK ZONE SPEED LIMIT SIGN UDAY 05 N 2563613/00
2563.613/00610 9 WORK ZONE SPEED LIMIT WORK ZONE SPEED LIMIT UDAY 05 N 2563613/00610
2557.603/00035 10 WOODEN FENCE WOODEN FENCE L F 05 N 2557603/00035
10 rows selected.Hi,
user13258760 wrote:
can you help why the sorting is not working here.I am running the below procedure to sort asc and desc and when I do sort in descending order by a different column it gives me a different rows sorted in desc order. what i
want the proecdure to do it to sort the recordset in asc and desc order without changing the selected rowsAs it is written now, the argument insortexp has nothing to do with the order of the rows. It is used only in computing column r, and column r is used only in the WHERE clause.
Are you really saying you don't want a WHERE clause at all in the main query: that you always want the cursor to contain all rows from itemlist that meet the 3 hard-coded conditions:
... WHERE item '2999509/00001' -- Did you mean != here?
AND iobselet = 'N'
AND ispecyr = '05'?
If so, change the main query WHERE clause:
WHERE r BETWEEN instartrowindex AND inendrowindexinto an ORDER BY clause:
ORDER BY rBy the way, you might want to make insortexp case-insensitive.
In your example, you're calling the procedure with all small letters in insortexp:
user13258760 wrote:
SQL> exec trnsportitems.gettrnsportitems(1,10,'itemnumber desc', :n, :c);but the output is coming in ASC ending order:
... ORDER BY
DECODE (insortexp, 'itemnumber ASC', item) ASC,
DECODE (insortexp, 'itemnumber DESC', item) DESC, -- capital 'DESC' won't match small 'desc'
DECODE (insortexp, 'idescr ASC', idescr) ASC,
DECODE (insortexp, 'idescr DESC', idescr) DESC,
DECODE (insortexp, 'idescrl ASC', idescrl) ASC,
DECODE (insortexp, 'idescrl DESC', idescrl) DESC,
DECODE (insortexp, 'iunits ASC', iunits) ASC,
DECODE (insortexp, 'iunits DESC', iunits) DESC,
DECODE (insortexp, 'ispecyr ASC', ispecyr) ASC,
DECODE (insortexp, 'ispecyr DESC', ispecyr) DESc,
SUBSTR (item, 1, 4) || '.' || SUBSTR (item, 5) -- This is the only non-NULL ORDER BY expression Why not declare a local variable:
sortexp VARCHAR2 (20) := LOWER (insortexp);and use that variable instead of the raw argument in the query:
... DECODE (sortexp, 'itemnumber asc', item) ASC,
DECODE (sortexp, 'itemnumber desc', item) DESC, ...Also, this site doesn't like to display the <> operator, even inside \ tags. When posting here, always use the other inequality operator, !=
Edited by: Frank Kulash on Jun 15, 2010 3:25 PM -
Sorting not working correctly for date field in alv report
Hi All,
My report displays many rows also containing date type fields of bldat,budat .
When I sort the report selecting field of type bldat budat the sorting is not correct for the year.
Ex:
Invoice doc dat
01-25-2011
01-21-2011
02-02-2011
10-25-2010
11-20-2010
If I use ascending then it is sorted as :
Invoice doc dat
01-21-2011
01-25-2011
02-02-2011
10-20-2010
10-25-2010
Why the sorting is not working correct for year.(2010 records should have been first).
The field wa_tab-bldat is of type char10.
It is populated as wa_tab-bldat = bsak-bldat.
Kindly suggest what can be done.The field wa_tab-bldat is of type char10
Then what it does is correct.
Refer to type datum...it will work -
I keep getting "Unable to connect" for my firefox. It was working yesterday and I turned my computer off. I can get to the web using internet explorer 9. I don't know why my firefox is not working. Everything else is working.
A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
See:
*https://support.mozilla.com/kb/Server+not+found
*https://support.mozilla.com/kb/Firewalls -
Why does the sync button not work in itunes when my ipod touch is connected
why does the sync button not work in itunes when my ipod touch is connected?
It's working for me in Acrobat XI:
I'd try logging into Acrobat.com from your browser, and log in with your Adobe ID. There may be a problem there:
workspaces.acrobat.com -
Why is the "plug in" not working every time i try to stream?
Why is the "plug in" not working every time i try to stream?
If you own "Sausage Fattner" you'll find a update in your email that solves this problem.
-
Why is the scroll function not working after accessing the voice feature in settings?
Why is the scroll function not working after accessing the voice feature in settings?
For some prerecorded audio files the Transpose slider will not work reliably. I found no clear pattern, when it does and when not.
If all fails, create a loop from the audio file. Select the region in the track and use the command "File: Add region to Loop library".
Set the current key and tempo, name the loop, and save the loop.
Now add it from the loop browser to a new track and delete your old track. The search field in the Loop browser will help you to find the loop quickly.
You will be able to transpose the sample as described above, like a regular loop.
For example - a audio file turned into a loop and transposed:
Maybe you are looking for
-
I've got a late 2006 mac mini which has begun to run extremely slowly. It has 2GB of RAM and is running OS X 10.6.6. I also have an external 500gb drive connected via USB (firewire 400 cable failed some time ago; haven't bothered to replace). I've tr
-
Crashes upon launching games...
When I try launch most games on my macbook pro (early 2011) it either sits in the dock or just crashes instantly after displaying. Ive tried completelly uninstalling and reinstalling, repairing disk permissions and even completelly reinstalling the O
-
Hi, I had done an uploading using call transaction method. I had handled the error records in Exel sheet. But the requirement is to show only the record having the error field. For example if we have an error record like Rec no date Be
-
Drop ship cycle - Clarification
Guys, In the Drop ship cylce the invoice for the goods delivered to the Customer is raised only after the shipped out by the supplier.*In this case with what statutory documents is the material moved from the supplier to the custome*r.Say for example
-
Hi, since 2 weeks (latest itune in fact) i can't install a new app on my iphone, after sync i read a message error on iphone and the icon of the app are still waiting.., any idea ?... Iphone 5 iOS 8.1.2 (i had same problem on iOS 7... i forget which