Display specific row to display multiple time in jsf table 11.1.1.2.0 with
HI ALL,
I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
I have to display the values in jsf frm table where i'm using DislayCertDetailVO . In dis VO i'm having a column no.of certificaties .taking dis column value when i navigate to other page jsf by selecting a specific row. here i have to display the selected row in multiple times based on the no.of.certificates column value.
I want to display specific row to display multiple time to repeat same row in a table in jsf based on the value from bean or table in database.
Edited by: user9010551 on Apr 28, 2010 6:14 AM
Edited by: user9010551 on Apr 28, 2010 10:33 PM
Hi, Trying it once more to give more clarity of my scenario.
I have to navigate from 1 screen to the other by picking a given table record/row from the 1st screen. While displaying the record on the 2nd screen the catch is that, I have to display it as many times as the value in a cell of the selected record.
eg.
screen 1
col1 col2 col3
2 order1 item1
[next]
On clicking next it should look like
screen2
col1 col2 col3 col4
order1 item1
order1 item1
where col3 and col4 will be editable by the user and col1 is the value depends how many times i have repeat the row/record
Hope this give more clarity.
Similar Messages
-
Display two rows at the same time
Hi,
How can I show on page two rows (same iterator) at the same time.
I can create on page input attributes and than in backing bean create two rows for iterator when I inserting data.
(or when showing data get two rows from iterator in backing bean and set value for input attributes)
Is there another way?
AndrejaBoth. To show and create.
I'm using ADF Web Services and I call method with array parametar.
User have to create two record using form (not table) and records must be visible at the same time.
I'm calling method that return array with two records, too.
I can show both record in table but I have to display them using form.
Andreja -
Search help - Display only 500 entries at one time from Internal Table
Hi,
I have an internal table with 1000000 entries. And when I use F4IF_INT_TABLE_VALUE_REQUEST function module to display the search help with internal table, it gives me dump. Can somebody help me - how to display limited values when we process search help?
Thanks,
SheelHi Sheel
u have a variable callcontrol-maxrecords in search help exit to limit the number of records.. check my weblog for more help: https://wiki.sdn.sap.com/wiki/x/du0 -
Sort Multiple Times on Hash Table
I have a hash table that the key is id, value is a string of first name, last name, and age.
for example:
Hashtable showHT = new Hashtable();
showHT.put(person.getId(), person); <--- person is an object that contains all information
How to do sorting?
If I want to sort by id, last name, first name, and age, how can I do it.
I just know how to do once:
for exmpale, sorting by id:
Vector v = new Vector(showHT.keySet());
Collections.sort(v);
for (int i = 0; i < v.size(); i++)
Integer key = (Integer) v.get(i);
String str = (String) showHT.get(key).toString();
out.println(key + ": " + str);
}How can I do the sorting by id, last name, first name, and age?
Thank you.Given your "design", it is trivial to sort by id -- use a TreeMap .
Beyond that, you're going to have to face a basic fact: your design sucks. You are abusing Strings.
You need to:
1. Define a Person class
2. Define multiple Person Comparators
At that point you are essentially done.
[http://java.sun.com/docs/books/tutorial/collections/algorithms/index.html#sorting]
edit: or did I misread your vague code snippet? What type is person? -
My iPhone is displaying a "iPhone is disabled" notification. It asked me to enter my password multiple times before locking me out. Can you help with this?
Hey there!
Unfortunetly, in situations like this, the ONLY other way to bypass that four-digit passcode and/or a disabled device is to connect to a computer with the most recent version of iTunes (11.1.3), connect the device in Recovery Mode and restore it to factory settings. Restoring to factory will completely wipe the device, including the four-digit passcode.
The steps to do so are outlined in http://support.apple.com/kb/ht1212
(If there is any other way to bypass the passcode, it would have to be third-party, which I am not familiar with any program that can, sorry!). -
How can I display the rows into columns.
How can I display the rows into columns. I mean
Create table STYLE_M
(Master varchar2(10), child varchar2(10));
Insert itno style_m
('MASTER1','CHILD1');
Insert itno style_m
('MASTER2','CHILD1');
Insert itno style_m
('MASTER2','CHILD2');
Insert itno style_m
('MASTER3','CHILD1');
Insert itno style_m
('MASTER3','CHILD2');
Insert itno style_m
('MASTER3','CHILD3');
Note : The Master may have any number of childs.
I want to display like this..
Master child1, child2, child3, .......(dynamic)
MASTER1 CHILD1
MASTER2 CHILD1 CHILD2
MASTER3 CHILD1 CHILD2 CHILD3
Sorry for disturbing you. Please hlp me out if you have any slution.
Thanks alot.
Ram DontineniHere's a straight SQL "non-dynamic" approach.
This would be used if you knew the amount of children.
SELECT
master,
MAX(DECODE(r, 1, child, NULL)) || ' ' || MAX(DECODE(r, 2, child, NULL)) || ' ' || MAX(DECODE(r, 3, child, NULL)) children
FROM
SELECT
master,
child,
ROW_NUMBER() OVER(PARTITION BY master ORDER BY child) r
FROM
style_m
GROUP BY
master
MASTER CHILDREN
MASTER1 CHILD1
MASTER2 CHILD1 CHILD2
MASTER3 CHILD1 CHILD2 CHILD3 Since you said that the number of children can vary, I incorporated the same logic into a dynamic query.
SET AUTOPRINT ON
VAR x REFCURSOR
DECLARE
v_sql VARCHAR2(1000) := 'SELECT master, ';
v_group_by VARCHAR2(200) := 'FROM (SELECT master, child, ROW_NUMBER() OVER(PARTITION BY master ORDER BY child) r FROM style_m) GROUP BY master';
v_count PLS_INTEGER;
BEGIN
SELECT
MAX(COUNT(*))
INTO v_count
FROM
style_m
GROUP BY
master;
FOR i IN 1..v_count
LOOP
v_sql := v_sql || 'MAX(DECODE(r, ' || i || ', child, NULL))' || ' || '' '' || ';
END LOOP;
v_sql := RTRIM(v_sql, ' || '' '' ||') ||' children ' || v_group_by;
OPEN :x FOR v_sql;
END;
PL/SQL procedure successfully completed.
MASTER CHILDREN
MASTER1 CHILD1
MASTER2 CHILD1 CHILD2
MASTER3 CHILD1 CHILD2 CHILD3I'll point your other thread to this one. -
Unable to filter the data for multiple time selections by dimensions
Hi to all,
I am new in MDX, i have a problem with my MDX query.
Calculated Member Logic:
SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember),[Measures].[Paid Amt])
Mdx Logic EX:
With Member [MEASURES].[Received_Amount]
AS
SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember)
,[Measures].[Paid Amt])
SELECT {[MEASURES].[Received_Amount]} On Columns
,[Date].[YQMD].[Year].members On Rows
From [Financial]
If i select multiple time periods in Rows, the query working fine.
but if select multiple periods in where clause it is not responding.
With Member [MEASURES].[Received_Amount]
AS
SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember)
,[Measures].[Paid Amt])
SELECT {[MEASURES].[Received_Amount]} On Columns
,[Speciality].[Specialty Name].[Specialty Name].members On Rows
From [Financial]
Where {[Date].[YQMD].[Year].&[2012-01-01T00:00:00],[Date].[YQMD].[Year].&[2013-01-01T00:00:00]}
Note:
Each of them is considered from the minimum date in the database to the selected time.
And also the data has to be filtered with respect to each drill down dimension.
If select multiple time periods the same formula has to be applied with respect to the dimensions.
Kindly help me to get out of this problem
Best Regards,
NagendraHi David,
Thanks for your response.
I have a measure, i have to get received_amount in the database from the database starting period to my selection period. Later i have to check by dimensions using same measure. if i select any one period by dimension it's coming, but if i select multiple
periods in filter level by dimensions it's showing no records.
For Ex:
I have four years data in my database (2010-2013).
In 2010
Bill_Amt
Bill_Date
Specialty received_amount
1000
10/01/2010 4
600
2000
04/08/2010 2
1000
In 2013
Bill_Amt
Bill_Date Specialty
received_amount
1500
22/02/2013 2
1200
2000
14/03/2013 1
800
In the above scenario,
By Period:
if i go by period i should get,
Jan'13 ---> 1600
Feb'13 ---> 2800
Mar'13 ---> 3600
Specialty By Single Period:
If i select Jan'13 by specialty
Specialty
received_amount
2 1000
4 600
If i select Feb'13 by specialty
Specialty
received_amount
2 2200
4 600
If i select Mar'13 by specialty
Specialty
received_amount
1 800
2 2200
4 600
Specialty By Multiple selection Periods:
The result should be sum of the individual selection periods by specialty as follows,
If i select Jan'13 & Feb'13 by specialty
Specialty
received_amount
2 3200
4 1200
If i select Jan'13 , Feb'13 & Mar'13 by specialty
Specialty
received_amount
1 800
2 5400
4 1800
Regards,
Nagendra -
Same Artist Lists Multiple Times
I'm confused on why a random artist will list itself multiple times when others will organize themsevles under one name with a drop menu. All the artist/album/track information is listed correctly but on Itunes and on the Ipod it will list it seperately instead of together. Anyone know how to fix that?
You need to make sure the artist name is spelt in an identical manner on every track. Even an extra space at the end of the name that you might not notice can make a difference. Try this even if everything looks the same. Sort your iTunes library by artist to bring your tracks together. Click on the first track by your artist, hold down the shift key and click on the last track in the list, this will highlight all in between. Right click on the list and choose Get Info, you get a dialogue box asking if you want to update multiple items, click Yes. If you see the "artist" field is left blank, then there is a discrepancy with that name. Overtype the artist name then click ok and this will ensure the whole selection is identical. Once you've done this connect your iPod, if you are updating automatically it will pick up the changes. If you are updating manually follow the instructions above with the iPod connected and carry out the changes directly on the iPod's song list.
If the name is not the issue, try this. Highlight all the songs for that artist, right click on them and select "apply sort field/same artist". -
Simple Event being Displayed Multiple Times
I have a simple event from the past that is being displayed multiple times. There are no other UIDs that are the same in iCal and no other event has the same SUMMARY name.
This particular event shows up 9 times. I can also reproduce the result from Automator by searching the specific calendar and looking for events in the date range.
The event is as follows:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Apple Inc.//iCal 3.0//EN
CALSCALE:GREGORIAN
BEGIN:VEVENT
SEQUENCE:5
TRANSP:OPAQUE
UID:EC6F5DBC-9BCC-4007-87F2-4A9C796C8551
DTSTART:20070330T000000
DTSTAMP:20071206T205550Z
SUMMARY:Babysit Paul
CREATED:20080919T173959Z
DTEND:20070401T120000
END:VEVENT
END:VCALENDAR
I am not very familiar with the format but it looks pretty straight forward.
The calendar is being synched via Mobile Me and is shared by another two computers. Not sure why this should be relevant since the entry on the computer and on Mobile Me both show this duplication of the event.
The reason I was looking at all was because of the hangs in iCal since I set the sync to automatic.
Any ideas welcome,
RichardPost Author: foghat
CA Forum: Data Connectivity and SQL
If all the records you are displaying in your report
truly are duplicated, you could try check off 'select distinct records'
from the File --> Report Options menu. While this may solve the problem for you, it would be worthwhile to determine if you are actually joining your tables correctly.
likely the records aren't an exact duplicate and the problem is with your join criteria. To verify this you can: start by removing table b from the database expert altogether. does
that solve your problem of multiple rows? If it does, you are not joining to table b correctlyIf you still have
multiple rows, loan_id on its own must not make a record unique. Is
loan_id duplicated in either of your tables? Just because loan_id is a
primary key does not necessarily mean it is unique - often a record
will have 2 or more primary keys and only when all primary keys are
used is the record unique. If you display all of the columns
from both tables, you will hopefully see some (maybe just one) columns
where the value is different between your seemingly duplicate data.
You may need to join on this value as well.as for the type of join you are using (inner, not enforced) you should be fine. Good luck -
Some fields in text box are being displayed multiple times
Hi All,
I am getting a strange error in Crystal Reports.
It is displaying a particular field multiple times while the query returns a single row.
I have used a text box in which I have dragged and dropped that field.
The version used to design the reports is Crystal Reports XI while client is having Crystal Reports 11.5.
Regards,
Misra P.Hi Salah,
Thanks a lot for quick reply.
1- I am using SQL queries ,not tables.
2- The field is in page header for one report and in group header for the other one.
3- If i grag and drop simply,then it shows correct result,i.e. a single record.
e.g i am displaying a customer name with title.
Like Mr XYZ(page header,query is returning a single row).
and it is being displayed as
Mr XYZ
Mr
Mr
Mr
Mr
Mr
Thanks again.
Regards,
Misra P. -
my iphone 3gs keeps showing the screen with the connect to itunes display, and I've restored it multiple times on different computers, but everytime it finishes restoring, it shows the display again and the computer says it needs to be restored. can anybody help me with this?
it was saying error code 1, i tried the things it said but none of it worked. now it is not showing an error code at all, it just keeps saying it needs to be restored.
-
How to display the rows number of times by giving the column values?
Hi All,
I want to display the rows number of times as the value exists in num column in the below query
with t AS
( SELECT 'venkatesh' NAME, 'hyd' LOC, 2 NUM FROM DUAL
UNION ALL
SELECT 'prasad' NAME, 'hyd' LOC, 3 NUM FROM DUAL
UNION ALL
SELECT 'krishna' NAME, 'hyd' LOC, 1 NUM FROM DUAL )
SELECT T.* FROM T
CONNECT BY ROWNUM <= NUM
Expected output:
venkatesh hyd 2
venkatesh hyd 2
prasad hyd 3
prasad hyd 3
prasad hyd 3
krishna hyd 1Edited by: Nag Aswadhati on Nov 1, 2012 12:34 AMNag Aswadhati wrote:
Hi All,
I want to display the rows number of times as the value exists in num column in the below query
Expected output:
venkatesh hyd 2
venkatesh hyd 2
prasad hyd 3
prasad hyd 3
prasad hyd 3
krishna hyd 1Using Connect By:-
with t AS
( SELECT 'venkatesh' NAME, 'hyd' LOC, 2 NUM FROM DUAL
UNION ALL
SELECT 'prasad' NAME, 'hyd' LOC, 3 NUM FROM DUAL
UNION ALL
select 'krishna' name, 'hyd' loc, 1 num from dual )
select t.name, t.loc
from t
connect by level <= num
and name = prior name
and (prior sys_guid() is not null);
NAME LOC
krishna hyd
prasad hyd
prasad hyd
prasad hyd
venkatesh hyd
venkatesh hyd
6 rows selected -
apple cinema display will not allays start
i need to plug and unplug multiple times for ti to start.
any thoughts ideas would be helpful thanksOkay, Mr. Easthills, you have an imac, but yet you mention apple cinema display....Hmmm, curious. you could try zapping the PRAM, hold down command (apple?), Option+P+R keys while rebooting mac. Hold down for 3 chimes, then let go and boot normally. I have this problem too, and I have a 20" widescreen apple cinema display(DVI connector--did I just date myself or what?),anyways, it's behaving itself now okay, but it tended to go dark right in the middle of whatever I was doing, and only unplugging the power cord to the display, and replugging in it would fix it for a while. sometimes it would happen again, and again the same solution. As to why it happens now with Yosemite, I don't know . This dear old monitor has lasted me about 8 years and it's still going just fine.. not state of the art anymore, though...
oh well, good luck to you
John B -
Generic function to display a specific row from any table
Hi all,
I need some help to write a function in PL/SQL or Dynamic SQL (or both), to write a function that would take in parameters only the unique ID of the row to display and the name of the table to display (that could be any table with any format).
Actually we don't know in advance which table will be accessed, so we don't know the columns and their types until the function is called.
Once I get the row, I want to return a small table with a size of only one line containing the details of the row I looked for.
So the signature of the function would be something like: CREATE function displayDetailedRowFromAnyTable(uniqId in varchar2(25), tableName in varchar2(25)).
Hope the description is clear. I found in some forums some details about this kind of problems; however, the structure of the tables (ie. the columns name and their types) is always known in advance. In my case, I don't know those details until run time.
Any help would be greatly appreciated.There is a built in "function" to do this. It's called "SELECT" and it's available through the SQL engine. You give it the table name and the ID you want and it can return you all the columns from that table...
e.g.
SELECT *
FROM <table_name>
WHERE id = <required_id>If you truly want a generic dynamic SQL then you'll have to code it as an ANYTYPE (as already mentioned above). Although this will make your code very complex and difficult to maintain.
e.g. of defining your own dynamic pipelined function using anytype ...
create or replace type NColPipe as object
l_parm varchar2(10), -- The parameter given to the table function
rows_requested number, -- The parameter given to the table function
ret_type anytype, -- The return type of the table function
rows_returned number, -- The number of rows currently returned by the table function
static function ODCITableDescribe( rtype out anytype, p_parm in varchar2, p_rows_req in number := 1 )
return number,
static function ODCITablePrepare( sctx out NColPipe, ti in sys.ODCITabFuncInfo, p_parm in varchar2, p_rows_req in number := 1 )
return number,
static function ODCITableStart( sctx in out NColPipe, p_parm in varchar2, p_rows_req in number := 1 )
return number,
member function ODCITableFetch( self in out NColPipe, nrows in number, outset out anydataset )
return number,
member function ODCITableClose( self in NColPipe )
return number,
static function show( p_parm in varchar2, p_rows_req in number := 1 )
return anydataset pipelined using NColPipe
create or replace type body NColPipe as
static function ODCITableDescribe( rtype out anytype, p_parm in varchar2, p_rows_req in number := 1 )
return number
is
atyp anytype;
begin
anytype.begincreate( dbms_types.typecode_object, atyp );
atyp.addattr( to_char(to_date(p_parm,'MONYYYY'),'MONYY')
, dbms_types.typecode_varchar2
, null
, null
, 10
, null
, null
atyp.endcreate;
anytype.begincreate( dbms_types.typecode_table, rtype );
rtype.SetInfo( null, null, null, null, null, atyp, dbms_types.typecode_object, 0 );
rtype.endcreate();
return odciconst.success;
exception
when others then
return odciconst.error;
end;
static function ODCITablePrepare( sctx out NColPipe, ti in sys.ODCITabFuncInfo, p_parm in varchar2, p_rows_req in number := 1 )
return number
is
elem_typ sys.anytype;
prec pls_integer;
scale pls_integer;
len pls_integer;
csid pls_integer;
csfrm pls_integer;
tc pls_integer;
aname varchar2(30);
begin
tc := ti.RetType.GetAttrElemInfo( 1, prec, scale, len, csid, csfrm, elem_typ, aname );
sctx := NColPipe( p_parm, p_rows_req, elem_typ, 0 );
return odciconst.success;
end;
static function ODCITableStart( sctx in out NColPipe, p_parm in varchar2, p_rows_req in number := 1 )
return number
is
begin
return odciconst.success;
end;
member function ODCITableFetch( self in out NColPipe, nrows in number, outset out anydataset )
return number
is
begin
anydataset.begincreate( dbms_types.typecode_object, self.ret_type, outset );
for i in self.rows_returned + 1 .. self.rows_requested
loop
outset.addinstance;
outset.piecewise();
outset.setvarchar2( self.l_parm );
self.rows_returned := self.rows_returned + 1;
end loop;
outset.endcreate;
return odciconst.success;
end;
member function ODCITableClose( self in NColPipe )
return number
is
begin
return odciconst.success;
end;
end;
And to use it
SQL> select * from table( NColPipe.show( 'JAN2008' ) );
JAN08
JAN2008 -
Display Characteristics multiple times
Dear All,
In BeX Query output i need to display the Characteristics multiple times. Usually the Chars are grouped together and displayed once.
Request you to please let me know if this is possible by changing any property setting.
Regards,
Nitin S.
Have raised the same Query under "BI Suite - Business Explorer".Go to Query properties --> Display tab and uncheck "Hide Repeated Key Values". Please let me know if you are using WAD as additional step is required in that case
Maybe you are looking for
-
Getting Error while Publishing Web Application using weblogic workshop 10.2
Hi all, I am trying to create a simple webapplication using the weblogic workshop studio for weblogic. I have created a domain using the configration wizard. when i am trying to deploy the newly created dynamic web project EAR in to the server, its t
-
Batch Change "Date Modified" to match Exif Data After iPhoto Export
Among several other posts about similar situations, I have found none that directly and simply resolve this issue. My wife imported a bunch of photos into iPhoto directly, but I wanted them in a folder on the hard drive. I pulled them out of iPhoto i
-
IMovie 10 exports .mp4 file issue
I am trying to get an edited movie into mpeg format to burn to DVD. I have exported the file to .mp4 format but when using Burn to convert to mpeg error message states the .mp4 file has no video/audio attached - why? In this latest version there is n
-
Organizational Data not downloaded to MSA
Hello SAP; We are trying to set up MSA 5.0 SP06 and want to download our organizational data to MSA. What we have done; 1. Marked the units which we want to download as sales org, sales office,etc. 2. Marked the units which we want to download "Obj.
-
Finder "Crashes" when looking in certain folders
Ok, so whenever I go to certain folders, the first time I go to the folder, the finder windows, the menu bar up top, and all the desktop icons all disappear, then reappear. however, if I browse to that folder again, they will all disappear, and not c