Frame Driver
Can Frame Drivers not act as portlets? I created a Frame Driver but it does not have an option for publishing it as a portlet? How do these work?
Thanks,
-Stephanie
Thanks. I don't understand what they are used for then but I'll post my next question in the applications forum.
-Stephanie
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jay Daugherty ([email protected]):
Portal pages are based on tables. The html within a portlet is restricted to what is valid inside a table cell. So, frame drivers are not publishable a portlets. If you want more details, please post a question to the Oracle9iAS Portal Applications forum.
Thanks<HR></BLOCKQUOTE>
null
Similar Messages
-
How can I put more than One ComboBox in the Driving Frame of a Frame Driver
Hi,
I am working with a Frame Driver and I want that in the Driving Frame put more than one ComboBox to filter the report, for example, I want to put one combobox for City, another for Year, and another for Month, and when the user select the City, Year and Month and do click in Submit button, then in the Target Frame appears the information for those filters.
Does anybody know how to do that?
Thanks a lot.
Bye,Hi,
It is not possible to have more than one combo in the source frame. This is because frame drivers can take only
two columns in the sql query, one is the display value and the other the return value.
Thanks,
Sharmila -
Problem - Frame Driver Template
I have been trying to develop Portal Forms and embedding the forms in a frame driver using Oracle Portal 3.0. I specified a particular User Interface Template but never get to see this chosen template when running. Instead the form always uses the template FINANCE_TEMPLATE1.
Does anyone have an idea what the problem is and may be how I can work around this problem.Answered in your other post.
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
==================
"Rabel" <[email protected]> wrote in message
news:g531rn$pp0$[email protected]..
>I am working on a site and am having problem getting my
template to work
> correctly. I have set up the template
> (
http://creativeness.com/temptest/storetemplate.htm
> the text area is in the middle and the left and right
side of the text
> area is
> the same size - On the left side is a menu which I have
aligned all of the
> images to the top and placed the last image to be 100%
tall and align to
> top.
> On the right side it is a single white image which I
also made 100% height
> and
> aligned to top. But as you can see it is falling apart
when the text is
> larger
> than the box. Please let me know what I am doing wrong
to get this fixed.
> Any
> help is appreciated.
>
> Thanks,
> randy
> -
Passing value from Frame Driver to Form
Hi,
I have a frame driver which shows some (project Names) when submitted calls a form in the target area. I'am joining 2-3 tables and i cannot pass the Rowid but i'am passing another field value. My problem is when i select a Project Name and hit the submit button , unless i hit the query button it does the value on the form . It works good when i pass the rowid (some other form). Does anyone know how to make this work?
Thank You.Hi,
Here is an example which calls the employee form. After clicking on the submit in the driving frame after selecting the employee, the employee form shows up with that particular employee's details.
sample....
select ename,'SJAYARAM903_1B.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=_sessionid&p_arg_values=&p_arg_names=_empno_cond&p_arg_values==&p_arg_names=show_header&p_arg_values=YES&p_arg_names=EMPNO&p_arg_values='||empno url from SJAYARAM903_1B_DEMO.EMP
Thanks,
Sharmila -
the sql for the frame driver errors displaying the whole SQL and the following error messages
*(WWV-09700)*
ORA-01403: no data found (WWV-11230)
LINK LOV ERROR:
You must supply an LOV query, name, cursor, or static values.
LOV: "%0"
Parse Message: Cursor supplied, no need to parse.
I have a bind variable and I dont want any LOV linked to it. I tried to give a default value and still get the same error. The sql works fine in toad and give the results.It is a union of two sqls.
The sql returns two columns and sample result from toad is
1st column: <!--AABBCC55-->AABBCC55: <l>Abraham Acuna< /l>
2nd colum: portal_cust.maintain_user_dynamic_pg.show?p_arg_names=p_user_name&p_arg_values=AABBCC55
I am using database link in the sql.
Any idea on why is this happening?
Thanks in advance.I am getting the same error even when I use a simple sql in the frame driver like
select user_name as display_value, 'www.google.com' as returned_url from fnd_user where user_name like nvl(:p_vlaue, '%') || '%'
please help.. -
Home page link in Frame Driver
People,
i have a piece of code in my frame driver which navigates through pages and has a 'Home Page' link.
select 'Brand : Delivery Fulfilment Analysis' brand,
'http://rs2020-1-3:7778/servlet/page?_pageid=159&_dad=portal30&_schema=PORTAL30' url
from dual
union
select 'Brand : Intake Margin Analysis' brand,
'http://rs2020-1-3:7778/servlet/page?_pageid=161&_dad=portal30&_schema=PORTAL30' url
from dual
union
select chr(13),' ' from dual union select 'Brand : Top Level Report' brand,
'http://rs2020-1-3:7778/servlet/page?_pageid=143&_dad=portal30&_schema=PORTAL30' url
from dual
union
select 'Exit' brand, 'http://rs2020-1-3:7778/servlet/discoservlet?_act=Exit' url
from dual
union
select 'Home' brand, 'http://rs2020-1-3:7778/servlet/page?_pageid=101,109&_dad=portal30&_schema=PORTAL30' url
from dual
This code basically gives the users a number of hyper links to click on and navigate through different pages.
When the 'Home Page' link is selected, the frame driver displays the home page in the target window, instead of the entire HTML page.
How can i get the Home Page link to display the page as full screen??
Thanks, Matt.
nullThanks Michael,
I also found another way of doing this through a dynamic page with JavaScript.
You can specify the Frame driving URL link to point to a dynamic page which has the following code...
<-HTML>
<-HEAD>
<-TITLE>Portal Home</TITLE>
<-/HEAD>
<-BODY>
<-SCRIPT LANGUAGE="JavaScript">
window.parent.location.href = "http://rs2020-1-3:7778/pls/portal30/PORTAL30.home";
<-/script>
<-/BODY>
<-/HTML>
This closes off the frame and ensure the "home" page is displayed in full.
Thanks for your help.... Matt. -
Below is the syntax out of the Frame Drivers example text area for the SQL Query for the Frame Driver. Can anybody break down the SQL statement and map the fields to something that makes sense??? I understand up to the point that says select ename, but after that I am lost about what the rest of this statement is doing. The word url looks like it is just whipped in ther and there is one double = sign in there. It looks like there are some values but then some look like they are not there at all. etc. I would like to see something like this.
select ename,'PORTAL30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=_sessionid&p_arg_values=&p_arg_names=_empno_cond&p_arg_values==&p_arg_names=show_header&p_arg_values=YES&p_arg_names=EMPNO&p_arg_values='||empno url from PORTAL30_DEMO.EMP where DEPTNO=:departmentHi
select ename,'MYBUGS.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=_sessionid&p_arg_values=&p_arg_names=_empno_cond&p_arg_values==&p_arg_names=show_header&p_arg_values=YES&p_arg_names=EMPNO&p_arg_values='||empno url from MYBUGS_DEMO.EMP where DEPTNO=:department
This query returns the employee name and an url which points to a form for each employee.
This is the break up which explains the URL
'MYBUGS.wwa_app_module.link' - link to form which takes parameters as p_arg_names and p_arg_values.
'?p_arg_names=_moduleid&p_arg_values=1060253649' - The argument name is is _moduleid and value is 1060253649
'&p_arg_names=_sessionid&p_arg_values= ' - The arg name is _sessionid and no value
'&p_arg_names=_empno_cond&p_arg_values==' - The arg name is empnocond and value is '='
'&p_arg_names=show_header&p_arg_values=YES' - The arg name is show_header and value is 'YES'
'&p_arg_names=EMPNO&p_arg_values='||empno - The arg name is EMPNO and value is empno from the table.
Hope this helps.
Thanks,
Sharmila -
#2- FRAME DRIVER COMPONENT?
Used to build two frame HTML pages containign user selection in the "driving
frame" and data and user interaction in the main companion or "target" frame.
Define a frame driver name
Define data to poplulate frames
Set initial target frame content
set options and details.
Where is this further discussed and documented at?
Where is this found at?
Has anyone else used FRAMESETS and this FRAME DRIVER thing?
We need to use framesets in our site and want to have a top and main frame.
Please add any ideas you might have regarding implementing portal with using framesets? I understand you cant create content or pages that contain "framesets" however, can't you start from the index.html and put the end-user into a "frameset" before they enter the portal?
nullHi,
You can see the example of frame driver in the example application. In the example the query has a bind variable on which you can bring up a LOV in the top frame and choosing from that LOV will pass on the value to the form in the bottom frame.
Hope that helps.
Thanks,
Sharmila -
Using session storage between Report and Frame Driver
I have an existing report that has a link calling a frame driver with multiple forms. I would like to make the Initial Target Frame Content dynamic based on information contained in the targeted record of the report. I am able to make this work (in basic concept) on the frame driver side, but have not been able to pass session variables from the report side. I can, of course, pass bind variables via a link from the report. Does anyone know of a way to access the parameter bind varaiables in the frame driver component using session storage or something else in order to make these variables available to the PL/Sql of the Initial Target Frame?
Message was edited by: PM
user477244Seems that session is changed during logon or even if
web page (where the servlet is located) is refreshed!In Portal 10g (and maybe even in 9.0.2.6) the Web provider session is not lost any more when the user logs in to Portal.
PL/SQL doesn't lost the session storage data during
logon. But is it possible to find Java session storage
from PL/SQL session storage?No, you cannot share the session between database and Web providers. You need to find other ways to share information between portlets belonging to different providers. You can use parameter passing, or a persistent store, such as the database.
Java session storage doesn't use domain name or
subdomain which are mandatory for PL/SQL session
storage.The domain, sub-domain strings are irrelevant, as long as you can uniquely identify your session variable. For example, if you want to make sure that you have a separate session variable for every portlet instance, you should include the preference path in your domain or sub-domain. In case you want to share the session store between your portlets, don't include the unique portlet ID.
Peter -
Dropped frames on Xserve RAID upgraded w/750GB drives.
I'm capturing in 10-bit uncompressed standard definition 720x480. I just upgraded one side of my Apple XRAID, (connected directly via fibre channel) with seven, 750GB hard drives from Apple, drives designed for the XRAID, (came with there own sleds.)
Current Xserve RAID firmware version is at version 1.5.1/1.51c
Before the upgraded drives, no issues with dropped frames, (drives 1-7) the other side of the same RAID has no problems, (currently running 250GB drives, drives 8-14.) All sleds are populated with drives of the same capacity, (respective to each side.)
The drives were formated using the Xserve RAID Admin software and mounted using Apples Disk Utilities, Journaling turned off. The final formated capacity of the RAID on drives 1-7 is 4.1TB.
When I capture to the drives on the upgrade side, I get dropped frames. When capturing to the other side, no issues, works great. I checked the settings for performance and they are the same for both sides, as follows:
Use Controller Write Cashe - ON
Allow Host Cashe Flushing - OFF
Use Drive Write Cashe - ON
Use Steady Streaming Mode - OFF
Read Prefetch: 128 stripes (8 MB/disk)
My capture box is an AJA I/o and has never given me dropped frames till now, but only on the side of the RAID that has the new 750GB drives. I also have another RAID that uses 500GB drives on both sides and it work just fine as well, (no dropped frames) using the same performance settings in XRAID utilities.
Any suggestion on why these new Apple drives modules are dropping frame would be very much appreciate. Again 7 new 750GB drives from Apple w/sleds having dropped frame issues.I'm capturing in 10-bit to avoid loss of quality from analog sources like BetaCam SP as well as line 21 must be part of the captured file, because it contains line 21 for captioning. Eight bit has a banding issue that I can't have in the final product and 10-bit doesn't have this issue.
Source quality is maintained completely when working in 10-bit uncompressed, as well as the captioning data that I need, which is stripped out of the captured video latter. Captioning software can read line 21 of the raster area, of the captured file.
Source video is from BetaCam SP, DVC Pro and DVCam.
The RAID is an Apple Xserve RAID, connected via Fibre channel directly, (no xsan.)
I also create high quality QuickTime Streaming files from these source files, the higher the quality of the source video the the better the streaming files look when created.
I have never had any problem capturing till I installed these new drives from Apple.
The RAID is as stated above, is an Apple Xserve RAID, connect via a fibre channel card in a Mac Pro 3.0GHz tower, (no xsan is used, due to connecting directly to the XRAID.) -
Frame drivers - control of frame?
I have a frame driver which calls a form. The form is based on a procedure.
From within the procedure I call the frame driver again.
In Webdb22 I was able to control the frame names, and targets, and thus could get the 2nd call of the frame driver to display in the same place the when called the 2nd time as the first.
In Portal30 I don't see a way to set frame names for frame drivers.
1) is there a way that I can name the frames?
2) if not, how can I call the frame driver from PL/SQL with one of the standard targets (_blank, _parent, etc.).
Thanks,
BobStephanie,
Frame Driver can be used without rendering it as portlet. I am giving you a simple example:
Say you have four charts:
1) Chart_1, 2) Chart_2, 3) Chart_3, 4) Chart_4
You can create a frame driver "Chart_Frame" as:
Select 'Chart 1' Chart, 'Schema1.chart_1.show' url from dual
union
Select 'Chart 2' Chart, 'Schema1.chart_1.show' url from dual
union
Select 'Chart 3' Chart, 'Schema1.chart_1.show' url from dual
union
Select 'Chart 4' Chart, 'Schema1.chart_1.show' url from dual
Now create a site "Site1".
Add an item of type "URL" with url as: http://machine name:port/pls/portal dad/schema1.Chart_Frame.show
You can set "Link That Displays Item In New Browser Window"
I hope you can use it like this.
Thanx,
Chetan -
Passing parameters to target frames
All,
Is it possible to pass parameters from a form to a report within a frame driver?
You dont seem to have the ability to pass the parameter through the URL, as the only URL you can see is for the frame driver itself!
And if you append that URL with a parameter the page fails entirely.
Regards, Matt.
nullHi,
If you create your frame driver from a PL/SQL procedure then you can easily have a non mandatory parameter that could be appended onto the frame name of the subframe.
CREATE OR REPLACE PROCEDURE PRC_FRAMESET (pParameter IN VARCHAR2) IS
BEGIN
HTP.HTMLOPEN;
HTP.HEADOPEN;
HTP.HEADCLOSE;
HTP.P('<FRAMESET COLS="50%,*" border=2>');
HTP.P(' <FRAME NAME="frame1" frameborder="0" SRC="michael.frame1.show">');
HTP.P(' <FRAME NAME="frame2" frameborder="0" SRC="michael.frame2.show?pParam=' | | pParameter | | '">');
HTP.P('</FRAMESET>');
HTP.HTMLCLOSE;
END PRC_FRAMESET;
Regards Michael -
Can't use Philips Electronic Photo Frame
I've just been given a new Philips electronic photo frame and have plugged it in to my Mac via the USB cable. The instruction book says it will be recognised as a mass storage device. However, it appears in my iPhoto window as a camera ("NO NAME") and I cannot see a way to transfer photos to it. The instruction book that came with the photo frame says:
"Connect Photo Frame to PC and put photos directly under the root directory of the Photo Frame drive.
Disconnect the USB cable. After a few seconds, all photos in the root directory will be automatically added to Photo Frame and the directory will be emptied.
Note : This operation does not apply to photos in sub-directories."
This means nothing to me (eg 'put photos directly under the root directory'). Can anyone help? I wish this thing was as intuitive as a Mac!
2.33 GHz Intel Core 2 Duo iMac (24" screen) Mac OS X (10.4.7) AirPortChris
Does it show up on the desktop? If so, select your pics and go File -> Export and export them to the desktop, then drag them to the gadget. The Root Directory means "don't put them in Folders".
Afterwards, you can trash the files from the desktop, as they are copies. The Originals are safe in iPhoto.
Regards
TD -
JTree - changed content, refresh
Hello,
I have a problem in my program I can`t solve...
basically I am using drop-down menu with different drives (c:, d:, etc.). Don`t ask me why I don`t use the JTree to display all the drives, I simply need to display each drive separately.
when I select the drive, JTree pops up with the content of the drive.
Problem comes in, when the JTree is already displayed and I go into my drop-down menu to select a different drive.... Everything seems to work fine in background.... The tree gets build up, I just somehow cannot update (or refresh) the screen....
did anyone experienced similar problem?
thank you
OtakarNo, I am not using TreeModel.. Let me post the code... I am using 3 different files:
MainModule.java
DetectDrives.java
FileSystem.java
I think You might wanna see the ChoiceListener in MainModule
thank you for you time
MainModule.java
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.tree.DefaultMutableTreeNode;
import java.awt.*;
import java.awt.event.*;
public class MainModule{
private JFrame aFrame; // BASE frame
private JPanel driveListPane;
private JList driveList;
// MENU Bar Components
private JMenuBar aMenuBar;
private JMenu fileMenu, editMenu, viewMenu, settingsMenu, helpMenu;
private JMenuItem newMenuItem, openMenuItem, saveMenuItem, // FILE menu Items
saveAsMenuItem, exitMenuItem, //
selectDriveMenuItem, selectOutputMenuItem; // SETTINGS menu Items
// ComboBox
private JComboBox aComboBox;
// Buttons
private JButton selectDriveButton, printButton;
// Listeners
private PrintButtonListener prtListener;
private ChoiceListener choiceListener;
// Labels
private JLabel sourceLabel, label1, label2;
private int listRows;
public static String drive;
private DetectDrives dd;
private FileSystem fs;
private int ct;
/*============ CONSTRUCTOR ===========================================================\
|
public MainModule(){
ct = 0;
// create a MAIN WINDOW (Frame)
drive = new String("C:\\");
aFrame = new JFrame("Otax Drive Printer 0.99b");
aFrame.setSize(800, 600);
aFrame.setLocation(100, 50);
aFrame.getContentPane().setLayout(null);
aFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// create the categories in a menu bar
aMenuBar = new JMenuBar();
fileMenu = new JMenu("File");
editMenu = new JMenu("Edit");
viewMenu = new JMenu("View");
settingsMenu = new JMenu("Settings");
helpMenu = new JMenu("Help");
// create menu items for FILE menu
newMenuItem = new JMenuItem("New", 'N');
openMenuItem = new JMenuItem( "Open", 'O');
saveMenuItem = new JMenuItem( "Save", 'S' );
saveAsMenuItem = new JMenuItem( "Save As", 'A');
exitMenuItem = new JMenuItem("Exit", 'E');
// create menu items for SETTINGS menu
selectDriveMenuItem = new JMenuItem("Select Drive", 'D');
selectOutputMenuItem = new JMenuItem("Select Output", 'O');
// detect drives mounted to system and put them into JComboBox
dd = new DetectDrives();
aComboBox = new JComboBox(dd.detectCdDrives());
aComboBox.setBounds(100, 5, 180, 20);
//create labels
sourceLabel = new JLabel("Select Source:");
sourceLabel.setBounds(6, 4, 90, 20);
label1 = new JLabel("Current Drive: ");
label1.setBounds(2, 500, 90, 20);
label2 = new JLabel();
label2.setBounds(85, 500, 50, 20);
//create buttons
printButton = new JButton("Print");
printButton.setBounds(2, 50, 101, 16);
//create Accelerators for FILE MenuItems
newMenuItem.setAccelerator(KeyStroke.getKeyStroke(
KeyEvent.VK_N, InputEvent.CTRL_MASK, false));
saveMenuItem.setAccelerator(KeyStroke.getKeyStroke(
KeyEvent.VK_S, InputEvent.CTRL_MASK, false));
//create the action listeners (listener definitions bellow)
prtListener = new PrintButtonListener();
choiceListener = new ChoiceListener();
//connect the action listeners with menu items
printButton.addActionListener(prtListener);
aComboBox.addActionListener(choiceListener);
// LISTENERS Definitions start HERE ====================================
public class PrintButtonListener implements ActionListener{
public void actionPerformed(ActionEvent e){
System.out.println("print action performed: " + drive);
public class ChoiceListener implements ActionListener{
public void actionPerformed( ActionEvent e)
ct++;
System.out.println(ct + " event started");
String drive = new String(aComboBox.getSelectedItem().toString().substring(0,2));
label2.setText(drive);
fs = new FileSystem(drive + "//");
fs.sortFiles();
fs.addNodes(drive);
DefaultMutableTreeNode top = fs.getNodes();
JTree tree = new JTree(top);
tree.setBounds(10, 30, 500, 450);
aFrame.getContentPane().add(tree);
aFrame.repaint();
public void addComponents(){
aMenuBar.add(fileMenu); // create menu
aMenuBar.add(editMenu);
aMenuBar.add(settingsMenu);
aMenuBar.add(helpMenu);
fileMenu.add(newMenuItem); //add items to the FILE menu
fileMenu.add(openMenuItem);
fileMenu.addSeparator();
fileMenu.add(saveMenuItem);
fileMenu.add(saveAsMenuItem);
fileMenu.addSeparator();
fileMenu.add(exitMenuItem);
settingsMenu.add(selectDriveMenuItem);
settingsMenu.add(selectOutputMenuItem);
aFrame.setJMenuBar(aMenuBar);
aFrame.getContentPane().add(aComboBox);
aFrame.getContentPane().add(sourceLabel);
aFrame.getContentPane().add(label1);
aFrame.getContentPane().add(label2);
aFrame.setVisible(true);
public static void main(String [] args){
MainModule m1 = new MainModule();
m1.addComponents();
DetectDrives.java
import java.io.*;
import java.util.Vector;
import javax.swing.filechooser.*;
public class DetectDrives{
private FileSystemView fsv;
private File[] roots;
private Vector drives;
/*======== CONSTRUCTOR =====================================================================\
|Purpose: To INITIALIZE the object |
|Variables: (FileSystemView) fsv - creates the Object containing info about current system |
| (File[]) roots - array used to store all drives currently mounted to system |
| (Vector) drives - vector used for storage of selected info about drives |
\==========================================================================================*/
public DetectDrives(){
drives = new Vector(0,1); // *Create empty Vector(0) with expansion capacity (1)
//--- Get a FileSystemView object for the current system
fsv = FileSystemView.getFileSystemView();
//--- Get an array of File objects describing the 'roots' attached to the system
roots = File.listRoots();
/*SD1)==== Method detectCdDrives() ========================================================\
|Purpose: To SCAN the system for any drives mounted and add DRIVE LETTER and DRIVE NAME |
| to a Vector. It Also CHECKS if drive CONTAINS any DATA or if it`s EMPTY. |
|Variables: (int) i - a loop iterator |
| (String) cdInfo - temporary storage for drive information during drive check |
| (Vector) drives - storage for driveletter and drive name for all drives |
| This Vector is returned upon function call |
public Vector detectCdDrives(){
String cdInfo;
//SCAN system and RETRIEVE drives
for(int i = 0; i < roots.length; i++){
if((fsv.getSystemDisplayName(roots)).equals("")) //--FIND OUT if any DATA on DRIVE
cdInfo = fsv.getSystemTypeDescription(roots[i]) + " ";
else
cdInfo = fsv.getSystemDisplayName(roots[i]);
drives.addElement(roots[i].getPath() + " " + cdInfo.substring(0, cdInfo.length()-5));
return drives;
FileSystem.java
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.tree.*;
import javax.swing.tree.DefaultMutableTreeNode;
import java.io.File;
import java.io.*;
import java.util.Vector;
public class FileSystem{
private String driveLetter;
private Vector root;
private Vector dirs;
private Vector files;
private File dir;
private File [] allFiles;
private DefaultMutableTreeNode top;
/*================= File System Constructor ================================\
|Purpose: To initialize the conject and to accept drive letter selected in |
| main module |
public FileSystem(String dl){
driveLetter = dl;
/*================= Method: sortFiles() ====================================\
|Purpose: To sort content of selected drive, directories (alphabetically), |
| followed by files (alphabeticaly) |
public void sortFiles(){
dir = new File (driveLetter);
allFiles = dir.listFiles();
root = new Vector(2,1);
dirs = new Vector(0,1);
files = new Vector(0,1);
//---- Separate Directories and Files into 2 different vectors
for(int i = 0; i < allFiles.length; i++){
if(allFiles.isDirectory())
dirs.add(allFiles[i]);
else
files.add(allFiles[i]);
//---- Add elements from dirs and files Vectors into root vector
for(int i = 0; i < dirs.size(); i++){
root.add(dirs.elementAt(i));
for(int i = 0; i < files.size(); i++){
root.add(files.elementAt(i));
/*================= Method: addNodes() =====================================\
|Purpose: to build the file structure which will be used to create the tree |
|Variables: drive = used to accept the drive letter representing the root |
| top = primary (root) node in the structure) |
| root = vector of all files in the drive |
public void addNodes(String drive){
top = new DefaultMutableTreeNode(drive);
DefaultMutableTreeNode node = null;
for(int i = 0; i < root.size(); i++){
node = new DefaultMutableTreeNode(root.elementAt(i));
top.add(node);
/*================= Method: getNodes() =====================================\
|Purpose: To return variable top, which holds the files structure and will |
| be used to build the tree |
public DefaultMutableTreeNode getNodes(){
return top; -
PASS PARAMETERS BETWEEN FORM-- REPORT PORTLET
I have to develop a page. On the left handside of the page preferably a portlet there will be a form where user will enter all the parameters. Based on the parameters a report has to be generated on the right hand side of the page which again can preferably be a report portlet.
Could anyone give me directions as to how to proceed.
Eg: user selects a deptno on the parameter form on the left side, the right hand side should display report of all the employees in that dept.
Its similar to frame driver concept but this application prohibits use of Frame drivers.
ThanksHi,
Please take a look at this: http://technet.oracle.com:89/ubb/Forum81/HTML/000755.html
and this: http://technet.oracle.com:89/ubb/Forum81/HTML/000572.html
Thanks,
Dmitry
Maybe you are looking for
-
Printing too contrasty and saturated in CS6. How to correct?
i have just upgraded from Mac OS 10.5 and CS5 to Mac OS 10.8.4 and CS6 printing on Epson 9880. Struggling to get calibrated prints - before it was excellent. Now printed images are WAY contrasty and saturated compared to the monitor, a LA Cie 324, wh
-
Non-automatic send in Apple Mail?
My wife has switched! That's the good news. Now we're trying to get her into the Mac groove. On her PC in Outlook there was a switch that allowed her messages to not be sent but put into an outbox where she could later send from there. Is there an op
-
How do I get my Adobe PDF file to print
How do I get my Adobe PDF file to print
-
I have not been able to access my overall usage for messaging nor calls for two days - is this fix in process?
-
Yosemite update has Mail creating new mailboxes
Anyone else have this problem? Since updating my new iMac to Yosemite, I have had a peculiar problem with Mail. Instead of pulling everything over intact (as Mavericks did when it updated), it pulled my Yahoo mail over, then created a second copy usi