Controlling event with two controls

Here's what I have.
I have two separate Time loops. Inside each timed loop I have an event structure. Each even structure is trigger by pressing a button each. This works just fine.
However, I'd like to add a third button, that executes both event structures. I want to do this without creating additional events in each structure. Is this possible to somehow wire this third button to the other two and trigger the two based off the action of the third? I'm having trouble getting that to work.
Thanks
Message Edited by crazyjay on 02-24-2010 09:15 PM
Solved!
Go to Solution.

Quick example
Attachments:
Event with Value Signaling.vi ‏12 KB

Similar Messages

  • How can one use Mission Control with two monitors?  Please bring Spaces back

    How can one use Mission Control with two monitors.  With Spaces I could treat each space as a single desktop.
    SyBB

    I use two monitors at work and have no issue. I have my mail set to use Desktop 1 and iTunes set to the second monitor of Desktop 1. I have browsers set to Desktop 2 and Fusion and RDC set to Desktop 3.
    Two things that may help you. In System Preferences > Mission Control, disable the setting "Automatically rearrange spaces...". This screwed with assigning applications to certain spaces. And the other thing is don't use full screen on apps that support it. This just makes your second monitor superfluous.

  • How can i control graph with two inputs?

    Hi,
        i would like to ask you about the graph with two inputs
    Normally, if i just give one input, they generate the graph with this input(y) vs time(x).
    But now i would like to get the graph with my two inputs in x axis and y axis .
    i want to control both of two axis. How could i do for it ?
    i attached the file that i try to use "Build XY graph" to control both x and y axis with random number .
    It can run but i don't know how come the graph show nothing. .
    Actually , it have to show something like wavefrom continuously. am i right?
    Could you tell me a way to solve it ? 
    >>>
    what i want to get is ..
    in Graph,
    for x axis , ditance (always increases)
    for y axis , vibration (vary)
    >>>
    Thank you so much for your time . I am looking forward your kindly reply.
    With Respect,
                            Su
    Attachments:
    using Build XY graph.vi ‏59 KB

    Hi NI9233,
    Mind me to interrupt, I am just helping Mike to explain what he meant to you, refer to the graph:
    Picture 1:
    Double click on Build XY Graph, uncheck the clear data on each call
    Picture 2 and 3:
    Change your formula node into +1 Basic Function in Functions Pallette.
    Hope that helps!
    PS: I am sorry for the size of the image, seems I made a mistakes when I saved the picture.
    Sincerely,
    Krisna Wisnu
    Message Edited by Krisna Wisnu on 11-19-2008 08:19 PM
    Sincerely,
    Krisna Wisnu
    Attachments:
    Clear Graph on Each Call.PNG ‏46 KB
    +1.PNG ‏30 KB
    +1_2.PNG ‏21 KB

  • Consolidating with two controlling areas

    Hi
    We are looking to implement JVA on our SAP system, and for this there will be requirement for a second controlling area to be created. 
    We see this as causing us problems regarding consolidation in BCS u2013 We were wondering if anyone knows if it is possible to consolidation in BCS with two controlling areas?
    Thanks

    I'm assuming that you are creating a second Controlling Area for a second year end (since you are looking at JVA)?  If some other reason, don't bother with reading the rest of my post.
    We are currently using two Controlling Areas due to the fact that we also invest in many joint ventures.  Our corporate year-end is January 31, while many of the JVs are December 31.
    For BCS, we are defaulting the Fiscal Year Variant to the January 31 value when the data is brought in via Load from Data Stream (we hard-coded the assignment in the mapping).  Our requirement is only to consolidate for our corporate year-end, which is why we are able to do this.  Since BCS is based on periods (and not calendar date), the data is brought in as follows:  December 31 year-ends come in a month ahead (i.e. the month of January data is actually period 12 of the previous year for BCS, even though it is actually that company's fiscal period 1, the month of February is period 1 of the following year for BCS, etc.); meanwhile, our January 31 companies come into BCS in line with our corporate year-end (i.e month of January data is period 12 for both the company itself and BCS).
    Hope this makes sense.
    Jim Link

  • Can anybody tell how to compare two documents with two pointers controlled with the same mouse

    can anybody tell how to compare two documents with two pointers controlled with the same mouse ??

    I saw what I need but in a game to find the differences between two photos (two screens, two pointers controlled by one mouse), and I need a program to make the same thing   (compare a chosen files)

  • Custom control: slider with two needles

    I've been using LabVIEW for some years, and I was able to create a lot of custom controls.
    I know that CVI is doesn't allow me such a level of customization, but I don't know if there is a simple and effective way to create a slider controls with two needles (based on the Vertical Pointer Slide for example).
    I used two different overlapped slides, and they behave more or less as I expected (not fully satisfied, but ...). I need placing a lot of these controls in a panel, so I wonder if I can group the two slides in a custom control, and write some c code to interface with them (if I select Create >>Custom control, I can't select two different controls...)
    Is there another way to create a slider control with two needles?
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

    Hey Vix - 
    While I agree it's not quite as straightforward as LabVIEW, you can do exactly what you're talking about with LabWindows/CVI.  The basic instructions to do this are here.  Another good resource is to check out the installed custom controls in <CVI>\toolslib\custctrl, and copy their format.  It sounds like for your particular case, you'd want to create a custom control for a slide control.  Then, in the API for your custom control, you could have a convert function that programmatically created the second slide control for your second needle.  If you need more detail than this, let me know. 
    NickB
    National Instruments 

  • One controlling area  with two company codes assigned with one CoA

    Hi,
    I   am having one controlling area  with two company codes assigned , i am using the same  gl for two company codes  as cost element , when i am positng the  miro for vendor purpose  it posted the error  , to avoid the  price difference purpose , i have given  one cost center  of  first company code in OKB9 , and  overcome the error , entries posted, when i am posting new entry for MIRO   in secod  company codes with same cost  element ,  price difference of that account should go to the other cost center  which specifically created for second company code,  in the OBK9 i have given  cost center first company code   of the same GL  account , now this is another new entry in the second company code with other cost center in the second company code  since the price difference  account should sit in the other cost center of second company code,  how to  over come  this problem, pls help me
    Thanks and regards
    Murugesan

    Hi,
    First, remove the default cost center in the cost element. Then, for the system to derive the correct cost center for each company codes, define one cost center for each compny codes in OKB9 just like this:
    Co Code   Cost Element   Cost Center
    1000          1000000              A
    2000          1000000              B
    So during MIRO, the system will derive these values you maintain in OKB9.
    Regards,

  • JSlider with two slider controls

    I apologise if this is an obvious question, but my searches have not revealed the answers I was looking for.
    I am looking to implement a sort-of JSlider component in an application, which would allow the user to change two controls along the entire length of the slider - i.e. picking a minimum and maximum value. I realise I could do this with two different JSliders, but unless their size changed dynamically, this would be a less intuitive solution.
    If anyone has any ideas of how this might be achieved, I would love to hear. Thank you very much.

    How to do it? Implement your own custom component. You can base it on an assembly of two JSliders if you like, since it would make sense because de facto you have two sliders. It's probably easier than duplicating the innards of a standard JSlider and modifying its renderer.

  • Can you control your Iweb-website with two computers?

    I would like to maintain my Iweb website with two computers. Is this possible? I bought a new computer and I want to work on my website from two locations.

    Welcome to the discussions. These articles may help:
    iWeb: Publish to your MobileMe account from more than one computer
    Managing an iWeb site from multiple Macs with Dropbox
    Also see NOTE 1 here:
    http://iwebfaq.org/site/iWebTwocomputers.html

  • Associating two events with submit button using  javascript in jsp

    Hi
    How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up window

    Have something like :
    <input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
    You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky.

  • Communicate with two DCs thanks to Events

    Hi everybody,
    So My question is about the events between two Development Components. I can't communicate to both DC !
    I followed each steps of the tutorial <i>Using Server-Side Eventing in Web Dynpro Components</i> but something is missing because it doesn't work.
    This technique work well inside my component (I can fire plenty of events without problems).
    After debugging, I saw my program going into the interface and then fire the event. But nothing catch it.
    Do you have any idea ?
    Thanks.

    Hi,
    I didn't solve my problem. There is something weird in the behavior of my application. Because when I make the event process all worked well. And the next day it does not work anymore
    I tried to do it again with two new DC and it work well. I'm getting crazy with WebDynpro !!!!
    About your solution, my customer do not have the portal so I can't use the iViews Event.
    Thanks anyway

  • Mouse dragged event with unexpected coordinates

    I am dragging the mouse on a half circle from the middle left to the top middle. This results in mouse events with the coordinates form (10,90) ->(100,10)
    Letting the mouse go and then dragging it further to the left, the coordinates in the of the event are similar than the starting point of the first mouse drag event.
    Can anyone shed some light on this peculiar behavior?

    First of, I have to apologize for the example not being as minimalistic as it might be, but on the plus side, I know now why this happens, I just don't know how to work around it.
    * To change this license header, choose License Headers in Project Properties.
    * To change this template file, choose Tools | Templates
    * and open the template in the editor.
    package javafxtest;
    import java.util.ArrayList;
    import javafx.application.Application;
    import javafx.beans.property.DoubleProperty;
    import javafx.beans.property.SimpleDoubleProperty;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Dimension2D;
    import javafx.geometry.Point2D;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.StackPane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Circle;
    import javafx.scene.shape.Polygon;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.shape.Shape;
    import javafx.scene.transform.Rotate;
    import javafx.stage.Stage;
    * @author andi
    public class HandleRotation extends Application {
        private DoubleProperty currentRotation;
        private ArrayList<Double> angles;
        @Override
        public void start(Stage primaryStage) {
            currentRotation = new SimpleDoubleProperty(this, "currentRotation", 10);
            SteeringWheelGroup background = new SteeringWheelGroup(200);
            background.setManaged(false);
            Group g = new Group(background);
            final Point2D centerPoint = new Point2D(100, 100);
            angles = new ArrayList<>(3);
            angles.add(190.0);
            angles.add(270.0);
            angles.add(350.0);
            double step = (180.0 - 2 * currentRotation.doubleValue()) / (angles.size() - 1);
            int radius = 100;
            final int yTranslation = 15; // might be due to the labels
            Polygon handle = createHandle(centerPoint, radius, yTranslation);
            g.getChildren().add(handle);
            StackPane root = new StackPane();
            Scene scene = new Scene(g, 300, 250);
            primaryStage.setTitle("Handle Rotation!");
            primaryStage.setScene(scene);
            primaryStage.show();
         * Calculate the base point for the label. This is the point on the arc, matching the angle.
         * @param center point of the circle
         * @param radius radius of the circle
         * @param angle in degree in [0,180]
         * @return Point on the circle
        Point2D calculateBasePoint(Point2D center, double radius,
                double angle) {
            float newX = (float) (center.getX() + radius * Math.cos(Math.toRadians(angle)));
            float newY = (float) (center.getY() + radius * Math.sin(Math.toRadians(angle)));
            return new Point2D(newX, newY);
         * Create the polygon that represents the handle
         * @param centerPoint
         * @param radius
         * @return
        private Polygon createHandle(final Point2D centerPoint, int radius, final int yTranslation) {
            double baseAngle = 180;
            Point2D p1 = calculateBasePoint(centerPoint, radius, baseAngle - 5);
            Point2D p2 = calculateBasePoint(centerPoint, radius, baseAngle + 2);
            Point2D p3 = calculateBasePoint(centerPoint, radius*0.65, baseAngle + 2);
            Point2D p4 = calculateBasePoint(centerPoint, radius*0.65, baseAngle - 7);
            double[] points = {p1.getX(), p1.getY(), p2.getX(), p2.getY(), p3.getX(), p3.getY(), p4.getX(), p4.getY()};
                      Polygon polygon = new Polygon(points);
    //        polygon.setOpacity(0);
            polygon.setTranslateY(-yTranslation);
            final Rotate rotationTransform = new Rotate(currentRotation.doubleValue(), centerPoint.getX(), centerPoint.getY());
            polygon.getTransforms().add(rotationTransform);
            polygon.setOnMouseDragged(new EventHandler<MouseEvent>() {
                @Override
                public void handle(MouseEvent event) {
                    if (event.getY() < centerPoint.getY()) {
    System.out.println("Event: "+event);                   
                                                       Point2D point = new Point2D((float)event.getX(), (float)event.getY());
                        double newAngle = angleBetween2Lines(centerPoint, point);
                        if (newAngle < 0) {
                            newAngle = (90 + newAngle)+ 90;
    System.out.println("Set angle on mouse drag: "+newAngle);
                        if (newAngle < 10) {
                            newAngle = 10;
                        if (newAngle > 170) {
                            newAngle = 170;
                        currentRotation.set(newAngle);
            polygon.setOnMouseReleased(new EventHandler<MouseEvent>() {
                @Override
                public void handle(MouseEvent event) {
                    snapToNearestAngle();
                    rotationTransform.setAngle(currentRotation.doubleValue());
            return polygon;
         * Snap to the correct angle. Correct angle is angle belonging to the nearest label.
        void snapToNearestAngle() {
            double currentAngle = currentRotation.doubleValue() + 180;
            double currentMin = 360;
            int minIndex = 0;
    System.out.println("Current rotation is "+currentAngle);
            for (int i = 0; i < angles.size(); i++) {
                double angle = angles.get(i);
                double diff = Math.abs(angle - currentAngle);
                if (diff < currentMin) {
                    currentMin = diff;
                    minIndex = i;
    System.out.println("new minDifference at "+i+": "+diff);
            Double destinationAngle = angles.get(minIndex);
    System.out.println("DestinationAngle is "+currentAngle+" -> "+(destinationAngle - 180));
            if (destinationAngle < 180 + 10 || destinationAngle > 360 - 10) {
                throw new IllegalStateException("Angle is out of range: "+currentRotation.doubleValue()+" -> "+destinationAngle);
            currentRotation.set(destinationAngle - 180);
         * Calculate the angle between the vector horizontally to the left from the center
         * and the current point.
         * @param center point
         * @param point current point
         * @return angle in degree
        double angleBetween2Lines(Point2D center, Point2D point) {
            double slope2 = calculateSlope(center, point);
            double angle = Math.atan(slope2);
            if (point.getX() > center.getX()) {
                angle += Math.PI/2;
    System.out.println("Slope: "+slope2+" angle "+Math.toDegrees(angle));
            return Math.abs(Math.toDegrees(angle));
         * Caluculate the slope of the line defined by two points.
         * The first point is the center of a circle and the second
         * point roughly lies on the circle.
         * @param center point
         * @param point on the circle
         * @return slope of the connecting line.
        double calculateSlope(Point2D center, Point2D point) {
    System.out.println("center="+center+",point="+point);       
            double absSlope = Math.abs((point.getY() - center.getY()) / (point.getX() - center.getX()));
            if (point.getY() > center.getY()) {
                if (point.getX() > center.getX()) {
                    // bottom right
                    return -absSlope;
                } else {
                    // bottom left
                    return absSlope;
            } else {
                if (point.getX() > center.getX()) {
                    // top right
                    return absSlope;
                } else {
                    // top left
                    return -absSlope;
         * The main() method is ignored in correctly deployed JavaFX application.
         * main() serves only as fallback in case the application can not be
         * launched through deployment artifacts, e.g., in IDEs with limited FX
         * support. NetBeans ignores main().
         * @param args the command line arguments
        public static void main(String[] args) {
            launch(args);
       private class SteeringWheelGroup extends Group {
            public SteeringWheelGroup(int destinationWidth) {
                int topPadding = 0;
                Rectangle rect = new Rectangle(getImageWidth(), getImageWidth(), Color.RED);
                double scale = destinationWidth / rect.getWidth();
                rect.setScaleX(scale);
                rect.setScaleY(scale);
                Circle circle = new Circle(getImageWidth()/2, getImageWidth()/2, getImageWidth()/2, Color.BLUE);
                circle.setScaleX(scale);
                circle.setScaleY(scale);
                Group rotationGroup = new Group(/*rect,*/ circle);
                rotationGroup.setManaged(false);
                int width = getImageWidth();
                Rectangle clipRectangle = new Rectangle(0, 0, width, width / 2);
                Circle clipCircle = new Circle(width / 2, width / 2, width / 2);
                Shape clip = Shape.intersect(clipRectangle, clipCircle);
                rotationGroup.setClip(clip);
                this.getChildren().add(rotationGroup);
                //double h = calculateHeigthOverHorizon(angle, destinationWidth/2);
                //setTranslateY(-h+topPadding);
            public final int getImageWidth() {
                return 479;
    Here is how you can reproduce my effect:
    Grab the black handle
    Drag the mouse top and right until you approach the angle -90 (have an eye out on the console log)
    Let the mouse go: the handle will snap to 90 degree
    Grab the handle a second time and move further right
    You will see that the angle printed out do not match what you expect.
    Let the mouse go, the Handle snaps back to it's original position
    As the rotation does not happen around the polygon's center, I have to use a Rotaion effect, which is applied. While I can drag the shape from the rotated location the dragging is always measured from its base position.
    So what can I do to work around this?
    final Rotate rotationTransform = new Rotate(currentRotation.doubleValue(), centerPoint.getX(), centerPoint.getY());
    polygon.getTransforms().add(rotationTransform);
    If worse comes to worst, I can use a circular handle covering everything, then I can rotate around its center, but I would like to avoid this.

  • 3.2; BC4J; Grid: attached Combo with two columns?

    Hi,
    I anybody could attach a combo to grid with two or more Columns? Or any idea to attach an LOV to grid cells?
    Thanks
    null

    package com.npevolution.util;
    import java.awt.Component;
    import javax.swing.JTable;
    import javax.swing.table.TableCellRenderer;
    import oracle.dacf.control.swing.ComboBoxControl;
    import javax.infobus.*;
    import oracle.dacf.dataset.*;
    public class ComboBoxControlRenderer extends javax.swing.JComboBox
    implements javax.swing.table.TableCellRenderer {
    private RowSetInfo rowSetInfo;
    private String colGuardar;
    private Object comboCod[];
    //@colMostrar is "Name"
    //@colGuardar is "Cod"
    public ComboBoxControlRenderer(RowSetInfo rsi, String colMostrar, String colGuardar) {
    super();
    rowSetInfo = rsi;
    this.colGuardar = colGuardar;
    try{
    ScrollableRowsetAccess m_Rs = (ScrollableRowsetAccess)rsi.getRowsetAccess();
    int rowCount = m_Rs.getRowCount();
    for (int iRow=0; iRow<rowCount; iRow++){
    m_Rs.absolute(iRow+1);
    ImmediateAccess ia = (ImmediateAccess)m_Rs.getColumnItem(colMostrar);
    String str = ia.getValueAsString();
    addItem(str);
    }catch(Exception e){
    e.printStackTrace();
    public Component getTableCellRendererComponent(JTable table,
    Object value, boolean isSelected, boolean hasFocus,
    int row, int column) {
    ScrollableRowsetAccess rs = rowSetInfo.getRowsetAccess();
    int index = 0;
    try {
    boolean moreRows = rs.first();
    while (moreRows) {
    if (value.equals(((ImmediateAccess)rs.getColumnItem(colGuardar)).getValueAsString())) {
    break;
    } else {
    index++;
    moreRows = rs.next();
    } catch (Exception ex) {
    System.out.println("Error al buscar el indice en el Renderer: " + ex.getMessage());
    if (index < rs.getRowCount()){
    setSelectedIndex(index);
    return this;
    import java.awt.Component;
    import java.util.EventObject;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import oracle.dacf.control.swing.ComboBoxControl;
    import javax.infobus.*;
    import oracle.dacf.dataset.*;
    public class ComboBoxControlEditor extends JComboBox
    implements javax.swing.table.TableCellEditor{
    protected EventListenerList listenerList = new EventListenerList();
    protected ChangeEvent changeEvent = new ChangeEvent(this);
    private RowSetInfo rowSetInfo;
    private String colMostrar;
    private String colGuardar;
    private Object comboCod[];
    * Constructor
    *@param rsi RowSetInfo que se utiliza para cargar el JComboBox
    *@param colMostrar nombre del AttributeInfo del RowSetInfo que muestra el combo
    *@param colGuardar nombre del AttributeInfo del RowSetInfo que se tiene que asignar a la celda del editor
    public ComboBoxControlEditor(RowSetInfo rsi, String colMostrar, String colGuardar) {
    super();
    rowSetInfo = rsi;
    this.colGuardar = colGuardar;
    this.colMostrar = colMostrar;
    addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent event) {
    fireEditingStopped();
    try{
    ScrollableRowsetAccess m_Rs = (ScrollableRowsetAccess)rsi.getRowsetAccess();
    int rowCount = m_Rs.getRowCount();
    comboCod = new Object[rowCount];
    for (int iRow=0; iRow<rowCount; iRow++){
    m_Rs.absolute(iRow+1);
    ImmediateAccess ia = (ImmediateAccess)m_Rs.getColumnItem(colMostrar);
    String str = ia.getValueAsString();
    addItem(str);
    ia = (ImmediateAccess)m_Rs.getColumnItem(colGuardar);
    str = ia.getValueAsString();
    comboCod[iRow] = str;
    }catch(Exception e){
    e.printStackTrace();
    * Mitodo que devuelve el atributo rowSetInfo del ComboBoxControlRenderer.
    * @return RowSetInfo
    public RowSetInfo getRowSetInfo() {
    return rowSetInfo;
    * Mitodo que establece el valor del atributo rowSetInfo del ComboBoxControlRenderer.
    * @param rs RowSetInfo que se asocia
    public void setRowSetInfo(RowSetInfo rsi) {
    rowSetInfo = rsi;
    * Mitodo del interfaz TableCellEditor.
    public void addCellEditorListener(CellEditorListener listener) {
    listenerList.add(CellEditorListener.class,listener);
    * Mitodo del interfaz TableCellEditor.
    public void removeCellEditorListener(CellEditorListener listener) {
    liste nerList.remove(CellEditorListener.class,listener);
    protected void fireEditingStopped() {
    CellEditorListener listener;
    Object[] listeners = listenerList.getListenerList();
    for (int i=0; i<listeners.length; i++) {
    if (listeners[i] == CellEditorListener.class) {
    listener = (CellEditorListener) listeners[i+1];
    listener.editingStopped(changeEvent);
    protected void fireEditingCanceled() {
    CellEditorListener listener;
    Object[] listeners = listenerList.getListenerList();
    for (int i=0; i<listeners.length; i++) {
    if (listeners[i] == CellEditorListener.class) {
    listener = (CellEditorListener) listeners[i+1];
    listener.editingCanceled(changeEvent);
    * Mitodo del interfaz TableCellEditor.
    public void cancelCellEditing() {
    fireEditingCanceled();
    * Mitodo del interfaz TableCellEditor.
    public boolean stopCellEditing() {
    fireEditingStopped();
    return true;
    * Mitodo del interfaz TableCellEditor.
    public boolean isCellEditable (EventObject event) {
    return true;
    * Mitodo del interfaz TableCellEditor.
    public boolean shouldSelectCell(EventObject event) {
    return true;
    * Mitodo del interfaz TableCellEditor.
    * Devuelve un objeto con el valor contenido en el editor.
    public Object getCellEditorValue() {
    String seleccionado = (String)this.getSelectedItem();
    ScrollableRowsetAccess rs = rowSetInfo.getRowsetAccess();
    String codigo = "";
    try {
    boolean moreRows = rs.first();
    while (moreRows) {
    if (seleccionado.equals(((ImmediateAccess)rs.getColumnItem(colMostrar)).getValueAsString())) {
    codigo = ((ImmediateAccess)rs.getColumnItem(colGuardar)).getValueAsString();
    break;
    moreRows = rs.next();
    } catch (Exception ex) {
    System.out.println("Error al buscar: " + ex.getMessage());
    return codigo;
    * Mitodo del interfaz TableCellEditor.
    * Establece un valor inicial para el editor.
    * Devuelve el componente para editar.
    public Component getTableCellEditorComponent(JTable table,
    Object value, boolean isSelected, int row, int column) {
    ScrollableRowsetAccess rs = rowSetInfo.getRowsetAccess();
    int index = 0;
    try {
    boolean moreRows = rs.first();
    while (moreRows) {
    if (value.equals(((ImmediateAccess)rs.getColumnItem(colGuardar)).getValueAsString())) {
    break;
    } else {
    index++;
    moreRows = rs.next();
    } catch (Exception ex) {
    System.out.println("Error al buscar: " + ex.getMessage());
    if (index < rs.getRowCount()){
    setSelectedIndex(index);
    return this;
    null

  • Is there a way to dispatch or bubble events between two pop-up windows?

    Hi. I was wondering if there is a way to dispatch custom
    events between two or more pop-up windows created using the
    PopUpManager?
    I understand how to pass an event from one pop-up window to
    the main application (or FrontController) by dispatching the event
    from Application.application under Cairngorm 2.0.
    However, as I understand it, that will only bubble the event
    through the Application chain of visual controls and not to the
    other pop-up windows created using the PopUpManager.
    I tried dispatching the event directly from the pop-up window
    itself, but the other pop-ups still does not seem to receive the
    event.
    It would be nice to be able to do this so that each non-modal
    pop-up can have some awareness with each other.
    Thank you very much in advance.

    If you have just 2 pop-ups you can have them each do a
    addEventListener on the other, listening for the event (custom or
    otherwise).
    If you have an unpredicatable number, then you devise
    something else. Suppose you have 3 pop-ups, p1, p2, and p3. Let's
    say you also have 1 custom event, E1. Any of those pop-ups is
    capable of dispatching an E1 event and you want all of them to
    receive it.
    Create a class that extends EventDispatcher and instantiate
    an object of that class. Each pop-up "registers" with that class,
    something like:
    controller.addEventListener( "E1", handler ); where handler
    is a function in the pop-up.
    When a pop-up wants to dispatch an E1 event, it does it
    through the controller: controller.dispatchEvent( new E1(data) );
    This will automatically dispatch that event to all the
    pop-ups, including the one that dispatched the event. So a pop-up
    will have to examine the event to see if it sent it and perhaps
    ignore it.

  • How to process reports with two different date fields

    Morning all,
    This question is somewhat similar to what I asked few days back. I created two different reports for two different departments (Credit Control and Free of Charge Control).
    These two reports pull data from two different date fields and has different status check ups.
    Few days back my director requested me if he can have both reports in one report. That is when I asked question from all of you regarding two reports.
    Anyhow, that was created by implementing two sub reports however, the director asked me to combine the two different reports into one in such a way that the output records should be added up with each other hence one single report with all combined data of Credit Control and Free of Charges (not two sub reports in one report).
    The problem here which I am getting is that, both reports uses two different date fields. I can live with two different statuses as that can be easily done within formula/RT however how to create a report with Report Selection Formula condition which looks in both date fields and produces results accordingly?
    I have tried this by not putting any condition in report selection formula and ran the report, it produced total results from past 6 years.
    Any ideas how to produce combined report which has two different date fields?
    Many thanks in advance
    Regards
    Jehanzeb
    What I

    Charliy,
    No the both dates are from two different databases, tables and fields. The Credit date field is from KLAB database under max table where as the FOC date field is from SAE database under maxmast table. Klab date is under credit2 table where as foc date is under order header table.
    So its more like this:
    Klab->Max-Credit2--->Credit_date
    Sae->Maxmast->Order_header---Date entered.
    two dates totally different tables, dbs
    however, I will try your idea too and see if that works.
    Regards
    Jehanzeb

Maybe you are looking for

  • Attribute change run problem - infoobject is not listed in the list

    Hi folks, When I load master data for 0customer, the infoobject 0customer doesnt come in the infoobject list for attribute change run. Also, when I try to activate master data manually it says 'Master Data already active'. and the reality is M versio

  • Timeline in Dreamweaver CS6

    I used to use the excellent timeline feature in DW CS3 to move objects round the page. Its gone and there is no replacement feature I can find. What to do? This was just a case of creating AP divs and moving and resizing them on a page using the time

  • Installation Master DVD Distributed Java System Copy menu missing

    Hello Gurus We want to perfom an Java system copy of our EP 6.0 using sapinst The source OS is Solaris 8.0 with Oracle 10.2.0.2 The target OS is Solaris 10.0 with Oracle 10.2.0.2 Our architecture is Distributed , CI is running on a system and DB serv

  • IPod Touch 5th Gen won't connect to iTunes

    Hi everybody. I got a new iPod touch 5g and it won't show up in iTunes when I try to connect it. I've reset it, tried a different cord, tried updating both iTunes and my iPod and also have tried everything the Apple support page has suggested (restar

  • How to Deactivate w/o old PC

    My old PC died and I got a new one.  I downloaded and installed PS Elements on the new one.  I get a message saying I have reached my limit of downloads (2) so I need to deactivate Elements on the old one before I can activate Elements on the new one