How to persist rows in ADF iterator using JPA
I am using Jdeveloper 11g R (11.1.2.3) & weblogic 10 G
In my pages I use JSF & Facelet
When using ADF face + EJB3 session beans and JPA , how I can find the rows inserted , updated or removed from Iterator on the
page that then use persist,update or remove for related entity in EJB session beans?
Is there any pattern for that?
Thanks
I would suggest adding CSS style classes. 1 for the 'good' students and 1 for the 'normal' students.
Then use the EL in like you provide but use the name of the styleclass (in the styleClass prop).
This should be added to every column value.
Similar Messages
-
How to display row to columns without using pivot keyword
hi,
could someone help me how to dispaly rows into columns without using pivot keyword and actuall my scenario is,iam having two tables with names and sample data is shown below
ID PROJECT MID MINAME TASKID TASKNAME
1 PROJ1 1 AA 100 PR1_TASK1
1 PROJ1 3 CC 102 PR1_TASK3
1 PROJ1 4 DD 103 PR1_TASK4
1 PROJ1 5 EE 104 PR1_TASK5
1 PROJ1 6 FF 105 PR1_TASK6
2 PROJ2 5 EE 114 PR2_TASK1
2 PROJ2 6 FF 115 PR2_TASK2
2 PROJ2 7 GG 116 PR2_TASK3
2 PROJ2 8 HH 117 PR2_TASK4
2 PROJ2 9 JJ 118 PR2_TASK5
2 PROJ2 10 KK 119 PR2_TASK6
2 PROJ2 1 AA 120 PR2_TASK7
The output should display project and count of tasks in particular milestone as shown below
project AA BB CC DD EE FF GG HH JJ KK
1 2 0 1 5 3 2 0 2 1 0
2 1 2 0 2 1 0 2 4 3 1
Thanks in advance ,
vvrWITH t1 AS
(SELECT 1 ID,
'PROJ1' PROJECT,
1 MID,
'AA' MINAME,
100 TASKID,
'PR1_TASK1' TASKNAME
FROM DUAL
UNION
SELECT 1, 'PROJ1', 3, 'CC', 102, 'PR1_TASK3'
FROM DUAL
UNION
SELECT 1, 'PROJ1', 4, 'DD', 103, 'PR1_TASK4'
FROM DUAL
UNION
SELECT 1, 'PROJ1', 5, 'EE', 104, 'PR1_TASK5'
FROM DUAL
UNION
SELECT 1, 'PROJ1', 6, 'FF', 105, 'PR1_TASK6'
FROM DUAL
UNION
SELECT 2, 'PROJ2', 5, 'EE', 114, 'PR2_TASK1'
FROM DUAL
UNION
SELECT 2, 'PROJ2', 6, 'FF', 115, 'PR2_TASK2'
FROM DUAL
UNION
SELECT 2, 'PROJ2', 7, 'GG', 116, 'PR2_TASK3'
FROM DUAL
UNION
SELECT 2, 'PROJ2', 8, 'HH', 117, 'PR2_TASK4'
FROM DUAL
UNION
SELECT 2, 'PROJ2', 9, 'JJ', 118, 'PR1_TASK5'
FROM DUAL
UNION
SELECT 2, 'PROJ2', 10, 'KK', 119, 'PR1_TASK6'
FROM DUAL
UNION
SELECT 2, 'PROJ2', 1, 'AA', 120, 'PR1_TASK7' FROM DUAL)
SELECT id project,
NVL((SELECT mid
FROM t1
WHERE miname = 'AA'
AND id = t_out.id),
0) AA,
NVL((SELECT mid
FROM t1
WHERE miname = 'BB'
AND id = t_out.id),
0) BB,
NVL((SELECT mid
FROM t1
WHERE miname = 'CC'
AND id = t_out.id),
0) CC,
NVL((SELECT mid
FROM t1
WHERE miname = 'DD'
AND id = t_out.id),
0) DD,
NVL((SELECT mid
FROM t1
WHERE miname = 'EE'
AND id = t_out.id),
0) EE,
NVL((SELECT mid
FROM t1
WHERE miname = 'FF'
AND id = t_out.id),
0) FF,
NVL((SELECT mid
FROM t1
WHERE miname = 'GG'
AND id = t_out.id),
0) GG,
NVL((SELECT mid
FROM t1
WHERE miname = 'HH'
AND id = t_out.id),
0) HH,
NVL((SELECT mid
FROM t1
WHERE miname = 'JJ'
AND id = t_out.id),
0) JJ,
NVL((SELECT mid
FROM t1
WHERE miname = 'KK'
AND id = t_out.id),
0) KK
FROM (SELECT DISTINCT id FROM t1) t_out
PROJECT AA BB CC DD EE FF GG HH JJ KK
1 1 0 3 4 5 6 0 0 0 0
2 1 0 0 0 5 6 7 8 9 10As I understand, you want MID of MINAMEs displayed ? But output is not like yours.. What is exactly your requirements? -
How to add row in presentation by using add button in Oracle BPM 10G
Hi,
I have one presentation, in that i used some attributes as group. After launching workspace when click on+ sign iam getting new row, but instead of using that I want to use addrow button to get new row and same for remove row. please help me in creating addrow button.Hi,
have a look at polymorphic view objects
http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/bcadvvo.htm#CEGDCCCB
Frank -
Moving Rows in ADF Table Using Drag and Drop
I implemented a drag and drop functionality it works fine, I want to accomplish the following functionality:
The user selects the rows and what if he drags the selected rows and wants to move to section beyond the limit of the table I want to scroll the table in the direction the user is dragging.
I think it should be a default behavior in the ADF table but it doesn't, could you please anyone tell me how to scroll the table while dragging the selected rows?
Thank you,What make you think that this is a default behavior?
Adf tables a data bound. So the data appears in an order (mostly defined by a sort condition on the db).
Even if you implement this behavior (which is possible but hard to do) you loose the new order by the next round trip to the db.
You may try to use trinidad tables but then you don't have the drag & drop featur (I guess).
Timo -
How to select rows in adf faces table
Hi guys
im new to adf faces .I created a adf faces table with some data.My task is to select one row and if i click tht row, the data of tht row will be displayed in an input text fileds.How can i select a row in a adf faces table and give actions to rows...i read so many tutorials...none of them didnt give a correct idea....plz help me...
thanks in advance..
rajivYou're here in the Sun JSF forum, not in the Oracle JSF forum.
Try here: JDeveloper and ADF
If the ADF datatable is technically comparable with the RI datatable, check http://balusc.xs4all.nl/srv/dev-jep-dat.html to get some insights how to retrieve the selected row object. -
How to stop row.setAttribute changing iterator?
Hi gang
I really could do with some help here please!
We have a data-action which creates a new row, then executes the following code:
protected void findForward(DataActionContext actionContext) throws Exception
DCBindingContainer bc = actionContext.getBindingContainer();
DCIteratorBinding iterator = bc.findIteratorBinding("ClinicalDataElementSetsView1Iterator");
HttpSession session = actionContext.getHttpServletRequest().getSession();
String cesId = session.getAttribute("CESCesId") != null ? session.getAttribute("CESCesId").toString() : null;
Row row = iterator.getCurrentRow();
row.setAttribute("CesId", cesId); // SUSPECT LINE
super.findForward(actionContext);
}When navigating to an UIX input-form which displays ClinicalDataElementSetsView1Iterator, if I comment out the SUSPECT LINE from above, the new record is correctly displayed.
However if I leave this line in, when navigating to the UIX page, the iterator is reset to the first record, not the newly created record.
How do I stop this from happening such that the new record is displayed?
Any help greatfully appreciated.
Cheers,
CM.
PS. JDev 10.1.2I could really do with some help with this one please.
-
How to transpose rows into multiple columns using pivot table
I have 1 row containing 12 columns with value "JAN", "FEB", "MAR", "J-1","F-1","M-1","J-2","F-2","M-2","J-3","F-3","M-3"
I want to display as
JAN J-1 F-1 M-1
FEB J-2 F-2 M-2
MAR J-3 F-3 M-3
How do I achieve the above?Today you have only 3 months JAN, FEB, MAR. Is it always the same number of columns. What if there are more months added to this row?
Is your data really coming from relational source or some sort of text file?
There is a better way to do this in narrative view using HTML if your requirement is just to show them in multiple rows and do some calculations.
Go to Narrative View;
In prefix, use <html> <table>
In 'Narrative' text box add something like this
<tr> <td> @1 </td> <td> @4 </td> <td> @7 </td> </tr>
<tr> <td> @2 </td> <td> @5 </td> <td> @8 </td> </tr>
<tr> <td> @3 </td> <td> @6 </td> <td> @9 </td> </tr>
In Suffix, use </table> </html>
You can also add simple calculations like sum etc at the very bottom of these rows as grand totals.
kris -
How to insert row in usercreat table(useing HTML tags)in jtextPane
hi all
i creat userdefined table in JTextPane like this
tableBody.toString() -- iam passeing table tags
htmlKit.insertHTML(htmlDoc, caretPos, tableBody.toString(), 0, 0, HTML.Tag.TABLE);
i want to insert a row in table.. i did like this
htmlKit.insertHTML(htmlDoc, caretPos, sRow.toString(), 0, 0, HTML.Tag.TR); it working..
but it inserting in current location.. i want to insert ending of table...
pls help meHi,
Follow the below logic,
PROCESS BEFORE OUTPUT.
MODULE STATUS_0001.
MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in
ITAB
LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
WITH CONTROL CTRL_LP_D516
CURSOR CTRL_LP_D516-CURRENT_LINE.
The following module moves data to control
MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT GT_CTRL_LP_D516.
ENDLOOP.
MODULE EXIT AT EXIT-COMMAND.
MODULE USER_COMMAND_0001. --> Here you have to take out the values from table control and update database table
Reward points if helpful.
Thanks and regards,
Mallareddy Rayapureddy,
Munich, Germany. -
How to create datasource for standalone application using JPA
In the persistence.xml configuration file, we have data source got it from web server configuration file, and created by server like Jboss or tomcat.
I just wonder how to create this same data source via Java stand-alone application?
I have Java standalone application embedded Jetty server running with JPA module. Question is how to setup or create data source from my Java application just like web server; which called by persistence.xml?
Thanks,Hello,
Sharepoint deployment is completely different. I don't think you can deploy any solution as wizard in prod so you have to first identify what you want to deploy.
If you just want to deploy only web application then backup/restore process is available in sharepoint. you can use STSADM or powershell to deploy your web app.
http://technet.microsoft.com/en-us/library/ee748618%28v=office.14%29.aspx
If there is any custom code or .NET code then create a WSP package and deploy it on prod. If you have multiple WSP's then create a batch file (as exe package) then run this package on prod.
http://www.ironspeed.com/Designer/9.1.1/WebHelp/Part_VI/SharePoint_Solution_Package_WSP_Deployment.htm
Let us know in case any doubt
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to Store java.util.Map object using JPA
Hi
I have a cache where the underlying object is just a map (HashMap for example).
I'd like to create a JPA backing store for this cache.
Is there a way to do that, or can JPA only store objects that are JPA annotated?
Thanks
Edited by: mesocyclone on Dec 11, 2008 4:22 PMHi,
I believe that the objects that the Map contains would need to be JPA annotated.
--Tom -
Hide row in planning book using BADI /SAPAPO/ADVX USER_EXIT_MACRO
Dear All,
I would like to have your suggestion how to hide row in planning book using BADI USER_EXIT_MACRO
the requirement is when I drill down the object by region, the first line will be "total" and the second and third line
will be region like "north" and "south".
I want to show only "total" line and hide region detail.
Would it be possible to do this using the badi USER_EXIT_MACRO?
Thank you in advance,
BoonsomHi,
In the Interactive Planning, you see a Cap-like icon on the top-left...... click on it and choose the characteristic (say, region) and say ok. You will then be able to see the Region just on top of the planning table. When you load the data, by default, it will have "Total" as option, and with your wish, you can choose to see the data for a particular region (North, South etc).
Regards,
Guru Charan. -
How to get fixed results using JPA
Hi
I have a table with lot of rows, when I querry, it is taking a lot of time and I am displaying that many rows in UI in single table. So it is not scaling well.
SO I am planing to show x number of row in on page. So for that to achieve, how do I querry the db (derby) using JPA to get first 25 rows, next 25 rows...
I appricate any help
thanksi think you can have a serial number column in your table and you keep track of that serial number. I mean pass it to your method along with the size of page. Lets say if the number starts from 0 then you can calculate the first page using starting number + page size, if your page size is 25 then you will get 0+25 =25 and you can use the result to query from database like;
select * from myTable where rowNo<=25
You can store this number (Now 25) in user's session and pass it to the method. -
ADF Pagination using Navigation Buttions
Hi,
I am using Jdev11.1.1.5 Can any one please let me know how to do pagination in adf application using buttons like first,next,previous,last.
Thanks,
Srinivas.Just to clarify - you are aware that the table has built in pagination and that it doesn't actually fetch the thousands of records into the client in one go - right?
As you scroll down more records are fetched as needed.
If you still want to have the "next 10" "previous 10" buttons in there you can use this solution:
http://codeplay.net/2011/04/21/simple-adf-traditional-pagination-2-with-business-component/ -
How to ADD new Row In ADF Table?
Hello!
I need to insert a row in table when clicking on the "New", can someone help me? Citing some examples? I'm lost.
My table is called tableArchive, and I need to add a line on it.
This table is a list called listArchive, which is associated to this table.On the button drag drop createInsert operation from DataContol .
go to data control->open your table VO-> open operatin inside that.-> drag drop the createInsert.Put id of button into partial trigger of table.make button autosubmit to true.
see this
Creating a New Row Using an ADF Iterator Binding
Unwinding ADF: How to add a new row at the end of the ADF Table -
How to clear rows from iterator and re-fetch fresh data from the table ?
Hi,
I am using JDev 11.1.1.2.0
I have generated JPA Service Facade and by using it, I have created Data Control which finally I have dragged & dropped on my .jsff file.
In viewObject, there is a method clearCache() to clear the viewObject data.
Iterator has also one method clear() but when it invoked, ADF framework throws StackOverFlow error.
So, I want to clear my iterator before calling executeQuery() method.
How Can I clear it ?
Because In my case if I run executeQuery() method on DCIteratorBinding, it is not getting updated with the lates value from DB table.
So I want to clear all the rows from iterator and then want to call executeQuery() method to updated latest data from DB tables.
I have also tried below peace of code to refresh iterator but still iterator getting updated with two same rows () while in DB it is proper.
FacesContext fctx = FacesContext.getCurrentInstance();
ValueBinding dcb =
fctx.getApplication().createValueBinding("#{bindings}");
DCBindingContainer iteratorbindings =
(DCBindingContainer)dcb.getValue(fctx);
DCIteratorBinding dciter =
iteratorbindings.findIteratorBinding(<iteratorname>);
dciter.releaseData();
dciter.executeQuery();
dciter.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
regards,
devangHi,
Have you try to drag and drop to your refresh or query button an "Execute" operation from the Data Control Pallete?
We are using JPA/ EJB Session Beans and that works for us.
regards,
pino
Maybe you are looking for
-
Confirmed quantity in sales order and credit check
Due to the fact that we are using automatic credit check , for the sales orders that are not blocked due to credit control the confirmed quantity is made to 0 until some person responsible unblocks the sales order. My issue is how to prevent the conf
-
Solution to the Outlook '03 Calendar & Contact Issue's (Windows Only)
This solution refers to the problems with syncing Outlook 2003 (contacts & calendar) with the 5th generation Ipod for Windows(30Gb or 80gb). In Outlook 2003 your contacts (in order to be synced with Itunes) must be listed in the default contact file
-
I recently purchased a workstation that is eligible for the upgrade to Windows 7. Where do I go to register my request for a free upgrade.
-
As stated in the question on any website I open regardless of whether it is a new tab or just a new destination, the cursor focuses on the address bar and makes logging in to sites very infuriating. Any help is much appreciated.
-
Quotation - Sales - Billing Overview
Dear all, We are looking for an overview report which shows the flow from the quotation documents + item, sales documents + item and the Billing documents + item. In this flow we would like to see the document numbers themselves, the throughput times