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
null
grin 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.
Similar Messages
-
Combobox with multiple columns
Is it possible to make a combobox with two columns in the dropdown area?
Thanksmake your own componen to show 2 colums... and assig it to combo box as itemrenderer...
twoColums.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"
horizontalScrollPolicy="off" >
<mx:Text text="{data.Column1}" width="93">
</mx:Text>
<mx:Text text="{data.Column2}">
</mx:Text>
</mx:HBox>
in your main app or another custom conponen place your combobox like thi:
<mx:ComboBox id="myCB" dataProvider="{yourdata}" labelField="Column1"
itemRenderer = "components.twoColums">
</mx:ComboBox>
mybe you need to add width and dropdowwidth properties to show the items in a good way....hope this work..
PD. this works the same for Adobe autocomplete.. as autocomplete is a component heritated from combobox..:
make shure you have included the autocomplete component in your project at its says in the readme file included by Adobe then..
<Adobe:AutoComplete id="myCB" arrowButtonWidth = "30" dataProvider="{yourdata}" labelField="Column1"
itemRenderer = "components.twoColums">
</Adobe:AutoComplete>
note the arrowButtonWidth if you dont put this property the autocomplete will just show as a common text field...
remember auto complete will have some issues with the itemrenderer stuff.. if you wirite too fast, the first character you write will be lost, so calmd down, im traing to figure out how to soleve that issue...
haaaa by the way if you already have another way to show 2 columns please telme how you solve it... -
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> -
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 -
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 ... -
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 -
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.
> -
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 -
So I have two columns on my page and when I type the left column spills over into the right column. But this is not what I want to happen. I want the text that I type on the left to stay on the left and the text on the right to stay on the right. Please Help!
Welcome to Apple Discussions
I'd use a text box for one column or the other or text boxes for both. You can then link the left box on one page to the left box on the next page.
Another option is to use a two-column table, but I think text boxes is easier. -
Hi all,
I have to perform a query like x,y not in(select x,y from k). How to do this. These two columns are composite primary keys in both tables although no references exists.
A sample table and expected result.
create table v(name varchar(10),place varchar2(10));
create table t(name varchar(10),place varchar2(10));
insert into t values('Antony','Ollur');
insert into t values('Paul','Ollur');
insert into v values('Antony','Ollur');
I need to select second row from table t which does not exist in v.
Expected result
Paul Ollur
Thanks in advance.
Antony PaulThere are a number of ways to do this:
SELECT * FROM t
WHERE (name, place) NOT IN
(SELECT v.name, v.place FROM v)
SELECT * FROM t
WHERE NOT EXISTS
(SELECT null FROM v
WHERE v.name = t.name
AND v.place = t.place )
SELECT t.name, t.place FROM t, v
WHERE v.name(+) = t.name
AND v.place(+) = t.place
AND v.name IS NULL
SELECT t.name, t.place FROM t, v
WHERE v.name != t.name
OR v.place != t.place
/The AND version of this last query doesn't work because both rows in T match a row in V on the basis of PLACE.
Cheers, APC
Maybe you are looking for
-
How to use RTE? I need to run my CVI code on a SBC that has its OS on CompactFlash (CF). I have done the Build»Distributions command and made a cds file but don't know if I did it correctly. I have downloaded and installed CVI RTE on my desktop PC,
-
Transaction Time out error in EJB while using Websphere Application Server.
Hi All, I am using Websphere Application server and getting the transaction time out error. By default the transaction time out is 120 second. I am using session bean for doing a set of transaction. These set are dynamically generated. Is there any w
-
Acrobat 9 Standard - move to a new computer
I have Acrobat 9 Standard on my laptop and would like to move it to a new computer. How do I do so?
-
Which option I need to choose when I export AVCHD to a movie , without transcoding?
It says that Adobe Premiere CS5 can import and natively edit AVCHD content . without transcoding. How can I do this ? It seems when I export AVCHD MTS from my camera to Premiere , and want to join multiple MTS clips into ine timeline , which option
-
Flush registry from old iphone to allow other ipone users to text my new galaxy 5
I shifted to a Galaxy S5 and now I can not receive texts from iphone users. How can I get the registry flush accomplished.