Report module: LOV with two columns
I would like to create a LOV with two columns in a designer generated report module.
scott@ntw>select deptno, loc
2 from dept;
DEPTNO LOC
10 NEW YORK
20 DALLAS
30 CHICAGO
40 BOSTON
50 LAS VEGASIs it possible to create the lov of the report module with an indivdual select statement?
Does anyobody have an idea?
Hi,
There are probably a number of ways that you can handle this, but the underlying principle for all of these would be that you need to have 2 reports. The first report would contain the first ten records and the second report would contain the next ten.
The way to do that would be to get the ROW_NUMBER() value for each line and, in the query defintion for each report, you would have a WHERE clause that restricted the results based on this value. The best way to do this would be to create a view and base the reports on this view. The view definition would include:
ROW_NUMBER() OVER (ORDER BY xxxx) AS ROW_NUMBER
where xxxx is the same order definition as the main ORDER BY clause. Each row will then get a ROW_NUMBER value that matches it's position in the query resultset.
Your first report would then have a WHERE clause of:
WHERE ROW_NUMBER < 11
the second report would have:
WHERE ROW_NUMBER BETWEEN 11 AND 20
The final step would be styling/positioning the reports. The first would probably be in Column 1 in the region and the second in Column 2. You would almost certainly have to adjust the styling and/or positioning using a style attribute in the region/report definitions.
Regards
Andy
Similar Messages
-
Dynamic Table with two columns
Hi!
i have to create a Dynamic Table with two columns having 5-5 links each with some text...... three links r based on certain conditions....they r visible only if condition is true...
if the links r not visible in this case another links take it's place & fill the cell.
links/text is coming from database.
i am using Struts with JSP IDE netbeans
Please help me
BuntyIndiai wanna do something like this
<div class="box_d box_margin_right">
<ul class="anchor-bullet">
<c:forEach items="${data.faqList}" var="item" varStatus="status"
begin="0" end="${data.faqListSize/2-1}">
<li>${item}</li>
</c:forEach>
</ul>
</div>
<div class="box_d">
<ul class="anchor-bullet">
<c:forEach items="${data.faqList}" var="item" varStatus="status"
begin="${data.faqListSize/2}" end="${data.faqListSize}">
<li>${item}</li>
</c:forEach>
</ul>
</div>
wanna divide table in two columns....if one link got off due to condition other one take it's position...
I have created a textorderedlist
Bunty -
How to create a form with two column headings
I have a business request to create a data form to handle multi year data by month. This will require creating a form with two column headings - with the first row be Year and second row be month, and data entry will begin in the third row and down.
I can do multiple row headings in the layout design, but somehow can not get it to work for multiple column headings.
Thanks in advanceIf you're in the "Layout" tab, simply pull the "Years" dimension and the "Period" dimension into the Column section. Planning can be a little picky about where you "drop" the dimension as you're dragging and dropping it. Drop it in the cell directly under the letter name of the column. Other than that, there's not much to it.
Hopefully this helped,
- Jake -
How to define form within a table with two columns?
Hallo,
i want to design a form with two columns side by side.
My way is to define a table within the form:
<af:panelForm>
<afh:tableLayout width="100%">
<afh:rowLayout halign="left">
<af:inputText value="#{bindings.StsNr.inputValue}"
label="#{bindings.StsNr.label}"
required="#{bindings.StsNr.mandatory}"
columns="#{bindings.StsNr.displayWidth}"
readOnly="true">
<af:validator binding="#{bindings.StsNr.validator}"/>
<f:convertNumber groupingUsed="false"
pattern="#{bindings.StsNr.format}"/>
</af:inputText>
<af:selectOneChoice value="#{bindings.StammsaetzeStsEmpfangsart.inputValue}"
label="#{bindings.StammsaetzeStsEmpfangsart.label}"
tip="Brief, Fax, Mail">
<f:selectItems value="#{bindings.StammsaetzeStsEmpfangsart.items}"/>
</af:selectOneChoice>
</afh:rowLayout>
</afh:tableLayout>
</af:panelForm>
Is there a better way to do it?Hi reiasmus ,
Try <af:panelForm row="X">, that specifies the number of fields by columns. If you have ten fields and you fix row="5", you will obtain two columns with 5 rows on each.
Regards,
Tif -
Populating a table with two columns using a custom bean
hello,
Can someone provide me or give me a link to an example of populating a table (with two columns) with a custom bean?
thank you
fwu1)create a java class
2)have a list as a class variable
3) populate the list in the constructor..
4) map the values in the af:table
//Employee pojo
public class Employee {
public Employee() {
super();
private String empName;
private String empManager;
private String job;
public void setEmpName(String empName) {
this.empName = empName;
public String getEmpName() {
return empName;
public void setEmpManager(String empManager) {
this.empManager = empManager;
public String getEmpManager() {
return empManager;
public void setJob(String job) {
this.job = job;
public String getJob() {
return job;
//maanged bean
public class Bean {
private List<Employee> employee;
public Bean() {
super();
employee = new ArrayList<Employee>();
Employee e1 = new Employee();
e1.setEmpName("xxxxx");
e1.setEmpManager("xxxxxxxx");
e1.setJob("xxxxxxx");
Employee e2 = new Employee();
e2.setEmpName("yyyyyyy");
e2.setEmpManager("yyyyyyy");
e2.setJob("yyyyyyt");
Employee e3 = new Employee();
e3.setEmpName("zzzzzz");
e3.setEmpManager("zzzzzzz");
e3.setJob("zzzzzzzz");
employee.add(e1);
employee.add(e2);
employee.add(e3);
employee.add(e4);
public void setEmployee(List<Employee> employee) {
this.employee = employee;
public List<Employee> getEmployee() {
return employee;
}in the table map like
<af:table value="#{Bean.employee}" var="row" rowBandingInterval="0"
id="t1">
<af:column headerText="Employee Name" id="c1">
<af:inputText value="#{row.empName}" id="it5"/>
</af:column>
<af:column headerText="Employee Manager" id="c2">
<af:inputText value="#{row.empManager}" id="it2"/>
</af:column>
</af:table> -
ComboBox with two columns?
Do you guys know how we can have a DAC comboBox with two columns(e.g. emp_no, emp_name) to update a column(e.g. emp_no) in database?
Thanks for your response.
Ali
nullgrin You don't like my suggestion of creating a view ( or view object ) that where you concatenate 2 or more strings of interest into a separate new attribute... that is used to display?
Yeah, kinda hokey, but quick to implement. -
Webi Report Data compare between two columns
There is two different queries in Webi Report BI 4.1
Query 1 - Name_1 == 100 records
Query 2 - Name_2 == 75 records
On the report need to compare the data between Name_1 and Name_2.
Need report level flag as a second column
name_1 = name_2 = Y
name_1 <> name_2 = N
One the report there is only two columns Name_1 Flag(Y/N)
1. If statement is not working at all in this scenario
2. Merge dimension is not useful since I need to treat these columns separately on the report.Hi Suri,
As the objects belong to two different queries, the comparison might not work as they are not merged and incompatible.
You can try creating a seperate query and can use subquery in it.
For example:
SELECT NAME_1 FROM QUERY_1
WHERE
NAME_1 NOT IN (SELECT NAME_1 FROM QUERY_2)
This will display the names which are not common.
Hope it will help.
Regards,
Yuvraj -
Vertical report with two columns
I have table with picture. I can display common sql report(horizontal or vertical). Is it possible to display this to two columns (eshop).Two vertical columns (for example field of records 10x2).
Message was edited by:
user542927Hi,
There are probably a number of ways that you can handle this, but the underlying principle for all of these would be that you need to have 2 reports. The first report would contain the first ten records and the second report would contain the next ten.
The way to do that would be to get the ROW_NUMBER() value for each line and, in the query defintion for each report, you would have a WHERE clause that restricted the results based on this value. The best way to do this would be to create a view and base the reports on this view. The view definition would include:
ROW_NUMBER() OVER (ORDER BY xxxx) AS ROW_NUMBER
where xxxx is the same order definition as the main ORDER BY clause. Each row will then get a ROW_NUMBER value that matches it's position in the query resultset.
Your first report would then have a WHERE clause of:
WHERE ROW_NUMBER < 11
the second report would have:
WHERE ROW_NUMBER BETWEEN 11 AND 20
The final step would be styling/positioning the reports. The first would probably be in Column 1 in the region and the second in Column 2. You would almost certainly have to adjust the styling and/or positioning using a style attribute in the region/report definitions.
Regards
Andy -
Dimension with two columns In DWH
Hi all,
I am new to SSIS. Can i know if it is good model to create the dimension with only two columns i.e the key & the dimension in data warehouse (Eg: Company key, company Name)..
Thanks
sushYes no problems with that. But if there are any directly related attributes in another tables which qualifies company entity and is required in analysis it would make sense to include them within same dimension to avoid snowflaking (lookups) like say Company
Status, CompanyGroup etc
Its better to have denormalised tables which would have as much related attributes as possible for analytical/reporting purpose. Even in SSAS it would enable facts to be analysed using any of these attributes using a single regular relationship with the
common unified dimension
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
3.2; BC4J; Grid: attached Combo with two columns?
Hi,
I anybody could attach a combo to grid with two or more Columns? Or any idea to attach an LOV to grid cells?
Thanks
nullpackage com.npevolution.util;
import java.awt.Component;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;
import oracle.dacf.control.swing.ComboBoxControl;
import javax.infobus.*;
import oracle.dacf.dataset.*;
public class ComboBoxControlRenderer extends javax.swing.JComboBox
implements javax.swing.table.TableCellRenderer {
private RowSetInfo rowSetInfo;
private String colGuardar;
private Object comboCod[];
//@colMostrar is "Name"
//@colGuardar is "Cod"
public ComboBoxControlRenderer(RowSetInfo rsi, String colMostrar, String colGuardar) {
super();
rowSetInfo = rsi;
this.colGuardar = colGuardar;
try{
ScrollableRowsetAccess m_Rs = (ScrollableRowsetAccess)rsi.getRowsetAccess();
int rowCount = m_Rs.getRowCount();
for (int iRow=0; iRow<rowCount; iRow++){
m_Rs.absolute(iRow+1);
ImmediateAccess ia = (ImmediateAccess)m_Rs.getColumnItem(colMostrar);
String str = ia.getValueAsString();
addItem(str);
}catch(Exception e){
e.printStackTrace();
public Component getTableCellRendererComponent(JTable table,
Object value, boolean isSelected, boolean hasFocus,
int row, int column) {
ScrollableRowsetAccess rs = rowSetInfo.getRowsetAccess();
int index = 0;
try {
boolean moreRows = rs.first();
while (moreRows) {
if (value.equals(((ImmediateAccess)rs.getColumnItem(colGuardar)).getValueAsString())) {
break;
} else {
index++;
moreRows = rs.next();
} catch (Exception ex) {
System.out.println("Error al buscar el indice en el Renderer: " + ex.getMessage());
if (index < rs.getRowCount()){
setSelectedIndex(index);
return this;
import java.awt.Component;
import java.util.EventObject;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import oracle.dacf.control.swing.ComboBoxControl;
import javax.infobus.*;
import oracle.dacf.dataset.*;
public class ComboBoxControlEditor extends JComboBox
implements javax.swing.table.TableCellEditor{
protected EventListenerList listenerList = new EventListenerList();
protected ChangeEvent changeEvent = new ChangeEvent(this);
private RowSetInfo rowSetInfo;
private String colMostrar;
private String colGuardar;
private Object comboCod[];
* Constructor
*@param rsi RowSetInfo que se utiliza para cargar el JComboBox
*@param colMostrar nombre del AttributeInfo del RowSetInfo que muestra el combo
*@param colGuardar nombre del AttributeInfo del RowSetInfo que se tiene que asignar a la celda del editor
public ComboBoxControlEditor(RowSetInfo rsi, String colMostrar, String colGuardar) {
super();
rowSetInfo = rsi;
this.colGuardar = colGuardar;
this.colMostrar = colMostrar;
addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
fireEditingStopped();
try{
ScrollableRowsetAccess m_Rs = (ScrollableRowsetAccess)rsi.getRowsetAccess();
int rowCount = m_Rs.getRowCount();
comboCod = new Object[rowCount];
for (int iRow=0; iRow<rowCount; iRow++){
m_Rs.absolute(iRow+1);
ImmediateAccess ia = (ImmediateAccess)m_Rs.getColumnItem(colMostrar);
String str = ia.getValueAsString();
addItem(str);
ia = (ImmediateAccess)m_Rs.getColumnItem(colGuardar);
str = ia.getValueAsString();
comboCod[iRow] = str;
}catch(Exception e){
e.printStackTrace();
* Mitodo que devuelve el atributo rowSetInfo del ComboBoxControlRenderer.
* @return RowSetInfo
public RowSetInfo getRowSetInfo() {
return rowSetInfo;
* Mitodo que establece el valor del atributo rowSetInfo del ComboBoxControlRenderer.
* @param rs RowSetInfo que se asocia
public void setRowSetInfo(RowSetInfo rsi) {
rowSetInfo = rsi;
* Mitodo del interfaz TableCellEditor.
public void addCellEditorListener(CellEditorListener listener) {
listenerList.add(CellEditorListener.class,listener);
* Mitodo del interfaz TableCellEditor.
public void removeCellEditorListener(CellEditorListener listener) {
liste nerList.remove(CellEditorListener.class,listener);
protected void fireEditingStopped() {
CellEditorListener listener;
Object[] listeners = listenerList.getListenerList();
for (int i=0; i<listeners.length; i++) {
if (listeners[i] == CellEditorListener.class) {
listener = (CellEditorListener) listeners[i+1];
listener.editingStopped(changeEvent);
protected void fireEditingCanceled() {
CellEditorListener listener;
Object[] listeners = listenerList.getListenerList();
for (int i=0; i<listeners.length; i++) {
if (listeners[i] == CellEditorListener.class) {
listener = (CellEditorListener) listeners[i+1];
listener.editingCanceled(changeEvent);
* Mitodo del interfaz TableCellEditor.
public void cancelCellEditing() {
fireEditingCanceled();
* Mitodo del interfaz TableCellEditor.
public boolean stopCellEditing() {
fireEditingStopped();
return true;
* Mitodo del interfaz TableCellEditor.
public boolean isCellEditable (EventObject event) {
return true;
* Mitodo del interfaz TableCellEditor.
public boolean shouldSelectCell(EventObject event) {
return true;
* Mitodo del interfaz TableCellEditor.
* Devuelve un objeto con el valor contenido en el editor.
public Object getCellEditorValue() {
String seleccionado = (String)this.getSelectedItem();
ScrollableRowsetAccess rs = rowSetInfo.getRowsetAccess();
String codigo = "";
try {
boolean moreRows = rs.first();
while (moreRows) {
if (seleccionado.equals(((ImmediateAccess)rs.getColumnItem(colMostrar)).getValueAsString())) {
codigo = ((ImmediateAccess)rs.getColumnItem(colGuardar)).getValueAsString();
break;
moreRows = rs.next();
} catch (Exception ex) {
System.out.println("Error al buscar: " + ex.getMessage());
return codigo;
* Mitodo del interfaz TableCellEditor.
* Establece un valor inicial para el editor.
* Devuelve el componente para editar.
public Component getTableCellEditorComponent(JTable table,
Object value, boolean isSelected, int row, int column) {
ScrollableRowsetAccess rs = rowSetInfo.getRowsetAccess();
int index = 0;
try {
boolean moreRows = rs.first();
while (moreRows) {
if (value.equals(((ImmediateAccess)rs.getColumnItem(colGuardar)).getValueAsString())) {
break;
} else {
index++;
moreRows = rs.next();
} catch (Exception ex) {
System.out.println("Error al buscar: " + ex.getMessage());
if (index < rs.getRowCount()){
setSelectedIndex(index);
return this;
null -
How to get one crystal report to work with two different backends?
We have a software that can work with either SQL2008 or Visual Fox Pro backend. We are trying to compile One Crystal report that will work with either of the two backends. How to you make sure that your Crystal Report is compiled so that it will work with both backends?
Right now my reports were originally created using the SQL2008 backend and are retaining the DBO reference in the statement, which then will not allow the Crystal report to work with the VFP backend.You can write your data sets as a command using hand coded SQL. As long as "dbo" is the only schema used in your SQL Server database, you don't need to specify it in the SQL. SQL Server will automatically assume the dbo.
The 2nd thing... The SQL needs to be 100% compatible with both SQL Server 2008 AND VFP. This will limit the list available functions to those that are common to both platforms AND work exactly the same in both platforms.
The other part is to make sure you are using an ODBC type connection instead of OLD/DB. That way all of the connection properties are set on the local machine and the report is simply looking for the System DSN name.
HTH,
Jason -
Topics with Two Columns, and ?s about Margins
I've been searching all over and can't quite get the answers I need. I have a robohelp project which will solely be for written documentation. Some of the topics within this project I would like two have two columns, the left column will just have headings and the right side will have content. I did accomplish this by making a table, however I can't remove the borders. I also tried another way by using this, which works great but when I made printed documentation it didn't make it look like I have on my screen (printed the headings all together then the content on later pages).
#container2 { clear: left; float: left; width: 100%; overflow: hidden; } #container1 { float: left; width: 100%; position: relative; right: 50%; } #col1 { float: left; width: 50%; position: relative; overflow: hidden; } #col2 { float: left; width: 50%; position: relative; overflow: hidden; }
So I guess I have a few questions to try and make this project go smoothly. Since I will only be using this project for written documentation, what would be the best way to make sure that each topic I am working on will print the way I want it to (margins, etc.)? Is there a good way to deal with my two column issue? Would making a style that indents the text be a good solution?You may also want to check out CSS columns. That will allow you to work without using tables and let the browser to take care of the rest. See: http://www.w3schools.com/css/css3_multiple_columns.asp
Kind regards,
Willam -
Hi all. Sorry, english is not my native language. I´ve made an .indd: each page has two columns with different threads (is a bilingual text). When I export this .indd to .epub only appears one column from a thread following the next thread. What can i do to fix this? My indesign is CS6
Thank youThere are fixed format EPUB files as can be used for children's books, etc. where there are a lot of illustrations. However, those are very work-intensive to produce. I've never worked on one.
Anne-Marie Concepcion did a Lynda.com video on producing one.
Rorohiko produces a product called ePubCrawler which can help in produced fixed format EPUB files:
Fixed Layout EPUB Assistant In InDesign: ePubCrawler | Rorohiko ... -
Problem with two-column layout
Hello,
I've done table-based layouts for several years, but I'm
trying to switch to CSS. I still have a lot to learn...
I'm trying to create a web site as a favor for a friend. She
hasn't figured out what she wants yet, so I've just been creating
some pages using canned designs. I created one using "Two-column
left nav" under Dreamweaver's "Page designs (CSS)":
http://www.alcie.org/demo2/
I want a fixed-width left navigation column and a fluid
content column.
I ran into several problems with the original design. The
most notible was that if I changed the browser window width, both
the content and nav columns would resize. I didn't want that, so I
set "navBar" width: 150px. That worked, but if I make the window
too narrow, the content starts to overlap the navigation column in
Firefox 1.5.0.6, and the navigation DIV drops to below the content
in IE 7 rc (I think) 3 and IE6. I tried removing the width
altogether, but that made things worse.
What is wrong with this picture? Is there a cleaner way to
solve my problem?
Thanks.> Is there a cleaner way to solve my problem?
Yes - dump that layout. It's too quirky. Go here and grab one
http://www.maxdesign.com.au/presentation/page_layouts/
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Clean & Sober" <[email protected]>
wrote in message
news:edgvl4$akl$[email protected]..
> Hello,
>
> I've done table-based layouts for several years, but I'm
trying to switch
> to
> CSS. I still have a lot to learn...
>
> I'm trying to create a web site as a favor for a friend.
She hasn't
> figured
> out what she wants yet, so I've just been creating some
pages using canned
> designs. I created one using "Two-column left nav" under
Dreamweaver's
> "Page
> designs (CSS)":
>
>
http://www.alcie.org/demo2/
>
> I want a fixed-width left navigation column and a fluid
content column.
>
> I ran into several problems with the original design.
The most notible
> was
> that if I changed the browser window width, both the
content and nav
> columns
> would resize. I didn't want that, so I set "navBar"
width: 150px. That
> worked, but if I make the window too narrow, the content
starts to overlap
> the
> navigation column in Firefox 1.5.0.6, and the navigation
DIV drops to
> below the
> content in IE 7 rc (I think) 3 and IE6. I tried removing
the width
> altogether,
> but that made things worse.
>
> What is wrong with this picture? Is there a cleaner way
to solve my
> problem?
>
> Thanks.
> -
Split module fails with 4 columns
Hello.
I try to make a predictive model for a movie rating prediction with own datasets. I have prepared and joined data and now I want to split the data into training and testing datasets. I have 4 columns (title, rank, number of votes and year) in the table and
the split module fails with warning "Error 0022: Number of selected columns in input dataset does not equal to 4." Why?
Thank you.Hi Lukas,
The recommender splitter works under the assumption that it's splitting recommendation data, which we assume to consist either of user-item pairs or user-item-rating triples. Hence the limit of 2 or 3 columns, which is imposed to try and avoid confusion
with feature-type data.
-Y-
Maybe you are looking for
-
How do i delete photos from my phone that were downloaded off a computer i no longer have
I have 2 photo albums that won't delete when I go to edit my folders. I understand this is because I have taken them from a computer and put them on my phone. I also understand that if I plug my phone into the computer and go to iTunes I can select w
-
My 24"iMac won't upgrade past 10.7.5. How can I find PAGES for me?
I just need Word Processing for this desktop gem/antique. I have Pages for both my iPads (iOS7 and 8.1) but cannot upgrade my iMac past OSX10.7.5. Pages would be fine if I can find Vers.3 or 4 (I think). Is there something easier, as good, and availa
-
Can I move an Angry Bird app from my Macbook Pro to my iPad2?
Is it possible to move the app Angry Birds from a McBook Pro to My iPad2?
-
FM down converter in LabView. How?
Hello NI Developers! I have Frequency Modulated (FM) Signal, with carrier frequency 1000Hz and message signal frequency 20Hz. I want to downconvert FM signal frequency to 200Hz. I searched through the forum and google and didn't find anything where w
-
Hi, I am working on an automation of XI message monitoring which includes checking the Adapater engine Holding count. From where can I fetch the number of messages with HOLDING status. Regards, Karthik