Multiple row resizing or automatic height fit
Hi,
I have just opened a very simple excel file in Numbers. The workbook consists of only 1 sheet and one table with 3 columns and around 30 rows; is just a list. The problem is that, when I Opened, the text didn't fit the height of the rows, so I had to manually change the row heigh.
Is there any way to change the heigh of multiple rows or just something like the "autoFit" feature in excel?
I am not sure if this is what your asking or not, but if you select a single column or row, then use the little blue dot to extend the selection. now you can grab the right/bottom edge where you see the gripper markings and you can change the width/height of all the selected columns/rows.
Autofit for columns is not there (That I can find it). but rows are automatically autofit in height. If you have some text that wraps in the cell, if you make the column wide enough, you will notice that all the rows get smaller in height to fir the unwrapped text.
Hope this is even close to what your asking
Jason
Similar Messages
-
Neither Automatically Resize nor Zoom to Fit working
Hello out there in Appleland,
Neither Automatically Resize nor Zoom to Fit is working in Preview 5.0.3 under Snow Leopard. Zoom to Fit acts just like Actual Size or <Command> 0 and Automatically resize doesn't work at all. This must be and bug, so please explain how this can be permanently fixed, even at the command line level.
Thank you.
Best regards,
Bob
Denver, COI've found out a little more about Preview and its bug through a process of elimination.
After examining Automatically Resize for Preview 3.0.9 on my old PowerBook G4 with OS 10.4.11, Preview 4.1 on my iMac with OS 10.5.8, and now Preview 5.0.3 on my MacBook Pro with OS 10.6.8, I discovered they all work the same way. When Automatically Resize is checked the image is only resized when the window is reduced but never when the window is enlarged to a size greater than the image's Actual Size, which is a worthless feature for smaller images. I don't think this is the way it is supposed to work, but I may be wrong.
Where 5.0.3 differs from the other versions of Preview is in Zoom to Fit. Under the View Menu, Zoom to Fit is grayed out unless the image stretches beyond the borders of the window (i.e. Automatically Resize toggled off). In this case, the image will be reduced to the size of the window when Zoom to Fit is selected. On the other hand, if the image is smaller than the size of the window, Zoom to Fit is not grayed out but neither does it enlarge the image to the size of the window when selected. In other words, Zoom to Fit in 5.0.3 is only good for reducing an image to fill a smaller window but never for enlarging an image to fill a bigger window if that window is larger than the Actual Size of the image.
Perhaps the problem is with Preview 5.0.3 failing to access com.apple.Preview.ImageSizingPresets.plist since removing all the Preview plists and launching the application anew does not recreate this particular plist. Also, the modified date on the original com.apple.Preview.ImageSizingPresets.plist never seems to change.
This is a damned annoying bug and should have been fixed when Snow Leopard was the standard. In my opinion, the fact that this wasn't caught reveals Apple's slipping standards and a concentration on their growing market in mobile devices. I feel I have a right to say this since I've been a loyal Mac user since the early 1980s.
For those who suggest I move to Lion or beyond, you can keep the economy going with your new software purchases. For now, I'm going to continue using Rosetta and my old, third-party applications in Snow Leopard. -
How to disable resize function for multiple rows of inputText?
I have a multiple rows inputText component like below:
<af:inputText label="#{ZccToolbarGenBundle['OLabel.TransferNote']}"
id="it1" autoSubmit="true" columns="150"
immediate="true" simple="true" rows="5"
binding="#{transferBean.transferNoteText}"/>
How can I turn off the resizing icon on the bottom of right hand side of this input text box?
Thanks for any help.Timo, the bug that I filed has been changed to 'not a bug'. The reason of that is 'That correct as it is not a valid CSS style on all browsers'. I sent email to ADF faces team and got following answers: 1. StyleClass that has agent specific setting for this setting. 2. You put the style class in a skin file and reference it. you can not use the inline style notation. It wants a Style Class.
My question is what kind of StyleClass or skin file do you use so that you can use contentStyle="resize:none;"? Thanks. -
Dynamically resize JTable cell to fit a JList
Hi!
I've been banging my head trying to add some dynamic behavior to a TableCellEditor. In short I'm trying trying to make it resize the height of the current row (the one it is in) to reflect the changes made to the JList used to let the user edit the cells value (which is a list of items).
I've come across some threads dealing with the problem of resizing a cell to fit its content. This however is usually only done once (in the 'getTableCellEditorComponent' function) and so only provides half the answer. Also, since the editor is only active during cell editing I've been trying to make it revert to the old cell height after the editing is done.
So far I have not come up with any decent solution to this problem and was hoping someone out there might have an idea or have read something similar and can point me to something helpful... anyone?
Cheers!
TeoThe Swing tutorial on[url http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]How to Use Tables shows how to dynamically change the size to Table Columns.
If you need help calculating the acutal size then try searching the forum. Using keywords "resize jtable column" (keywords I took directly from your topic title) I found some promising postings. -
Resizing a table to fit smaller screens
Hey everyone; so I am building a site for my photography and
I want the images to be quite large, but I want people with small
monitors to be able to see the site automatically resized so that
the browser doesn't crop the site any.
Is there a way to make the tables to automatically resize the
contents to fit the given browser window (the way a .gif or .jpg
would if viewed on its own)?
thanks,
Danny> Contrary to popular belief, most browsers will allow an
image to be shown
> larger than its original size without noticeable loss in
quality, as they
> do
> render images
This would depend entirely on the type of image. Even a
little upsizing can
destroy a photo.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"azzza" <[email protected]> wrote in message
news:[email protected]...
> Danny,
> I am currently setting up a site where the images have
to adjust
> proportionally for various monitor sizes. To accommodate
this requirement,
> I
> wrote a short Javascript function which measures the
availableScreenHeight
> and
> availableScreenWidth, and presents the image in its
original proportions
> AND
> fits it into the monitor.
> The URL of the site is www.rickball.com.au.
> Find your way to the thumbnails and click to see an
enlargement of the
> image.
> Look at the source code and you will find the Javascript
function called
> 'resise'. I have used PHP to draw the image dimensions
from a database.
> But if
> you are using a separate HTML page for each image, you
can insert the
> original
> image sizes for each image on each HTML page into the
Javascript
> function-call
> in your opening body tag [explained later].
> To test the appearance, you can set your own monitor to
different
> resolutions
> and you will see that the images will fit as the
availableScreenHeight and
> availableScreenWidth measure the monitor size in pixels:
Lower res = fewer
> pixels, which are used in the formula. This formula
needs a few minor
> adjustments, but does work well.
>
> Contrary to popular belief, most browsers will allow an
image to be shown
> larger than its original size without noticeable loss in
quality, as they
> do
> render images: but only to a certain point. Most of the
images have a
> benchmark
> height of 675 or 700 px.
> Let me know if you need any further help with this.
>
> If you copy and paste this function, don't forget to
include your opening
> and
> closing tags for the Javascript:
> <script type="text/javascript">
> <!--
>
> //-->
> </script>
>
> If you copy the JS function from the source code of my
site, the function
> is
> 20 lines in height from the 'function resise(x,y){'
line. Do not copy any
> more
> than that. The final line is a '}' (single closing
bracket).
> For your opening body tag paste this:
> <body onload="resise([put image width here],[put
image width here]);">
> OR
> <body onload="MM_preloadImages('[image name here]');
resise([put image
> width
> here],[put image width here]);"> if you are using the
preload behaviour.
>
> SAMPLE: <body
onload="MM_preloadImages('Mud_man_map_lge.jpg');
> resise(839,675);">
>
> To vary the amount of space around your image, change
the .8 in the JS
> formula
> to more or less.
>
> Any further help, contact me here.
>
> Azzza
> -
I have a excel with multiple
sheets with data as shown below
SHEET 1
A 1
B 2
C 3
SHEET 2
B 1
C 2
A 3
SHEET 3
C 1
A 2
B 3
My
query is splitted into 3 categories
I want to have a formula to do math calculation such that data of "A" of SHEET 1 is calculated with "A" of SHEET2 irrespective of the location of "A".
When I include SHEET3, the formula should automatically identify the location of "A" or "B" or "C" and give the result corresponding to A, B or C. Since I want to bifurcate daily report and output printed. I want to use another
excel for output. How to link multiple sheets of one excel and print the output of above in
another excel?
Assume, I have 4 SHEETS, "SHEET 1", "SHEET 2", "SHEET 3" and "SHEET 4". Math calculation need to be done using all 4 sheets. If
I include "SHEET 5", the formula should ignore SHEET 1 automatically and give the results of SHEETS 2 to 5. Similarly, if I include SHEET 6, SHEET 1 and 2 need to be ignored for further calculation and SHEET 3-6 need to be used. How to write
such formula?
How to get pop up alert for multiple rows, if a specific condition is hit?Maybe VBA Code should be a good option for you. I suggest you post you issue to
Excel for Developers forum.
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Thanks for your understanding.
Best Regards,
Wind -
Hi Experts,
I have a requirement to have multiple rows in the table popin, that is , having a table with multiple rows as the table popin.
For further information, the exact requirement is , there is a table which will have one of the column containing a button, EXPAND , clicking which a table needs to be displayed below the row, (same as it happens for Table popins) and EXpand button becomes COLLAPSE button after it is clicked. Now clicking the Collapse button should close the table showed in Table popin.
Kindly help for the above requirement.
Thanks in Advance for help
Shilpa.LOOP AT wd_this->comp_tab INTO w_comp_tab.
lv_uielement_id_prefix = lv_uielement_id_prefix && iv_col_num.
IF w_comp_tab-name NE 'SELECTED_POPIN' .
l_new_col = cl_wd_table_column=>new_table_column(
id = w_comp_tab-name
width = '100px' ).
lr_header = cl_wd_caption=>new_caption( text = w_comp_tab-name ).
IF w_comp_tab-name EQ 'PRODUCT_ID'.
** link to action
CONCATENATE w_comp_tab-name '_LINK' INTO l_link_id.
lo_link_to_action = cl_wd_link_to_action=>new_link_to_action(
id = l_link_id
text = 'PRODUCTID'
on_action = 'SET_POPIN'
l_new_col->set_table_cell_editor( lo_link_to_action ).
DATA: lr_el_details_cont TYPE REF TO if_wd_view_element.
lr_container ?= lr_el_details_cont.
Transparent container
DATA lr_transparent_container TYPE REF TO cl_wd_transparent_container.
DATA lr_table_in_table_popin TYPE REF TO cl_wd_table.
lv_uielement_id = lv_uielement_id_prefix && '_POPIN_CNTR'. "#EC NOTEXT
lr_transparent_container = cl_wd_transparent_container=>new_transparent_container(
id = lv_uielement_id "'TRANSPARENT_CONTAINER1'
height = '100%' "#EC NOTEXT
width = '100%'
accessibility_descr = 'TRANS_ACC'
is_layout_container = 'X' "#EC NOTEXT
view = view
DATA l_popin_layout TYPE REF TO cl_wd_matrix_layout.
l_popin_layout = cl_wd_matrix_layout=>new_matrix_layout( container = lr_transparent_container ).
lr_transparent_container->set_layout( l_popin_layout ).
lr_container->add_child( the_child = lr_transparent_container ).
DATA: l_item_node TYPE REF TO if_wd_context_node.
l_item_node = l_node->get_child_node( 'SUB' ).
l_popin = cl_wd_table_popin=>new_table_popin(
id = 'POPIN'
on_close = 'CLOSE_POPIN' ).
DATA: i_the_content TYPE REF TO cl_wd_uielement.
i_the_content ?= lr_transparent_container.
IF l_item_node IS BOUND.
cl_wd_dynamic_tool=>create_table_from_node(
EXPORTING ui_parent = lr_transparent_container
table_id = 'MULTIV_TAB'
node = l_item_node
RECEIVING table = lr_table_in_table_popin ).
ENDIF.
"Add the Transparent Container to the Table Popin
l_popin->set_content( lr_transparent_container ).
" add popin to column
l_new_col->set_popin( l_popin ).
ENDIF.
l_new_col->set_header( lr_header ).
" add column to table
lr_table->add_column( l_new_col ).
ENDIF.
ENDLOOP. -
Can we create JTable with multiple rows with varying number of columns ?
Hi All,
I came across a very typical problem related to JTable. My requirement is that cells should be added dynamically to the JTable. I create a JTable with initial size of 1,7 (row, columns) size. Once the 7 columns are filled with data, a new row should be created. But the requirement is, the new row i.e. second row should have only one cell in it initially. The number of cells should increase dynamically as the data is entered. The table is automatically taking the size of its previous row when new row is added. I tried by using setColumnCount() to change the number of columns to '1' for the second row but the same is getting applied to the first row also.
So can you please help me out in this regard ? Is it possible to create a JTable of uneven size i.e. multiple rows with varying number of columns in each row ?
Thanks in Advance.Well a JTable is always going to paint the same number of columns for each row. Anything is possible if you want to rewrite the JTable UI to do this, but I wouldn't recommend it. (I certainly don't know how to do it).
A simpler solution might be to override the isCellEditable(...) method of JTable and prevent editing of column 2 until data in column 1 has been entered etc., etc. You may also want to provide a custom renderer that renderers the empty column differently, maybe with a grey color instead of a white color. -
By default, JCheckBoxes are set up to take one row of text. In our Swing UI, the screen width is limited (no horizontal scroll bar) and we would like to put multiple rows of text in a single JCheckBox - similar to a JTextArea. What is the best way to do this?
Thanks,
JamieHi.
Just write a multi-line renderer (ListCellRenderer) for the combobox and set it using setRenderer.
Here an example code from a table, should be no problem to make a list cell renderer out of it...
package MyFrstJava.components.layout;
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.border.*;
* Provides a simple cell Editor which can show multiple lines using a
* JTextArea. However the row height must be set to show the whole text
* by the user itself.
class MultiLineTableCellRenderer extends JTextArea implements TableCellRenderer {
/** the empty border, if not has the focus */
protected final static Border emptyBorder = BorderFactory.createEmptyBorder(1,2,1,2);
/** the border set during cell has focus */
protected final static Border focusBorder = UIManager.getBorder("Table.focusCellHighlightBorder");
* Constructor initializes the text area
public MultiLineTableCellRenderer() {
setLineWrap(true);
setWrapStyleWord(true);
setOpaque(true);
* From TableCellRenderer
* Depending on the params, the properties of the textarea are set
* and the text area (this) will be returned
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
if (isSelected) {
setForeground(table.getSelectionForeground());
setBackground(table.getSelectionBackground());
} else {
setForeground(table.getForeground());
setBackground(table.getBackground());
setFont(table.getFont());
if (hasFocus) {
setBorder(focusBorder);
if (table.isCellEditable(row, column)) {
setForeground( UIManager.getColor("Table.focusCellForeground") );
setBackground( UIManager.getColor("Table.focusCellBackground") );
} else {
setBorder(emptyBorder);
setText((value == null) ? "" : value.toString());
return this;
Hope this helps -
Automatic Height Type on Portal Iviews
Hi
We are developing a new look and feel for the company enterprise portal and we are facing a problem regarding automatic height off the content area and respective IViews.
Our Portal page should automatic adjust to the current page content. To achiev this we are using automatic height on Innerpage Page and respective Iviews.
The problem is on almost every Portal IView the height value of the contentarea is incorrect. For example the KM Navigation IView shows up with 50px making it impossible to work with.
This problem seems to only happen when there are a iframes inside the content area iframe.
The height value returns a wrong value probably because it does not know the respective iframes height values:
Take this example:
Content Area Iframe
div with 20px
div with 40px
iframe
The result would be similar to a content area iframe of height 61px or so.
I suspect the error is in one of the following javascript's.
- application pagebuilder - pagesupport.js pagesupport.getHeight
- application contentarea - workarea.js workarea.resize
We are on 7.0.1 SP08
P.S The domains of all iframes are the same as they are all PRT IViews
Thanks
Edited by: Phatinox on Sep 1, 2011 6:49 PMWe also faced same issue last year. In our cases, all iviews were custom PRT iviews so We used embedded iview option to get rid of iframe and hight issue. using embedded over iframe gave us performance improvment as well during our load test.
Nitesh -
JTable with Multiple Row Header
well, Im do an application thats need formated ISOS Sheets, and most of them have a Table with Multiple Row Header , and Groupable Header, and both of them. I have the .java and in the class MultipleRowHeaderExample calls a class AttributiveCellTableModel for setColumnIdentifiers() and setDataVector() the cue is why this print stack :
Exception in thread "main" java.lang.StackOverflowError
at java.util.Vector.<init>(Unknown Source)
at java.util.Vector.<init>(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:54)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
.if in main class, have initialized the data, and column vars
public class MultipleRowHeaderExample extends JFrame {
Object[][] data;
Object[] column;
JTable table;
MultiSpanCellTable fixedTable;
public MultipleRowHeaderExample() {
super( "Multiple Row Header Example" );
setSize( 400, 150 );
data = new Object[][]{
{"SNo." ,"" },
{"Name" ,"1"},
{"" ,"2"},
{"Language","1"},
{"" ,"2"},
{"" ,"3"}};
column = new Object[]{"",""};
AttributiveCellTableModel fixedModel = new AttributiveCellTableModel(data, column) {
public boolean CellEditable(int row, int col) {
return false;
};What's the code in AttributiveCellTableModel?
* (swing1.1beta3)
package jp.gr.java_conf.tame.swing.table;
import java.util.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.event.*;
* @version 1.0 11/22/98
public class AttributiveCellTableModel extends DefaultTableModel {
protected CellAttribute cellAtt;
public AttributiveCellTableModel() {
this((Vector)null, 0);
public AttributiveCellTableModel(int numRows, int numColumns) {
Vector names = new Vector(numColumns);
names.setSize(numColumns);
setColumnIdentifiers(names);
dataVector = new Vector();
setNumRows(numRows);
cellAtt = new DefaultCellAttribute(numRows,numColumns);
public AttributiveCellTableModel(Vector columnNames, int numRows) {
setColumnIdentifiers(columnNames);
dataVector = new Vector();
setNumRows(numRows);
cellAtt = new DefaultCellAttribute(numRows,columnNames.size());
public AttributiveCellTableModel(Object[] columnNames, int numRows) {
this(convertToVector(columnNames), numRows);
public AttributiveCellTableModel(Vector data, Vector columnNames) {
setDataVector(data, columnNames);
public AttributiveCellTableModel(Object[][] data, Object[] columnNames) {
setDataVector(data, columnNames);
public void setDataVector(Vector newData, Vector columnNames) {
if (newData == null)
throw new IllegalArgumentException("setDataVector() - Null parameter");
dataVector = new Vector();
setColumnIdentifiers(columnNames);
dataVector = newData;
cellAtt = new DefaultCellAttribute(dataVector.size(),
columnIdentifiers.size());
newRowsAdded(new TableModelEvent(this, 0, getRowCount()-1,
TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));
@Override
public void setColumnIdentifiers(Vector arg0) {
// TODO Auto-generated method stub
super.setColumnIdentifiers(arg0);
public void addColumn(Object columnName, Vector columnData) {
if (columnName == null)
throw new IllegalArgumentException("addColumn() - null parameter");
columnIdentifiers.addElement(columnName);
int index = 0;
Enumeration enumeration = dataVector.elements();
while (enumeration.hasMoreElements()) {
Object value;
if ((columnData != null) && (index < columnData.size()))
value = columnData.elementAt(index);
else
value = null;
((Vector)enumeration.nextElement()).addElement(value);
index++;
cellAtt.addColumn();
fireTableStructureChanged();
public void addRow(Vector rowData) {
Vector newData = null;
if (rowData == null) {
newData = new Vector(getColumnCount());
else {
rowData.setSize(getColumnCount());
dataVector.addElement(newData);
cellAtt.addRow();
newRowsAdded(new TableModelEvent(this, getRowCount()-1, getRowCount()-1,
TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));
public void insertRow(int row, Vector rowData) {
if (rowData == null) {
rowData = new Vector(getColumnCount());
else {
rowData.setSize(getColumnCount());
dataVector.insertElementAt(rowData, row);
cellAtt.insertRow(row);
newRowsAdded(new TableModelEvent(this, row, row,
TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));
public CellAttribute getCellAttribute() {
return cellAtt;
public void setCellAttribute(CellAttribute newCellAtt) {
int numColumns = getColumnCount();
int numRows = getRowCount();
if ((newCellAtt.getSize().width != numColumns) ||
(newCellAtt.getSize().height != numRows)) {
newCellAtt.setSize(new Dimension(numRows, numColumns));
cellAtt = newCellAtt;
fireTableDataChanged();
public void changeCellAttribute(int row, int column, Object command) {
cellAtt.changeAttribute(row, column, command);
public void changeCellAttribute(int[] rows, int[] columns, Object command) {
cellAtt.changeAttribute(rows, columns, command);
}that's it -
How to retreive multiple rows on a tabbed page
Dear Gurus,
I am new to Forms Programming. I have 4 tab pages on the canvas. On one of the tab page I am trying to retrieve multiple rows from the database. I want that the data should be automatically displayed as user changes to that tab page.
The problem which I think is that the cursor is not moving from the first tab page to the new tab page. When I am trying to use go_item, it is not allowing me to change the tab page as all the items on this tab page is display item. Even go_block is not working. I am writing both the functions on When_Tab_Page_Changed trigger.
Please Help!!!!!!!!Hi
Try this one. Check the logic. I didn't have much time to program. With this draft you can begin to do what you need.
Bye, Aron
create or replace package testpkg is
type TYPE_TESTNAMES IS TABLE OF testnames%rowtype index by binary_integer;
procedure getByStatus(countToReturn in NUMBER,status in NUMBER,newStatus in NUMBER, records in out TYPE_TESTNAMES);
end testpkg;
create or replace package body testpkg IS
procedure getByStatus(countToReturn in NUMBER,status in NUMBER,newStatus in NUMBER, records in out TYPE_TESTNAMES)
is
selectedIds MESSAGE_ID_TABLE;
cursor select_messages_by_status (currentStatus NUMBER) is
select id
from testnames
where status= currentStatus
for update;
cursor t (currentStatus NUMBER) is
select *
from testnames
where status= currentStatus
for update;
r testnames%rowtype;
i int := 0;
begin
open select_messages_by_status(status);
fetch select_messages_by_status bulk collect into selectedIds limit countToReturn;
for selectedId in selectedIds.first..selectedIds.last loop
update testnames set status = newStatus where id = selectedId;
end loop;
open t(status);
loop
fetch t into r;
exit when t%notfound;
records(i) := r;
i := i + 1;
end loop;
end getByStatus;
end testpkg;
-- Test program
declare
r testpkg.TYPE_TESTNAMES;
begin
testpkg.getByStatus(2, 0, 3, r);
dbms_output.put_line(r(1).id);
end; -
Downloading .xls file with multiple rows and Columns
Hi ALL,
I need to genarate .xls file with multiple rows and and Columns and sent as an email.Since our customer having Problem with .CSV files need to genarate .XLS file.
Please do the needful.
Thanks
MadhuHi Madhu,
You might also consider using Excel Spreadsheet XML as the target structure (namespace is urn:schemas-microsoft-com:office:spreadsheet). When you double-click the resulting xml on a PC it automatically opens with Excel. So, users don't see a difference. It will open up a lot of options with formatting including creating multiple worksheets if you wanted to. Best of all you can stick with XML.
See my response in this thread:
Re: Convert XML data into XLS
Thanks,
-Russ -
Selecting multiple rows using column header with checkbox in it.
Dear All.,
I am trying to select multiple rows with checkbox in column header but it doesnot works...
Following is my codel
<af:table value="#{bindings.xx.collectionModel}"
var="row"
rows="#{bindings.xx.rangeSize}"
emptyText="#{bindings.xx.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.xx.rangeSize}"
rowBandingInterval="1"
filterModel="#{bindings.xx.queryDescriptor}"
queryListener="#{bindings.xx.processQuery}"
varStatus="vs" partialTriggers="sbcSelectAll sbcChkFlag"
selectedRowKeys="#{bindings.xx.collectionModel.selectedRow}"
selectionListener="#{bindings.xx.collectionModel.makeCurrent}"
rowSelection="none" id="tCdMast" width="400"
columnStretching="column:c4" inlineStyle="height:200px;">
<af:column sortProperty="ChkFlag" filterable="true"
sortable="true"
headerText="#{bindings.xx.hints.ChkFlag.label}"
id="c2" width="55"
inlineStyle="#{row.ChkFlag ? 'background-color:#9CACC9;' : ''}">
<af:selectBooleanCheckbox simple="true" value="#{row.ChkFlag}"
selected="#{row.ChkFlag}" id="sbcChkFlag"
autoSubmit="true" immediate="true"/>
<f:facet name="header">
<af:selectBooleanCheckbox simple="true"
autoSubmit="true"
valueChangeListener="#{xxBean.onTableChkAllCheckChanged}"
id="sbcSelectAll"/>
</f:facet>
</af:column>
</af:table>
Managed Bean
public void onTableChkAllCheckChanged(ValueChangeEvent valueChangeEvent) {
Boolean newValue =
Boolean.valueOf(u.nvlString(valueChangeEvent.getNewValue(),
"false"));
Boolean oldValue =
Boolean.valueOf(u.nvlString(valueChangeEvent.getOldValue(),
"false"));
if (newValue.equals(oldValue))
return;
int rowIndex=0;
ViewObject vo = u.findIterator("xxIterator").getViewObject();
vo.reset();
while(vo.hasNext()){
Row row;
if(rowIndex==0)
row=vo.first();
else
row=vo.next();
row.setAttribute("ChkFlag", newValue.booleanValue());
rowIndex=1;
u.addPartialTargets(tableDocuments);
}Please help!!.
Thanks & Regards,
Santosh.
jdeve 11.1.1.4.0Can you check this sample in the blog post?
http://sameh-nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html
Thanks,
Navaneeth -
Attach Multiple rows EIT in iRecruitment using Personalization
1. The EIT is set up in core HRMS as multiple rows descriptive flexfield having segments each with value set and default values.
Multiple rows meaning, user can enter multiple records as extra information as compared to DFF which only allow one record..
2. The requirement is to attach this EIT in iRecruitment (self service, HTML) using personalization.
My Question ?
1. Can I add this EIT as flex item ?
2. do I have to create EO, VO and AM for this EIT table or this is provided by oracle when EIT is created ?
3. is the EIT displayed as table in page with add, update delete button.
4. is there any document which describes steps to add EIT with multiple rows to self service apps.
any pointers appreciated.
ThanksThere is support for the Person EIT in Self Service and there is no reason why you can't put your EIT function on an iRec menu (you should copy the seeded EIT function).
Getting an EIT to work in Self Service is a topic in itself, especially if you need approval but basically you need to make sure you set up EIT Security correctly, customise the menu functions and make good use of function level personalization.
The difficulty you may find is being able to enter details into the EIT for a given person. The seeded EIT functions are either for Employee Self service or for Manager self service, not for iRec. I am firstly assuming you are talking about the Person EIT, not the Job, Assignment, Org or any of the other EITs that exist.
The next thing to understand is who will be entering information into the EIT? Will it be the applicant or candidate themselves? If so, you may find the seeded employee EIT function can be slotted into an irec screen somehow.
If it is a manager entering the EIT information for an applicant, then you may need to play around with the Manager EIT function and security profiles, not sure on that. I would need to know more before understanding how the EIT fits into your business flows.
The seeded EIT screens are pretty flexible, you add (for multi row EITS), update and delete rows. Approval can be added if you need it.
Maybe you are looking for
-
I was prompted today to update Firefox to version 3.6.6, Mozilla Firefox Yahoo! Edition Yahook 1.7. After I installed the update, I noticed that in Yahoo! Mail some of the buttons above the message field are no longer active. I'm no longer able to cl
-
Hi, We have created a SharePoint site column with below settings 1. ShowInEditForm - False 2. ShowInNewForm - False 3. ShowInDisplayForm - True With the above definition, the site column showing only in view properties form not in New and Edit forms.
-
Calling an ABAP Program from source system in a process chain
Hi, I need to call an ABAP program (Extract program RMBWV308) from R/3 within a Process Chain in BW 3.5 Your urgent advice please
-
I keep getting this error. when i debug the values populate the high & low correctly but I get this error and it shuts down the query. Here is the code. I have tried several different things and nothing works. Any ideas what is wrong. I am tryin
-
I'm trying to make a AUTO slide show. I can select all the other actions like mouse clicks etc. but ON load will not work. PLEASE HELP> I do not know how to reload/reinstall "ADOBE" golive default actions. I'm using golive cs mac version and "ON LOAD