Enabling a disabled TextField
I have a JSF page with a Woodstock table and some actions. The actions include a Woodstock TextField that is initially disabled and is enabled when a selection is made in the table. Unfortunately because it was initially disabled it is not included in the POST request even though it is now enabled.
The TextField is enabled like this:
document.getElementById('form1:table1:actionsTop:textField2').setProps({disabled: disable});
Is there something else I need to do to make sure the field is submitted after it is re-enabled?
Cheers,
Dave
Edited by: Oxley on Oct 7, 2008 3:37 AM
I don't think you understood my question. The TextField is already enabled and disabled as required. It already has a disabled attribute: disabled="#{Projects.actionsDisabled}". The problem is that the value is not submitted to the server (TextField.getValue() == null) unless I exclude the disabled attribute. I understand from the documentation that disabled field values are not included in the form submission but once it has been enabled with the javascript above (document.getElementById('form1:table1:actionsTop:textField2').setProps({disabled: disable});) then it should be submitted.
So to sum up the TextField value is not submitted to the server if its original state is disabled==true even if its state at the time of submission is disabled==false.
So how can I ensure that the TextField value is submitted once I have enabled it?
Hope this makes it a bit more clear.
Cheers,
Dave.
Similar Messages
-
Is this a valid work around for disabled TextField Font colors?
We would like to change the font color in disabled TextFields.
Since the AWT calls some native code that apparently overrides
any call to setForeground(), so that the Foreground is always a
light gray color in disabled TextFields I decided to override
the paint() method. This works fine as listed below. The formula
for setting the initial position for the drawString() method has
worked for every Font/Size that I have tested, but I don't like
the added literals (2 and +1) that I am needing to pass to have
the string line up exactly as is displayed automatically.
Is there another way to get these (x,y) values from method calls
to the component, container or FontMetrics that I am missing?
Also, does anyone see anything wrong with this to override the
default implementation?
Even though I do not call super.paint() in the event that
the [enabled] field is true, the TextField still paints itself
correctly with the appopriate Background and Foreground.
If anyone knows why that is please let me know.
Thanks
public void setEnabled(boolean en) {
enabled = en;
super.setEnabled(enabled);
if(enabled) {
setBackground(defaultBackground);
setForeground(defaultForeground);
else {
setBackground(disabledBackground);
setForeground(disabledForeground);
public void paint(Graphics g) {
FontMetrics fm = this.getFontMetrics(this.getFont());
// [enabled] is a private field that is set in the constructor
// by calling this.isEnabled(), and by any call to the setEnabled()
// method
if(!enabled) {
// clear the old string representation
g.clearRect(0, 0, getSize().width, getSize().height);
// set the font color to the defined [disabledForeground] Color
g.setColor(disabledForeground);
// draw the string in the desired Color instead of the default
// disabled color of light gray
g.drawString(getText(), 2, fm.getAscent()+1);
}Walt, I tried that first, but due to the native call to draw
the disabled TextField the setForeground() is useless.
"The solution is platform dependent. A TextField might be painted entierly by native code. And then calls you make to the Graphics object will then have no effect at all. If you run your textfield in an applet in IE you will not see anything but the native TextField painting. The g.drawString, g.setColor or g.clearRect you call seems to be totaly ignored..."
From the tests that I have done I was able to manipulate the
the Graphics object in the paint() method to override the default
representation of the TextField (I also tried this with a Button
and it worked as well). I did run this in IE 5.0 and was able to
get my modifications to work. Since the TextField that I am modifying
must extend another class to inherit some default behavior
I can not create a new TextField that implements a Panel, I thought
about that until I was told that the TextField needs to extend an
already existing class.
I think that my solution should be fine. I was hoping to find out
if anyone knows of a better way to determine the starting
point for the drawString() method besides adding literals for the (x,y)
attributes. If anyone knows a better way than my method please
let me know.
Thanks for the responses -
How to Disable TextField??
need help!!! i want to disable textfield along with the Done button when the information is fillled in the textfield and when Done button is selected ..
i hv tried out this ....but its nt working...
public void actionPerformed(ActionEvent e)
if(e.getSource()==bDone)
name1.setEnabled(false);
bDone.setEnabled(false);
else if(e.getSource()==bBack)
setVisible(false);
Reservation rev = new Reservation();
rev.setVisible(true);
}Here's a little example of updating a JTextField that works:
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class TextFieldTest extends JFrame {
public static void main(String[] args) {
new TextFieldTest();
public TextFieldTest() {
super("JTextField Update Test");
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
getContentPane().setLayout(
new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
final JTextField field = new JTextField("Test: ");
getContentPane().add(field);
final JToggleButton button = new JToggleButton("Disable Field");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
field.setEnabled(!field.isEnabled());
if (field.isEnabled()) {
button.setText("Disable Field");
} else {
button.setText("Enable Field");
button.setMaximumSize(new Dimension(150, 25));
button.setPreferredSize(new Dimension(150, 25));
getContentPane().add(Box.createRigidArea(new Dimension(0, 10)));
getContentPane().add(button);
getContentPane().add(Box.createRigidArea(new Dimension(0, 10)));
setSize(500, 300);
setVisible(true);
}Hope this helps,
Lance -
Not null and enable or disable column in tabular form
Hi,
Using apex version 4.1 and working on tabular form.
ACT_COA_SEGMENT_MAS is Master table
and
ACT_SEGMENT_VALUES_MAS is detail table
I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i specified PARENT_SEGMENT_ID with value in master table then in detail table there is column PARENT_ID that should not be null and enable.
How i can enable or disable column when in master table PARENT_SEGMENT_ID column is null then in detail table PARENT_ID column should disable and vice versa.
I have created tabular form on Detail table. before insert into the tabular form Check in master table in first entry if PARENT_SEGMENT_ID is not null in first row of master table then in tabular form PARENT_ID should enable and not null able in corresponding to this first row id's lines in tabular form.
Same should check for second row in master table if PARENT_SEGMENT_ID is not null then entered rows with PARENT_ID into tabular form corresponding to 2nd id in master table should not nullable and column should enable in tabular form.
Thanks & Regards
Vedant
Edited by: Vedant on Jan 9, 2013 9:12 PMVedant,
You need to create you own manual tabular form and not use the wizard.
Using APEX_ITEM api you should be build you own form and you will be able to control how you wan to display the rows. (See Link [Apex Item Help|http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CACEEEJE] )
select case when PRIMARY_TABLE_COLUMN is null then APEX_ITEM.DISPLAY_AND_SAVE(3 , DETAIL_COLUMN ) else APEX_ITEM.TEXT(2,detail_column) end "ALIAS" from detail table
Hope that help.
Vivek -
Loop Playback enabled or disabled at a glance?
Can't find the way to understand at a glance if Loop Playback is enabled or disabled. Is it possible that FCPX lacks an option like this?
Yes. It's only visible in View>Playback. Use feedback to request it.
-
How to Enable and Disable column in Table Control.
Hi all,
I want to make certain column of Table control as Enable or Disable on Button action.
Enable means ready for input and Disable means not ready for input.
Please send me sample code.
Thanks in advance.Hi Vipin,
You have to loop through the table columns to set the properties in the PBO of your screen.
Here is the sample solution.
delcare a workarea for the columns in the table control in your top include.
Table Control .
CONTROLS: TAB1 TYPE TABLEVIEW USING SCREEN '0100'.
DATA: WA_COLS LIKE LINE OF TAB1-COLS.
in your screen
PROCESS BEFORE OUTPUT.
MODULE INTIALISE_100.
*& Module 0100_INTIALISE OUTPUT
MODULE INTIALISE_100 OUTPUT.
LOOP AT TAB1-COLS INTO WA_COLS.
WA_COLS-SCREEN-INPUT = 1.
MODIFY TAB1-COLS FROM WA_COLS TRANSPORTING SCREEN-INPUT.
ENDLOOP.
ENDMODULE. " 0100_INTIALISE OUTPUT
modify the screen-input property as required for the table control columns.
Please provide points if helpfull.....
Thanks,
Karthik
Message was edited by: Karthik
Karthikeyan K -
There are no malware or virusses
I am the administartor
I have re installed IE11 several times via tools advanced etc.
Security level in IE 11 is normal. Enhanced security is off.
I even installed Local policy Editor, and via gpedit.msc, did the following :
1, click Start menu
2, type gpedit.msc in search box, press Enter to open Local Group Policy Editor
3, expand User Configuration-->Administrative Templates-->Windows Components-->Internet Explorer
4, in right window, find out and double click Do not allow users to enable or disable add-ons
5, click Not Configured or Disabled
6, click OK to save settings
Allas, everyhting failed, and I still cannot change my add-ons, it is blocked.
The image is dutch but it speaks for itself.
Who can help ?
ThanksHi,
I have re installed IE11 several times via tools advanced etc.
Which tools did you used to install Internet Explorer 11? How did you enable it?
Please check your operation:
Manage add-ons in Internet Explorer
http://windows.microsoft.com/en-IN/internet-explorer/manage-add-ons#ie=ie-11
If you could, please upload your "Manage Add-ons" window screenshot like below:
Karen Hu
TechNet Community Support -
Enable or disable payment advice to vendor
Hi
Is it possible to enable or disable the payment advice on vendor master data level?
We would like to control the distribution of payment advice on vendor level and not in the variant of the program RFFOEDI1.
Best regards
BirgitHi Gaurav
Good point. Unfortunately I am not allowed to remove email nor fax since we also use the information for other correspondence.
If fax or email is present on vendor master data we send by email/fax through SOST. If not, the print is send in a pdf file to an external partner for printing and distribution. I don't think there is a possibility to sort out parts of the files in this proces.
Best regards
Birgit -
Enable or disable particular record in list item based on a corresponding c
Hi,
How can i Enable or disable property of particular record in list item (multi record) based on a corresponding check box(multi record) ,
e.g Form Structure:
if press a button then record should populate where multi_post_query
if my_check_box = 1 then
my_list_item disable to update;
else
my_list_item enable to update;
end if;
now wanted result is like below
my_check_box ---- my_list_item
+----------------------enable
+----------------------enable
+----------------------enable
_----------------------Disable
_----------------------Disable
Here "+" means checked,"_" means unchecked and "enable" means updatable "Disable" means not updatable
the pseudo code is like,
if my_check_box = 1 then
my_list_item enable to update;
else
my_list_item disable to update;
end if;
Note: my_check_box is not updatable
please tell me which trigger and where I should create
Thanks
Edited by: 838602 on Feb 21, 2011 11:12 PM
Edited by: 838602 on Feb 22, 2011 1:40 AMHi Abdetu,
I created WHEN-NEW-RECORD-INSTANCE Trigger at data block level
And I need should work like below pseudo code (sorry for previous pseudo code)
if my_check_box = 1 then
my_list_item disable to update;
else
my_list_item enable to update;
end if;
so change code as
IF :MULTI.PROTECTED_FIELD = 1 THEN
SET_ITEM_PROPERTY ('MULTI.ACTION',REQUIRED , PROPERTY_FALSE );
SET_ITEM_PROPERTY('MULTI.ACTION',NAVIGABLE,PROPERTY_FALSE);
SET_ITEM_PROPERTY ('MULTI.ACTION' ,UPDATE_ALLOWED,PROPERTY_FALSE);
SET_ITEM_PROPERTY ('MULTI.ACTION' ,INSERT_ALLOWED,PROPERTY_FALSE);
:multi.action := 0;
ELSE
SET_ITEM_PROPERTY ('MULTI.ACTION',REQUIRED , PROPERTY_TRUE);
SET_ITEM_PROPERTY('MULTI.ACTION',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY ('MULTI.ACTION' ,UPDATE_ALLOWED,PROPERTY_TRUE);
SET_ITEM_PROPERTY ('MULTI.ACTION' ,INSERT_ALLOWED,PROPERTY_TRUE);
END IF;
Sorry, still I am not getting desired o/p. even i check item (ACTION) level Trigger
Note: my_check_box is not updatable
that would assign at time of button press (post query) as i mentioned
Edited by: 838602 on Feb 22, 2011 1:41 AM -
Validating enabled and disabled menu bar in JInternalFrame
hi,
everybody.
i have created a main window using JInternalFrame and JDesktopPane. The window has a menu bar in which document menu is used for closing the main window, while employee menu is used for adding new frame for the employee. while the login frame is displayed when the application is executed.
my problem is, i want to validate that before login process, employee menu should be disabled, and after login is performed employee menu is enabled.
the following is my code.
please reply me as i am stucked with it.
waiting for the reply
thanks in advance.
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.io.*;
import java.util.*;
public class InternalFrameDemo extends JFrame implements ActionListener
JDesktopPane desktop;
public InternalFrameDemo()
super("InternalFrameDemo");
int inset = 50;
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setBounds(inset, inset, screenSize.width - inset*2, screenSize.height - inset*2);
desktop = new JDesktopPane();
setContentPane(desktop);
desktop.setBackground(Color.white);
setJMenuBar(createMenuBar());
desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
createLogin();
public JMenuBar createMenuBar()
JMenuBar menuBar = new JMenuBar();
JMenu menu = new JMenu("Document");
menu.setMnemonic(KeyEvent.VK_D);
menuBar.add(menu);
JMenuItem menuItem = new JMenuItem("Quit");
menuItem.setMnemonic(KeyEvent.VK_Q);
menuItem.setAccelerator(KeyStroke.getKeyStroke( KeyEvent.VK_Q, ActionEvent.ALT_MASK));
menuItem.setActionCommand("quit");
menuItem.addActionListener(this);
menu.add(menuItem);
JMenu employee = new JMenu("Employee");
employee.setMnemonic(KeyEvent.VK_E);
employee.setActionCommand("employee");
menuBar.add(employee);
JMenuItem additem = new JMenuItem("Add");
additem.setMnemonic(KeyEvent.VK_A);
additem.setActionCommand("add");
additem.addActionListener(this);
employee.add(additem);
return menuBar;
public void actionPerformed(ActionEvent ae)
String str = ae.getActionCommand();
if(str.equals("add"))
System.out.println("Employee Form Invoked");
createEmployee();
else if(str.equals("quit"))
quit();
public void createEmployee()
MyEmployeeFrame employeeframe = new MyEmployeeFrame();
employeeframe.setVisible(true);
desktop.add(employeeframe);
try
employeeframe.setSelected(true);
catch(Exception e)
public void createLogin()
MyLogin loginframe = new MyLogin();
loginframe.setVisible(true);
desktop.add(loginframe);
try
loginframe.setSelected(true);
catch(Exception e){}
public void quit()
System.exit(0);
private static void createAndShowGUI()
JFrame.setDefaultLookAndFeelDecorated(true);
InternalFrameDemo frame = new InternalFrameDemo();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(800,600);
frame.setVisible(true);
public static void main(String a[])
createAndShowGUI();
class MyEmployeeFrame extends JInternalFrame implements ActionListener
JFrame employeeframe;
JLabel labelfirstname;
JLabel labellastname;
JLabel labelage;
JLabel labeladdress;
JLabel labelcity;
JLabel labelstate;
JTextField textfirstname;
JTextField textlastname;
JTextField textage;
JTextField textaddress;
JTextField textcity;
JTextField textstate;
JButton buttonsave;
FileOutputStream out;
PrintStream p;
String strfirstname,strlastname,strage,straddress,strcity,strstate;
GridBagLayout gl;
GridBagConstraints gbc;
public MyEmployeeFrame()
super("Employee Details",true,true,true,true);
setSize(500,400);
labelfirstname = new JLabel("First Name");
labellastname = new JLabel("Last Name");
labelage = new JLabel("Age");
labeladdress = new JLabel("Address");
labelcity = new JLabel("City");
labelstate = new JLabel("State");
textfirstname = new JTextField(10);
textlastname = new JTextField(10);
textage = new JTextField(5);
textaddress = new JTextField(15);
textcity = new JTextField(10);
textstate = new JTextField(10);
buttonsave = new JButton("Save");
gl = new GridBagLayout();
gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 3;
gl.setConstraints(labelfirstname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 3;
gl.setConstraints(textfirstname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 5;
gl.setConstraints(labellastname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 5;
gl.setConstraints(textlastname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 7;
gl.setConstraints(labelage,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 7;
gl.setConstraints(textage,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 9;
gl.setConstraints(labeladdress,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 9;
gl.setConstraints(textaddress,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 11;
gl.setConstraints(labelcity,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 11;
gl.setConstraints(textcity,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 13;
gl.setConstraints(labelstate,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 13;
gl.setConstraints(textstate,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 17;
gl.setConstraints(buttonsave,gbc);
Container contentpane = getContentPane();
contentpane.setLayout(gl);
contentpane.add(labelfirstname);
contentpane.add(textfirstname);
contentpane.add(labellastname);
contentpane.add(textlastname);
contentpane.add(labelage);
contentpane.add(textage);
contentpane.add(labeladdress);
contentpane.add(textaddress);
contentpane.add(labelcity);
contentpane.add(textcity);
contentpane.add(labelstate);
contentpane.add(textstate);
contentpane.add(buttonsave);
buttonsave.addActionListener(this);
public void reset()
textfirstname.setText("");
textlastname.setText("");
textage.setText("");
textaddress.setText("");
textcity.setText("");
textstate.setText("");
public void actionPerformed(ActionEvent ae)
String str = ae.getActionCommand();
System.out.println(str);
if(str.equalsIgnoreCase("Save"))
try
out = new FileOutputStream("myfile.txt",true);
p = new PrintStream( out );
strfirstname = textfirstname.getText();
strlastname = textlastname.getText();
strage = textage.getText();
straddress = textaddress.getText();
strcity = textcity.getText();
strstate = textstate.getText();
p.print(strfirstname+"|");
p.print(strlastname+"|");
p.print(strage+"|");
p.print(straddress+"|");
p.print(strcity+"|");
p.println(strstate);
System.out.println("Record Saved");
reset();
p.close();
catch (Exception e)
System.err.println ("Error writing to file");
class MyLogin extends JInternalFrame implements ActionListener
JFrame loginframe;
JLabel labelname;
JLabel labelpassword;
JTextField textname;
JPasswordField textpassword;
JButton okbutton;
String name = "";
FileOutputStream out;
PrintStream p;
Date date;
GregorianCalendar gcal;
GridBagLayout gl;
GridBagConstraints gbc;
public MyLogin()
super("Login",true,true,true,true);
setSize(400,300);
gl = new GridBagLayout();
gbc = new GridBagConstraints();
labelname = new JLabel("User");
labelpassword = new JLabel("Password");
textname = new JTextField("",9);
textpassword = new JPasswordField(5);
okbutton = new JButton("OK");
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 5;
gl.setConstraints(labelname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 2;
gbc.gridy = 5;
gl.setConstraints(textname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 10;
gl.setConstraints(labelpassword,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 2;
gbc.gridy = 10;
gl.setConstraints(textpassword,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 15;
gl.setConstraints(okbutton,gbc);
Container contentpane = getContentPane();
contentpane.setLayout(gl);
contentpane.add(labelname);
contentpane.add(labelpassword);
contentpane.add(textname);
contentpane.add(textpassword);
contentpane.add(okbutton);
okbutton.addActionListener(this);
public void reset()
textname.setText("");
textpassword.setText("");
public void run()
try
String text = textname.getText();
String blank="";
if(text.equals(blank))
System.out.println("First Enter a UserName");
else
if(text != blank)
date = new Date();
gcal = new GregorianCalendar();
gcal.setTime(date);
out = new FileOutputStream("log.txt",true);
p = new PrintStream( out );
name = textname.getText();
String entry = "UserName:- " + name + " Logged in:- " + gcal.get(Calendar.HOUR) + ":" + gcal.get(Calendar.MINUTE) + " Date:- " + gcal.get(Calendar.DATE) + "/" + gcal.get(Calendar.MONTH) + "/" + gcal.get(Calendar.YEAR);
p.println(entry);
System.out.println("Record Saved");
reset();
p.close();
catch (IOException e)
System.err.println("Error writing to file");
public void actionPerformed(ActionEvent ae)
String str = ae.getActionCommand();
if(str.equals("OK"))
run();
loginframe.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
}I realize this post is from a few days ago, but if you're still looking for help:
This is my first thought on how to do this. Unfortunately, it's a bit messy. JMenuItems can be enabled and disabled but JMenus don't have this option...
public class InternalFrameDemo extends JFrame implements ActionListener
JDesktopPane desktop;
JMenuBar menuBar;
public InternalFrameDemo()
setJMenuBar(createMenuBar());
desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
createLogin();
public JMenuBar createMenuBar()
menuBar = new JMenuBar();
JMenu menu = new JMenu("Document");
menu.setMnemonic(KeyEvent.VK_D);
menuBar.add(menu);
JMenuItem menuItem = new JMenuItem("Quit");
menuItem.setMnemonic(KeyEvent.VK_Q);
menuItem.setAccelerator(KeyStroke.getKeyStroke( KeyEvent.VK_Q, ActionEvent.ALT_MASK));
menuItem.setActionCommand("quit");
menuItem.addActionListener(this);
menu.add(menuItem);
JMenuItem additem = new JMenuItem("Add");
additem.setMnemonic(KeyEvent.VK_A);
additem.setActionCommand("add");
additem.addActionListener(this);
employee.add(additem);
return menuBar;
public void createLogin()
MyLogin loginframe = new MyLogin( menuBar );
loginframe.setVisible(true);
desktop.add(loginframe);
try
loginframe.setSelected(true);
catch(Exception e)
class MyLogin extends JInternalFrame implements ActionListener
JMenuBar menuBar;
public MyLogin( JMenuBar menuBar1 )
super("Login",true,true,true,true);
menuBar = menuBar1;
public void actionPerformed(ActionEvent ae)
String str = ae.getActionCommand();
if(str.equals("OK"))
run();
JMenu employee = new JMenu("Employee");
employee.setMnemonic(KeyEvent.VK_E);
employee.setActionCommand("employee");
menuBar.add(employee);
loginframe.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
} -
How to enable or disable buttons on an interactive ALV report
I have two buttons on Interactive ALV report. Before displaying the ALV report, I want to enable or disable buttons on ALV depending on some conditions.I dont want to make the buttons visible or invisible. This is not an OO ALV report.
Please suggest !!!Then you have to use the event set_pf_status or parameter I_CALLBACK_PF_STATUS_SET for this pass the form name.
You have to Implement the form Routine.
FORM PF_STATUS using status type SLIS_T_EXTAB.
SET PF-STATUS 'STS' excluding status.
ENDFORM.
First create the pf-staus using SE41 or double click on the status name and create . By default you make them Disable mode. -
How to check whether voltage sensor is enabled or disabled in T5220
Hi,
I use command "prtdiag -v" to check current system status in two T5220 servers. However, I find a strange thing in sensors part as below, which Server one has status info for temperature and voltage sensors but Server two has no related info.
Does it mean the voltage and temperature senors are disabled? How do I check whether voltage sensor is enabled or disabled in T5220?
Note:
Server one has output by command 'prtpicl -c voltage-sensor -v', but Server two has nothing.
Server one:
Temperature sensors:
Location Sensor Status
SYS/MB T_AMB ok
SYS/MB/CMP0/BR0/CH0/D0 T_AMB ok
SYS/MB/CMP0/BR0/CH1/D0 T_AMB ok
SYS/MB/CMP0/BR1/CH0/D0 T_AMB ok
SYS/MB/CMP0/BR1/CH1/D0 T_AMB ok
SYS/MB/CMP0/BR2/CH0/D0 T_AMB ok
SYS/MB/CMP0/BR2/CH1/D0 T_AMB ok
SYS/MB/CMP0/BR3/CH0/D0 T_AMB ok
SYS/MB/CMP0/BR3/CH1/D0 T_AMB ok
SYS/MB/CMP0 T_TCORE ok
SYS/MB/CMP0 T_BCORE ok
Current sensors:
Location Sensor Status
SYS/PS0 I_IN_MAIN ok
SYS/PS0 I_IN_LIMIT ok
SYS/PS0 I_OUT_MAIN ok
SYS/PS0 I_OUT_LIMIT ok
SYS/PS1 I_IN_MAIN ok
SYS/PS1 I_IN_LIMIT ok
SYS/PS1 I_OUT_MAIN ok
SYS/PS1 I_OUT_LIMIT ok
Voltage sensors:
Location Sensor Status
SYS/MB V_VMEML ok
SYS/MB V_VMEMR ok
SYS/MB V_+3V3_STBY ok
SYS/MB V_VCORE ok
SYS/MB V_+3V3_MAIN ok
SYS/MB V_VDDIO ok
SYS/MB V_+12V0_MAIN ok
SYS/MB V_VBAT ok
SYS/PS0 V_IN_MAIN ok
SYS/PS0 V_OUT_MAIN ok
SYS/PS1 V_IN_MAIN ok
SYS/PS1 V_OUT_MAIN ok
Voltage indicators:
Location Indicator Condition
SYS/MB VCORE_POK ok
SYS/MB VMEML_POK ok
SYS/MB VMEMR_POK ok
SYS/MB I_USB0 ok
SYS/MB I_USB1 ok
SYS/HDD0 PRSNT ok
SYS/HDD1 PRSNT ok
SYS/ALARM INPUT ok
SYS/PS0 AC_POK ok
SYS/PS0 DC_POK ok
SYS/PS0 CUR_FAULT ok
SYS/PS0 VOLT_FAULT ok
SYS/PS0 FAN_FAULT ok
SYS/PS0 TEMP_FAULT ok
SYS/PS1 AC_POK ok
SYS/PS1 DC_POK ok
SYS/PS1 CUR_FAULT ok
SYS/PS1 VOLT_FAULT ok
SYS/PS1 FAN_FAULT ok
SYS/PS1 TEMP_FAULT ok
Server two:
Temperature sensors:
Location Sensor Status
SYS/MB T_AMB okServer one has status info for temperature and voltage sensors but Server two has no related info.You are using the prtdiag command as root user whenever you are doing this?
The output when done as root will give full information, whereas if you are NOT the root user the output will almost always have less information.
However ...
Because you have stated that the prtpicl information also seems to follow the same more-versus-less symptoms, I suspect you have a patch level issue.
Server #2 is probably under-patched when compared to server #1 (both for system OBP level as well as OS level).
Determining if that is the root of your issue is too much for a forum thread.
Run Explorer on both systems then use your service contract credentials to log a SR so that Technical Support can analyze those Explorer files for you. -
Can i export a list of all the webpages in my site, enabled and disabled?
Hey Guys,
Can i export a list of all the webpages in my site, enabled and disabled?
I saw you could view all pages in the advanced view - but i am not sure if you can then export that as an excel file.hey Liam -
but ftp doesnt show you what is enabled and disabled.
also I don't think you can export an excel file from this?
Pretty much i want this list - in an excel format! -
I can't enable or disable cellular data for certain iOS apps and features from setting.
When I off data for specific application and go to other option it automatic on all application
Any one can helpSOLUTION! (NO NEED TO RESET YOUR IPHONE SETTING!)
I have the same issue for the last two weeks. But i have already managed to solve the issue all by myself. When i go to Settings > Cellular > below the tab "use cellular data for:", i turned off some apps which i didnt want to use with cellular data. As soon as i go back to Settings, and then i went back to Cellular, the apps which i had switched off earlier, automatically turned back on.
Here's the solution:
Either you're using wifi or cellular data, first of all you're gonna hafto turn on the cellular data use for App Store. Once you have turned it on, go to App Store application. Update ALL the apps which have new updates available. If it asks you to log in your App Store, just do so. If there's something wrong with your debit or credit card information, it will ask you to update to a different card. Just do what it asks. Put in a new credit or debit card info and fill in the forms provided. The card you're using must be usable and has usable balance in it. Let's say atleast $10 to $20. As soon as it confirms your card successfully, the app updates will start automatically. Continue to update all the apps. After all updates are finished, go back to Settings > Cellular. Try to switch on or off some apps for data use and recheck.
Try it yourself! Have a nice day and don't put a blame on Apple for this.
From Malaysia, with love.
Please hit LIKE button if this solve your issue. Thank you very much! (: -
How can I re-enable a disabled Ipad from my computer?
By not allowing enough time to reset, do you mean you have tried a reboot by holding both the power and home buttons until the apple logo appears, ignoring the red slider? If so, are you able to power down just using the power button? Does it then restart on its own?
If you cannot get it to reboot, stay powered down, take it to an Apple store genius bar and have the technicians test it to see what is wrong...that is most likely a hardware issue.
Maybe you are looking for
-
Message.messagekey is coming instead of message text of message pool
Hi All. I am facing one problem , I have created one error message in message pool ,and I am validating the field but when I am trying to use this ,Its highlighting the fields but message is not coming instead message.messagekey is coming. I am using
-
mon mac met plus de 2 min à démarrer depuis l'installation de os x yosemite. J'ai un écran gris avec la pomme et dessous une bande d'avancement de l'ouverture. Je n'avais pas ça avant. Quelqu'un peut il m'aider à trouver une solution svp? l'avantage
-
Validate ship to party- VA01 at header level
I am adding some validation logic to userexit routime USEREXIT_MOVE_FIELD_TO_VBKD in MV45AFZZ. While testing, I have noticed that while entering the ship to party in the screen (VA01) in VBAK i could not able to find ship to party. But i can see sol
-
I am trying to download all of the music from my itunes account to my new imac. please nhelp
-
Hi, I have a refurbished upgraded macbook with 320 GB Disk, 4GB Memory and running Lion OS v 10.7.5. This satisfies the second part of the requirement for installing OS X Mavericks (10.9) but happens to be an early 2008 piece. Can I somehow install