JPopupMenu for a JTree, enabling and disabling options
Hi all.
I'm trying to activate/deactivate some JMenuItem options for a JPopupMenu launched for a JTree object.
Let's say, depending on "some state", I want some options in the JPopupMenu (the JMenuItems) should be enabled or disabled, and change whenever that state changes.
I'm trying to activate this feature with "((JMenuItem) item).setEnabled(true)" but the PopupMenu option is still disabled.
Can some one help me, please?
Thanks a lot in advance.
-- Arturo
Hi all.
I'm trying to activate/deactivate some JMenuItem options for a JPopupMenu launched for a JTree object.
Let's say, depending on "some state", I want some options in the JPopupMenu (the JMenuItems) should be enabled or disabled, and change whenever that state changes.
I'm trying to activate this feature with "((JMenuItem) item).setEnabled(true)" but the PopupMenu option is still disabled.
Can some one help me, please?
Thanks a lot in advance.
-- Arturo
Similar Messages
-
Messaging Server 3.x: Is there an option to enable and disable the ETRN function?
Is there an option in Messaging Server to enable and disable the ETRN function?
<P>
Yes. You can add the option for enabling and disabling the ETRN function by
modifying the code in the file <BR>
<P>
<I>server-root</I>
bin/mail/admin/html/SMTPChannelOptions.html
<P>
The original code to be modified will appear as follows:<BR>
<P>
<!-- ELEM txt="Allow SMTP command 'EXPN': " -->
<!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="yes" -->
Yes
<!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="no" -->
No
<P>
Modify the code to look like this:<BR>
<P>
<!-- ELEM txt="Allow SMTP command 'EXPN': " -->
<!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="yes" -->
Yes
<!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="no" -->
No
<!-- ELEM txt="Allow SMTP command 'ETRN': " -->
<!-- M_RADIO n="SMTP-Accept/Config/AllowETRN" v="yes" -->
Yes
<!-- M_RADIO n="SMTP-Accept/Config/AllowETRN" v="no" -->
No
<P>
Making these changes will create an extra option to enable and disable the ETRN
function on the SMTP Options page in the Administration Server.Yes, this is possible. In Cisco Webex Administration->Settings->Audio you can choose your audio (system-wide) options:
WebEx Audio:
Call In and Call Me service – Enables users to attend a teleconference by calling specified phone numbers or by receiving a Call Me call from the system.
Call In – Enables users to attend a teleconference by calling specified phone numbers.
OFF – Disables all calling features.
Voice connection using computer
ON
OFF
See also this section in the administartion guide. -
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 distinguish between enabled and disabled tasks in SSDT-BI 2012
Hi,
I've got SSDT-BI 2012 together with VS2012 installed. Simple questions: What is the difference between enabled and disabled tasks in control flow from the design/color point of view? I do see that the disabled tasks changes to grey (omg are you really kidding
me????) from black. This could be a bad joke or dream however is not.
So I'm kindly asking you to help me solve this problem. How can I change the color difference between these two options (enabled task vs disabled task)? I do not care whether the one will be yellow or pink, simply just need to be recognizable at first
look and not under long and painful examination.
Thanks for your reply. Hopefully it will be useful.
Karol.Hi Karol,
It’s true that it only changes the font color of the task name text to grey after disabling a task in SSDT 2012. In SSDT 2010, the whole task control including icon will turn grey after it is disabled; in BIDS, the background color of the task control will
turn grey after it is disabled. These behaviors are by design. Personally, I agree with you that this behavior in SSDT 2012 is not very readable.
If you have concerns, I would suggest you submitting a wish at
https://connect.microsoft.com/sql.
Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
Selection screen dynamic enable and disable
HI all,
I have one requirement like
on selection of redio button my selection screen hould be enable and disable
Like if i select rediobutton tfile then my selection screen block B2 should enable and Block B3 hould be disable
If redio button selscr is selected then my block B3 should be enable and Block B2 should disable
my selection screen code is below
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
PARAMETERS: tfile RADIOBUTTON GROUP g1 DEFAULT 'X'.
PARAMETERS: selscr RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_matnr FOR marc-matnr,
s_fkdat FOR vbrk-fkdat OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-002.
PARAMETERS : filename TYPE rlgrap-filename.
SELECTION-SCREEN END OF BLOCK b3.
How to do that.
Help me here its urgent tnx in advance.Hi Lalit,
Check the below code.
TABLES: marc, vbrk.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
PARAMETERS: tfile RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND rusr.
PARAMETERS: selscr RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_matnr FOR marc-matnr MODIF ID abc,
s_fkdat FOR vbrk-fkdat MODIF ID abc.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-002.
PARAMETERS : filename TYPE rlgrap-filename MODIF ID def.
SELECTION-SCREEN END OF BLOCK b3.
AT SELECTION-SCREEN OUTPUT.
*Note: To disable the fields use the below one.
LOOP AT SCREEN.
IF screen-group1 = 'DEF'. "Name field
IF selscr = 'X'.
screen-input = 1.
ELSE.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'ABC'. "Name field
IF selscr = 'X'.
screen-input = 0.
ELSE.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
*Note: To hide the screen use the below one.
LOOP AT SCREEN.
IF screen-group1 = 'DEF'. "Name field
IF selscr = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'ABC'. "Name field
IF tfile = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP. -
hi,
how I can delete add-in applications in add-in applications section , I try to delete one but I don't see any delete function, I see only enable and disable function in the manage add-in applications wizard.
thanks
johan
h.davidHi,
If you want to remove the add-ins of Office 2010 programs, you need to remove it from control panel.
For example, if you use Excel, please try to follow the link to delete the add-ins:
http://office.microsoft.com/en-us/excel-help/add-or-remove-add-ins-HP010342658.aspx
If I misunderstand something, please let me know.
Regards,
George Zhao
TechNet Community Support -
Enable and Disable the file paths
Hai i have two file paths one logical file path and other is physical file path.
I took two radio buttons.
How can i enable and disable the file paths by using these radio buttons.
When i select the 1st radio button then 1st file path is in enable and second file path in disable mode similarly for the second radio button also.
It is very urgent .
With Regards,
Prasad.Tallapudi.i answered in your other post....here is the code again....
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: logfile type string default 'Z_DATALOAD',
FILE(128) TYPE C DEFAULT 'nittest.txt' LOWER CASE.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
PARAMETERS: P_LFILE RADIOBUTTON GROUP G1 USER-COMMAND C1 DEFAULT 'X',
P_PFILE RADIOBUTTON GROUP G1.
SELECTION-SCREEN END OF BLOCK B2.
at selection-screen output.
if p_lfile eq 'X'.
loop at screen.
if screen-name = 'LOGFILE'.
screen-input = '1'.
endif.
if screen-name = 'FILE'.
screen-input = '0'.
endif.
modify screen.
endloop.
endif.
if p_pfile eq 'X'.
loop at screen.
if screen-name = 'LOGFILE'.
screen-input = '0'.
endif.
if screen-name = 'FILE'.
screen-input = '1'.
endif.
modify screen.
endloop.
endif.
if the problem gets solved...please close both the posts -
On basis of drop down by key values i want to enable and disable ui elements is wda
How to enable and disable ui elements on basis of drop down by key values as i show in screen shot i have 3 values in drop down by key on basis of those values i need to enable and disable ui elements in webdynpro abap kindly reply back
Hi Sreedhara,
There are many tutorials on SCN for learning Web Dynpro ABAP. If the following steps don't make sense to you, please do a search for some tutorials and read through the tutorial materials. Hopefully the tutorials will help you to become familiar with some of the basics of Web Dynpro ABAP.
Here is how to enable or disable a UI element upon selection from a DropDownByKey.
In your view context, create a context attribute of type wdy_boolean. For now, let's call this attribute IS_ENABLED
In your view layout, bind the enabled property of the UI element to the context attribute IS_ENABLED.
In your view actions, create an action-- let's call it SET_ENABLED-- and bind this action to the DropDownByKey element's onSelect event in the view layout.
In the event handler method for the SET_ENABLED action, use the Code Wizard to read the value of the DropDownByKey selected value, then use the Code Wizard again to set the value of context attribute IS_ENABLED to either true or false.
Now when a value is selected from the DropDownByKey, the SET_ENABLED action will be triggered and the IS_ENABLED context attribute will be set to either true or false. Since your UI element's enabled property is bound to this true or false value via the context binding, the UI element will change to enabled or disabled.
Good luck!
Cheers,
Amy -
I have tried every step you have listed in your FAQ section for enabling and disabling cookies but I am still getting error messages "cookies not enabled" on certain websites? Why is this and what do I need to do to fix this?
I have STILL NOT received an answer to my question as of this date. I am VERY disappointed in Firefox support.
-
Enabling and disabling the button in the multi record block
hi all,
i am using
Forms [32 Bit] Version 6.0.8.24.1 (Production)
Oracle Database 10g Release 10.2.0.1.0 - Production
i have a multi record block each block contains a button(button is to approve the record in terms of changing the status)
i have the items like date,remarks and button
the button should be enabled if the remarks is not null otherwise it should be disabled.
for this in pre-record trigger i have written
if :record is null then
set_item_property('button',enabled,property_false);
else
set_item_property('button',enabled,property_false);
end if;what problem is enable and disable is impacting on all the buttons in the block. in other words if first record's remarks is null then all the records button is disabled. if first record's remarks column is not null then all the records of the button column is enabled.
i have to make enable and disable the button for the corresponding record.that means if first record's remarks column is not null then only first records button should be enabled others should be disabled.
Thanks..You need to set the No. of items displayed to 1 as Ammad had said, additionally you can set the X and Y Position (Just Y will do and having fixed X) of the button depending upon the current record.
can u explain this part alone bit more (setting the position of x and y)You need to calculate the variable Y_POS depending upon the current position of the cursor that is the current record.
You can find the current record Y_POS using combination of
V_CURRENT_RECORD := :SYSTEM.CURSOR_RECORD;
V_TOP_RECORD := GET_BLOCK_PROPERTY ('BLOCK_NAME', TOP_RECORD);
V_ITEM_Y_POS := GET_ITEM_PROPERTY ('ITEM_NAME', Y_POS);
-- Also needs to add the Y_POS of the relative other items in the muti-record block
V_HEIGHT := GET_ITEM_PROPERTY ('BUTTON_NAME', HEIGHT);
-- Note :- TOP_RECORD Returns the record number of the topmost visible record in the given block.
V_Y_POS := V_ITEM_Y_POS + ((V_CURRENT_RECORD - V_TOP_RECORD) * V_HEIGHT);
-- You will need to add Distance between Items in records if anyThen you can Set the current Y_POS of the button.
SET_ITEM_PROPERTY ('BUTTON_NAME', Y_POS, V_Y_POS);
[/code[
Hope this helps
Best Regards
Arif Khadas
Edited by: Arif Khadas on Feb 24, 2011 4:58 PM -
Manual enabling and disabling of activation agent in active-active topology
For Active-Active Topology for Adapters we can deploy and run Oracle BPEL Process Manager and business processes on all nodes but only one adapter service is running at any given time. In case of failover we need to manually disable the Activation Agent on the failed node & enable the activation agent on another node.
One customer has the below queries. Could anyone help.
a)Is there any way to automate the process of enabling and disabling of activation agent in active active topology ie failover is auto-detected and enabling & disabling happens automatically?
b)What is the suggested clustering topology for BPEL from oracle
Regards,
Senthil
Message was edited by:
user554076Customer tried the configuration given in the doc http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b31005/life_cycle.htm#CIABHCFE
But after applying the changes they are getting the following error message: "Invalid activation parameter.Activation parameter Physical/Logical Directory has invalid value. Check the error stack and fix the cause of the error."
1. Why this error coming?
2. Also the doc said If the BPEL PM servers (JVMs) in the cluster are located across TCP/IP subnet boundaries, then it is necessary to add the attribute clusterAcrossSubnet=true. Can I have more details on parameter "clusterAcrossSubnet=true" (with an example preferred)
Regards,
Senthil -
Can you enable and disable windows task bar
I there a dynamic way to enable and disable the windows task bar?
I am not clear on a way to do this, but if it were possible, you would have to make calls to Windows SDK. You would use the Call Library Function Node to access one of the Windows System DLLs to do this. I would suggest checking http://msdn.microsoft.com. This is a great resource for SDK related issues.
J.R. Allen -
Accessing bits of the data bytes and enable and disabling
Hello i want to send data byte to the CAN and enable and disable one of its bits how to do?
Hey Uday,
I am unsure of what CAN device you are using, as well as what type of programming language you would like to develop in. With that being said I will assume one of our PCI CAN cards and that you will be using LabVIEW to program. Please take a look at the NI-CAN manual for help on programming your CAN card, specifically with reference to chapter 7.
Thanks again and have a great day!
Regards,
Nicholas K
National Instruments
Applications Engineer -
Delegation to allow HelpDesk users to Enable and Disable accounts
We currently have a HelpDeskAdmins group that these users are allowed to perform certain functions within Active Directory. I need to add the ability to Enable and Disable user accounts.
I have been looking through the Delegation of Control settings but do not know which ones to add to enable this...
Has anyone setup accounts to perform this before?You need to create a delegation for the attribute userAccountControl. So run the delegation wizard as usual, but select "Create a custom task to delegate", then pick up "User objects", then "Property-specific" and select the
"Read and Write userAccountInformation".
So, you can do it directly on the attribute, or you can do it using the property set User-Account-Restrictions (this last one actually give you a little bit more permission, see
here).
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. -
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!
Maybe you are looking for
-
BOM Explosion needed on Delivery for Intercompany Stock Transfer Order
Good afternoon, I have been researching the SDN and web for a solution to my problem to no avail so far. The business problem I need to solve is the requirement for our STPO process to explode certain BOM's that are transfered from one company/plant
-
Date Format of a particular R3 system
Hi, I am trying to find out the system date time format for an R/3 system because in our network some machine has YYYYMMDD and some has DDMMYYYY. Is it stored in any table that I can write select statement in ABAP to obtain it somehow? I would apprec
-
What is the best USB powered portable 1TB hard drive for a macbook pro that allows Time machine to work, windows (thru Parallels software) and mac storage and is available in Australia?
-
Syncing bokmarks in safari from MacBook Pro to iPad
How do I sync bookmarks from MacBook Pro to iPad in Safari? Thanks
-
Help Final Cut Pro 5 Won't Open
It seems to just quit when it gets to loading au plugins. It did this under 5.0 so i updated to 5.0.3 and same thing. Do i need to trash my au plugins could they be corrupt. I also tried a reinstall. It did nothing. I trashed all the plists and prefe