JSF-Data Table displaying all data in a single row
Hi Guys,
Im new to JSF, im trying to display the details from a List in a data table, but all the details are getting displayed in a single cell instead of displaying as rows, can someone help me with this problem?
You need post your code so that we can view it.
This is an example of dataTable
<h:dataTable border="1" id="qresults" cellpadding="4" styleClass="subjectQRTbl" cellspacing="4" value="#{wormingList.worming}" var="bbr" first="#{wormingList.firstRowIndex}" rows="#{wormingList.noOfRows}" rowClasses="evenRow,oddRow">
<h:column>
<f:facet name="header">
<h:outputText escape="false" value="Vaccination Date" />
</f:facet>
<h:commandLink id="locnum" action="#{appAction.getWormingRecord}" title="Update Worming History Record">
<h:outputText value="#{bbr.dateWormed}">
<f:convertDateTime pattern="MM/dd/yyyy"/>
</h:outputText>
<f:param name = "recordId" value ="#{bbr.id}" />
</h:commandLink>
</h:column>
<h:column>
<f:facet name="header" >
<h:outputText escape="false" value="Vaccination Type" />
</f:facet>
<h:outputText value="#{bbr.type}" styleClass="readOnly" />
</h:column>
<h:column>
<f:facet name="header" >
<h:outputText value="Vaccination Dosage" />
</f:facet>
<h:outputText value="#{bbr.dosage}"styleClass="readOnly"/>
</h:column>
</h:dataTable>
Hope this helps
Similar Messages
-
How to display all data on one page in web app
Hello.
So I have web app JSF (IceFaces framework) + JBoss all Crystal Report working perfectly. So I have page with Crystal Report tags (e.g.
<bocrv:reportPageViewer reportSource="#{crystalReport.reportPath}" ...
in this report I have table with some data (data from DB) and I want to display this data on one page. Unfortunately now this data are moving to the next page and unfortunately I even donu2019t know how switch to the next page (I see only info e.g. 1with 2).
So how to display this data on one page if its impossible how to torn on pagination.So I canu2019t do this, I canu2019t display all data on one page (until Iu2019m using JSF tags)?
In JSF tags Iu2019m setting only path to file. In my bean Iu2019m using u201CReportClientDocumentu201D object itu2019s easy way to load report file (u201Copenu201D method) and set parameters (u201CgetDataDefController().getParameterFieldController()u201D method) and also connect to data base (u201Clogonu201D method) but I havenu2019t this property u201CsetSeparatePages(boolean)u201D.
Maybe Iu2019m doing this wrong and there is a simpler way maybe I can use somehow u201CCrystalReportVieweru201D please give my any advice. -
Display all dates between date range (Time Dimension left outer join Fact)
All,
I have done some searching around this issue but within all the posts regarding date variables, date prompts and date filtering I haven't seen one exactly answering my issue (maybe they are and I just dont have my head around it correctly yet).
My report requirement is to allow a user to select a start day and an end day. The report should show all activity between those two days - AND display 0/null on days where there is no activity. That second part is where I am getting hung up.
The tables in question are:
TimeDim
EventFact
CustomerDim
My BMM is setup as follows:
TimeDim left outer join EventFact
CustomerDim inner join EventFact
If I run a report selecting DAY from TimeDim and a measure1 from EventFact with day range 1/1/2010 - 12/31/2010 .. I get a record for every day and it looks perfect because of the left outer join between TimeDim and CustomerDim.
But .. if I add in a field from CustomerDim, select TimeDim.DAY, CustomerDim.CUSTNAME, EventFact.MEASURE1, OBIEE only returns records for the days that have EventFact records.
This is due to the fact that the TimeDim is still outer joined into EventFact but adding in CustomerDim makes OBIEE setup an inner join between those tables which then causes only data to be returned where EventFact data exists.
There is a way around this in this simple case and that is to define the relationship between CustomerDim and EventFact as an outer join as well. This will give the desired effect (but an outer join between these two tables is not the true relationship) and as I add additional dimensions and add additional logical sources to a single dimension in the BMM it gets complicated and messy.
Ive also messed with setting the driving table in the relationship, etc.. but it has not given the desired effect.
Has anyone ever encountered the need to force display all dates within a specfied range with a fact table that may not have an entry for every date?
Thanks in advance.
K
Edited by: user_K on Apr 27, 2010 11:32 AMIt worked!!!* Even my time drill downs and date based filtering still work!
That is awesome. Never would have thought of that intuitively.
Now, just need a little help understanding how it works. When I run my report and check the logs I can see that two queries are issued:
Query 1: Joins the fact table to all the associated dimensions. I even changed all the relationships to inner joins (which is what they truly are). And calculates the original measure. If I copy and paste this query into sql developer it runs fine but only returns those rows that joined to the time dimension - which is what was happening before. It is correct but I wanted a record for every time dimension record.
Query 2: Looks like the following:
select sum(0)
from timedim
where date between <dateprompt1> and <dateprompt2>
group by month *<--* this is the time dimension level specified in Query 1, so it knows to aggregate to the month level as was done in query 1
Final Question: So what is OBIEE doing ultimately, does it issue these two requests and then perform a full outer join or something to bring them together? I couldn't see anywhere in the log a complete query that I could just run to see a similar result that I was getting in Answers.
Thanks for all the help .. Id give more points if I could.
K -
How to display all dates of month in oracle forms..pl send full code
hai every one.
i have multiple rows of block.
i want to display all dates in that block.Hello,
+1. Complete Forms Solution described in the Dynamic poplist in a multi-record item. thread.+
This solution is based on dynamic list population with appropriate predefined record group (the number of such predefined record groups could be rather big --> 1 Continents*Countries.+
Record Groups can be totally dynamic, so you don't need to have them pre-existing at runtime.
Francois -
Calendar Tile on Windows 8.1 displaying incorrect date for icloud calendar but date icon displays correct date on iPhone 5 and iPad Air. Date on Windows 8.1 is correct. Thank you.
Try doing a reset on your phone. Sounds like your carrier's time set is not getting through to your device. If the reset doesn't do it, then go to Settings>General>Reset>Reset Network Settings. That should do it.
-
Master data tables and Transaction data Tables
Hello Gurus,
Please let me know how to know which table belongs to master data and which table belongs to transaction data.
for FICO module.
Does any one have specific material relating to master data table and transaction data tables.
Thanks
Edited by: Manu Rathore on Jan 18, 2012 4:38 AMHi Manu,
Find attached table relation diagram by Christopher Solomon. It is one of the very comprehensive chart on this topic.
deleted
Warm regards,
Murukan Arunachalam -
How can i get all these values in single row with comma separated?
I have a table "abxx" with column "absg" Number(3)
which is having following rows
absg
1
3
56
232
43
436
23
677
545
367
xxxxxx No of rows
How can i get all these values in single row with comma separated?
Like
output_absg
1,3,56,232,43,436,23,677,545,367,..,..,...............
Can you send the query Plz!These all will do the same
create or replace type string_agg_type as object
2 (
3 total varchar2(4000),
4
5 static function
6 ODCIAggregateInitialize(sctx IN OUT string_agg_type )
7 return number,
8
9 member function
10 ODCIAggregateIterate(self IN OUT string_agg_type ,
11 value IN varchar2 )
12 return number,
13
14 member function
15 ODCIAggregateTerminate(self IN string_agg_type,
16 returnValue OUT varchar2,
17 flags IN number)
18 return number,
19
20 member function
21 ODCIAggregateMerge(self IN OUT string_agg_type,
22 ctx2 IN string_agg_type)
23 return number
24 );
25 /
create or replace type body string_agg_type
2 is
3
4 static function ODCIAggregateInitialize(sctx IN OUT string_agg_type)
5 return number
6 is
7 begin
8 sctx := string_agg_type( null );
9 return ODCIConst.Success;
10 end;
11
12 member function ODCIAggregateIterate(self IN OUT string_agg_type,
13 value IN varchar2 )
14 return number
15 is
16 begin
17 self.total := self.total || ',' || value;
18 return ODCIConst.Success;
19 end;
20
21 member function ODCIAggregateTerminate(self IN string_agg_type,
22 returnValue OUT varchar2,
23 flags IN number)
24 return number
25 is
26 begin
27 returnValue := ltrim(self.total,',');
28 return ODCIConst.Success;
29 end;
30
31 member function ODCIAggregateMerge(self IN OUT string_agg_type,
32 ctx2 IN string_agg_type)
33 return number
34 is
35 begin
36 self.total := self.total || ctx2.total;
37 return ODCIConst.Success;
38 end;
39
40
41 end;
42 /
Type body created.
[email protected]>
[email protected]> CREATE or replace
2 FUNCTION stragg(input varchar2 )
3 RETURN varchar2
4 PARALLEL_ENABLE AGGREGATE USING string_agg_type;
5 /
CREATE OR REPLACE FUNCTION get_employees (p_deptno in emp.deptno%TYPE)
RETURN VARCHAR2
IS
l_text VARCHAR2(32767) := NULL;
BEGIN
FOR cur_rec IN (SELECT ename FROM emp WHERE deptno = p_deptno) LOOP
l_text := l_text || ',' || cur_rec.ename;
END LOOP;
RETURN LTRIM(l_text, ',');
END;
SHOW ERRORS
The function can then be incorporated into a query as follows.
COLUMN employees FORMAT A50
SELECT deptno,
get_employees(deptno) AS employees
FROM emp
GROUP by deptno;
###########################################3
SELECT SUBSTR(STR,2) FROM
(SELECT SYS_CONNECT_BY_PATH(n,',')
STR ,LENGTH(SYS_CONNECT_BY_PATH(n,',')) LN
FROM
SELECT N,rownum rn from t )
CONNECT BY rn = PRIOR RN+1
ORDER BY LN desc )
WHERE ROWNUM=1
declare
str varchar2(32767);
begin
for i in (select sal from emp) loop
str:= str || i.sal ||',' ;
end loop;
dbms_output.put_line(str);
end;
COLUMN employees FORMAT A50
SELECT e.deptno,
get_employees(e.deptno) AS employees
FROM (SELECT DISTINCT deptno
FROM emp) e;
DEPTNO EMPLOYEES
10 CLARK,KING,MILLER
20 SMITH,JONES,SCOTT,ADAMS,FORD
30 ALLEN,WARD,MARTIN,BLAKE,TURNER,JAMES
CREATE OR REPLACE FUNCTION concatenate_list (p_cursor IN SYS_REFCURSOR)
RETURN VARCHAR2
IS
l_return VARCHAR2(32767);
l_temp VARCHAR2(32767);
BEGIN
LOOP
FETCH p_cursor
INTO l_temp;
EXIT WHEN p_cursor%NOTFOUND;
l_return := l_return || ',' || l_temp;
END LOOP;
RETURN LTRIM(l_return, ',');
END;
COLUMN employees FORMAT A50
SELECT e1.deptno,
concatenate_list(CURSOR(SELECT e2.ename FROM emp e2 WHERE e2.deptno = e1.deptno)) employees
FROM emp e1
GROUP BY e1.deptno;
DEPTNO EMPLOYEES
10 CLARK,KING,MILLER
20 SMITH,JONES,SCOTT,ADAMS,FORD
30 ALLEN,WARD,MARTIN,BLAKE,TURNER,JAMES
CREATE OR REPLACE TYPE t_string_agg AS OBJECT
g_string VARCHAR2(32767),
STATIC FUNCTION ODCIAggregateInitialize(sctx IN OUT t_string_agg)
RETURN NUMBER,
MEMBER FUNCTION ODCIAggregateIterate(self IN OUT t_string_agg,
value IN VARCHAR2 )
RETURN NUMBER,
MEMBER FUNCTION ODCIAggregateTerminate(self IN t_string_agg,
returnValue OUT VARCHAR2,
flags IN NUMBER)
RETURN NUMBER,
MEMBER FUNCTION ODCIAggregateMerge(self IN OUT t_string_agg,
ctx2 IN t_string_agg)
RETURN NUMBER
SHOW ERRORS
CREATE OR REPLACE TYPE BODY t_string_agg IS
STATIC FUNCTION ODCIAggregateInitialize(sctx IN OUT t_string_agg)
RETURN NUMBER IS
BEGIN
sctx := t_string_agg(NULL);
RETURN ODCIConst.Success;
END;
MEMBER FUNCTION ODCIAggregateIterate(self IN OUT t_string_agg,
value IN VARCHAR2 )
RETURN NUMBER IS
BEGIN
SELF.g_string := self.g_string || ',' || value;
RETURN ODCIConst.Success;
END;
MEMBER FUNCTION ODCIAggregateTerminate(self IN t_string_agg,
returnValue OUT VARCHAR2,
flags IN NUMBER)
RETURN NUMBER IS
BEGIN
returnValue := RTRIM(LTRIM(SELF.g_string, ','), ',');
RETURN ODCIConst.Success;
END;
MEMBER FUNCTION ODCIAggregateMerge(self IN OUT t_string_agg,
ctx2 IN t_string_agg)
RETURN NUMBER IS
BEGIN
SELF.g_string := SELF.g_string || ',' || ctx2.g_string;
RETURN ODCIConst.Success;
END;
END;
SHOW ERRORS
CREATE OR REPLACE FUNCTION string_agg (p_input VARCHAR2)
RETURN VARCHAR2
PARALLEL_ENABLE AGGREGATE USING t_string_agg;
/ -
How to add an Attachments Table on the Page of a Single Row Region
Dear All,
Please help me with a tutorial or anything that help me adding a an Attachments Table on the Page of a Single Row Region.
I took a look at the attachment in ch4 in the developer guide but it is not explained clearly how to implement it.
Thanks,
Mahmoud Assem
Message was edited by:
Mahmoud AssemIf you follow the dev guide properly, there shouldn't be any issue. Let us know where exactly you are facing the issue.
--Shiv -
Table of contents web part doesn't display all data
Hi,
We did a test migration from Sharepoint 2007 to SharePoint 2013. There is a Table of contents web part that is being used to display all of the team sites (more than 25). In the SharePoint 2013 version, the TOC web part is not displaying all of the sites.
Any ideas of how to make it show all?
thanks,
SherazadHi Sherazad,
According to your description, my understanding is that you want to display all sites in the Table Of Content web part.
There is a limitation of the web part, the maximum number of the items displaying in the web part is 50. If you want to display more 50 items, you need to increase or remove the limitation. You need to go to the web.config file of the SharePpoint site, the
path is C:\inetpub\wwwroot\wss\VirtualDirectories\port number, then find all navigation providers, and add
DynamicChildLimit attribute to each one . More information, please refer to the link below:
http://praveenbattula.blogspot.in/2010/11/table-of-contents-web-part-remove-max.html
Note: before changing web.config, please make a backup for the file.
After the above, if your issue still exists, please open your site->Site Settings->Navigation, change the value from 20 to [whatever number you want to display] in the “Current Navigation”section. More information,
please refer to the link:
http://www.chaitumadala.com/2010/05/sharepoint-2010-table-of-contents.html
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
AL11 - Can't display all data in a file
Hello,
We have a custom folder at OS level and configured in the AL11. We are able to open the custom folder and browse all the files. We have a file of 8 KB in size and has around 21 fields. When we open the file in AL11, it doesn't display all the data, that is couple of fields from end. The physical file shows all data and looks fine.
Anybody can help finding the problem?
Appreciate your help
Thanks,
KrisHi,
I thing this is authorisation or permission issue pls chek in super user like sap* or equal of this.
Anil -
Display all dates between a start and end date on an Apex Calendar
Hi Guys,
I am encountering an issue where Apex doesn't display the data from a valid query in a Calendar.
I have a simple table used to capture events data with the following columns and data:
event_id start_date end_date
1 20-APR-09 22-APR-09
2 24-APR-09 24-APR-09Using an Apex Calendar I would like to display the continuous dates of an event on each relevant date, so in the above example I would like to see Event ID 1 shown on the 20th, 21st & 22nd April in the Calendar.
I have created the following query :
SELECT ees.event_id,
ees.start_date + LEVEL - 1 AS date_range
FROM dual
, (SELECT ee.event_id,
(ee.start_date) AS start_date,
(ee.end_date) AS end_date
FROM ees_event ee ) ees
CONNECT BY LEVEL <= (ees.end_date - ees.start_date + 1)the results from this query list the dates as I require them in terms of an ID and a row for each date in the date range.
I then wrap this query into a view and use that to base an Apex Calendar on and the when I run the page nothing is displayed on the Calendar?!
Does anyone have any tips or pointers please?
Kind regards,
stuA bit more digging and once again I have found my solution on Denes' website - thanks for such and excellent resource!
Solution I have used can be found here:
http://apex.oracle.com/pls/otn/f?p=31517:83:4441524250972745::NO -
SSAS Date Dimension attribute not displaying all members when browsed singly
I have an SSAS Cube database that holds data from 2009 to 2013 (5 years)
There is a Date Dimension in the database which holds a "Calender Period" Hierarchy with the attributes CalenderYear >> Quarter >> MonthYear >> Day .
I am connecting to the cube via Microsot EXCEL
Whenever i try to browse this hierarchy alone in the spread sheet, the first attribute as per the hierarchy shown above i.e. Calender Year does not display all the members, that is confusing the users to assume that the cube is not processed with the latest
data, which is not the case. However as soon as i try to browse any measure with this dimension, the data automatically shows for the latest dates of 2013 as per the expectations.
The perspective that is selected while connecting to the Cube in this case is the one that is by default the one including all the Cube Objects.
Whenever i try to browse the same cube for the same Dimension Hierarchy but in a separate user perspective i get the latest three Calender Years i.e. 2011,2012 and 2013 but not the complete years 2009 to 2013.
When i was browsing this earlier by the original base perspective (which has all the cube objects visible) the Calender Years displayed were 2009,2010,2011&2012 but not 2013 which should be there.
I checked the base view in the DB that is used to create this Dimension, that is fetching the complete data for 2009 to 2013.
I have also verified that this issue is still there if i try to browse the cube from the SSMS.
Can anyone help me to get all the years from 2009 to 2013 (the years for which my cube has data) become visible as soon as i drop it alone into the Spreadsheet?
Thanks
SuvratThanks for your response Muthukumaran.
I did not know about this default measure property of the SSAS cube, it would be nice if you could also tell me how to check which is the default measure for a cube.
I understand your point that if a particular measure group does not have data for a year then that particular year will be skipped as per the default excel settings, which when disabled allowed all the years to be displayed, but in that case every time the
users connect to the cube via excel, they will have to configure this property.
I would like to share the way i resolved this issue:
I went ahead and simply did a Process Full for the Date dimension. The years started to display by default as per the expectations. Now after observing this change, as per my understanding I believe this issue was due to the CACHE of the cube not being updated
for the date dimension. As after each incremental load of the DWH we processed the cube & while processing the cube the dimensions were set for a Process Update and the Measure Groups were set for a Process Full. This caused this issue, and we could resolve
this once the Date Dimension was processed full.
Thanks
Suvrat Rai -
How to generate a waveform data table for my data acquisition (GPIB)?
Hi everyone, I'm new to labview. I have a question, how to obtain waveform data(an I/O file so I can plot it in graphic software), rather than just plot a waveform graph which is pretty easy, but I want a waveform data table, how can I do that? Thank you very much!
Message Edited by pack2themoon on 12-12-2008 10:05 PMWell, I would tell you how to get the data to display on a table however then you will come to another issue.
The issue is that once the data is in a table, you cannot select all the data at once.
You can only select one cell at a time, I'm not sure why, guess it was an oversight of some kind.
There are a few work arounds, and if you are still interested in this aprroach, I will share them with you.
Cory K -
Data table to the data chart editor ?
It is possible to link the values of a table to the data chart editor ? Not to copy and paste.
sw_mero
Welcome to the forum.
Unfortunately not.
Like many things in Pages, it is a bit of a hood ornament. It looks good in the demo but when you get to grips with it, it is not quite all there. Maybe in the next version of Pages.
What you can do is copy and paste a chart created in Numbers, which will retain the links to the data in Numbers. Just make sure you save both the data and the Numbers file first.
Peter -
Data not going from active data table to new data table -DSO activation iss
Hi Experts,
Data is going from DSO1 to DSO2. I see some of the records are getting missed in DSO 2 which are supposed to come.
There is start routine from DSO1 TO DSO2 and as per the start routine some records should come but they are getting missed.
Apart from that..to DSO 2 there are 4 other DSO sending data.
I tried to send single record and saw that data is goingHi Experts,
Data is going from DSO1 to DSO2. I see some of the records are getting missed in DSO 2 which are supposed to come.
There is start routine from DSO1 TO DSO2 and as per the start routine some records should come but they are getting missed.
Apart from that..to DSO 2 there are 4 other DSO sending data.
I tried to send single record and saw that data is going to New data table and upon activation it does not go to Active data table.
Please suggest.
Regards
Sudha
Maybe you are looking for
-
Is java servlet a good way for developing a website
Hi, i am developing a website that has to download huge data and upload huge data .also money transactions through credit cards need to be involved.is java servlet a good way to do this or should i use an ejb or any other technology. Any help is appr
-
Hello all, I am very new to XSL. I have been reading a lot on it. I have a small transformation program which takes an xml file, an xsl file and performs the transformation. Everything works fine when the file size is in terms of KB. When I tried the
-
Query the name of the parent table in a foreign key constraint
Hello, Does anyone know how to query for the parent table name in a foreign key constraint? I don't see that relationship in ALL_CONS_COLUMNS or ALL_CONSTRAINTS. Thanks in advance, Michael
-
I'm unable to enable my Guest User account because it's greyed out
Does anyone know why Mac OSX Lion would grey out the option to enable a Guest User?
-
I can not export from Xcelcius Present 2008 to PowerPoint or Word
I can successfully export to PDF, but not to PowerPoint or Word. I have Excelcius Present 2008, version 5.2.1.0, build 12,2,1,94 I have MS Office Standard Edition 2003 SP3. My operating system is Windows XP Professional, version 2002, SP3 When I go