One column one row w/ separator to be hierarchical columns
Dear Gurus,
I want to present the "+one column/one row data+"
F:\JDeveloper\Tut\TIJ4-code\generics\watercolors\Watercolors.javaas this follow:
id parent_id
Watercolors.java watercolors
watercolors generics
generics TIJ4-code
TIJ4-code Tut
Tut JDeveloper
JDeveloper F:Id better using an sql rather than pl/sql.
regards,
I think you'd struggle to do this in SQL alone, unless you use some fancy MODEL clause or Michaels can come up with some nifty XML solution. I would probably go with some PL/SQL as a pipelined function...
SQL> create table treedata as
2 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Adding Window Event Listener. Working with MDI.swf' as cp from dual union all
3 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating Finger Icon.swf' from dual union all
4 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating Key Icon.swf' from dual union all
5 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class Containing Information on Fingers.swf' from dual union all
6 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class Handling Shift Press.swf' from dual union all
7 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class KBLayout\Creating the Class KBLayout (Part 1).swf' from dual union all
8 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class KBLayout\Creating the Class KBLayout (Part 2).swf' from dual union all
9 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class KeyCode.swf' from dual union all
10 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class KeyIcon\Creating the Class KeyIcon (Part 1).swf' from dual union all
11 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class KeyIcon\Creating the Class KeyIcon (Part 2).swf' from dual union all
12 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class for Key Systemization .swf' from dual union all
13 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating Supplementary Classes\Creating the Class for Saving Information on Keys.swf' from dual union all
14 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Creating the Main Window (the Class MainWindow).swf' from dual union all
15 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Class Constructor.swf' from dual union all
16 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Creating Methods Responsible for Icon Fill.swf' from dual union all
17 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Creating Methods Responsible for Icon Highlight\Creating Methods Responsible for Icon Highlight (Part 1).swf' from dual union all
18 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Creating Methods Responsible for Icon Highlight\Creating Methods Responsible for Icon Highlight (Part 2).swf' from dual union all
19 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Defining Some Static Variables\Defining Some Static Variables (Part 1).swf' from dual union all
20 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Defining Some Static Variables\Defining Some Static Variables (Part 2).swf' from dual union all
21 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Highlighting Icons.swf' from dual union all
22 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Overriding the Method run.swf' from dual union all
23 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Overriding the Method setVisible.swf' from dual union all
24 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\Registering Keyboard in the Main Window of Application .swf' from dual union all
25 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\KeyboardGUI\The Methods new_icon and new_fingericon.swf' from dual union all
26 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Adding Keyboard Listener to the Application.swf' from dual union all
27 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Creating Methods to Test the Efficiency of the User''s work.swf' from dual union all
28 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Creating the class ExerciseGUI.swf' from dual union all
29 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Creating the class Lessons and Working with It in the Class ExerciseGUI.swf' from dual union all
30 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Handling Pressed Keys.swf' from dual union all
31 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Improving Graphical Interface of the Class ExerciseGUI.swf' from dual union all
32 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Setting Position and the Sizes of the Main Window.swf' from dual union all
33 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Statistics.swf' from dual union all
34 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Working with Graphical Interface of the Class ExerciseGUI.swf' from dual union all
35 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\The Class ExerciseGUI\Working with Keyboard Events.swf' from dual union all
36 select 'F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\Working with Main Window Menu. Positioning the Main Window.swf' from dual
37 /
Table created.
SQL>
SQL>
SQL>
SQL> CREATE OR REPLACE TYPE pth IS TABLE OF VARCHAR2(32767);
2 /
Type created.
SQL>
SQL> CREATE OR REPLACE FUNCTION tree RETURN pth PIPELINED IS
2 l_maxlen NUMBER;
3 l_parent_path VARCHAR2(255);
4 type t_output is table of varchar2(32767) index by pls_integer;
5 l_output t_output;
6 l_cnt NUMBER := 0;
7 PROCEDURE show_children(p_path IN VARCHAR2, p_lvl IN NUMBER, p_tree IN VARCHAR2) IS
8 l_ch_path_cnt number;
9 CURSOR cur_children_elements IS -- non path children
10 select replace(cp,p_path) as ch
11 from treedata
12 where instr(replace(cp,p_path),'\') = 0
13 order by 1;
14 CURSOR cur_children_paths IS -- path children
15 select pth
16 ,row_number() over (order by pth) as rn
17 ,count(*) over () as cnt
18 from (
19 select distinct substr(replace(cp,p_path),1,instr(replace(cp,p_path),'\')) as pth
20 from treedata
21 where instr(cp,p_path) > 0
22 and instr(replace(cp,p_path),'\') > 0
23 order by 1
24 );
25 BEGIN
26 select count(*)
27 into l_ch_path_cnt
28 from treedata
29 where instr(cp,p_path) > 0
30 and instr(replace(cp,p_path),'\') > 0;
31 for c in cur_children_elements
32 loop
33 l_cnt := l_cnt + 1;
34 if l_ch_path_cnt = 0 then
35 l_output(l_cnt) := replace(replace(substr(p_tree,1,length(p_tree)-2)||' ','+',' '),'-',' ')||' '||c.ch;
36 else
37 l_output(l_cnt) := replace(replace(p_tree,'+',' '),'-',' ')||' '||c.ch;
38 end if;
39 end loop;
40 if l_ch_path_cnt = 0 then
41 l_cnt := l_cnt + 1;
42 l_output(l_cnt) := substr(p_tree,1,length(p_tree)-2);
43 else
44 l_cnt := l_cnt + 1;
45 l_output(l_cnt) := p_tree;
46 end if;
47 for p in cur_children_paths
48 loop
49 if p.rn != p.cnt then
50 l_cnt := l_cnt + 1;
51 l_output(l_cnt) := substr(p_tree,1,length(p_tree)-2)||'+-'||substr(p.pth,1,length(p.pth)-1);
52 show_children(p_path||p.pth, p_lvl+1, substr(p_tree,1,length(p_tree)-2)||'| | ');
53 else
54 l_cnt := l_cnt + 1;
55 l_output(l_cnt) := substr(p_tree,1,length(p_tree)-2)||'\-'||substr(p.pth,1,length(p.pth)-1);
56 show_children(p_path||p.pth, p_lvl+1, substr(p_tree,1,length(p_tree)-2)||' ');
57 end if;
58 end loop;
59 END;
60 BEGIN
61 -- first display the common parent path
62 select max(length(txt)) as max_ln
63 into l_maxlen
64 from (
65 select substr(cp,1,rn) as txt
66 from treedata, (select rownum rn from dual connect by rownum <= 255)
67 group by substr(cp,1,rn)
68 having count(*) = (select count(*) from treedata)
69 );
70 select substr(cp,1,l_maxlen)
71 into l_parent_path
72 from treedata
73 where rownum = 1;
74 PIPE ROW(l_parent_path);
75 -- now recurse the data
76 show_children(l_parent_path, 1, '| ');
77 for i IN 1..l_cnt
78 loop
79 PIPE ROW(l_output(i));
80 end loop;
81 RETURN;
82 END tree;
83 /
Function created.
SQL>
SQL> select * from table(tree);
COLUMN_VALUE
F:\Teach_Pro_JAVA\Teach_Pro_JAVA\Teachpro\Working Over the Project\
| Adding Window Event Listener. Working with MDI.swf
| Creating the Main Window (the Class MainWindow).swf
| Working with Main Window Menu. Positioning the Main Window.swf
|
+-Creating Supplementary Classes
| | Creating Finger Icon.swf
| | Creating Key Icon.swf
| | Creating the Class Containing Information on Fingers.swf
| | Creating the Class Handling Shift Press.swf
| | Creating the Class KeyCode.swf
| | Creating the Class for Key Systemization .swf
| | Creating the Class for Saving Information on Keys.swf
| |
| +-Creating the Class KBLayout
| | Creating the Class KBLayout (Part 1).swf
| | Creating the Class KBLayout (Part 2).swf
| |
| \-Creating the Class KeyIcon
| Creating the Class KeyIcon (Part 1).swf
| Creating the Class KeyIcon (Part 2).swf
|
+-KeyboardGUI
| | Class Constructor.swf
| | Creating Methods Responsible for Icon Fill.swf
| | Highlighting Icons.swf
| | Overriding the Method run.swf
| | Overriding the Method setVisible.swf
| | Registering Keyboard in the Main Window of Application .swf
| | The Methods new_icon and new_fingericon.swf
| |
| +-Creating Methods Responsible for Icon Highlight
| | Creating Methods Responsible for Icon Highlight (Part 1).swf
| | Creating Methods Responsible for Icon Highlight (Part 2).swf
| |
| \-Defining Some Static Variables
| Defining Some Static Variables (Part 1).swf
| Defining Some Static Variables (Part 2).swf
|
\-The Class ExerciseGUI
Adding Keyboard Listener to the Application.swf
Creating Methods to Test the Efficiency of the User's work.swf
Creating the class ExerciseGUI.swf
Creating the class Lessons and Working with It in the Class ExerciseGUI.swf
Handling Pressed Keys.swf
Improving Graphical Interface of the Class ExerciseGUI.swf
Setting Position and the Sizes of the Main Window.swf
Statistics.swf
Working with Graphical Interface of the Class ExerciseGUI.swf
Working with Keyboard Events.swf
51 rows selected.
SQL>
Similar Messages
-
Hello everyone,
I am developing an application (ALV OO) to select more than 1 column by row ( one ). This is an a holiday application so the idea is:
-One column will be the day, and the row will be the user.
So I am trying to select more than one day by user (that would be the row).
I am using the method set_table_for_first_display but when it shows the alv, doesn't let me to select more than one column with a click of the mouse.
Does anybody know if I can do this (select more than one column, by row) in somehow?
Please let me know if you need more clarification about this.
Thanks in advance
DiegoHi Diego,
it's all in the documentation.
set different selection modes through the value of the field u201CSEL_MODEu201D in the layout structure.
SPACE
same as 'B'
see 'B'
Default setting
'A'
Column and row selection
Multiple columns
Multiple rows
The user selects the rows through pushbuttons at the left border of the grid control.
'B'
Simple selection, list box
Multiple columns
Multiple rows
'C'
Multiple selection, list box
Multiple columns
Multiple rows
'D'
Cell selection
Multiple columns
Multiple rows
Any cells
The user selects the rows through pushbuttons at the left border of the grid control
Beyond setting this option, you can set u201CNO_ROWMARKu201D option to hide the mark column which is normally visible when the selection mode allows multiple row selection.
One point to notice here is that if you set your ALV Grid as to be editable, it may override your selection mode regardless of your layout settings.
This is from SDN Community Contribution "An Easy Reference for ALV Grid Control" By: Serdar ŞİMŞEKLER
Sorry, no link,. it's on my disk.
Regards,
Clemens -
JTable cell Render on the last row column one help please
Hi All
I am hoping that someone will be able to help me with this....
I want to render the last row and column one of the table with this render
thanks for any help
Craig
public class MyRenderer2 extends DefaultTableCellRenderer {
public Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected, boolean hasFocus,
int row, int column) {
ImageIcon icon = new ImageIcon(image_pics.SMALL_BLUE);
setIcon(icon);
return this;
}it still renders every row
any Ideas ??
I just want the last row column 0 to be rendered
I a call a method set table
then I call for the data
//TableModel
public void setClientTableModel() {
clientModel = new DefaultTableModel(coloumHeaderObject, 0) {
public boolean isCellEditable(int row, int column) {
return false;
TableSorter sorter = new TableSorter(clientModel); //ADDED THIS
sorter.setTableHeader(phoneList.getTableHeader()); //ADDED THIS
phoneList.setModel(sorter);
// phoneList.setTableHeader(null);
setTable();
revalidate();
public void setTable() {
// phoneList.getColumnModel().getColumn(0).setCellRenderer(new MyRenderer());
phoneList.getColumnModel().getColumn(1).setCellRenderer(new MyRenderer1());
phoneList.getColumnModel().getColumn(4).setCellRenderer(new MyRenderer2());
phoneList.getColumnModel().getColumn(0).setMinWidth(20);
phoneList.getColumnModel().getColumn(0).setMaxWidth(20);
phoneList.getColumnModel().getColumn(0).setPreferredWidth(20);
phoneList.getColumnModel().getColumn(1).setMinWidth(20);
phoneList.getColumnModel().getColumn(1).setMaxWidth(20);
phoneList.getColumnModel().getColumn(1).setPreferredWidth(20);
phoneList.getColumnModel().getColumn(2).setMinWidth(80);
phoneList.getColumnModel().getColumn(2).setMaxWidth(80);
phoneList.getColumnModel().getColumn(2).setPreferredWidth(80);
phoneList.getColumnModel().getColumn(3).setMinWidth(150);
phoneList.getColumnModel().getColumn(3).setMaxWidth(150);
phoneList.getColumnModel().getColumn(3).setPreferredWidth(150);
phoneList.getColumnModel().getColumn(4).setMinWidth(20);
phoneList.getColumnModel().getColumn(4).setMaxWidth(20);
phoneList.getColumnModel().getColumn(4).setPreferredWidth(20);
phoneList.setOpaque(false);
phoneList.setGridColor(Color.lightGray);
phoneList.setRowHeight(18);
phoneList.setShowVerticalLines(false);
phoneList.setIntercellSpacing(new Dimension(0, 0));
phoneList.setFont(new java.awt.Font("Lucida Grande", 0, 11));
phoneList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
if (ALLOW_COLUMN_SELECTION) { // false by default
if (ALLOW_ROW_SELECTION) {
phoneList.setCellSelectionEnabled(true);
phoneList.setColumnSelectionAllowed(true);
ListSelectionModel colSM = phoneList.getColumnModel().getSelectionModel();
colSM.addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
if (e.getValueIsAdjusting())return;
ListSelectionModel lsm = (ListSelectionModel) e.getSource();
int row = phoneList.getSelectedRow(), col = 3;
int rowID = phoneList.getSelectedRow(), colID = 5;
if (lsm.isSelectionEmpty()) {
} else {
int selectedCol = lsm.getMinSelectionIndex();
if (selectedCol == 4) {
phoneNumber = (String) phoneList.getValueAt(row, col).toString();
main.setPhoneNumber(phoneNumber);
main.openLargePhone();
lsm.clearSelection();
if (selectedCol == 5) {
ID = (String) phoneList.getValueAt(row, col).toString();
// main.setID(ID);
// main.deleteContact();
lsm.clearSelection();
//set table data
public void setTest() {
setClientTableModel();
Object[] data = {" ", " ", "Work", "03 9841-8247", " "};
clientModel.addRow(data);
Object[] data1 = {" ", " ", "Fax", "03 9842-0360", " "};
clientModel.addRow(data1);
phoneList.getColumnModel().getColumn(0).setCellRenderer(new MyRenderer());
} -
I have data in a table that looks like below:
ColumnA ColumnB
123 abc|cde|fgr
345 def|ght|sew
890 deq|nmk|lop|lip|fre|dwsThere is no limit on how many values you can have in ColumnB and they are pipe delimited.
I need to split this one column into rows as:
ColumnA ColumnB
123 abc
123 cde
123 fgr
345 def
345 ght
890 fre
890 dwsThanks in advance!with sample_data as (
select 123 columna,'abc|cde|fgr' columnb from dual union all
select 345,'def|ght|sew' from dual union all
select 890,'deq|nmk|lop|lip|fre|dws' from dual
select columna,
regexp_substr(columnb,'[^|]+',1,column_value) columnb
from sample_data,
table(
cast(
multiset(
select level
from dual
connect by level <= length(regexp_replace(columnb || '|','[^|]'))
as sys.OdciNumberList
order by columna,
column_value
COLUMNA COLUMNB
123 abc
123 cde
123 fgr
345 def
345 ght
345 sew
890 deq
890 nmk
890 lop
890 lip
890 fre
COLUMNA COLUMNB
890 dws
12 rows selected.
SQL> SY. -
This IS the same error message I keep getting when I try and create labels. I've done it in the past but this year it won't. I am using the latest update of Pages and numbers.
Help??Mike,
Thanks for the question. I hadn't explored this previously.
You must first create your data table in a Numbers document and save that document. Use a Header Row and place your data descriptions in that row, with your data below.
Then you create your Pages document with merge fields, but don't format the merge titles yet.
Now, go to the Pages Link Inspector and Select the Numbers document to merge from.
One by one, select your merge location text and add to the Merge Field list in the Inspector, selecting the corresponding descriptor in the Numbers table.
Finally, in Pages, Edit > Mail Merge.
Here's an example:
In the screen shot, the Numbers table is in the background, the Pages merge format document is in the foreground, and the result document is at the mid-plane.
Regards,
Jerry -
I want to execute a stored procedure using ssis.But the problem I am having is that there is a table with 200 rows with only
single column.Now i want to execute stored procedure using value one by one from table .once the stored procedure is executed with top value from table i also want to delete that topmost column value and execute with next table value.and store the result in
text file.
please help me..or provide a package.If you want to do it in SSIS, a way to do this is by using For Each Loop as mentioned above.
Create 1 OBJECT type variable (list of values) and one STRING type variable (one value at a time)
Use EXE SQL Task with ResultSet = FULL RESULT SET and query = SELECT COL FROM TABLE ORDER BY COL ASC...output this to the OBJECT type variable
Next, a For Each loop container with Foreach ADO Enumerator, ADO object source variable = Object type variable and map that to String type variable with index = 0.
Within your for each loop container, select another EXEC SQL Task and pass in an input parameter (the String type variable) and query = EXEC PROC ? -- WHERE ? = String type variable.
This will execute your store procedure just for that one value out of the whole list.
Now within the same For Each loop, select another EXEC SQL Task and again pass in an input parameter (the same String type variable) and query = DELETE FROM TABLE WHERE COL = ? -- WHERE ? = the current value
The above process should A) get the list of values from the table B) pick one value at a time and execute the proc and delete and right after delete that value from the table.
Hope this helps.
-- some further investigation/tweaking may require but it should help you get started. -
Need to Convert Comma separated data in a column into individual rows from
Hi,
I need to Convert Comma separated data in a column into individual rows from a table.
Eg: JOB1 SMITH,ALLEN,WARD,JONES
OUTPUT required ;-
JOB1 SMITH
JOB1 ALLEN
JOB1 WARD
JOB1 JONES
Got a solution using Oracle provided regexp_substr function, which comes handy for this scenario.
But I need to use a database independent solution
Thanks in advance for your valuable inputs.
GeorgeGo for ETL solution. There are couple of ways to implement.
If helps mark -
Can i move blob column one tablespace to another tablespace
When I ruining the following script
ALTER TABLE T_Transaction_Image
MOVE LOB(RCSCOMPRESSED_IMAGE,CAMERA_PHOTO_1,CAMERA_PHOTO_2,NUMBER_PLATE)
STORE AS TABLESPACE IMAGE
I found error
ORA-22853: invalid LOB storage option specification
Here we have more than one column having BLOB data type .
Question
I want to know can i move multiple column in single alter table ?
and how can i move blob column one tablespace to another tablespace
Thanks in advance
Edited by: abdul moyed on Feb 3, 2011 6:33 PMhttp://decipherinfosys.wordpress.com/2007/11/21/moving-lob-column-to-a-different-tablespace/
Regards
Asif Kabir -
How do I setup multiple users to use one source but manage playlists separately? For example, play counts are specific to each user.
Hi,
Thank you for posting in Windows Server Forum.
Here adding to the words of “Tim”, a forwarder is a DNS server on a network used to forward DNS queries for external DNS names to DNS servers outside of that network. You can also forward queries according to specific domain names using conditional forwarders.
A DNS server on a network is designated as a forwarder by having the other DNS servers in the network forward the queries they cannot resolve locally to that DNS server. You can refer information regarding forwarders and how to configure from beneath link.
Understanding forwarders
http://technet.microsoft.com/en-us/library/cc782142(v=ws.10).aspx
Configure a DNS Server to Use Forwarders
http://technet.microsoft.com/en-us/library/cc754941.aspx
Hope it helps!
Regards. -
How to include more than one input ready rows in analyzer
Hi Gurus,
I have a requirement that, I need to have more than one input ready rows at the end of the query output in analyzer.
Normally it will show only one row as input ready at end of the query result in any manual planning analyzer., But my requirement is to have multiple input ready rows in analyzer. Is it possible in workbook/analyzer?.
Thanks,
V.SenthilHi Senthil,
Have a look at the below thread.
How to add new rows for input ready query in BEx analyzer
Regards,
Venkatesh -
OA Framework - Help Needed in highlighting one of the rows in Custom Page
Hi Oracle Gurus,
I am new to OAF.
I have a requirement like I have to highlight one of the rows in a Custom OA Page.
These rows exist in a table structure,they are basically Claim records of the employees.
All these rows are from only One View Object. I just need the total row alone to get highlighted in different color.
I tried updating the Custom.xss file in $OA_HTML/cabo/styles.
Below is my Custom.xss file
<styleSheet>
<!-- Please start your customizations here -->
<style selector="XX_BOLD">
<includeStyle name="DefaultFontFamily"/>
<property name="background-color">#FF0000</property>
</style>
<style selector="XX_NORMAL">
<property name="background-color">#0000FF</property>
</style>
The Query of the VO is
SELECT EMP_DEP,
CLINIC,
HOSPITAL,
DENTAL,
OPTICAL,
EXE_PROFILE,
MATERNITY,
DECODE(EMP_DEP,'Total','XX_BOLD','XX_NORMAL') XX_BOLD FROM apps.XXBEN_CB_MEDUTIL_TABLE;
The VO has decode operation that decides the CSS style which will be used via Controller.
I have applied the CSS file thorugh the Controller code that I have given below.
Controller Code :
OAPageLayoutBean plb = pageContext.getPageLayoutBean();
OAMessageStyledTextBean columnBean = (OAMessageStyledTextBean) plb.findChildRecursive("EmpDep");
OADataBoundValueViewObject css = new OADataBoundValueViewObject(columnBean, "XX_BOLD");
columnBean.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR,css);
I did all the changes and bounced the Apache Server.
But this seems to be not working....I do not see any Colour change in the OAPage.
Can Anyone tell what could be wrong in this.???
Please Reply as this very urgent........Hi Anil,
I tried watever you had suggested,It is still throwing the same error.
I have pasted below the code that I am using.
Controller Code:
package EmployeeTest.oracle.apps.per.server.webui;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants ;
import oracle.apps.fnd.framework.webui.beans.table.OATableBean ;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
import oracle.apps.fnd.framework.webui.OADataBoundValueViewObject;
import oracle.cabo.ui.beans.table.ColumnBean;
import oracle.apps.fnd.framework.webui.beans.form.OAChoiceBean;
import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
import oracle.apps.fnd.framework.webui.beans.layout.*;
import oracle.apps.fnd.framework.webui.beans.message.*;
import oracle.apps.fnd.framework.webui.beans.nav.OANavigationBarBean;
import oracle.apps.fnd.framework.webui.beans.nav.OAPageButtonBarBean;
import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
import oracle.apps.fnd.framework.webui.beans.table.*;
import oracle.cabo.ui.*;
import oracle.cabo.ui.beans.*;
import oracle.cabo.ui.beans.form.*;
import oracle.cabo.ui.beans.layout.*;
import oracle.cabo.ui.beans.message.MessageStyledTextBean;
import oracle.cabo.ui.beans.message.MessageTextInputBean;
import oracle.cabo.ui.beans.nav.NavigationBarBean;
import oracle.cabo.ui.beans.table.ColumnBean;
import oracle.cabo.ui.beans.table.TableBean;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.OARow;
import oracle.jbo.domain.Number;
import oracle.cabo.style.CSSStyle;
import java.io.Serializable;
* Controller for ...
public class EmployeeInfoCO extends OAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
int intPersonId = pageContext.getEmployeeId();
//int intPersonId; // = pageContext.getEmployeeId();
//String strPersonId = Integer.toString(277980);
String strPersonId = Integer.toString(intPersonId);
// get the Application Module
OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
Serializable parameters[] = { strPersonId };
//pass parameters to Application Module
oaAM.invokeMethod("initQuery", parameters);
oaAM.invokeMethod("insertRow", parameters);
oaAM.invokeMethod("execQuery");
oaAM.invokeMethod("totexecQuery");
oaAM.invokeMethod("tohighQuery");
OAViewObject oaviewobject1 =(OAViewObject)oaAM.findViewObject("EmployeeUtilVO1");
oaviewobject1.reset();
if (oaviewobject1 != null)
do
if(!oaviewobject1.hasNext())
break;
oaviewobject1.next();
OARow row = (OARow)oaviewobject1.getCurrentRow();
String fullName = (String)row.getAttribute("EmpDep");
System.out.println("The Name is "+fullName);
row.setEmpDep("<html><H5>"+row.getEmpDep()+"</H5></html>"); (As it is a Plain Text this HTML tag is making the text row.getEmpDep() as H5)
} while(true);
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
I am successful in Interating the rows of the table.
I am being able to print out the view attribute "EmpDep", But when I tried highlighting the row attribute using Row object,it is throwing me an error.
The error code is :
Error(88,40): method getEmpDep not found in interface oracle.apps.fnd.framework.OARow
Error(88,13): method setEmpDep(java.lang.String) not found in interface oracle.apps.fnd.framework.OARow
I have already give the Query for the VO in the Thread.
Could You Plz let me know what is wrong in this code?
Edited by: user1393742 on Sep 21, 2010 7:54 PM
Edited by: user1393742 on Sep 21, 2010 7:55 PM
Edited by: user1393742 on Sep 21, 2010 7:57 PM
Edited by: user1393742 on Sep 21, 2010 7:58 PM
Edited by: user1393742 on Sep 21, 2010 8:01 PM
Edited by: user1393742 on Sep 21, 2010 8:02 PM
Edited by: user1393742 on Sep 21, 2010 8:03 PM
Edited by: user1393742 on Sep 21, 2010 8:07 PM -
How to read the row of resulted table one by one
Hi,
My query is displaying n no of rows in resulted table.Is there any way to read the row one by one and pass the value of attribute in other variable.
If anybody knows then please let me know.
thanks
Divyahi
read the VO using RowSetIterator
OAViewObject reqLinesVO = (OAViewObject)am.findViewObject("VO");
if(reqLinesVO!=null)
int fetchedRowCount = reqLinesVO.getFetchedRowCount();
RowSetIterator reqLinesIter = reqLinesVO.createRowSetIterator("reqLinesIter");
if (fetchedRowCount > 0)
reqLinesIter.setRangeStart(0);
reqLinesIter.setRangeSize(fetchedRowCount);
for (int i = 0; i < fetchedRowCount; i++)
OARow row = (OARow)reqLinesIter.getRowAtRangeIndex(i);
String getattr=(String) row.getAttribute("Attribute14");
// Always close the iterator when you're done.
reqLinesIter.closeRowSetIterator();
thanx
Pratap -
Can any one tell me how to break this into separate columns 05/13/2014,"46","48","37","70","74","1","2","121000000.0000"
Paste your content into TextEdit. Format > Make Plain Text.
Comand-S to save.
Command-Click the filename at the top of the TextEdit window. Click on the second line, the name of the folder where you saved the document.
Select the extension of the document Name in the finder window that is being displayed and replace TXT with CSV.
Right-Click the csv file and choose Open With > Numbers.
Numbers will open with a column for each field in your data.
Jerry -
Ok, im new to numbers but i cant work this one out. I have 4 columns. A and B have different values. Column C is an average of hours worked. When column C is less then 8 i need column D to equal column A. When column C is equal or greater then 8 i need column D to equal the sum of A and B.
Hi Lucas,
Try this:
Formula in D2 (and Fill Down) =IF(C2<8, A2,A2+B2)
The IF function follows the logic of if, then, else.
IF(this is true, then do this, else do that)
If it is raining, then stay at home, else hold a picnic .
Regards,
Ian. -
Only show one or two rows on Scroll areas
Hi,
I have a Scroll areas , and have 2000 rows, I only want to display one or two rows at first, if the user click the plus symbol, then show one more row, is that a way to handle this ?what tools are you in?
work around would be to do an noautoselect on scroll properties and do a .select("where condition to show only 2 rows")
Subhash
Maybe you are looking for
-
My ipod is not recognized by windows xp
hello every body, i bought my ipod secondhand (20 Go version 2.3), without the installation CD, so when i connected it to windows xp, it's not recognized, i installed the last version of itune and ipod driver on my PC, but the problem persist always,
-
How do i get my data back if i restored my ipod touch
how do i get my data back if i restored my ipod touch
-
Issue in product category replication from R/3 to SRM
Mehul G Shah: BACKGROUND: We are in the process of replicating Material Group from R/3 to SRM using transaction R3AR2 & R3AR4. Our Pre-Production server got refreshed recently & this has caused all EBM data inclucing Logical System & Destination bein
-
Launching PCR-Workflow from Backend in Portal
Hello We have a PCR-scenario running (ESS+MSS) with EP 6.0 SP2 Patch 4 HF 7 und CM SP2 P4 HF5 and it works great in the uwl in the portal. But some of our people still prefere working in the Business Workplace ("UWL of the Backend") instead of the uw
-
WHERE CAN I FIND ADOBE FLASH BUILDER 4.7 STANDARD INSTALLATION?
1 year ago I bought Adobe Flash Builder 4.7 Standard. Installation files i lost. Creative Cloud contain Adobe Flash Builder 4.7 Premium, and does not contain Adobe Flash Builder 4.7 Standard. WHERE CAN I FIND ADOBE FLASH BUILDER 4.7 STANDARD INSTALL