Used Dc dependency from one Track to another Track
Hi All,
Can you give me some solution for my scenario.
1) I have imported two tracks Track1 and Track2 from the server and created project locally from Inactive DCs.
2) I have already existing DC1 from SC1->Track1 and also i have another track Track2-->SC2. In SC2 i have created new dc DC2.DC2 is still in both Inactive DCs only.
3) I need to use DC1 as used dc in DC2.
4) when i tried to do Used Dc from DC2, i cannot able to see Track1 SCs and DCs, only Track 2 is visible.
Can you please provide some steps or documents for me to proceed further, it will be very helpful for me.
Can you tell how can add Public Part and Used DC.
Thanks & Regards,
Suresh T
To get this working you'll need to do the following after following Slava's steps: Set up a transport connection (in CMS Landscape Configurator) from Track 1 to Track 2, so that SC1 becomes available in Track 2. You can import SC1 into Track 2 after it has been Approved in Track 1.
Note that the following step that Slava mentioned should not be done manually: "Add SC1 to Requirement components in SC2 track." After the Update CMS procedure, you should click the Synchronize SC Dependencies button in Track 2. This should automatically add SC1 to the Required Components table.
Similar Messages
-
Using an audio from one video to another
I am trying to make a documentary type film and I want to use an audio segment from one video to overlap another video's audio while using the second video just for the video. Here is an example of it.
http://www.youtube.com/watch?v=9u7dJXDhOjc
Im trying to acheive what they did for the first 15 seconds of this clip. I use movie 08.This is easy in iMovie 09.
Here is [how to do it in iMovie 08|http://imovie08.blogspot.com/2007/08/how-to-extract-audio-from-clip.html] -
Using a variable from one class to another
Hi !
I've a class called ModFam (file ModFam.java) where I define a variable as
protected Connection dbconn;
Inside ModFam constructor I said:
try
String url = "jdbc:odbc:baselocal";
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
dbconn = DriverManager.getConnection(url);
System.err.println("Connection successful");
} ..... rest of code
This class define a TabbedPane as follows:
tabbedPane.addTab("Welcome",null,new Familias(),"Familias");
As you can see it call a new instance of the Familias class (file Familias.java).
This constructor will try to connect with the DB to populate a combo box with some data retireved from the DB.
If I do
Statement stmt;
stmt = dbconn.createStatement();
inside Familias constructor I receive the message
Familias.java:50: cannot resolve symbol
symbol : variable dbconn
location: class fam.Familias
stmt = dbconn.createStatement();
at compile time.
While I can�t use a variable defined as "protected" in one class of my package on another class of the same package ?
How could I do ?
Thanks in advance
<jl>Familias doesn't have a reference to ModFam or the Connection.
So change the constructor in Familias to be
public class Familias {
private ModFam modFam;
public Familias(ModFam m) {
modFam = m;
// ... somewhere else in the code
Statement stmt = modFam.dbconn.createStatement();
}or
public class Familias {
private Connection dbconn;
public Familias(Connection c) {
dbconn = c;
// ... somewhere else in the code
Statement stmt = dbconn.createStatement();
}And when you instantiate Familias it should then be
new Familias(this) // ModFam reference
or
new Familias(dbconn) -
Using Variables/Arrays from one class in another
Hello all,
First, to explain what I am attempting to create, is a program that will accept input of employee names and hours worked into an array. The first class will accept a command line argument when invoked. If the argument is correct, it will call another class that will gather information from the user via an input box. After all names and hours have been input for employees, this class will calculate the salary based upon the first letter of each employee name and print the total hours, salary, etc. for each employee.
What I need to do now is to split the second class into two: one that will gather the data and another that will calculate and print the data. Yes, this is an assignment. However, I am trying to learn and I have gotten this far, but I am stuck on how to get a class to be able to use an array/variables from another class.
I realize the below code isn't exactly cleaned up...yet.
Code for AverageSalaryGather class:
import javax.swing.JOptionPane; // uses class JOptionPane
import java.lang.reflect.Array;
import java.math.*;
public class AverageSalaryGather {
public static void gatherData() {
char[] alphaArray = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','x','y','z'};
String[][] empInfoArray = new String[100][4];
String[] empNameArray = new String[100];
String finalOutput = "Name - Rate - Hours - Total Pay\n";
String averageHoursOutput = "Average Hours Worked:\n";
String averageSalaryOutput = "Average Hourly Salary:\n";
String averageGroupSalaryOutput = "Average Group Salary:\n";
String[] rateArray = new String[26];
char empNameChar = 'a';
int empRate = 0;
int payRate = 0;
for (int i = 0; i < 26; i++) {
payRate = i + 5;
rateArray[i] = Integer.toString(payRate);
int countJoo = 0;
while (true) {
String namePrompt = "Please enter the employee name: ";
String empName = JOptionPane.showInputDialog(namePrompt);
if (empName == null | empName.equals("")) {
break;
else {
empInfoArray[countJoo][0] = empName;
for (int i = 0; i < alphaArray.length; i++) {
empNameChar = empName.toLowerCase().charAt(0);
if (alphaArray[i] == empNameChar) {
empInfoArray[countJoo][1] = rateArray;
break;
countJoo++;
// DecimalFormat dollarFormat = new DecimalFormat("$#0.00");
for (int i = 0; i < empInfoArray.length; i++) {
if (!(empInfoArray[i][0] == null)) {
String hourPrompt = "Please enter hours for " + empInfoArray[i][0] + ": ";
String empHours = JOptionPane.showInputDialog(hourPrompt);
int test = 0;
empInfoArray[i][2] = empHours;
// convert type String to double
//double tmpPayRate = Double.parseDouble(empInfoArray[i][1]);
//double tmpHours = Double.parseDouble(empInfoArray[i][2]);
//double tmpTotalPay = tmpPayRate * tmpHours;
// create via a string in empInfoArray
BigDecimal bdRate = new BigDecimal(empInfoArray[i][1]);
BigDecimal bdHours = new BigDecimal(empInfoArray[i][2]);
BigDecimal bdTotal = bdRate.multiply(bdHours);
bdTotal = bdTotal.setScale(2, RoundingMode.HALF_UP);
String strTotal = bdTotal.toString();
empInfoArray[i][3] = strTotal;
//String strTotalPay = Double.toString(tmpTotalPay);
//empInfoArray[i][3] = dollarFormat.format(tmpTotalPay);
else {
break;
AverageSalaryCalcAndPrint averageSalaryCalcAndPrint = new AverageSalaryCalcAndPrint();
averageSalaryCalcAndprint.calcAndPrint();
Code for AverageSalaryCalcAndPrint class (upon compiling, there are more than a few complie errors, and that is due to me cutting/pasting the code from the other class into the new class and the compiler does not know how to access the array/variables from the gatherData class):
import javax.swing.JOptionPane; // uses class JOptionPane
import java.lang.reflect.Array;
import java.math.*;
public class AverageSalaryCalcAndPrint
public static void calcAndPrint() {
AverageSalaryGather averageSalaryGather = new AverageSalaryGather();
double totalHours = 0;
double averageHours = 0;
double averageSalary = 0;
double totalSalary = 0;
double averageGroupSalary = 0;
double totalGroupSalary = 0;
int countOfArray = 0;
for (int i = 0; i < empInfoArray.length; i++) {
if (!(empInfoArray[0] == null)) {
totalSalary = totalSalary + Double.parseDouble(empInfoArray[i][1]);
totalHours = totalHours + Double.parseDouble(empInfoArray[i][2]);
totalGroupSalary = totalGroupSalary + Double.parseDouble(empInfoArray[i][3]);
countOfArray = i;
averageHours = totalHours / (countOfArray + 1);
averageSalary = totalSalary / (countOfArray + 1);
averageGroupSalary = totalGroupSalary / (countOfArray + 1);
String strAverageHourlySalary = Double.toString(averageSalary);
String strAverageHours = Double.toString(averageHours);
String strAverageGroupSalary = Double.toString(averageGroupSalary);
for (int i = 0; i < empInfoArray.length; i++) {
if (!(empInfoArray[i][0] == null)) {
finalOutput = finalOutput + empInfoArray[i][0] + " - " + "$" + empInfoArray[i][1] + "/hr" + " - " + empInfoArray[i][2] + " - " + "$" + empInfoArray[i][3] + "\n";
averageHoursOutput = averageHoursOutput + strAverageHours + "\n";
averageSalaryOutput = averageSalaryOutput + strAverageHourlySalary + "\n";
averageGroupSalaryOutput = averageGroupSalaryOutput + strAverageGroupSalary + "\n";
JOptionPane.showMessageDialog(null, finalOutput + averageHoursOutput + averageSalaryOutput + averageGroupSalaryOutput, "Totals", JOptionPane.PLAIN_MESSAGE );Call the other class's methods. (In general, you
shouldn't even try to access fields from the other
class.) Also you should be looking at an
instance of the other class, and not the class
itself, generally.Would I not call the other classes method's by someting similar as below?:
AverageSalaryCalcAndPrint averageSalaryCalcAndPrint = new AverageSalaryCalcAndPrint();
averageSalaryCalcAndprint.calcAndPrint(); Well... don't break down classes based on broad steps
of the program. Break them down by the information
being managed. I'm not expressing this well...Could you give an example of this? I'm not sure I'm following well.
Anyway, you want one or more objects that represent
the data, and operations on that data. Those
operations include calculations on the data. Other
classes might represent the user interface, and
different output types (say, a file versus the
console).Yes, the requirements is to have a separate class to gather the data, and then another class to calculate and print the data. Is this what you mean in the above? -
Using enum's from one class in another?
heya,
I have two classes, Predator and Simulation, and Predator has an public enum 'target' inside it.
Simulation needs to use a switch statement based on target (Simulation contains a list of Predators, and I'm returning type target to Simulation), but I am getting errors when compiling the two classes from the commandline (for some weird reason, it works fine in Eclipse - both classes are in a package 'lepidoptera', which I originally thoguht was the issue).
Errors are like (5 of these):
Simulation.java:64: an enum switch case label must be the unqualified name of an enumeration constant
case (mimic):Any ideas?
Thanks,
VictorThis works for moi:
public class Predator {
public enum Target {SEITAN, TOFU, TEMPEH}
public class Simulation {
public static String f(Predator.Target target) {
switch(target) {
case SEITAN:
return "yuck";
case TOFU:
return "ugh";
case TEMPEH:
return "crikey";
default:
return "nuts";
public static void main(String[] args) {
System.out.println(f(Predator.Target.SEITAN));
System.out.println(f(Predator.Target.TOFU));
System.out.println(f(Predator.Target.TEMPEH));
}And do you know that an enum can be a top level class? In other
words, that you can create the one-line file Target.java:
public enum Target {SEITAN, TOFU, TEMPEH} -
Using a variable from one class in another
For learning purposes, I thought I'd have a stab at making a role-playing RPG.
The first class I made was the Player class;
public class Player
public static void main(String[] args)
// [0] being base points and [1] being skill points
int[] points = {50, 10};
// Elements in statNames are relevent to stats, so stats[0] is health, and so on
String[] statNames = {"Health", "Mana", "Attack", "Magic", "Craft"};
int[] stats = new int[5];
public static String setName()
Scanner input = new Scanner(System.in);
System.out.print("Character name: ");
String name = input.nextLine();
return name;
public static void setHealth(int[] points, int[] stats)
Scanner input = new Scanner(System.in);
System.out.print("Health (" + points[0] + " base points remanining): ");
stats[0] = input.nextInt();
points[0] -= stats[0];
public static void setMana(int[] points, int[] stats)
Scanner input = new Scanner(System.in);
System.out.print("Mana (" + points[0] + " base points remanining): ");
stats[1] = input.nextInt();
points[0] -= stats[1];
public static void setAttack(int[] points, int[] stats)
Scanner input = new Scanner(System.in);
System.out.print("Attack (" + points[1] + " skill points remanining): ");
stats[2] = input.nextInt();
points[1] -= stats[2];
public static void setMagic(int[] points, int[] stats)
Scanner input = new Scanner(System.in);
System.out.print("Magic (" + points[1] + " skill points remanining): ");
stats[3] = input.nextInt();
points[1] -= stats[3];
public static void setCraft(int[] points, int[] stats)
Scanner input = new Scanner(System.in);
System.out.print("Craft (" + points[1] + " skill points remanining): ");
stats[4] = input.nextInt();
points[1] -= stats[4];
public static void setStats(int[] points, int[] stats)
setHealth(points, stats);
setMana(points, stats);
setAttack(points, stats);
setMagic(points, stats);
setCraft(points, stats);
public static void charSummary(String name, String[] statNames, int[] stats)
System.out.println("\n------ " + name);
for(int index = 0; index < stats.length; index++)
System.out.println(statNames[index] + ":\t" + stats[index]);
}And that would be used in the Play class;
public class Play
public static void main(String[] args)
Player player = new Player();
String name = player.setName();
player.setStats(points, stats);
} But I'm not sure how the Play class will get the arrays from the Player class. I tried simply putting public in front of the them, for example;
public String[] statNames = {"Health", "Mana", "Attack", "Magic", "Craft"};But I get an illegal start of expression error.
I may have taken the wrong approach to this all together, I'm completely new, so feel free to suggest anything else. Sorry for any ambiguity.
Edited by: xcd on Jan 6, 2010 8:12 AM
Edited by: xcd on Jan 6, 2010 8:12 AMHI XCD ,
what about making Player class as
public class Player
// [0] being base points and [1] being skill points
int[] points = {50, 10};
// Elements in statNames are relevent to stats, so stats[0] is health, and so on
public String[] statNames = {"Health", "Mana", "Attack", "Magic", "Craft"};
int[] stats = new int[5];
public String setName()
Scanner input = new Scanner(System.in);
System.out.print("Character name: ");
String name = input.nextLine();
return name;
public void setHealth(int[] points, int[] stats)
Scanner input = new Scanner(System.in);
System.out.print("Health (" + points[0] + " base points remanining): ");
stats[0] = input.nextInt();
points[0] -= stats[0];
public void setMana(int[] points, int[] stats)
Scanner input = new Scanner(System.in);
System.out.print("Mana (" + points[0] + " base points remanining): ");
stats[1] = input.nextInt();
points[0] -= stats[1];
public void setAttack(int[] points, int[] stats)
Scanner input = new Scanner(System.in);
System.out.print("Attack (" + points[1] + " skill points remanining): ");
stats[2] = input.nextInt();
points[1] -= stats[2];
public void setMagic(int[] points, int[] stats)
Scanner input = new Scanner(System.in);
System.out.print("Magic (" + points[1] + " skill points remanining): ");
stats[3] = input.nextInt();
points[1] -= stats[3];
public void setCraft(int[] points, int[] stats)
Scanner input = new Scanner(System.in);
System.out.print("Craft (" + points[1] + " skill points remanining): ");
stats[4] = input.nextInt();
points[1] -= stats[4];
public void setStats(int[] points, int[] stats)
setHealth(points, stats);
setMana(points, stats);
setAttack(points, stats);
setMagic(points, stats);
setCraft(points, stats);
public void charSummary(String name, String[] statNames, int[] stats)
System.out.println("\n------ " + name);
for(int index = 0; index < stats.length; index++)
System.out.println(statNames[index] + ":\t" + stats[index]);
}and Play class
public class Play
public static void main(String[] args)
Player player = new Player();
String name = player.setName();
player.setStats(points, stats);
}Now you can access names , you can't assign keyword to variable into method scope , make it class variable .
Hope it help :) -
Use a counter from one class to another class of the same project
Hello!
In my class Book I have a variable, which is in fact a counter, counts the number of books. I need to use this same variable in another class Library, and I want to know if this is possible by any means!
Thank You very much for Your support!Read this carefully.
Regards, -
Just got a new Imac. I migrated from the old Imac. When I boot the new Imac, the old user screen boots up. I have to log out and then log into my new user on the new mac. Whats up?
Thanks.Thanks for your help. But the PowerBook has a Migration Assistant designed for the purpose of transfering files from the old Mac to the new Mac. The steps take me to the point where I'm instructed to restart the old Mac while holding down the "T" key. But nothing happens when I do that. It just restarts and the Migration Assistant on the new Mac still reads "waiting for old Mac to restart".
There has to be a way to do this. I can't install the original applications on the PowerBook from scratch because they were meant to run on Classic. The PowerBook doesn't recognize any of the old Classic installation disks I have from previous Macs (Oddly, the PowerBook has capability to run Classic, but not the actual software-- and no Classic installation disk was provided, unlike the software provided for iBooks. And I can't install any of the System X upgrades because they need to recognize the original application already on the computer in order to upgrade.
I just calculated that if I have to rebuy all the applications I need, I couldn't afford to do it (unless someone can-- or even wants to-- take the old versions off my hands to offset the cost of buying new ones).
There must thousands of graphic designers like me who run a small business and can't afford to re-stock their entire software collection every time they upgrade to a new computer. Why would Apple diss the very people who have been supporting the company (actually keeping it alive) all these years? I don't think they would do that. I'll just have to keep looking for a solution. -
Using an int from one class in another class
I am a student writing a java program on renewable energy. Simply I have a power output which is a variable called PowerOutPut. declared as (public int PowerOutPut) I have another class which is a graphics class where I display the variable PowerOutPut on a graph, but i dont know how to call this variable in my graphics class.
if anyone can help, I would be very grateful.
ChrisBut bear in mind that it is good practice to declare your variables private (unless you need otherwise) and to provide get and set methods to access and change them.
private int myVariable = 0;
public int getMyVariable(){
return myVariable;
public void setMyVariable(int newValue){
myVariable = newValue;
}Also, class names should start with upper case and variables should start with lower case.
Good luck. -
How to restore a backup from one MBP to another using an external hardrive
Hi. I was wondering how exactly can I restore backed up data using time machine from one MBP to another MBP since I purchased a new 2012 laptop due to replacing my old 2010.
Everything you wanted to know about Time machine but were afraid to ask:
http://pondini.org/OSX/Setup.html
Ciao. -
Import package from one project into another
Hello everyone,
I have some projects.
An enterprise and war project created in netbeans.
I would like to use some files from one project to another. when I import
the package I get the error-
'package x does not exist'
I have added the package to the project but I still get the error.
I have also added the project to import to my glasspath but still.
E.g.
set classpath
.;c:\enterpriseA;
My next idea is to create a war project into my enterprise project and copy the files
from the war project into it in order to use it. But I'm sure there is a better way.
THanking you in advance.
eve
Edited by: evepokua on Nov 22, 2009 1:44 PMOne mistake I keep making is that I don't add the package to the
Dependencies of the plugin I'm writing. You have to go to plugin.xml,
and add the package you depend on to the Dependencies section. Maybe you
didn't do this?
Michael
nasti wrote:
> Hello everybody!
> I am new user of osgi and eclipse. I tried to do some of Oscar examples
> but I had some problems. Namely, the problem in import of package from
> one project into another in Eclipse.
> I add first project to the Build Path of the second one.
> I add to the first project manifest line: Export-Package example2.service.
> I add to the second project manifest line: Import-Package example2.service.
> But when I tried to execute these bundles the
> java.lang.NoClassDefFoundError was occurred. May be you will help me
> with this problem.
> Thanks....
>
> -
RFC Call from one server to another
Hi,
Is it possible to use an rfc from one server to another on the same network?
My Idea was that we can do so, however there's a little confusion about the same .
Please clarify.
Regards,
VikasHi,
call SE37 and search for RFC* with F4.
Sending system side(SEND--800)
Create function module by using Tcode SE37 or SE80
goto attributes select remote function
activate
Receiving system side(RECE--000)
goto Tcode SM59
here select the R/3 Connections-->click on Create Button
give RFC Desstination : TESTRFC
Connection Type : 3 for Connecting two systems
Description : Some meaningful Description
Press enter
give Target system Name : SEND
Language : EN
Client : 800
user Name : sapuser
Password : xxxxxx
save this connections & click on test connections(f8)
& Remote logon(f7)---> it will open a session
with client 800 that is your sending system
then only your RFC is correct
create a report in SE38 Tcode
data : c1 type i.
data : itab like mara occurs 0 with header line.
call function 'ZRFCFM' destination 'TESTRFC' --->Function Module 'ZRFCFM' your just create at Sending system
exporting
importing
exceptions
<b>Reward points</b>
Regards -
Problem in Navigation from one tab to another
Hi All,
In my forms, I have three tabs. In one tab, i have a set of records displayed(like table) in which all columns are bound to a table. I want to sort the records in the tab based on one column. So i wrote the following code in WHEN-TAB-PAGE-CHANGED trigger in form level. It works fine when i click on the particular tab. But when i try to navigate from one tab to another tab which i want to sort, the records in the tab are not sorted. The buton i used to navigate from one tab to another is tab in key board.
DECLARE
l_order_by VARCHAR2 (70) := '(select code from emp)';
BEGIN
IF (:SYSTEM.tab_new_page) = 'PAGE1' OR :SYSTEM.cursor_block = 'BLOCK1' THEN
SET_BLOCK_PROPERTY ('BLOCK1', order_by, l_order_by);
GO_BLOCK ('BLOCK1');
EXECUTE_QUERY;
END IF;
END;
please help asap.
Thanks,
Gopi.Gopi,
Based on your sample code, the only data block that you are modifying the sort on is "BLOCK1". Rather than combine all of your logic into the When-Tab-Page-Changed (WTPC) trigger, I suggest you simply use the WTPC trigger to set the cursor to the block associated with the selected tab page and then set your block properties and query your block in the When-New-Block-Instance (WNBI) trigger for each block. For example:
/* Sample When-Tab-Page-Changed trigger */
DECLARE
tp_nm VARCHAR2(30);
BEGIN
tp_nm := :SYSTEM.TAB_NEW_PAGE;
IF ( tp_nm = 'PAGE1' ) THEN
Go_Block('BLOCK1');
ELSIF ( tp_nm = 'PAGE2' ) THEN
Go_Block('BLOCK2');
ELSIF ( tp_nm = 'PAGE3' ) THEN
Go_Block('BLOCK3');
END IF;
END;Bare in mind, that clicking on a Tab Page does not move the navigation cursor the block associated with the tab page displayed. You must manually perform the navigation as demonstrated above. Now, in your WNBI triggers you would write something like the following:
/* Sample When-New-Block-Instance trigger */
DECLARE
l_order_by VARCHAR2 (70) := '(select code from emp)';
BEGIN
SET_BLOCK_PROPERTY ('BLOCK1', order_by, l_order_by);
EXECUTE_QUERY;
END;You could combine this code into the WTPC trigger if you don't want to seperate the code and orgainze it according to your data blocks. The key, however, is that cursor navigation doesn't occur when you click on a tab, you have to perform the navigation yourself.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Move from one environment to another
how to move universe from development environment to testing and to production???
which tool do we use to ove from one env to another???Hi,
You can try like this.
1) Login on LCM.
2) in preference add server details for dev and qa.
3) create new job and login on source server cmc and destination.
4) Click on create.
5) add objects in this job. like select the universe.
6) Promote job.
If you are not able to login on source or destination then you need to open some ports between server. for the mean time you can use import wizard also.. if you are doing first time then read the import guide and test with some objects first.
Thanks,
Amit -
Which function module is used for transfering form one version to another
HI
COULD ANYBODY TEL ME
WHICH FUNCTION MODULE IS USED FOR TRNASFORING FROM ONE VERSION TO ANOTHER VERSION.................Hi Chaithu,
Go to SE37,enter your function module, click on where used list button on the application bar.
All the program used your function module used is displayed.
Regards,
Venkat.
Maybe you are looking for
-
Bullets and Numbering "Text After" attribute
Hi Everyone, I need to grab "Text After" attribute of and existing bullet list in InDesign document and change it to my text. I think, I need to get access to "kBNBulletTextAfterBoss", but I don't know which boss agregates it. Thanks
-
How to get the textLines in a RichText control
I am trying to get hold of the individual lines that make up the RichText control once I set the text on it. I am able to see the RichText.textLines property in the debug window (by creating a watch expression) - but when I try to access it in code,
-
Error while assigning user for release approval path for payment release
Hi everyone, I am trying to assign user for payment release in SPRO. I have defined upto 'Define relevant document types for release for payment', after that while assigning user in terms of position for release and save it, i am getting error '
-
When i thick "open in 32 bit mode" in "get info" from Firefox application, then every time i try to send email from Hotmail it tells me to update "silverlight" - we do not have such application or program or what every this is. I did not need to do t
-
Target plays in simulator... but not on disc!
I've wasted 4 DVD's because of this. I click the button in simulator, and it faithfully plays the clip and returns me to the proper jumpback. But burn the disc and try it, and I'm immediately shiunted to the top of the menu; I can't play the clip at