Help with ComboBox Selection Update
Hello,
I am trying to make this application display all its labels in a different language depending on which locale the user picks from the ComboBox. The variables are being read from the ResourceBundles correctly (see command-line debugging statements) but I cannot get the pane to 'refresh' when the item is selected. I've tried everything I can think of! Please help! :)
(This assignment was to internationalize a program we wrote for a previous assignment, so this program wasn't originally written to do this. I am trying to add this functionality to my existing project, so it's not ideal).
Thank you for any advice, help or hints you can give!
Program(PrjGUI)
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.*;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.TimeZone;
public class PrjGUI extends JFrame
//**** Instance Variables for both classes
private JRadioButton optGram, optOz;
private JTextField txtWeightEnter, txtResult, txtDateTime;
private JButton cmdConvert;
private JComboBox comboSelectLocale;
//arrays--one for combo box list, and the other for values to use when a particular list item is selected
private String[] localeList = {"English, USA", "Fran\u00E7ais, France", "Espag\u00F1ol, M\u00E9xico"};
private Locale[] localeCode = {(new Locale("en", "US")), (new Locale("fr", "FR")), (new Locale("es", "MX"))};
private JLabel lblChoose, lblWeightEnter;
protected String titleTxt, enterTxt, btnTxt, gramTxt, ozTxt, resultDisplayTxt, localeTimeZone, dateFormat;
protected ResourceBundle res;
protected Locale currentLocale;
//declare Handler Object
private CmdConvertWeight convertWeight;
//**************main method******************
public static void main(String[] args)
PrjGUI convertWeight1 = new PrjGUI();
}//end of main******************************
//constructor
public PrjGUI()
//create panel for components
Container pane = getContentPane();
//set the layout
pane.setLayout(new GridLayout(0, 1, 5, 5));
//set the color
pane.setBackground(Color.GREEN);
//make a font to use in components
Font font1 = new Font("SansSerif", Font.BOLD, 16);
/**New calendar object to display the date and time*/
GregorianCalendar calendar = new GregorianCalendar();
DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.US);
/**currentLocale = localeCode[comboSelectLocale.getSelectedIndex()];
DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, currentLocale); //uses key for ResourceBundle*/
TimeZone timeZone = TimeZone.getTimeZone("CST");
//TimeZone timeZone = TimeZone.getTimeZone(localeTimeZone); //uses key for resourceBundle
formatter.setTimeZone(timeZone);
//***create UI objects***
/**NEW OBJECTS FOR prjInternational:
* a drop-down combobox, a label, and a txt field
txtDateTime = new JTextField(formatter.format(calendar.getTime()));
//txtDateTime = formatter.format(calendar.getTime());
lblChoose = new JLabel("Please choose your language.");
lblChoose.setFont(font1);
lblChoose.setBackground(new Color(0, 212, 255)); //aqua blue
comboSelectLocale = new JComboBox(localeList);
comboSelectLocale.setFont(font1);
comboSelectLocale.setBackground(new Color(0, 212, 255)); //aqua blue
//comboSelectLocale.setSelectedIndex(0);
//add a listener to the combo box to get the selected item
/**default values for variables so I can debug--at the moment
* I can't get the resouceBundle to work--it can't locate the
* file. So I will hard code these in for now.
/*titleTxt="Food Weight Converter";
enterTxt="Please enter the Weight you wish to convert.";
btnTxt="Convert this weight!";
gramTxt="grams";
ozTxt="oz";
resultDisplayTxt="Result will display here.";*/
comboSelectLocale.addItemListener(new ItemListener()
public void itemStateChanged(ItemEvent e)
res = setCurrentLocale(comboSelectLocale.getSelectedIndex());
System.out.println(res.getString("enterTxt"));
updateItems(res);
//set variables from Resource Bundle
/* titleTxt = res.getString("titleTxt");
System.out.println(res.getString("enterTxt")); //debug
enterTxt = res.getString("enterTxt");
btnTxt = res.getString("enterTxt");
gramTxt = res.getString("gramTxt");
ozTxt = res.getString("ozTxt");
resultDisplayTxt = res.getString("resultDisplayTxt");*/
//2 radio buttons
//optGram = new JRadioButton("grams", true);
optGram = new JRadioButton(gramTxt, true);
//optOz = new JRadioButton("oz.");
optOz = new JRadioButton(ozTxt);
optGram.setBackground(Color.GREEN);
optGram.setFont(font1);
optOz.setBackground(Color.GREEN);
optOz.setFont(font1);
//button group so only one can be chosen
ButtonGroup weightUnit = new ButtonGroup();
weightUnit.add(optGram);
weightUnit.add(optOz);
//label and text field for weight
//JLabel lblWeightEnter = new JLabel("Please enter the weight you wish to convert:");
JLabel lblWeightEnter = new JLabel(enterTxt);
lblWeightEnter.setFont(font1);
txtWeightEnter = new JTextField("20.05", 6);
txtWeightEnter.setBackground(new Color(205, 255, 0)); //lime green
txtWeightEnter.setFont(font1);
//button to make conversion
//cmdConvert = new JButton("Convert this weight!");
cmdConvert = new JButton(btnTxt);
cmdConvert.setFont(font1);
//textfield to display result
//txtResult = new JTextField("Result will display here");
txtResult = new JTextField(resultDisplayTxt);
txtResult.setBackground(new Color(205, 255, 0)); //lime green
txtResult.setFont(font1);
//register the handler
convertWeight = new CmdConvertWeight();
cmdConvert.addActionListener(convertWeight);
//add content to pane
pane.add(txtDateTime);
pane.add(lblChoose);
pane.add(comboSelectLocale);
pane.add(lblWeightEnter);
pane.add(txtWeightEnter);
pane.add(optGram);
pane.add(optOz);
pane.add(cmdConvert);
pane.add(txtResult);
//create window for object
setTitle(titleTxt);
setSize(400, 300);
setVisible(true);
setLocationRelativeTo(null);
setDefaultCloseOperation(EXIT_ON_CLOSE);
}//end of constructor
/** ACTION LISTENER CLASS TO RESPOND TO USER'S INPUT (EVENTS) **/
private class CmdConvertWeight implements ActionListener
public void actionPerformed(ActionEvent e)
//System.out.println("we made it to the Action Listener"); //debug
//get info from fields
double weight = Double.parseDouble(txtWeightEnter.getText());
double weightConvert = 0;
String weightConvertString;
if (optGram.isSelected())//if user's weight is in grams, converting to oz
weightConvert = weight/28.35;
weightConvertString = Double.toString(weightConvert);
txtResult.setText(txtWeightEnter.getText() + " grams is equal to " + weightConvertString + " oz.");
}//end if gram select
else if (optOz.isSelected())//if user's weight is in oz, converting to grams
weightConvert = weight*28.35;
weightConvertString = Double.toString(weightConvert);
txtResult.setText(txtWeightEnter.getText() + " oz. is equal to " + weightConvertString + " grams.");
}//end if oz select
}//end actionPerformed
}//end CmdConvertWeight
/**setCurrentLocale method from combo box listener*/
public ResourceBundle setCurrentLocale(int index)
Locale currentLocale = localeCode[index];
System.out.println(currentLocale); //debug
System.out.println("MyResource_" + currentLocale); //debug
ResourceBundle res = ResourceBundle.getBundle("MyResource_" + currentLocale);
return res;
}//end setCurrentLocale
public void updateItems(ResourceBundle res)
//convertWeight1.setTitle(res.getString(titleTxt));
System.out.println(res.getString(btnTxt));//debug
lblWeightEnter.setText(res.getString(enterTxt));
optGram.setText(res.getString(gramTxt));
optOz.setText(res.getString(ozTxt));
cmdConvert.setText(res.getString(btnTxt));
txtResult.setText(res.getString(resultDisplayTxt));
}//end updateItems
}//end of class PrjGUIResourceBundles(each in a different file)
public class MyResource_fr_FR extends java.util.ListResourceBundle
static final Object[][] contents =
{"titleTxt", "Convertisseur de poids de nourriture"},
{"enterTxt", "Veuillez \u00E9crire le poids que vous souhaitez convertir."},
{"btnTxt", "Convertissez ce poids!"},
{"gramTxt", "grammes"},
{"ozTxt", "onces"},
{"resultDisplayTxt", "Le r\u00E9sultat montrera ici."},
{"localeTimeZone", "CET"},
{"dateFormat", "Locale.FR"}
public Object[][] getContents()
return contents;
public class MyResource_es_MX extends java.util.ListResourceBundle
static final Object[][] contents =
{"titleTxt", "Convertidor del peso del alimento"},
{"enterTxt", "Incorpore por favor el peso que usted desea convertir."},
{"btnTxt", "\u00F1convierta este peso!"},
{"gramTxt", "gramos"},
{"ozTxt", "onzas"},
{"resultDisplayTxt", "El resultado exhibir\u00E1 aqu\u00ED."},
{"localeTimeZone", "CST"},
{"dateFormat", "Locale.MX"}
public Object[][] getContents()
return contents;
public class MyResource_en_US extends java.util.ListResourceBundle
static final Object[][] contents =
{"titleTxt", "Food Weight Converter"},
{"enterTxt", "Please enter the weight you wish to convert."},
{"btnTxt", "Convert this weight!"},
{"gramTxt", "grams"},
{"ozTxt", "oz"},
{"resultDisplayTxt", "Result will display here."},
{"localeTimeZone", "CST"},
{"dateFormat", "Locale.US"}
public Object[][] getContents()
return contents;
}Edited by: JessePhoenix on Nov 2, 2008 8:30 PM
catman2u wrote:
does anyone from Lenovo actually read this forum?
From the Communiy Rules in the Welcome section....
Objectives of Lenovo Discussion Forums
These communities have been created to provide a high quality atmosphere in which users of Lenovo products and services may share experiences and expertise. While members from Lenovo may participate at intervals to engage in the discussions and offer advice and suggestions, this forum is not designed as a dedicated and staffed support channel. This is an informal and public forum, and Lenovo does not guarantee the accuracy of information and advice posted here -- see important Warranty information below.
No amount of ranting is going to get you anything more than you will achieve with a clear exposition of your issue... so you might want to try doing that instead of ranting and assuming that everyone already knows what you know etc etc.
Cheers,
Bill
I don't work for Lenovo
Similar Messages
-
Help with Adobe Reader update installation on mac book pro
am trying to update adobe reader 9.4.6 to the latest version on my mac book pro. Am able to download the updtae to 10. whatever and proceed with installation. At the step where I am asked to choose the adobe reader file, I select the file and then the process stops and I get a message that installation has failed and i am to contact the software manufacturer.
I figured it out. Thanks!
The key, during both life and death, is to recognize illusions as illusions, projections as projections, and fantasies as fantasies. In this way we become free.
Date: Mon, 10 Sep 2012 04:54:45 -0600
From: [email protected]
To: [email protected]
Subject: Help with Adobe Reader update installation on mac book pro
Re: Help with Adobe Reader update installation on mac book pro
created by Nikhil.Gupta in Adobe Reader - View the full discussion
How exactly are you trying to update your Adobe Reader 9.4.6Try the following link to download latest Adobe Raeader: http://get.adobe.com/reader/
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4686315#4686315
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4686315#4686315. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Adobe Reader by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Help with ComboBox, datasource from database
Hi there,
i am new to Flex technology and desperately need help with
combobox.
I have a combobox in my app and the datasource comes from
MySQL database. I use a PHP script to populate the combobox. Say in
the datatabse table, I have the following result:
id name
1 dog
2 cat
3 horse
In the app, the combobox will have the list as the name of
the animals: dog, cat, horse. But when the user selects dog, how do
I get the selected id 1 instead of the label "dog".
Any help/suggestion will be appreciated.Hi again,
the xml for the combobox datasource is as follows
<animals>
<animal>
<id>1</id>
<name>dog</name>
</animal>
<animal>
<id>2</id>
<name>cat</name>
</animal>
<animal>
<id>3</id>
<name>horse</name>
</animal>
</animals>
and my <mx:HTTPService> is:
<mx:HTTPService id="dropDown" useProxy="false" url="
http://localhost/~ronnyk/combobox.php"
resultFormat="e4x" result="get_drop_down(event)" />
public function get_drop_down(e:ResultEvent):void{
var dropArr:XML = e.result as XML;
cb.dataProvider = dropArr.animal;
cb.labelField = "name";
cb.data = "id";
public function clickme():void{
txtinput.text = cb.selectedItem as String;
I can't figure out which part I did wrong, in order to get
the id instead of the name when the user clicks the button -
I need help with a SELECT query - help!
Hello, I need help with a select statement.
I have a table with 2 fields as shown below
Name | Type
John | 1
John | 2
John | 3
Paul | 1
Paul | 2
Paul | 3
Mark | 1
Mark | 2
I need a query that returns everything where the name has type 1 or 2 but not type 3. So in the example above the qery should bring back all the "Mark" records.
Thanks,
IanOr, if the types are sequential from 1 upwards you could simply do:-
SQL> create table t as
2 select 'John' as name, 1 as type from dual union
3 select 'John',2 from dual union
4 select 'John',3 from dual union
5 select 'Paul',1 from dual union
6 select 'Paul',2 from dual union
7 select 'Paul',3 from dual union
8 select 'Paul',4 from dual union
9 select 'Mark',1 from dual union
10 select 'Mark',2 from dual;
Table created.
SQL> select name
2 from t
3 group by name
4 having count(*) <= 2;
NAME
Mark
SQL>Or another alternative if they aren't sequential:
SQL> ed
Wrote file afiedt.buf
1 select name from (
2 select name, max(type) t
3 from t
4 group by name
5 )
6* where t < 3
SQL> /
NAME
Mark
SQL>Message was edited by:
blushadow -
Need some help with the Select query.
Need some help with the Select query.
I had created a Z table with the following fields :
ZADS :
MANDT
VKORG
ABGRU.
I had written a select query as below :
select single vkorg abgru from ZADS into it_rej.
IT_REJ is a Work area:
DATA : BEGIN OF IT_REJ,
VKORG TYPE VBAK-VKORG,
ABGRU TYPE VBAP-ABGRU,
END OF IT_REJ.
This is causing performance issue. They are asking me to include the where condition for this select query.
What should be my select query here?
Please suggest....
Any suggestion will be apprecaiated!
Regards,
DeveloperHello Everybody!
Thank you for all your response!
I had changes this work area into Internal table and changed the select query. PLease let me know if this causes any performance issues?
I had created a Z table with the following fields :
ZADS :
MANDT
VKORG
ABGRU.
I had written a select query as below :
I had removed the select single and insted of using the Structure it_rej, I had changed it into Internal table
select vkorg abgru from ZADS into it_rej.
Earlier :
IT_REJ is a Work area:
DATA : BEGIN OF IT_REJ,
VKORG TYPE VBAK-VKORG,
ABGRU TYPE VBAP-ABGRU,
END OF IT_REJ.
Now :
DATA : BEGIN OF IT_REJ occurs 0,
VKORG TYPE VBAK-VKORG,
ABGRU TYPE VBAP-ABGRU,
END OF IT_REJ.
I guess this will fix the issue correct?
PLease suggest!
Regards,
Developer. -
Is it possible to make a search help with dynamic selection table?
Hi Experts,
Is it possible to create search helps with dynamic seletion tables means
i dont know the selection table names at the time of creation of search help.
These tables will be determined at runtime.
if yes, Please give an idea how to create and pass the table names at runtime.
Thanks
Yogesh GuptaHi Yogesh,
Create and fill your itab and show it with FM F4IF_INT_TABLE_VALUE_REQUEST
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'field to return from itab'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'field on your screen to be filled'
stepl = sy-stepl
window_title = 'some text'
value_org = 'S'
TABLES
value_tab = itab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
Darley -
Changing variable with combobox selection - simple problem!
Hi there,
I have a search field when you click on search.
I want to make it so i can change which field in a datagrid
you search for depending on the choice in the Combbox. I'm not sure
how to set the object name correctly depending on the combobox
selection.
I tried it like this, to no avail
private var acOrder:ArrayCollection
private var currentOrder:Object;
///////////////this is incorrect. What should i use instead
of Object?//////
private var whichArray:Object
private function makeid():void
whichArray = "orderid"
private function makeemail():void
whichArray = "email"
private function filterByOrderid(item:Object):Boolean
if (item.(whichArray) == filterTxt.text)
////I want this result to either be if (item.orderid ==
filterTxt.text)
///or if (item.orderid == filterTxt.email)
return true;
else
return false;
private function doFilter():void
if (filterTxt.text.length == 0)
acOrder.filterFunction = null
else
acOrder.filterFunction = filterByOrderid;
acOrder.refresh()
i think answer is very simple. i just need to pass the name
of the item inside the object correctly
thanks very much for any helpHi,
Try declaring whichArray as String and try this
item[whichArray] instead of item.(whichArray).
Hope this helps. -
I need help with a software update problem??
I recently got a new macbook pro and I was doing a software update last night as it was required but then when it started to do the update the computer installed the software and then a barring noise came from the mac and it tried to restart 4 times before it eventually came back on. The software trying to install was Fireware 800 I think. Can anyone help with this?
Try MacBook notebook forum to talk to other users, or OS Software (Lion or Snow Leopard)
Does not sound like an Apple OS update though.
http://support.apple.com/downloads/
https://discussions.apple.com/community/notebooks
http://www.apple.com/support/macbookpro -
Need help with "Nokia Software Updater"...Plz
hi
plz help me
every time i try to install
and it gave me this MSG
" Error 2738.Could not access VBScript run time for custom action."
my Lap work with W.vista
and i have N95-8GB
plz i need a help to update my phonePlease do a search on this forum for "6280 software update" and you will have your answer.
Many people have written here about Nokia software updater that tries to flash their 6280 phones with V6.10 (intended for the 6288) and then breaks their phones.
I myself was busy downloading the firmware for a friends 6280 that was just minutes away from being flashed with 6.10 when I came across messages on many sites telling about the issue with the software updater and 6280 phones. I managed to save that 6280 from sure doom.
If you also searched before hand you would not have this trouble.
You need to take the phone to a nokia Service centre to have it flashed now and get it into a working state. -
Search help with new selection within if more than 500 entries
Dear all,
I created a new search help and this works fine ... If I compare my search help with a default search help from SAP, I have 1 small feature that not seems to work ... With the default one, it is possible to make a new selection within the search help by clicking on the arrow down :
If I look at my search help, I don't have the possibility to make a new selection :
Does anyone how this can be done ?
Thanks in advance !
Greetz,
Kurt.HI,
Here are the general steps to get you started.
1. Identify the search help being used (on the ship-to-party field, F1 then Tech Info). I believe you want the collective search help SD_DEBI.
2. Create your own search help with the fields you want to use with SE11, like 'ZDEBI' as an example.
3. Append 'ZDEBI' to SD_DEBI. (Goto->Append Search Help).
4. Clean things up by "Hiding" the old search help. In the 'Included Search Help' tab of the collective search help SD_DEBI, there is a check box that you can tick to hide included search helps. -
Help with a select statement from a SQL Server within a DTS !!
Hello Gurus!
I help with the script bellow, when I run it within DTS (in SQL Sever 2000), I got the error Invalid number/or not a valid month.
Please bellow with the WHERE CLASUE '08/01/2001' AND '03/09/2002'
And in the other hand I change this forma to '01-AUG-01' AND
'03-MAR-2002', the DTS start and run witha successful messages, but it does not returns row, which is wrong.
Somebady please help!
Thanks Gurus!
GET Total ANIs with Trafic By Area Code
select
substr(b.ct_num, 0,3) as Area_Codes,
COUNT(DISTINCT B.CT_NUM) AS ANIS
from
wasabi.v_trans A,
wasabi.V_Sur_Universal B,
wasabi.V_Sub C,
wasabi.V_Trans_Typ D
where
D.Trans_typ = A.Trans_Typ AND
A.Sur_ID = B.Sur_ID AND
C.Sub_ID = A.Sub_ID AND
a.trans_stat != 'X' AND
a.Trans_DTTM >= '08/01/2001'AND
a.Trans_DTTM < '03/09/2002 AND
B.AMA3 = 'PHONE1'
AND C.SUB_ID not in (100117)
GROUP BY
substr(b.ct_num, 0,3)
ORDER BY
Area_CodesI think that you need a "to_date" function eg
change '08/01/2001' to to_date('08/01/2001','dd/mm/yyyy') -
Please help with RAID driver update.
I need a little help with updating my RAID drivers. I have P55-GD65 motherboard and some SATA2 hard drives connected in RAID arrays. I am running Win7 64bit.
I already downloaded and installed:
“Intel P55 AHCI / RAID Drivers Ver: 8.9.0.1023”
from the MSI support web page. The setup file installed the “Matrix Storage Manager” and the “Matrix Storage Console”
On the same web page I see another download link:
“Intel Matrix Storage Manager Driver Ver: 9.5.0.1037”
It looks like I already installed the manager with the previous driver. Do I need to install this one too? What is the difference between both?
Also when I open the “Intel Matrix Storage Manager Driver Ver: 9.5.0.1037” I see 2 executable files:
“iata_cd.exe” and “iata_enu.exe”
I read the “Readme.txt” provided, but I couldn't find information on what is the difference between the EXE files and which one I should use.Quote
I read the “Readme.txt” provided, but I couldn't find information on what is the difference between the EXE files and which one I should use.
Use either one. It doesn't matter in a functional way. -
Help with Footers (New Update Glitch)
Hi there,
I'm in need of some urgent help with my website as upon publishing with the new update installed all my footers have changed.
I now have massive gaps between where my content ends and the footer begins on almost every page. Example.
Pages which are attached to the Master pages are not reading the same footer positions now. For example, my home page footer begins at nearly 1300 but the master it's attached to it should be closer to 950..... Everything was fine until the update today.
Any help would be appreciated. Thanks!Maybe I can explain this a little better, issue is still going on, spoke with an Adobe representative but didn't get any helpful advice, actually got no advice other than to send the file in.
So here's my home page: you can see the gap between the content and the footer (with the footer starting at around 1300.
But then here's the Master page it's attached to, the footer is set to start way higher, this is happening on every one of my pages. -
Help with automating "System Update"
edit:
please help - who do I contact in Lenovo / IBM to get real help with this ?
this is a corporate project and I need to resolve this as soon as possible.
does anyone from Lenovo actually read this forum?
I've opend a support call in Lenovo's helpdesk (via email) but no reply except an automated one for... like a week.
help! help! help! we don't mind paying for it, we NEED to resolve this.
any help at all would be greatly appretiacted. please point me at the right direction?
sorry for this venting but really, I just need to get a move on this already... :-0
can anyone at all help ?
any idea where I can find more information / expert assistance ?
thanks for any help...
-Shay
Hi,
I've been able to fully automate System Update distribution using Group Policy. this works perfectly.
I am now trying to achive the same functionality using scritps.
the problem: I get quite a few prompts for "License Agreement" - not the "master" initial one, only a few for the different installs.
here's my setup:
1. a local server is the repository.
2. I import a .reg file before installing "System Update" using an automated install.
3. after a restart, a command runs on the local machine.
here are the details:
registry settings:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\System Update]
"LanguageOverride"="EN"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\System Update\UserSettings\General]
"IgnoreLocalLicense"="YES"
"DisplayLicenseNotice"="NO"
"DisplayLicenseNoticeSU"="NO"
"ExtrasTab"="NO"
"RepositoryLocation1"="***my internal server here ****"
"RepositoryLocation2"=""
"RepositoryLocation3"=""
"NotifyInterval"="36000"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\System Update\UserSettings\Scheduler]
"SchedulerAbility"="YES"
"SchedulerLock"="LOCK"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\MND\TVSUAPPLICATION]
*** network drive mapping here, this part works ***
also, I use this command to run the updates:
call "C:\Program Files\Lenovo\System Update\tvsu.exe" /CM -search A -action INSTALL -IncludeRebootPackages 1,3,4 -noicon
I am just about desperate... I would REALLY REALLY appreciate any help, hint etc :-)
Thanks for ...even trying... lol
regards,
Shay
Message Edited by catman2u on 03-18-2008 05:04 AM
Message Edited by catman2u on 03-25-2008 02:41 AMcatman2u wrote:
does anyone from Lenovo actually read this forum?
From the Communiy Rules in the Welcome section....
Objectives of Lenovo Discussion Forums
These communities have been created to provide a high quality atmosphere in which users of Lenovo products and services may share experiences and expertise. While members from Lenovo may participate at intervals to engage in the discussions and offer advice and suggestions, this forum is not designed as a dedicated and staffed support channel. This is an informal and public forum, and Lenovo does not guarantee the accuracy of information and advice posted here -- see important Warranty information below.
No amount of ranting is going to get you anything more than you will achieve with a clear exposition of your issue... so you might want to try doing that instead of ranting and assuming that everyone already knows what you know etc etc.
Cheers,
Bill
I don't work for Lenovo -
Help with GBIC selection LH vs ZX
Dear Support,
I now have the estimated Attenuation values from our fibre provider, and wondering if anyone could help with determining if I can utilise the cheaper (LH modules) across the 20 & 15 KM streches.
Thanks in advance (many thanks to Josh for helping out with my previous post - below)
HQ to DC1 = 1310nm: 2.5dB, 1550nm: 2.2dB.
DC1 to DC2 = 1310nm: 14.5dB , 1550nm: 13.1dB
DC2 to HQ = 1310nm: 10.1dB, 1550nm: 9dB
=========================================
Dear Support,
Sorry but new to optical networking, but need some assistance on an upgrade that we are performing.
We currently have two data centres that hold our servers and are planning to upgrade from LES circuits to Gigabit links, and triangulate our topology. (effectively a ring topology)
I have already spoken to our proposed fibre provider and they have provide me with rough distances, but due to one of the data centres being more than 10 km away we need to use ZX based GBICs. Summary of distances below;
HQ -> dc1 (1 2 km)
HQ -> dc2 (15 km)
Dc1 -> dc2 (20 km)
From our HQ to dc1 we will use LH (via a GLC-LH-SM= in a 2970G) and a to dc2 we will use ZX (via a GLC-ZX-SM= in another 2970G)
From DC1 to HQ we will use LH (via a WS-G5486 in a 7204VXR) and a to dc2 we will use ZX (via a WS-G5487 in another 7204VXR)
From DC2 to HQ we will use ZX (via a WS-G5487 in a 7204VXR) and a to dc1 we will use ZX (via a WS-G5487 in another 7204VXR)
Hope this doesnt confuse things more.
Now to the question.
From the Cisco web site it mentions the following;
When shorter distances of single-mode fiber are used, it might be necessary to insert an in-line optical attenuator in the link to avoid overloading the receiver:
A 5-dB or 10-dB inline optical attenuator should be inserted between the fiber-optic cable plant and the receiving port on the Cisco 1000BASE-ZX GBIC at each end of the link whenever the fiber-optic cable span is less than 15.5 miles (25 km).
We havent yet had the fibre survey performed, but once they have advised me of the attenuation on the link, how should I calculate what level of in-line optical attenuator I should need or should all reputable fibre providers advise me of this detail.
Thanks in advance.
Regards, AdrianSummary of Optical Levels:
GLC-ZX-SM:
Transmit: 0 to +5
Receive: -23 to 0
GLC-LH-SM:
Transmit: -9.5 to -3
Receive: -20 to -3
G5486:
Transmit: -9.5 to -3
Receive: -20 to -3
G5487:
Transmit: 0 to 5.2
Receive: -24 to -3
Given the above:
HQ -> DC2: maximum receive level will be 5-10.1 = -5.1 dB, which is OK for the G5487
HQ <- DC2: maximum receive level will be 5.2-10.1 = -4.9 dB, which is OK for the GLC-ZX-SM
HQ -> DC1: maximum receive level will be -3-2.5 = -5.5 dB, which is OK for the G5486
HQ <- DC1: maximum receive level will be -3-2.5 = -5.5 dB, which is OK for the GLC-LH-SM
DC1 -> DC2:maximum receive level will be 5.2-14.5 = -9.3 dB, which is OK for the G5487
DC1 <- DC2:maximum receive level will be 5.2-14.5 = -9.3 dB, which is OK for the G5487
Therefore, you do not need attenuators anywhere.
Now, to your next queston. If you used the LH modules, you the minimum possible receive levels now become:
HQ -> DC2: minimum possible receive level will be -9.5-10.1 = -19.6 dB, which is only just OK for the G5486
HQ <- DC2: minimum possible receive level will be -9.5-10.1 = -19.6 dB, which is only just OK for the G5486
DC1 -> DC2: minimum possible receive level will be -9.5-14.2 = -24 dB, which is too low for the G5486
DC1 <- DC2: minimum possible receive level will be -9.5-14.2 = -24 dB, which is too low for the G5486
Therefore, my recommendation is to stick with the ZX modules for these links.
Hope that helps - pls rate the post if it does.
Paresh
Maybe you are looking for
-
Cannot Install windows 7 or Vista on HP DC5800 with VL Media
Hello all, I have a fleet of HP DC5800 SFF PC's that have been running XP Pro for some time. I successfully installed windows 7 on one of them, but none of the other PC's I have of this model will take the install. After performing a clean install,
-
The acrobat reader that is running cannot be used to view PDF files in a browser
The subject says it all. I'm unable to open a link to a pdf file. I'm using Mozilla on a Win 2000 machine. Version 8.1.2 worked fine. I see some people have reverted back to this version. Is that the only fix?
-
Can't see friend on iChat video?
My friend and I both have new macs, and she is in the northern woods of Wisconsin, but she has internet, and we can connect with video chat, but I can't see her. She can see me though. All I see is myself? Any reason why that would be?
-
Burn DVD from VIDEO_TS folder
Hello! In 10.4 we used to burn video DVDs in Toast by dragging a folder containing VIDEO_TS and AUDIO_TS folders and clicking burn. Is there any built-in functionality in 10.5 that will achieve this, or must we purchase a new version of Toast? We als
-
How to export full quality in photos
In iPhoto you used to be able to export a modified picture in 'current' quality, which was full quality as shown in iPhoto. Now in the new photos app this option is gone (only allowing to export original image in full quality). The best now seems to