Dont know why these buttons dont work (newbie)

hi this is a procedure that activates/deactivates buttons
accordingly to the record number..
but it doesnt work, does any1 know why....
sory but a newbie...
calling the procedure in
WHEN-NEW-RECORD-INSTANCE
BEGIN
BUTTON_CONTROL;
END
/*This is the Procedure*/
PROCEDURE BUTTON_CONTROL IS
BEGIN
if :system.last_record = 'TRUE' and :system.cursor_record
= '1' then
     set_item_property('button_palette.NEXT', enabled,
property_off);
     set_item_property('button_palette.PREVIOUS', enabled,
property_off);
elsif :system.last_record = 'TRUE' then
     set_item_property('button_palette.NEXT', enabled,
property_off);
     set_item_property('button_palette.PREVIOUS', enabled,
property_on);
elsif :system.cursor_record = '1' then
     set_item_property('button_palette.NEXT', enabled,
property_on);
     set_item_property('button_palette.PREVIOUS', enabled,
property_off);
else
     set_item_property('button_palette.NEXT', enabled,
property_on);
     set_item_property('button_palette.PREVIOUS', enabled,
property_on);
end if;
END;

hi master
please guid me where you define that procedure i need that
please guid me event name or sample code
thanking you

Similar Messages

  • I use Dap and Speedbit and want to know why these won't work if I update when I've had no problem with them in the past?

    I was about to update my Firefox browser when it said that my Dap downloader and Speedbit video accelerator wouldn't work with the latest update of firefox. I have had no trouble in the past with these extensions so why now. I use these extensions extensively, So I don't want to update, and by not updating I'll probably have problems, so what do I do??? Thanks for your time this. Jan.

    Hi,
    I changed the path for some of my files and my application runs from jdeveloper with no problem but when I tried to deploy my application into weblogic server I found that there is some pages that don't open and generate various errors like
    1. Why did you change the path ?
    2. How and where did you change the path ?
    As the system cannot find the DataBindings.cpx file (obviously as it claims to not find the PageDef file) you need to edit the adfm.xml file. Note that adfc-config.xml is never under "model" but always in the public_html/WEB-INF directory. If its not there then you clearly messed up the required infrastructure
    Frank

  • Hi. I am working on a Mac OSX 10.10.2 Yosemite. I'm working remotely with a woman who is using indesign CS8.2 I'm still on CS6.8 and can't open her files. I would like to upgrade to the latest version and I'd also like to know why these upgrades are not a

    Hi. I am working on a Mac OSX 10.10.2 Yosemite. I'm working remotely with a woman who is using indesign CS8.2 I'm still on CS6.8 and can't open her files. I would like to upgrade to the latest version and I'd also like to know why these upgrades are not automatic as i pay a monthly subscription to the cloud. Thanks.

    A Cloud subscription SHOULD always show you the most recent updates, so you may then choose to do the install
    CC desktop lists applications as "Up to Date" when they are not
    -http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html
    -and added step https://forums.adobe.com/thread/1529654
    Yosemite sometimes has problems, often related to "default" permissions needing to be changed
    -one person's solution https://forums.adobe.com/thread/1689788
    -and a Java update https://forums.adobe.com/thread/1507936
    -update breaks things https://forums.adobe.com/thread/1772260
    -http://blogs.adobe.com/creativecloud/creative-cloud-and-yosemite/
    -https://helpx.adobe.com/x-productkb/global/mac-os-yosemite-compatability.html

  • I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work for me?

    I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work for me?

    A reply to similar question (Q & As , in product page Apple Store) says:
    "...dissable the internal reader hardware from devices setup. Then plug the external usb superdrive and that's it."  Answered by Enrique T from Lima Oct  25 2013.
    If you can locate an external Apple USB 'Air" superdrive for earlier model MacBook Air, that should work. The newer one for the Air is the same as for iMac, now.
    You may be able to use other brands of external USB optical drive with your older intel-based iMac, as some of them function capably. A few should also be able to see system discs or other bootable utilities on DVD.
    Hopefully this helps.
    Good luck & happy computing!

  • TS3297 I want to buy the double coins from the game subway surfers! But they told me to contact the itunes support! I don't know why it's not working.. Please help! iPhone 4ss

    I want to buy the double coins from the game subway surfers! But they told me to contact the itunes support! I don't know why it's not working.. Please help! iPhone 4ss

    These are user-to-user forums, you are not talking to Apple here. You can contact iTunes support via this page and ask them why the message is appearing : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then probably Purchases, Billing & Redemption

  • I get this message on my Facebook news feed when someone posts a YouTube video. Don't know why. It's worked fine for years. I am using Safari on my iPad. If I use the Facebook app it works fine. Any thoughts. Thanks,    Access Denied   You don't have

    I get this message on my Facebook news feed when someone posts a YouTube video. Don't know why. It's worked fine for years. I am using Safari on my iPad. If I use the Facebook app it works fine. Any thoughts.
    Thanks,
    Walid
    Access Denied
    You don't have permission to access "http://fbexternal-a.akamaihd.net/embed/?" on this server.
    Reference #18.3555facd.1362007289.6945153f

    Same thing on mine, it just started happening last weekend.

  • Anybody know why internet banking not working on ipad2

    Any body know why net banking not working on ipad2

    I only know Mac has an issue with Fire Fox
    Chel x

  • I don't know why win7 stop itunes working.

    Hello. I don't know why Windonws stops itune working when importing music.
    I considered what cause to do that,but I can't find out. Icould put music into ipod classic the day before yesterday. Now I can't.
    Pl give me right direction if anybody know this situation.
    thanks
    freakmeout

    There's a bug with 10.1.0.54 that is causing "iTunes has stopped working messages" (citing CoreAudioToolbox.dll in the Problem Reports for the error) for some folks when importing CDs with the AAC encoding, adding/converting files to AAC, and in some cases syncing devices (when the convert to 128 kbps AAC option is enabled).
    Short of rolling back your iTunes to 10.0.1.22 and your Apple Application Support to 1.3.2 (CoreAudioToolbox.dll is kept in the Apple Application Support program files), there's a few possible workarounds.
    (1) Change your importing prefs to use a different encoding (won't help with the device syncing variation though), and/or disable the convert to 128 kbps AAC when syncing option.
    (2) Replace your CoreAudioToolbox.dll version 7.9.4.0 with a 7.9.3.0 as per:
    http://discussions.apple.com/thread.jspa?messageID=12576816#12576816
    (3) Or, replace your CoreAudioToolbox.dll version 7.9.4.0 with a shadow copy of a 7.9.3.0 as per:
    http://discussions.apple.com/thread.jspa?messageID=12583499&#12583499
    (2 and 3 do help with the syncing variation.)

  • Does anyone know why these particular files would load incorrectly through iphone mail?

    I have been having trouble with some images being sent out correctly to my sales people/customers. There are no problems EXCEPT when the files pass through an iphones mail. Sent or recieved the files get small file corruptions or something that results in an image distortion. I send tons of other images that have had no issue. Does anyone know why these particular ones are different? I'm worried I might be using the wrong settings in my save for web to get everything to be read by others accurately.
    This problem doesn't seem to be limited by just the one email either. Every time we email these images through iphone it does this. On two different phones and two different accounts. Try for yourself and I'm sure it will do exactly the same thing unless uploading them to this page has changed them in some way.
    I used illustrator cs6 to make the blue shirt image. The other three were files sent from a customer.
    Thanks
    hub-international-pennington-AQUATIC-BLUE-tee-2014.jpg
    LOS.jpg
    G&B.jpg
    BroussrdDavid.jpg
    The following is what comes out the other side.
    This one got renamed to image002.jpg somewhere through the email program.
    The other three didn't change file names.
    Thanks for any help!

    This may depend on your chosen encoding options for the Mails (MIME vs. Base64 or similar) and/or the mails being reduced in size and sliced up server side. Apple (and Google) do stuff like recompressing images when viewing mails on mobile devices from an Apple ID or Gmail account... You have to turn it off in their web frontends....
    Mylenium

  • HT4009 Every time I tried to do in app purchase, it showed please contact itune to complete the transaction, I have already saved my credit card info and it worked before, I do not know why it no longer work, I do not have any restriction

    Every time I tried to do in app purchase, it showed please contact itune to complete the transaction, I have already saved my credit card info and it worked before, I do not know why it no longer work, I do not have any restriction

    Gee... maybe you should try contacting iTunes support like the message told you to do.

  • Anyone know why this doesn't work?

    Hi,
    I am trying to work with layeredPane's, and I am having a bit trouble, Here is my modified code of a java tutorial:
    package org;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    * LayeredPaneDemo.java is a 1.4 application that requires
    * images/dukeWaveRed.gif.
    public class LayeredPaneDemo extends JPanel {
        private String[] layerStrings = { "Yellow (0)", "Magenta (1)",
                                          "Cyan (2)",   "Red (3)",
                                          "Green (4)" };
        private Color[] layerColors = { Color.yellow, Color.magenta,
                                        Color.cyan,   Color.red,
                                        Color.green };
         private Label[] layeredLabels = new Label[5];
        private JLayeredPane layeredPane;
        public LayeredPaneDemo()    {
            setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
            //Create and set up the layered pane.
            layeredPane = new JLayeredPane();
            layeredPane.setPreferredSize(new Dimension(300, 310));
              for (int i = 0; i < layerStrings.length; i++) {
                layeredLabels[i] = createColoredLabel(layerStrings, layerColors[i] );
         layeredLabels[i].addMouseListener(mouseListener);
         setupLayers();
    add(layeredPane);
         private MouseListener mouseListener = new MouseAdapter() {
              public void MouseClicked(MouseEvent e) {     System.err.println("clicked");
                   Label label = (Label) e.getSource();
                   label.setUp();
                   setupLayers();
                   layeredPane.validate();
                   layeredPane.repaint();
         private void setupLayers() {
    //This is the origin of the first label added.
    Point origin = new Point(10, 20);
    //This is the offset for computing the origin for the next label.
    int offset = 35;
              //Add several overlapping, colored labels to the layered pane
    //using absolute positioning/sizing.
              for(int x=0; x< layeredLabels.length; x++) {
                   Label label = layeredLabels[x];
         if(label.up) {
    origin.y += offset;
    label.setBounds(origin.x, origin.y, 100, 100);
    layeredPane.add(label, new Integer(x));
    origin.x += offset;
                   if(label.up) {
    origin.y -= offset;
    //Create and set up a colored label.
    private Label createColoredLabel(String text, Color color) {
    Label label = new Label(text);
    label.setVerticalAlignment(JLabel.TOP);
    label.setHorizontalAlignment(JLabel.CENTER);
    label.setOpaque(true);
    label.setBackground(color);
    label.setForeground(Color.black);
    label.setBorder(BorderFactory.createLineBorder(Color.black));
    return label;
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("LayeredPaneDemo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    JComponent newContentPane = new LayeredPaneDemo();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
         class Label extends JLabel {
              public boolean up = false;
              public Label(String text) {
                   super(text);
              public void setUp() { up = !up; }
    for some reason the mouse listener isn't responding, and i don't know why..
    Thats only part of my problem. When the mouse listener does respond, I want to only move one of the labels in the Y direction, and then re-paint everything...
    any ideas?

    public void MouseClicked(MouseEvent e) {     System.err.println("clicked");should be small m
    public void mouseClicked(MouseEvent e) {     System.err.println("clicked");                                                                                                                                                                                                                                                                                                                                                       

  • I am on holiday and have wifi in my room but I can't use iMessage. Does anybody know why it's not working?, I am on holiday and have wifi in my room but I can't use iMessage. Does anybody know why it's not working?

    I am on holiday and have wifi in my room but I can't use iMessage on my iPad does anybody know why????

    Hi,
    "But it didn't work it's just turning them to black gray scale colors not what i was thinking about."
    If you want it to be colored, you'll need to create a color-palette for the 8bppIndexed bitmaps. The keyword for this process is "Color-Quantization".
    The whole yellow-green pie you get is from the wrong format. If you convert the 32bpp bitmaps to 24 bpp bitmaps, you loose the alpha channel ("transparency"). You can manually set one color to "transparent" with the mMakeTransparent-method
    of the Bitmap class, or simply use gif-images (they are 8bpp with a transparent "key"-color)
    Regards,
      Thorsten

  • I seem to have fixed my problem of randomly occuring errors in my filterwheel control. But I don't know why this should actually work.

    Hi there,
    I am using a thorlabs fw102B filterwheel. It's connected via USB (simulating COM port, that's what it says in MAX). The second device is a camera, also connected via USB. The application is running 24/7, at least that's what it's supposed to do. LabView version is 8.6.
    The LabView code I wrote for this, was never really finished, meaning I totally ignored error handling in the first program version.  That never bothered me, because the program ran for weeks and months without any problem. Whenever I had to reboot my system it was not LabViews fault, but I was changing something else.
    Recently I was running into problems with the filterwheel (after a system reboot). However, I don't understand the error in the first place: The filterwheel is supposed to change position every 15 minutes, in between the camera is taking exposures, then the data is written to an ASCII-file (only ~156 kB). At first the error occured just once: the filterwheel was set to the wrong position for about 15 minutes, which might happen, as it is not really could in counting. A few days later it was in that wrong positon for one hour, so it didn't respond to the "move" order four times in a row. Finally I didn't move at all anymore. The error message I was getting is "0xFFFFFFF unkown status code". In my opinion the communcation to the filterwheel got lost somehow. I don't know a better explantion. 
    But why should it recover after some time?
    The problem usually occured at night, when nobody is there to watch.
    I investigated the behaviour in a second setup (see attachment). There is only the filterwheel connected. Through randomly unplugging the USB or power cable I was able to reproduce 'session handle is not valid', 'unkown status code' and 'session handle lost'. The program enters the 'true case', the session is to be closed and resetted, then it shall be reinitialized. This actually works as soon as the cables are reconnected. But why?
    The close.vi still returns 'session handle is not valid', The reset.vi returns the same, but initialize.vi returns 'No Error' and the system works again.
    What am I not getting here?
    I read some threads here and somebody mentioned for another instrument/problem to use the 'reset' command twice. So I tried 'close-initialize', 'reset-reset-initialize', 'reset-initialize' but only 'close-reset-initialize' works (not surprising). Yet I still get the same errors (probe 1 and 2). Am I introducing more bugs without knowing than I fixed?
    I AM CONFUSED.
    Carsten
    Attachments:
    error_catch.png ‏273 KB

    Hello Ulrich,
    thank you for your answer. Concerning the dataflow I agree and it is what I usually do. Actually I follow the dataflow paradigm whenever there is no problem (the 'false case' in the screenshot):
    “FW102x Initialize.vi” -> “FW102x Get Position.vi” -> “FW102x Set Position.vi”.
    Whenever there is a mistake, this just doesn't work with these drivers. The sequence
    “FW102x Initialize.vi” -> “FW102x Get Position.vi”  -> ///error/// -> “FW102x Close.vi”, “FW102x Reset.vi”  ;; “FW102x Initialize.vi”
    will give me errors for “FW102x Close.vi”, “FW102x Reset.vi”  and “FW102x Initialize.vi” reporting "session handle not valid". However, if I "bypass" the instrument handles directly from the first "Initialize" to "Close" and "Reset", they will report the same error, but the second "Initialize" will work again. I can even merge the first two frames and execute "Close" and "Reset" at the same time to do so. But whenever I try something else, e.g. do the 'correct' wiring, I am unable to close, reset or reinitialize. I have to restart LabView completely, to make the vi work again. So I guess the session is still hanging around somewhere in memory, but I can't access it anymore.
    Surprisingly, wherever I put Probes on the data handle wires they show the correct "ASRL5::INSTR" (with or without correct wiring). But only the "Bypass" wire makes the vi work. Since you couldn't find the drivers in the driver network, I guess they might just run into problems, if an error occurs.
    But thanks for your comment anyway. The problem is fixed for the moment. It's just that I prefer to actually know what I am doing here instead of producing some code I'd rather not show anyone.
    Carsten

  • Applet is not working and I do not know why it is not working

    I cannot figure out why my applet is not working. Can someone assist me with this problem?
    Here is the code:
    As you will soon find out some of those imports can be ignored.
    import java.lang.Integer;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.awt.event.ItemListener;
    import java.awt.event.ItemEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.*;
    import java.awt.Graphics.*;
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    import javax.swing.JApplet.*;
    import javax.swing.JFrame.*;
    import java.applet.Applet;
    import javax.swing.border.*;
    import javax.swing.Spring.*;
    import java.awt.geom.AffineTransform;
    import java.awt.Graphics2D;
    import java.beans.PropertyChangeListener;
    import java.beans.PropertyChangeEvent;
    import java.math.*;
    public class Test extends JApplet{
    JFormattedTextField Relfield;
    JFormattedTextField Relfield2;
    JFormattedTextField Relfield3;
    GridLayout layout = new GridLayout();
    public void init() {
    Double d = 0.0;
    Double e = 0.0;
    Relfield2 = new JFormattedTextField();
    Relfield3 = new JFormattedTextField();
    Relfield = new JFormattedTextField();
    Relfield.setText(d + "");
    Relfield2.setText(e + "");
    TextFieldHandler handlers = new TextFieldHandler();
    Relfield.addPropertyChangeListener(handlers);
    JButton button1 = new JButton("1");
    JButton button2 = new JButton("2");
    button1.addActionListener(new T5C());
    button2.addActionListener(new T6C());
    Container c = getContentPane();
    c.setLayout(layout);
    c.add(Relfield);
    c.add(Relfield2);
    c.add(button1);
    c.add(button2);
    class T5C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    Double b = (Double)(Double.parseDouble(Relfield.getText())) + 1;
    Relfield.setValue(b + "");
    Relfield2.setValue(b + "");
    class T6C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    Double b = (Double)(Double.parseDouble(Relfield.getText())) - 1;
    Relfield.setValue(b + "");
    Relfield2.setValue(b + "");
    public class TextFieldHandler implements PropertyChangeListener {
    public void propertyChange(PropertyChangeEvent e) {
    Object source = e.getSource();
    if (source == Relfield) {
    Double Rel = ((Double)Relfield.getValue()).doubleValue();
    Relfield.setValue(Rel);
    Relfield2.setValue(Rel);
    //BigDecimal myu = new BigDecimal("Relfield.getValue()");
    public static void main( String[] argv ) {
            JFrame frame = new JFrame( "General Shear Mode Damper Design" );
            frame.addWindowListener( new WindowAdapter(){
                public void windowClosing( WindowEvent e ){
                    System.exit( 0 );
            JApplet applet = new Test();
            frame.getContentPane().add(applet);
            applet.init();
            frame.setSize( 1020, 720);
            frame.setVisible(true);
    }

    The applet is not running at all and I can't figure out the error messages.
    The error messages are below:
    C:\Users\zite.1\Desktop>javac Test.java
    C:\Users\zite.1\Desktop>java Test
    Exception in thread "main" java.lang.NullPointerException
    at Test$TextFieldHandler.propertyChange(Test.java:89)
    at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
    at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
    at java.awt.Component.firePropertyChange(Unknown Source)
    at javax.swing.JComponent.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at javax.swing.JComponent.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at javax.swing.JComponent.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at javax.swing.JComponent.addNotify(Unknown Source)
    at javax.swing.JRootPane.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at java.awt.Panel.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at javax.swing.JComponent.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at javax.swing.JComponent.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at javax.swing.JComponent.addNotify(Unknown Source)
    at javax.swing.JRootPane.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at java.awt.Window.addNotify(Unknown Source)
    at java.awt.Frame.addNotify(Unknown Source)
    at java.awt.Window.show(Unknown Source)
    at java.awt.Component.show(Unknown Source)
    at java.awt.Component.setVisible(Unknown Source)
    at java.awt.Window.setVisible(Unknown Source)
    at Test.main(Test.java:112)

  • Are these buttons not working?

    My clients keeps complaining that certain buttons don't work
    from certain sections. Which makes no sense to me, as they all seem
    to work fine for me and a friend I had asked to check them out. Can
    you see any issues with the main navigation on the left? Thanks a
    lot for any feedback with this!
    http://chendadesign.com/dev9/

    The navigation worked fine for me:
    IE 8 beta 2
    Chrome
    Opera 9
    Safari PC
    IE 6
    IE 5.5
    All:
    Most current public release of FP 10
    Win XP SP3
    Oddly, the version detection was triggered in FF3 (despite
    that all other plugin browsers worked)

Maybe you are looking for

  • Print from  Windows XP to a shared Mac printer

    My Mac is using OS 10.3.9 and I want to share my ML-1210 with a PC. I attempted to use CUPS but the PC claims the ML-1210 cannot be "shared". Is there a step-by-step process for sharing a Mac printer with a PC? Thanks. 1) I have installed the latest

  • Final Cut Pro-Two Pictures Question

    Is there a way to have two pictures in the same shot (not a transition from one to another).  For example, have two pictures in opposite corners in which you zoom in from one to the other? Thanks.

  • How to store data from textfile to vector and delete a selected row.

    Can someone teach me how to store data from textfile to vector and delete a selected row. And after deleting, i want to write the changes in my textfile. Do someone has an idea? :)

  • Migration and then Activation

    Hi Gurus, I have 2 questions. I'm working on BI 7 and I have migrated a DataSource from 3.5 into BI 7. After migration, it's showing unequal sign (M version is different from A version). When I checked the BI Content I found the DataSource(InfoSource

  • Regarding where can I check logs to see which user ID

    Hi, In RSA1, if some one deletes the source system, where can I check logs to see which user ID did it and when. Thanks Vasu.