Help needed for simple problem
Pls give me solution.............+
*public class Abc{*
private int x;
*public static void main(String[]args){*
char a = 'a';
int i =a;//i=97
char x= 97; //char x=i; does not compile but i also 97
System.out.print(a+" "+i+" "+x);
char x can be initialized by an int 97.
As i is an int and value alos 97.
why i can't assig to x??????
Sabbir wrote:
char x can be initialized by an int 97.
As i is an int and value alos 97.
why i can't assig to x??????Because the compiler "thinks" the value of int i might change causing it to be larger than the allowed char-range (or negative). So, the following is not allowed:
int i = 97;
char x = i;But this is valid since i is made final:
final int i = 97;
char x = i;
Similar Messages
-
firstly i made a jtable to adds and deletes rows and passes the the data to the table model from some textfields. then i wanted to add a tablemoselistener method in order to change the value in the columns 1,2,3,4 and set the result of them in the column 5. when i added that portion of code the buttons that added and deleted rows had problems to function correctly..they dont work at all..can somebody have a look in my code and see wot is wrong..thanx in advance..
below follows the code..sorry for the mesh of the code..you can use and run the code and notice the problem when you press the add button..also if you want delete the TableChanged method to see that the add button works perfect.
* Created on 03-Aug-2005
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
* @author Administrator
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
import java.io.*;
public class NodesTable extends JFrame implements TableModelListener, ActionListener {
JTable jt;
DefaultTableColumnModel dtcm;
TableColumn column[] = new TableColumn[100];
DefaultTableModel dtm;
JLabel Name,m1,w1,m2,w2;
JTextField NameTF,m1TF,w1TF,m2TF,w2TF;
String c [] ={ "Name", "Assessment1", "Weight1" , "Assessment2","Weight2 ","TotalMark"};
float x=0,y=0,tMark=0,z = 0;
float j=0;
int i;
JButton DelButton;
JButton AddButton;
JScrollPane scrollPane;
JPanel mainPanel,buttonPanel;
JFrame frame;
Object[][] data =
{"tami", new Float(1), new Float(1.11), new Float(1.11),new Float(1),new Float(1)},
{"tami", new Float(1), new Float(2.22), new Float(2.22),new Float(1),new Float(1)},
{"petros", new Float(1), new Float(3.33), new Float(3.33),new Float(1),new Float(1)},
{"petros", new Float(1), new Float(4.44), new Float(4.44),new Float(1),new Float(1)}
public NodesTable() {
super("Student Marking Spreadsheet");
this.AddNodesintoTable();
setSize(400,250);
setVisible(true);
public void AddNodesintoTable(){
// Create a vector object and load them with the data
// to be placed on each row of the table
dtm = new DefaultTableModel(data,c);
dtm.addTableModelListener( this );
jt = new JTable(dtm){
// Returning the Class of each column will allow different
// renderers to be used based on Class
public Class getColumnClass(int column)
return getValueAt(0, column).getClass();
// The Cost is not editable
public boolean isCellEditable(int row, int column)
int modelColumn = convertColumnIndexToModel( column );
return (modelColumn == 5) ? false : true;
//****************************User Input**************************
//Add another node
//Creating and setting the properties
//of the panel's component (panels and textfields)
Name = new JLabel("Name");
Name.setForeground(Color.black);
m1 = new JLabel("Mark1");
m1.setForeground(Color.black);
w1 = new JLabel("Weigth1");
w1.setForeground(Color.black);
m2= new JLabel("Mark2");
m2.setForeground(Color.black);
w2 = new JLabel("Weight2");
w2.setForeground(Color.black);
NameTF = new JTextField(5);
NameTF.setText("Node");
m1TF = new JTextField(5);
w1TF = new JTextField(5);
m2TF=new JTextField(5);
w2TF=new JTextField(5);
//creating the buttons
JPanel buttonPanel = new JPanel();
AddButton=new JButton("Add Row");
DelButton=new JButton("Delete") ;
buttonPanel.add(AddButton);
buttonPanel.add(DelButton);
//adding the components to the panel
JPanel inputpanel = new JPanel();
inputpanel.add(Name);
inputpanel.add(NameTF);
inputpanel.add(m1);
inputpanel.add(m1TF);
inputpanel.add(w1);
inputpanel.add(w1TF);
inputpanel.add(m2);
inputpanel.add(m2TF);
inputpanel.add(w2TF);
inputpanel.add(w2);
inputpanel.add(AddButton);
inputpanel.add(DelButton);
//creating the panel and setting its properties
JPanel tablepanel = new JPanel();
tablepanel.add(new JScrollPane(jt, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED
, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS));
getContentPane().add(tablepanel, BorderLayout.CENTER);
getContentPane().add(inputpanel, BorderLayout.SOUTH);
//Method to add row for each new entry
public void addRow()
Vector r=new Vector();
r=createBlankElement();
dtm.addRow(r);
jt.addNotify();
public Vector createBlankElement()
Vector t = new Vector();
t.addElement((String) " ");
t.addElement((String) " ");
t.addElement((String) " ");
t.addElement((String) " ");
t.addElement((String) " ");
return t;
// Method to delete a row from the spreadsheet
void deleteRow(int index)
if(index!=-1) //At least one Row in Table
dtm.removeRow(index);
jt.addNotify();
// Method that adds and deletes rows
// from the table by pressing the
//corresponding buttons
public void actionPerformed(ActionEvent ae){
Float z=new Float (m2TF.getText());
String Name= NameTF.getText();
Float x= new Float(m1TF.getText());
Float y= new Float(w1TF.getText());
Float j=new Float (w2TF.getText());
JFileChooser jfc2 = new JFileChooser();
String newdata[]= {Name,String.valueOf(x),String.valueOf(y),
String.valueOf(z),String.valueOf(j)};
Object source = ae.getSource();
if(ae.getSource() == (JButton)AddButton)
addRow();
if (ae.getSource() ==(JButton) DelButton)
deleteRow(jt.getSelectedRow());
//method to calculate the total mark in the TotalMark column
//that updates the values in every other column
//It takes the values from the column 1,2,3,4
//and changes the value in the column 5
public void tableChanged(TableModelEvent e) {
System.out.println(e.getSource());
if (e.getType() == TableModelEvent.UPDATE)
int row = e.getFirstRow();
int column = e.getColumn();
if (column == 1 || column == 2 ||column == 3 ||column == 4)
TableModel model = jt.getModel();
float q= ((Float)model.getValueAt(row,1)).floatValue();
float w= ((Float)model.getValueAt(row,2)).floatValue();
float t= ((Float)model.getValueAt(row,3)).floatValue();
float r= ((Float)model.getValueAt(row,4)).floatValue();
Float tMark = new Float((q*w+t*r)/(w+r) );
model.setValueAt(tMark, row, 5);
// Which cells are editable.
// It is only necessary to implement this method
// if the table is editable
public boolean isCellEditable(int row, int col)
{ return true; //All cells are editable
public static void main(String[] args) {
NodesTable t=new NodesTable();
}There are too many mistakes in your program. It looks like you are new to java.
Your add and delete row buttons are not working because you haven't registered your action listener with these buttons.
I have modifide your code and now it works fine. Just put some validation code for the textboxes becuase it throws exception when user presses add button without entering anything.
Here is the updated code: Do the diff and u will know my changes
* Created on 03-Aug-2005
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
* @author Administrator
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
import javax.swing.table.DefaultTableColumnModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableColumn;
import javax.swing.table.TableModel;
public class NodesTable extends JFrame implements TableModelListener,
ActionListener {
JTable jt;
DefaultTableColumnModel dtcm;
TableColumn column[] = new TableColumn[100];
DefaultTableModel dtm;
JLabel Name, m1, w1, m2, w2;
JTextField NameTF, m1TF, w1TF, m2TF, w2TF;
String c[] = { "Name", "Assessment1", "Weight1", "Assessment2", "Weight2 ",
"TotalMark" };
float x = 0, y = 0, tMark = 0, z = 0;
float j = 0;
int i;
JButton DelButton;
JButton AddButton;
JScrollPane scrollPane;
JPanel mainPanel, buttonPanel;
JFrame frame;
public NodesTable() {
super("Student Marking Spreadsheet");
this.AddNodesintoTable();
setSize(400, 250);
setVisible(true);
public void AddNodesintoTable() {
// Create a vector object and load them with the data
// to be placed on each row of the table
dtm = new DefaultTableModel(c,0);
dtm.addTableModelListener(this);
jt = new JTable(dtm) {
// The Cost is not editable
public boolean isCellEditable(int row, int column) {
int modelColumn = convertColumnIndexToModel(column);
return (modelColumn == 5) ? false : true;
//****************************User Input**************************
//Add another node
//Creating and setting the properties
//of the panel's component (panels and textfields)
Name = new JLabel("Name");
Name.setForeground(Color.black);
m1 = new JLabel("Mark1");
m1.setForeground(Color.black);
w1 = new JLabel("Weigth1");
w1.setForeground(Color.black);
m2 = new JLabel("Mark2");
m2.setForeground(Color.black);
w2 = new JLabel("Weight2");
w2.setForeground(Color.black);
NameTF = new JTextField(5);
NameTF.setText("Node");
m1TF = new JTextField(5);
w1TF = new JTextField(5);
m2TF = new JTextField(5);
w2TF = new JTextField(5);
//creating the buttons
JPanel buttonPanel = new JPanel();
AddButton = new JButton("Add Row");
AddButton.addActionListener(this);
DelButton = new JButton("Delete");
DelButton.addActionListener(this);
buttonPanel.add(AddButton);
buttonPanel.add(DelButton);
//adding the components to the panel
JPanel inputpanel = new JPanel();
inputpanel.add(Name);
inputpanel.add(NameTF);
inputpanel.add(m1);
inputpanel.add(m1TF);
inputpanel.add(w1);
inputpanel.add(w1TF);
inputpanel.add(m2);
inputpanel.add(m2TF);
inputpanel.add(w2TF);
inputpanel.add(w2);
inputpanel.add(AddButton);
inputpanel.add(DelButton);
//creating the panel and setting its properties
JPanel tablepanel = new JPanel();
tablepanel.add(new JScrollPane(jt,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS));
getContentPane().add(tablepanel, BorderLayout.CENTER);
getContentPane().add(inputpanel, BorderLayout.SOUTH);
//Method to add row for each new entry
public void addRow() {
Float z = new Float(m2TF.getText());
String Name = NameTF.getText();
Float x = new Float(m1TF.getText());
Float y = new Float(w1TF.getText());
Float j = new Float(w2TF.getText());
String newdata[] = { Name, String.valueOf(x), String.valueOf(y),
String.valueOf(z), String.valueOf(j) };
dtm.addRow(newdata);
// Method to delete a row from the spreadsheet
void deleteRow(int index) {
if (index != -1) //At least one Row in Table
dtm.removeRow(index);
jt.addNotify();
// Method that adds and deletes rows
// from the table by pressing the
//corresponding buttons
public void actionPerformed(ActionEvent ae) {
Object source = ae.getSource();
if (ae.getSource() == (JButton) AddButton) {
addRow();
if (ae.getSource() == (JButton) DelButton) {
deleteRow(jt.getSelectedRow());
//method to calculate the total mark in the TotalMark column
//that updates the values in every other column
//It takes the values from the column 1,2,3,4
//and changes the value in the column 5
public void tableChanged(TableModelEvent e) {
System.out.println(e.getSource());
//if (e.getType() == TableModelEvent.UPDATE) {
int row = e.getFirstRow();
int column = e.getColumn();
if (column == 1 || column == 2 || column == 3 || column == 4) {
TableModel model = jt.getModel();
float q = (new Float(model.getValueAt(row, 1).toString())).floatValue();
float w = (new Float(model.getValueAt(row, 2).toString())).floatValue();
float t = (new Float(model.getValueAt(row, 3).toString())).floatValue();
float r = (new Float(model.getValueAt(row, 4).toString())).floatValue();
Float tMark = new Float((q * w + t * r) / (w + r));
model.setValueAt(tMark, row, 5);
// Which cells are editable.
// It is only necessary to implement this method
// if the table is editable
public boolean isCellEditable(int row, int col) {
return true; //All cells are editable
public static void main(String[] args) {
NodesTable t = new NodesTable();
} -
Urgent help need for login problem B310
Im having a B310, i use veritouch for login purpose. My 4 years kid accidently changed the pass method without my knowledge. After restart, i cant log in. Yet after i try did the forget password in windows 7, it seems cant work. I tried windows password bypass software but shows nopassword set. Unable to get pass via safe mode or f8 as well. Please help me..thanks
Hi raid5, and welcome to the Lenovo User Community!
I'm sorry you are locked out of your B310. Unfortunately the Community Rules do not allow discussion of methods to defeat passwords.
I don't work for Lenovo. I'm a crazy volunteer! -
help needed for writing query
i have the following tables(with data) as mentioned below
FK*-foregin key (SUBJECTS)
FK**-foregin key (COMBINATION)
1)SUBJECTS(table name)
SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
2 02 Computer Science
3 03 Physics
4 04 Chemistry
5 05 Mathematics
7 07 Commerce
8 08 Computer Applications
9 09 Biology
2)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
383 S1 9 4 2 3
384 S2 4 2 5 3
---------I actually designed the ABOVE table also like this
3) a)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
383 S1
384 S2
b)COMBINATION_DET
COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
1 383 9
2 383 4
3 383 2
4 383 3
5 384 4
6 384 2
7 384 5
8 384 3
Business rule: a combination consists of a maximum of 4 subjects (must contain)
and the user is less relevant to a COMB_NAME(name of combinations) but user need
the subjects contained in combinations
i need the following output
COMB_ID COMB_NAME SUBJECT1 SUBJECT2 SUBJECT3 SUBJECT4
383 S1 Biology Chemistry Computer Science Physics
384 S2 Chemistry Computer Science Mathematics Physics
or even this is enough(what i actually needed)
COMB_ID subjects
383 Biology,Chemistry,Computer Science,Physics
384 Chemistry,Computer Science,Mathematics,Physics
you can use any of the COMBINATION table(either (2) or (3))
and i want to know
1)which design is good in this case
(i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
good method to link with same table but if 4 subjects only(and must) comes
detail table is not neccessary )
now i am achieving the result by program-coding in C# after getting the rows from oracle
i am using oracle 9i (also ODP.NET)
i want to know how can i get the result in the stored procedure itsef.
2)how it could be designed in any other way.
any help/suggestion is welcome
thanks for your time --PradeeshWell I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say. -
Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with re
Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with reddish cast and loss of detail
System: Windows 7
Adobe CS5
Printer: Epson Stylus Photo 1400
Paper: Inkjet matte presentation paper with slight luster
Installed latest patch for Adobe CS5
Epson driver up to date
After reading solutions online and trying them for my settings for 2 days I am still unable to print what I am seeing on my screen in Adobe CS5. I calibrated my monitor, but am not sure once calibration is saved if I somehow use this setting in Photoshop’s color management.
The files I am printing are photographs of dogs with lots of detail I digitally painted with my Wacom tablet in Photoshop CS5 and then printed with Epson Stylus 1400 on inkjet paper 20lb with slight luster.
My Printed images lose a lot of the detail & come out way to dark with a reddish cast and loss of detail when I used these settings in the printing window:
Color Handling: Photoshop manages color, Color management -ICM, OFF no color adjustment.
When I change to these settings in printer window: Color Handling: Printer manages color. Color management- Color Controls, 1.8 Gamma and choose Epson Standard it prints lighter, but with reddish cast and very little detail and this is the best setting I have used so far.
Based on what I have read on line, I think the issue is mainly to do with what controls are set in the Photoshop Color Settings window and the Epson Printer preferences. I have screen images attached of these windows and would appreciate knowing what you recommend I enter for each choice.
Also I am confused as to what ICM color management system to use with this printer and CS5:
What is the best ICM to use with PS CS5 & the Epson 1400 printer? Should I use the same ICM for both?
Do I embed the ICM I choose into the new files I create?
Do I view all files in the CS5 workspace in this default ICM?
Do I set my monitor setting to the same ICM?
If new file opens in CS5 workspace and it has a different embedded profile than my workspace, do I convert it?
Do I set my printer, Monitor and PS CS5 color settings to the same ICM?
Is using the same ICM for all devices what is called a consistent workflow?
I appreciate any and all advice that can be sent my way on this complicated issue. Thank you in advance for your time and kind help.It may be possible to figure out by watching a Dr.Brown video on the subject of color printing. Adobe tv
I hope this may help............... -
File missing (file\BCD error code 0Xc0000034 help need for work!
file missing (file\BCD error code 0Xc0000034 help need for work! what can i do?
have an p 2000 notebook pcHi bobkunkle, welcome to the HP Forums. I understand you cannot boot passed the error you are receiving.
What is the model or product number of your notebook? What version of Windows is installed?
Guide to finding your product number
Which Windows operating system am I running?
TwoPointOh
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping! -
who help me, for iphone problem, kindly give me the contact no. I am totally confuse the your system.
<Personal Information Edited by Host>Hey sherstha,
Thanks for the question. The following article outlines the various contact information for Apple, based on your country:
Contacting Apple for support and service
http://support.apple.com/kb/HE57
Thanks,
Matt M. -
Help need for force to signout All session ! how...
hi
help need for force to signout All session ! how ??
Solved!
Go to Solution.Hi and welcome to the Skype Community,
To force a signout of all instances your Skype is signed into please change your password: https://support.skype.com/en/faq/FA95/how-do-i-change-my-password
Follow the latest Skype Community News
↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓ -
Help Needed for T42 Start-up Problem
Urgent help need!!!
I have a ThinkPad T42 with Windows XP installed. It works perfectly for a while without ever have any problem or error message. Then suddenly it won’t work anymore. The symptom is following:
After power on the laptop the Microsoft window would show up and it prompt me for window logon password. After I type in the password it then shows “window is loading your personal setting”. After a long while nothing would show up on the screen other than the background of the normal screen. There is no window bar at the bottom or any icon on the screen. If I start in safe mode then everything would show up. I don’t know what is going on.
This happened two months ago and I ended up restoring a backup image to get it work again. It happens again today with the same symptom. I am really tired of having to restore image backup every 2 months.
I would really appreciate it if any of your experts can offer me some insight into this problem. I am desperate in need of help.
Thanks very much!wangy26, welcome to the forum,
Have a look at this thread to see if my post there helps. The problem seems to mostly occur at the start of a month, why I don't know. Unfortunately the member didin't report back whether or not this was a viable solution for them.
Andy ______________________________________
Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
Deutsche Community Comunidad en Español English Community Русскоязычное Сообщество
PepperonI blog -
Help Needed in resolving problems with Hyperion Planning Web Forms
Hi,Can anyone help me with this problem?Problem:We are running Planning 2.3.1 I have created Webform & security(application owner has the ownership).Somehow Iam getting only 7 dimensions into webform & 1 dimension is missing in that. But whereas 8 dimensions are there in Essbase.Hsp_Rates dimension is available in essbase outline but Iam unable to see that dimension in the webform selection.And using the webform Iam unable to load any data ...the form is graded/protected.Is this happening because i dont have the requirement of 1 member from each Dimension?Please someone let me know why this is happening what might be the reason.ThanksUser
Hi,The dimension Hsp_Rates is a hide dimension used by Planning to store the exchange rates for the differentes exchanges.All the standard information is stored on HSP_InputValue member (in this dimension).When you create a web form, Planning automatically asign this member (but don't show it).Probably you can't load data because you are selected on Version dimension a Standard Botton Up version, and you only can load data on level 0 members in this type of version.If you want to load data on upper level members, then you need to create a Standard Target version (in the Version dimension) and select it in the form.Please, advice if this solve your problemClaudioBPD Solutions
-
What Acrobat do I need for simple at-home use?
HELP! I just now bought the Acrobat XPro for simple home use. When I tried to download it, I was told I didn't have the proper system requirements - I don't even know what I have, or what I was missing. I have an old computer, but used to run Acrobat on it all the time. All I want to be able to do it manipulate documents, save pdfs as jpeg, etc. - nothing fancy. Is there another simpler acrobat version that would work for me? I would appreciate any thoughts/suggestions. Thank you!
if you're online when you need to do your edits, you could try this, http://www.pdfescape.com/what/
-
Query help needed for querybuilder to use with lcm cli
Hi,
I had set up several queries to run with the lcm cli in order to back up personal folders, inboxes, etc. to lcmbiar files to use as backups. I have seen a few posts that are similar, but I have a specific question/concern.
I just recently had to reference one of these back ups only to find it was incomplete. Does the query used by the lcm cli also only pull the first 1000 rows? Is there a way to change this limit somwhere?
Also, since when importing this lcmbiar file for something 'generic' like 'all personal folders', pulls in WAY too much stuff, is there a better way to limit this? I am open to suggestions, but it would almost be better if I could create individual lcmbiar output files on a per user basis. This way, when/if I need to restore someone's personal folder contents, for example, I could find them by username and import just that lcmbiar file, as opposed to all 3000 of our users. I am not quite sure how to accomplish this...
Currently, with my limited windows scripting knowledge, I have set up a bat script to run each morning, that creates a 'runtime' properties file from a template, such that the lcmbiar file gets named uniquely for that day and its content. Then I call the lcm_cli using the proper command. The query within the properties file is currently very straightforward - select * from CI_INFOOBJECTS WHERE SI_ANCESTOR = 18.
To do what I want to do...
1) I'd first need a current list of usernames in a text file, that could be read (?) in and parsed to single out each user (remember we are talking about 3000) - not sure the best way to get this.
2) Then instead of just updating the the lcmbiar file name with a unique name as I do currently, I would also update the query (which would be different altogether): SELECT * from CI_INFOOBJECTS where SI_OWNER = '<username>' AND SI_ANCESTOR = 18.
In theory, that would grab everything owned by that user in their personal folder - right? and write it to its own lcmbiar file to a location I specify.
I just think chunking something like this is more effective and BO has no built in back up capability that already does this. We are on BO 4.0 SP7 right now, move to 4.1 SP4 over the summer.
Any thoughts on this would be much appreciated.
thanks,
MissyJust wanted to pass along that SAP Support pointed me to KBA 1969259 which had some good example queries in it (they were helping me with a concern I had over the lcmbiar file output, not with query design). I was able to tweak one of the sample queries in this KBA to give me more of what I was after...
SELECT TOP 10000 static, relationships, SI_PARENT_FOLDER_CUID, SI_OWNER, SI_PATH FROM CI_INFOOBJECTS,CI_APPOBJECTS,CI_SYSTEMOBJECTS WHERE (DESCENDENTS ("si_name='Folder Hierarchy'","si_name='<username>'"))
This exports inboxes, personal folders, categories, and roles, which is more than I was after, but still necessary to back up.. so in a way, it is actually better because I have one lcmbiar file per user - contains all their 'personal' objects.
So between narrowing down my set of users to only those who actually have saved things to their personal folder and now having a query that actually returns what I expect it to return, along with the help below for a job to clean up these excessive amounts of promotion jobs I am now creating... I am all set!
Hopefully this can help someone else too!
Thanks,
missy -
Recovery help needed for Equium A300D-13X
Hi all,
After experiencing too many problems to list with my Equium A 300D 13X, both hardware and software, I decided to go ahead with a complete restoration to factory settings.
My first step was to create 2 dvd recovery discs, using the Toshiba recovery disc creator.
As far as I can tell, both recovery disc's were successfully created, insofar as the recovery disc creator said as such.
Not knowing what step to take next, I started the laptop with the fist of the two recovery disc within the disc drive, thinking this would reset the laptop to it's factory settings, however it did not.
Now when I start up the laptop I get the following message;
BOOTMGR is missing
Press Ctrl+Alt+Del to restart
which restarts the laptop again displaying the above message.
Pressing F8 on start up does nothing.
Pressing F12, multi boot selection, brings up a Boot Menu with 3 options;
HDD1: TOSHIBA MK2046GSX-(S1)
CD/DVD: MAT****ADVD-RAM UJ-850S-(PM)
LAN: Marvell Yukon 88E8040T
If I select the CD/DVD option, a black screen with the text ;
Windows is loading files
is shown. I'am guessing this is the correct path to recovery,
however after the following recovery utility screens regarding language selection etc, a text filled dialogue box
X:\windows\systems32\cmd.exe
runs through, but ultimately becomes static at the line:
Copying F:\06948XSP.swm to V:\HDDRecovery\SWImg 1/6
without successfully finishing the recovery process.
Any help in resolving this problem would be greatly appreciated.
Kind regards,
Kev.> My first step was to create 2 dvd recovery discs, using the Toshiba recovery disc creator.
> As far as I can tell, both recovery disc's were successfully created, insofar as the recovery disc creator said as such.
What to say buddy you have done everything correctly.
The recover disk has been created successfully (did you see a message saying this??).
Booting from recovery disk should start the recovery procedure and you should follow the installation on the screen.
Usually this should function.
The error; BOOTMGR is missing says that boot manager on HDD has been deleted and its not possible to boot from HDD.
You should boot from CD as you did; pressing F12 choosing CD/DVD drive
Try to format the HDD again using another Windows CD.
In such case you will need to set SATA mode to compatible in BIOS and then you could boot from WinXP CD.
After that try the recovery disk again -
Help needed for using BASIC authentication through JDBCRealm
Help needed.
Hello,
I am doing a degree project, so far it works fine in my local machine, I need to try it on my virtual hosting (as it is a live server).
My project requires JDBCRealm, that is BASIC authentication loading access data from mysql database. Normally this setup can be done in Server.xml file, because my Tomcat hosting is a virtual one, I only have permission to access the web.xml file.
My question is: is it possible to get it done in an alternative way? In web.xml? Some properties file maybe?
Thank you very much.You can set this up for your context using META-INF/context.xml instead of working with server.xml.
Make a directory called META-INF under your webapp ( it'll be at the same level as WEB-INF ). Under this, add a context.xml with all your context specific configuration including the realm. A sample is below
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/myApp" reloadable="true">
<Realm
className="org.apache.catalina.realm.JDBCRealm"
driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
connectionURL="jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=myDB;SelectMethod=Cursor;"
connectionName="username" connectionPassword="password"
digest="MD5" userTable="users" userNameCol="userid" userCredCol="userpassword"
userRoleTable="user_roles" roleNameCol="rolename"
/>
</Context>Hope this helps.
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
---------------------------------------------------------------- -
Hi everyone ☺
I’m finally planning to start recording what I play, and after some hours of wandering on the web I found some interesting possibilities. Now what I need is to decide which one is more suitable for my needs, and here comes the moment for apple discussions
Basically, I will record my own music one track/instrument at a time (I’m still not able to play more than one…and I dont’ want to spend 2.000$ to buy a 24-ins device just to record drum tracks), I’d like to have a software with built-in effects for guitar/bass/voice, integrated soundtrack possibilities (to play with video recordings), mixing options for both stereo and surround mixing, and I don’t want any card to be placed into my mac. Well, and obviously the sound quality must be pro-like…as anyone probably wants.
So, here’s what I came up with:
a) getting logic pro studio 8 and apogee duet
b) getting pro tools m-powered and mbox 2
c) getting one of the two softwares and a Monster iStudioLink Instrument cable and plug instruments directly into the mac
Now, the questions are:
if I can plug an instrument directly into my mac and control all parameters via one of the two softwares, what do tools like duet and mbox2 serve for?
In the case this tools are useful [ ☺ ], why ☺ … and which is the couple software/hardware that can best suit my needs?
I assume that every software has a proprietary file extension in which audio tracks are saved, so that it should be impossible to record an audio track with one software and edit it with another that has different functions/plugins (ex. from logic to pro tools, from pro tools to cakewalk sonar which I have on a pc etc.). Am I right, or is there any “standard”, non compressed high quality file type in which track can be saved and exported to be edited with different softwares?
I know that from this post it may easily seem that I’m a hopeless digital idiot, but I swear the situation is not really that bad so no need for the kind of explanations with drawings like the ones you find in the “for dummies” guides lol so every experts’ advice will be greatly appreciated
NeptuneThank you Bee Jay and Pancenter for the lighting-fast and useful answers
now I am aware that an interface IS NEEDED lol (that means they are not produced without a reasons, are they?). I know Pro Tools is the industry standard but I don't like anyone/anything to tie me to their choices/interests (so that's why I was asking about Pro Tools, knowing that there's some sort of "hardware threat"). What I look for is just quality and if I understood what you both mean, as far as this aspect is concerned, Logic and Pro Tools are substantially comparable...isn't it? On the interfaces side, I already checked the Saffire ones (they seem quite good, and cross-platform use is definitely a plus), I will check the others mentioned and will let you know In fact, I didn't consider the "platform problem" but, as I wrote, I also own a PC with an Audigy 2 soundcard (midi/analog/optical/digital inputs/outputs and firewire port...not Madonna's private studio, but not as sad as Mac's little hole) and Sonar 6 Producer Edition, so that has been a really good point to ponder. And now, in the middle of this software/hardware battle...any personal suggestions based on tests/personal experience?
Maybe you are looking for
-
Adobe Media Encoder CC - unknown error
I am getting the following error when trying to export the media in Premiere Pro CC.
-
Using Save As Reduced Size PDF in Adobe Acrobat X Pro results in a loss of font.
We have multiple paged PDF documents (mapbooks created with Esri's ArcMap) that we would like to reduce in size. When we us the Save As Reduced SIze PDF, the PDF is successfully reduced in size and looks good, except for the fact that starting on pa
-
Whats the best way of storring images
I have an application that will handle images for the elements of a catalog. The application will not have a very heavy load, will be for managament use only, and the database and the app server will be on the same machine. I am investigating what is
-
LR 4 only prints a blank page on Epson 2880. Print preview panes remain blank. Window 7 OS. Need help desperately!
-
Can't use MySQL connectionpool?
I write two javabean in the package "lyo.bbs.xml...".I works well if I don't use MySQL ConnectionPool.But the jsp compiler report error if I use MySQL ConnectionPool in javabean. One of my javabean is:" ResultSet rs = null; Statement stm = null;