Button action with no result

I like to have a button with the following InDesign (CS6) function: Paste in Place.
But whatever I try, it did not work.
app.menuActions.item("$ID/Paste in Place").invoke();
or
app.scriptMenuActions.itemByID(273).invoke();
The Configurator panel I have made is this one (http://www.hansg.nl/screenshot_24.png) and all the buttons works, except the 'Paste in Place' one.
So, I need some help!
OS X 10.8.5
InDesign CS6 8.0.2
Configurator 4.0.0
I insert both scripts in two different ways: as a  link to the javascipt and as text in the script file option.
And  also as an option showed in the left colomn under Menu's" > "Main" > "Edit" > "Paste in Place"

Thanks for the info.
Interesting, that they work fine in Preview and on set-top player. I do not have/know WinDVD, so I'm not sure of what problems it might have. I happen to use other software DVD players, and so far, they all work like my set-tops and Preview.
I'm assuming that when the left-mouse button is over your Button and pushed, nothing happens. Does the Button Highlight? Your described PS work should not have altered the Button's ability to function. If they work elsewhere, they *should* work in a software player. I assume that ALL Buttons exhibit this behavior?
Maybe someone can help with WinDVD. Might be something very simple, that's just beyond my knowledge.
Other than to say your Project looks good in detail, I can't really help - sorry.
Hunt

Similar Messages

  • Button action with onclick in a jsp page using Jscript

    hi,
    I am facing a problem in setting an action with a button in a jsp page the error is object does'nt support this function,kindly send me reply as soon as possible.
    Santhosh

    hi,
    I am facing a problem in setting an action with a button in a jsp page the error is object does'nt support this function,kindly send me reply as soon as possible.
    Santhosh

  • Button action with desk DVD player and PC player

    HI!
    I built and burn a DVD with one menu with several buttons triggering different chapters. Before the menu I have a small introduction clip.
    This works perfectly on my desk DVD player, but on any computer I get the introduction clip, then the menu, but the buttons don't have any action. Did I forget something.
    Thank you

    Thanks for the info.
    Interesting, that they work fine in Preview and on set-top player. I do not have/know WinDVD, so I'm not sure of what problems it might have. I happen to use other software DVD players, and so far, they all work like my set-tops and Preview.
    I'm assuming that when the left-mouse button is over your Button and pushed, nothing happens. Does the Button Highlight? Your described PS work should not have altered the Button's ability to function. If they work elsewhere, they *should* work in a software player. I assume that ALL Buttons exhibit this behavior?
    Maybe someone can help with WinDVD. Might be something very simple, that's just beyond my knowledge.
    Other than to say your Project looks good in detail, I can't really help - sorry.
    Hunt

  • InDesign Button Action for PDF – Open File (in new window)

    I am using the 'Open File' action on buttons in a document i am making which will eventually be a PDF, but am wanting to specify the button action to open the file (another PDF) in a new window.
    I have found that I can achieve this and add button actions with this specific behavior in Acrobat, but it seems to be missing in indesign's abilities as far as I can see. Is there a way to do this in indesign so that i do not have to tinker in acrobat after I have made my PDF. As if I have changes to the PDF, all buttons then have to be totally re-done each time, and i will have possibly 900 buttons!!
    Thanks.
    (Using indesign CS4)

    Jeff,
    You are correct. I want to have a DVD with multiple PDFs. The main one almost acting as a table of contents for the rest.
    Problem = the 'main one' is 62 pages long, many hundred buttons and every page has at least a few of these links needed.
    Which means, if you are correct (and I believe you are, hope you aren't) that I need to custom code these buttons in Acrobat.
    The method is easy, but x300 = painful. And then the kicker... Boss says, 'Change slide 30' ... which means: Back to InDesign, Export to PDF, Recode ALL BUTTONS.
    *Note, there are some 'interactive' buttons with roll over states. So I don't think replacing the pages would work.

  • Help needed with Button action performed

    Hi,
    I am new to AWT prgramming .
    I have created a menu called " Menu System Test window " and it contains toplevel menu items of "File" and "Help" and File Menu contains subitems "Product Evaluation" and "Exit".
    When i click File->Product Evaluation it displays a new Frame named "ProductEvaluationMeasurementTool" with some check boxes ,radiobuttons, buttons and text fields. So when i select some checkboxes in that new frame and click the button labeled "Metricslevel" it displays some resultin textField1 , similarly when i click Button labeled "Measurementlevel" it displays some result in textField2.
    My question is i have another button in Frame Called "Reset". When i click the Reset button all the check boxes which have been checked previously should be unchecked and moreover the result in both the textfield should be cleared.
    I am sending my code. Kindly help me.
    Thanks in advance.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Component;
    import java.awt.Checkbox;
    import javax.swing.*;
    // Make a main window with two top-level menus: File and Help.
    // Help has a submenu and demonstrates a few interesting menu items.
    public class MainWindow extends Frame {
      public MainWindow() {
        super("Menu System Test Window");
        setSize(500, 500);
        // make a top level File menu
        FileMenu fileMenu = new FileMenu(this);
        // make a top level Help menu
        HelpMenu helpMenu = new HelpMenu(this);
        // make a menu bar for this frame 
        // and add top level menus File and Menu
        MenuBar mb = new MenuBar();
        mb.add(fileMenu);
        mb.add(helpMenu);
        setMenuBar(mb);
        addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            exit();
      public void exit() {
        setVisible(false); // hide the Frame
        dispose(); // tell windowing system to free resources
        System.exit(0); // exit
      public static void main(String args[]) {
        MainWindow w = new MainWindow();
        w.setVisible(true);
    // Encapsulate the look and behavior of the File menu
    class FileMenu extends Menu implements ActionListener {
      MainWindow mw;  // who owns us?
      public FileMenu(MainWindow m) {
        super("File");
        mw = m;
        MenuItem mi;
        add(mi = new MenuItem("ProductEvaluation"));
        mi.addActionListener(this);
        add(mi = new MenuItem("Exit"));
        mi.addActionListener(this);
      // respond to the Exit menu choice
      public void actionPerformed(ActionEvent e) { String item = e.getActionCommand();
        if (item.equals("ProductEvaluation"))
         Frame f = new Frame("ProductMeasurementEvaluationTool");
         f.setSize(1290,1290);
         f.setLayout(null);
         TextField t1 = new TextField("textField1");
         t1.setBounds(230, 630, 50, 24);
         f.add(t1);
         TextField t2 = new TextField("textField2");
         t2.setBounds(430, 630, 50, 24);
         f.add(t2);
         ActionListener al = new MyActionListener(f, t1);
         ActionListener a2 = new MyActionListener(f, t2);
         Label l1 = new Label("Select the appropriate metrics for Measurement Process Evaluation");
         l1.setBounds(380, 50, 380, 20);
         f.add(l1);
         Label l2 = new Label("Architecture Metrics");
         l2.setBounds(170, 100, 110, 20);
         f.add(l2);
         Label l3 = new Label("RunTime Metrics");
         l3.setBounds(500, 100, 110, 20);
         f.add(l3);
         Label l4 = new Label("Documentation Metrics");
         l4.setBounds(840, 100, 130, 20);
         f.add(l4);
         JRadioButton rb1 = new JRadioButton("Componenent Metrics",false);
         rb1.setBounds(190, 140, 133, 20);
         f.add(rb1);
         JRadioButton rb2 = new JRadioButton("Task Metrics",false);
         rb2.setBounds(540, 140, 95, 20);
         f.add(rb2);
         JRadioButton rb3 = new JRadioButton("Manual Metrics",false);
         rb3.setBounds(870, 140, 108, 20);
         f.add(rb3);
         JRadioButton rb4 = new JRadioButton("Configuration Metrics",false);
         rb4.setBounds(190, 270, 142, 20);
         f.add(rb4);
         JRadioButton rb5 = new JRadioButton("DataBase Metrics",false);
         rb5.setBounds(190, 420, 122, 20);
         f.add(rb5);
         JRadioButton rb6 = new JRadioButton("DataHandling Metrics",false);
         rb6.setBounds(540, 270, 142, 20);
         f.add(rb6);
         JRadioButton rb7= new JRadioButton("HumanInterface Metrics",false);
         rb7.setBounds(540, 420, 156, 20);
         f.add(rb7);
         JRadioButton rb8 = new JRadioButton("Development Metrics",false);
         rb8.setBounds(870, 270, 141, 20);
         f.add(rb8);
         JRadioButton rb9= new JRadioButton("Marketing Metrics",false);
         rb9.setBounds(870, 420, 121, 20);
         f.add(rb9);
         Checkbox  c10 = new Checkbox("Size");
         c10.setBounds(220, 170, 49, 20);
         f.add(c10);
         Checkbox c11 = new Checkbox("Structure");
         c11.setBounds(220, 190, 75, 20);
         f.add(c11);
         Checkbox c12 = new Checkbox("Complexity");
         c12.setBounds(220, 210, 86, 20);
         f.add(c12);
         Checkbox c13 = new Checkbox("Size");
         c13.setBounds(220, 300, 49, 20);
         f.add(c13);
         Checkbox c14 = new Checkbox("Structure");
         c14.setBounds(220, 320, 75, 20);
         f.add(c14);
         Checkbox c15 = new Checkbox("Complexity");
         c15.setBounds(220, 340, 86, 20);
         f.add(c15);
         Checkbox c16 = new Checkbox("Size");
         c16.setBounds(220, 460, 49, 20);
         f.add(c16);
         Checkbox c17 = new Checkbox("Structure");
         c17.setBounds(220, 480, 75, 20);
         f.add(c17);
         Checkbox c18 = new Checkbox("Complexity");
         c18.setBounds(220, 500, 86, 20);
         f.add(c18);
         Checkbox c19 = new Checkbox("Size");
         c19.setBounds(580, 170, 49, 20);
         f.add(c19);
         Checkbox c20 = new Checkbox("Structure");
         c20.setBounds(580, 190, 75, 20);
         f.add(c20);
         Checkbox c21 = new Checkbox("Complexity");
         c21.setBounds(580, 210, 86, 20);
         f.add(c21);
         Checkbox c22 = new Checkbox("Size");
         c22.setBounds(580, 300, 49, 20);
         f.add(c22);
         Checkbox c23 = new Checkbox("Structure");
         c23.setBounds(580, 320, 75, 20);
         f.add(c23);
         Checkbox c24 = new Checkbox("Complexity");
         c24.setBounds(580, 340, 86, 20);
         f.add(c24);
         Checkbox c25 = new Checkbox("Size");
         c25.setBounds(590, 460, 49, 20);
         f.add(c25);
         Checkbox c26 = new Checkbox("Structure");
         c26.setBounds(590, 480, 75, 20);
         f.add(c26);
         Checkbox c27 = new Checkbox("Complexity");
         c27.setBounds(590, 500, 86, 20);
         f.add(c27);
         Checkbox c28 = new Checkbox("Size");
         c28.setBounds(920, 170, 49, 20);
         f.add(c28);
         Checkbox c29 = new Checkbox("Structure");
         c29.setBounds(920, 190, 75, 20);
         f.add(c29);
         Checkbox c30 = new Checkbox("Complexity");
         c30.setBounds(920, 210, 86, 20);
         f.add(c30);
         Checkbox c31 = new Checkbox("Size");
         c31.setBounds(920, 300, 49, 20);
         f.add(c31);
         Checkbox c32 = new Checkbox("Structure");
         c32.setBounds(920, 320, 75, 20);
         f.add(c32);
         Checkbox c33 = new Checkbox("Complexity");
         c33.setBounds(920, 340, 86, 20);
         f.add(c33);
         Checkbox c34 = new Checkbox("Size");
         c34.setBounds(930, 450, 49, 20);
         f.add(c34);
         Checkbox c35 = new Checkbox("Structure");
         c35.setBounds(930, 470, 75, 20);
         f.add(c35);
         Checkbox c36 = new Checkbox("Complexity");
         c36.setBounds(930, 490, 86, 20);
         f.add(c36);
         Button b1  = new Button("MetricsLevel");
         b1.setBounds(230, 600, 120, 24);
         f.add(b1);
         b1.addActionListener(al);
         Button b2  = new Button("MeasurementLevel");
         b2.setBounds(430, 600, 120, 24);
         f.add(b2);
         b2.addActionListener(a2);
         Button b3  = new Button("Reset");
         b3.setBounds(630, 600, 120, 24);
         f.add(b3);
         f.show();
        else
       { mw.exit();}
    class MyActionListener implements ActionListener
        Frame f;
        TextField textField1;
        TextField textField2;
        public MyActionListener(Frame f, TextField tf)
            this.f = f;
            textField1 = tf;
            textField2 = tf;
        public void actionPerformed(ActionEvent e)
           String s = e.getActionCommand();
        if (s.equals("MetricsLevel"))
            Component[] components = f.getComponents();
      int numOfCheckBoxes = 81;
      int numChecked = 0;
      for ( int i = 0; i < components.length; i++ )
       if ( components[i] instanceof Checkbox )
        Checkbox checkBox = (Checkbox) components;
    if ( checkBox.getState() )
    numChecked++;
    double ratio = (double) numChecked / (double) numOfCheckBoxes;
    textField1.setText( Double.toString( ratio ) );
    else
    if (s.equals("MeasurementLevel"))
    Component[] components = f.getComponents();
    int numOfCheckBoxes = 81;
    int numChecked = 0;
    for ( int i = 0; i < components.length; i++ )
    if ( components[i] instanceof Checkbox )
    Checkbox checkBox = (Checkbox) components[i];
    if ( checkBox.getState() )
    numChecked++;
    double ratio = (double) numChecked / (double) numOfCheckBoxes;
    textField2.setText( Double.toString( ratio ) );
    else
    if (s.equals("Reset"))
    Code for Reset Button action performed.
    // Encapsulate the look and behavior of the Help menu
    class HelpMenu extends Menu implements ActionListener {
    MainWindow mw; // who owns us?
    public HelpMenu(MainWindow m) {
    super("Help");
    mw = m;
    MenuItem mi;
    add(mi = new MenuItem("Description"));
    mi.addActionListener(this);
    // respond to a few menu items
    public void actionPerformed(ActionEvent e) {
    String item = e.getActionCommand();
    if (item.equals("Description"))
    System.out.println("You can get description at our website");

    import java.awt.*;
    import java.awt.event.*;
    // Make a main window with two top-level menus: File and Help.
    // Help has a submenu and demonstrates a few interesting menu items.
    public class MainWindow extends Frame
      public static void main(String args[])
        new MainWindow();
      public MainWindow()
        super("Menu System Test Window");
        setSize(500, 500);
        // Why not make 1 menubar class that you can add with
        // this.setMenuBar(new MyMenuBar(this)); ?
        // make a top level File menu
        FileMenu fileMenu = new FileMenu(this);
        // make a top level Help menu
        HelpMenu helpMenu = new HelpMenu(this);
        // make a menu bar for this frame
        // and add top level menus File and Menu
        MenuBar mb = new MenuBar();
        mb.add(fileMenu);
        mb.add(helpMenu);
        this.setMenuBar(mb);
        this.setVisible(true);
        this.addWindowListener(new WindowAdapter()
          public void windowClosing(WindowEvent e)
            System.exit(0);
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JRadioButton;
    //Encapsulate the look and behavior of the File menu
    public class FileMenu extends Menu implements ActionListener
      private MainWindow mw; // who owns us?
      private MenuItem itmPE   = new MenuItem("ProductEvaluation");
      private MenuItem itmExit = new MenuItem("Exit");
      public FileMenu(MainWindow main)
        super("File");
        this.mw = main;
        this.itmPE.addActionListener(this);
        this.itmExit.addActionListener(this);
        this.add(this.itmPE);
        this.add(this.itmExit);
      // respond to the Exit menu choice
      public void actionPerformed(ActionEvent e)
        if (e.getSource() == this.itmPE)
          Frame f = new Frame("ProductMeasurementEvaluationTool");
          f.setSize(1290, 1290);
          f.setLayout(null);
          TextField t1 = new TextField("textField1");
          t1.setBounds(230, 630, 50, 24);
          f.add(t1);
          TextField t2 = new TextField("textField2");
          t2.setBounds(430, 630, 50, 24);
          f.add(t2);
          // Way to ugly..
          // ActionListener al = new MyActionListener(f, t1);
          // ActionListener a2 = new MyActionListener(f, t2);
          // see below...
          Label l1 = new Label("Select the appropriate metrics for Measurement Process Evaluation");
          l1.setBounds(380, 50, 380, 20);
          f.add(l1);
          Label l2 = new Label("Architecture Metrics");
          l2.setBounds(170, 100, 110, 20);
          f.add(l2);
          Label l3 = new Label("RunTime Metrics");
          l3.setBounds(500, 100, 110, 20);
          f.add(l3);
          Label l4 = new Label("Documentation Metrics");
          l4.setBounds(840, 100, 130, 20);
          f.add(l4);
          JRadioButton rb1 = new JRadioButton("Componenent Metrics", false);
          rb1.setBounds(190, 140, 133, 20);
          f.add(rb1);
          // Please do not use AWT and Swing components in the same frame.
          JRadioButton rb2 = new JRadioButton("Task Metrics", false);
          rb2.setBounds(540, 140, 95, 20);
          f.add(rb2);
          JRadioButton rb3 = new JRadioButton("Manual Metrics", false);
          rb3.setBounds(870, 140, 108, 20);
          f.add(rb3);
          JRadioButton rb4 = new JRadioButton("Configuration Metrics", false);
          rb4.setBounds(190, 270, 142, 20);
          f.add(rb4);
          JRadioButton rb5 = new JRadioButton("DataBase Metrics", false);
          rb5.setBounds(190, 420, 122, 20);
          f.add(rb5);
          JRadioButton rb6 = new JRadioButton("DataHandling Metrics", false);
          rb6.setBounds(540, 270, 142, 20);
          f.add(rb6);
          JRadioButton rb7 = new JRadioButton("HumanInterface Metrics", false);
          rb7.setBounds(540, 420, 156, 20);
          f.add(rb7);
          JRadioButton rb8 = new JRadioButton("Development Metrics", false);
          rb8.setBounds(870, 270, 141, 20);
          f.add(rb8);
          JRadioButton rb9 = new JRadioButton("Marketing Metrics", false);
          rb9.setBounds(870, 420, 121, 20);
          f.add(rb9);
          Checkbox c10 = new Checkbox("Size");
          c10.setBounds(220, 170, 49, 20);
          f.add(c10);
          Checkbox c11 = new Checkbox("Structure");
          c11.setBounds(220, 190, 75, 20);
          f.add(c11);
          Checkbox c12 = new Checkbox("Complexity");
          c12.setBounds(220, 210, 86, 20);
          f.add(c12);
          Checkbox c13 = new Checkbox("Size");
          c13.setBounds(220, 300, 49, 20);
          f.add(c13);
          Checkbox c14 = new Checkbox("Structure");
          c14.setBounds(220, 320, 75, 20);
          f.add(c14);
          Checkbox c15 = new Checkbox("Complexity");
          c15.setBounds(220, 340, 86, 20);
          f.add(c15);
          Checkbox c16 = new Checkbox("Size");
          c16.setBounds(220, 460, 49, 20);
          f.add(c16);
          Checkbox c17 = new Checkbox("Structure");
          c17.setBounds(220, 480, 75, 20);
          f.add(c17);
          Checkbox c18 = new Checkbox("Complexity");
          c18.setBounds(220, 500, 86, 20);
          f.add(c18);
          Checkbox c19 = new Checkbox("Size");
          c19.setBounds(580, 170, 49, 20);
          f.add(c19);
          Checkbox c20 = new Checkbox("Structure");
          c20.setBounds(580, 190, 75, 20);
          f.add(c20);
          Checkbox c21 = new Checkbox("Complexity");
          c21.setBounds(580, 210, 86, 20);
          f.add(c21);
          Checkbox c22 = new Checkbox("Size");
          c22.setBounds(580, 300, 49, 20);
          f.add(c22);
          Checkbox c23 = new Checkbox("Structure");
          c23.setBounds(580, 320, 75, 20);
          f.add(c23);
          Checkbox c24 = new Checkbox("Complexity");
          c24.setBounds(580, 340, 86, 20);
          f.add(c24);
          Checkbox c25 = new Checkbox("Size");
          c25.setBounds(590, 460, 49, 20);
          f.add(c25);
          Checkbox c26 = new Checkbox("Structure");
          c26.setBounds(590, 480, 75, 20);
          f.add(c26);
          Checkbox c27 = new Checkbox("Complexity");
          c27.setBounds(590, 500, 86, 20);
          f.add(c27);
          Checkbox c28 = new Checkbox("Size");
          c28.setBounds(920, 170, 49, 20);
          f.add(c28);
          Checkbox c29 = new Checkbox("Structure");
          c29.setBounds(920, 190, 75, 20);
          f.add(c29);
          Checkbox c30 = new Checkbox("Complexity");
          c30.setBounds(920, 210, 86, 20);
          f.add(c30);
          Checkbox c31 = new Checkbox("Size");
          c31.setBounds(920, 300, 49, 20);
          f.add(c31);
          Checkbox c32 = new Checkbox("Structure");
          c32.setBounds(920, 320, 75, 20);
          f.add(c32);
          Checkbox c33 = new Checkbox("Complexity");
          c33.setBounds(920, 340, 86, 20);
          f.add(c33);
          Checkbox c34 = new Checkbox("Size");
          c34.setBounds(930, 450, 49, 20);
          f.add(c34);
          Checkbox c35 = new Checkbox("Structure");
          c35.setBounds(930, 470, 75, 20);
          f.add(c35);
          Checkbox c36 = new Checkbox("Complexity");
          c36.setBounds(930, 490, 86, 20);
          f.add(c36);
          ActionListener action = new MyActionListener(f, t1, t2);
          Button b1 = new Button("MetricsLevel");
          b1.setBounds(230, 600, 120, 24);
          b1.addActionListener(action);
          f.add(b1);
          Button b2 = new Button("MeasurementLevel");
          b2.setBounds(430, 600, 120, 24);
          b2.addActionListener(action);
          f.add(b2);
          Button b3 = new Button("Reset");
          b3.setBounds(630, 600, 120, 24);
          b3.addActionListener(action);
          f.add(b3);
          f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e)
              System.exit(0);
          f.show();
        else if (e.getSource() == this.itmExit)
          System.exit(0);
    import java.awt.*;
    import java.awt.event.*;
    //Encapsulate the look and behavior of the Help menu
    public class HelpMenu extends Menu implements ActionListener
      private MainWindow main; // who owns us?
      private MenuItem itmDescription = new MenuItem("Description");
      public HelpMenu(MainWindow main)
        super("Help");
        this.main = main;   
        this.itmDescription.addActionListener(this);
        this.add(this.itmDescription);
      // respond to a few menu items
      public void actionPerformed(ActionEvent e)
        if (e.getSource() == this.itmDescription)
          System.out.println("You can get description at our website");
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JRadioButton;
    public class MyActionListener implements ActionListener
      private Frame     frame;
      private TextField textField1;
      private TextField textField2;
      public MyActionListener(Frame frame, TextField tf1, TextField tf2)
        this.frame = frame;
        this.textField1 = tf1;
        this.textField2 = tf2;
      public void actionPerformed(ActionEvent e)
        String s = e.getActionCommand();
        if (s.equals("MetricsLevel"))
          Component[] components = this.frame.getComponents();
          int numOfCheckBoxes = 81;
          int numChecked = 0;
          for (int i = 0; i < components.length; i++)
            if (components[i] instanceof Checkbox)
              if (((Checkbox)components).getState())
    numChecked++;
    double ratio = (double) numChecked / (double) numOfCheckBoxes;
    this.textField1.setText(Double.toString(ratio));
    else if (s.equals("MeasurementLevel"))
    Component[] components = frame.getComponents();
    int numOfCheckBoxes = 81;
    int numChecked = 0;
    for (int i = 0; i < components.length; i++)
    if (components[i] instanceof Checkbox)
    if (((Checkbox)components[i]).getState())
    numChecked++;
    double ratio = (double) numChecked / (double) numOfCheckBoxes;
    this.textField2.setText(Double.toString(ratio));
    else if (s.equals("Reset"))
    this.textField1.setText("");
    this.textField2.setText("");
    for (int i = 0; i < this.frame.getComponentCount(); i++)
    Component c = this.frame.getComponent(i);
    if (c instanceof JRadioButton)
    ((JRadioButton)c).setSelected(false);
    else if (c instanceof Checkbox)
    ((Checkbox)c).setState(false);

  • Problem setting a hidden item value when button clicked with dynamic action or pl/sql process

    Apex 4.1
    Oracle 11g
    I have a page that consists of a main region and several sub regions.  I have a pl/sql process in After Header SET_DISPLAY(:P400_DISPLAY :='MAIN';)
    Three subregions have a contional display where P400_DISPLAY = STORE.  This works in hiding the sub regions.
    Now I want to change the P400_DISPLAY value to STORE to show the subregions when I hit a button.
    I tried creating a dynamic action for on click of the add button but get the following error:
    The selected button uses a 'Button Template' that does not contain the #BUTTON_ID# substitution string
    I went to the templates and found:
    Substitution Strings
    Substitution strings are used within sub templates to reference component values. This report details substitution string usage for this template.
    Substitution String
    Referenced
    From
    Description
    #LINK#
    Yes
    Template
    To be used in an "href" attribute
    #JAVASCRIPT#
    No
    To be used in an "onclick" attribute
    #LABEL#
    Yes
    Template
    Button Label
    #BUTTON_ATTRIBUTES#
    No
    Button Attributes
    #BUTTON_ID#
    No
    Generated button ID will be either the button's Static ID if defined, or if not will be an internally generated ID in the format 'B' || [Internal Button ID]
    I then tried creating a page process, pl/sql, :P400_DISPLAY :='STORE'; when the appropriate button is pressed.  The button action is submit page. However, it does not change the P400_DISPLAY value and the subregions stay hidden.
    Suggestions please on how to fix the template or change the P400_DISPLAY value?

    The root issue is that, although you change the value of your page item, it isn't visible to other areas of the page until it is in the session. So, any other action based on the value of your page item; the visibility of a control, a report based on the item's value, etc. will all be unaffected by changing the value of the page item until it has been changed in the session. Even after this the items are stored in the session, you must thereafter do something to cause the value to be reevaluated. To see the effect of this, observe that your page loads and evaluates the value of your page item, it sees that is "MAIN" and hides the regions. However, it doesn't reevaluate them after this.
    So; your choices to get this value set in the session are to either Submit the page, or use JavaScript to set the value in the session. If you use the latter of these, you'll have to do some further work to cause the visibility tests to be re-run, So, let's stick with with the submit method.
    What you've done above sounds correct for this but, there are a lot of decisions you could have made that might have caused things not to happen in the correct sequence.
    Firstly, let's confirm that what I describe above is your problem. From the development environment, load the page, click the button to change the value and submit. Now, click the link labelled Session. Is it still set to MAIN? If so; this is your issue.
    Let's start with the your After Header computation. Did you set it to *only* run if the current value of your page item is NULL??? If not, that's your problem.
    Load Page -> Item set to 'Main' by Computation -> Click Button -> Item set to STORE -> Submit -> Load Page -> Item set to 'Main' by Computation
    See the problem?
    Assuming this isn't the issue, you created a Branch to the same page, right? What is your process point for the Branch? Is it *After* Validation, Computation etc? Because if not, you aren't changing the value before the submit happens.
    I bet it is the first issue but, take a look at these.
    Cheers,
    -Joe

  • ADOBE DPS - MAGAZINE to TABLET in INDESIGN.....Need to brush up my tablet design in DPS (did it a few yearscback), can anyone recommend on the Adobe site tutorials that I can download, with artworks /buttons / actions and put it together?

    ....Need to brush up my tablet design in DPS (did it a few years back), can anyone recommend on the Adobe site tutorials that I can download, with artworks /buttons / actions and put it together?

    See this forum post here from Bob. Best place to learn DPS is on Adobe TV http://tv.adobe.com/product/digital-publishing-suite/
    If you are specifically looking to learn how to create interactive overlays, go here http://helpx.adobe.com/digital-publishing-suite/help/overview-interactive-overlays.html Watch the videos on "Folio Overlays panel, Part I & Part II"

  • Can we perform two actions with one button with two clicks one after other?

    Sir,
    can we perform two actions with one button with two clicks one after other?
    I want that when I click an Add Button first time it add data to the database and when I click again this button it clear the form data to empty fields.
    Regards
    Tanvir

    In code it should be easy.
    The following code adds a button called butman with a text "ADD".
    It then registers a listener that will be called if the button is clicked.
    This listener then calls the runAddData method if you clicked on butman while it contained the "ADD" text and it will call the runClearData method otherwise.
    Therefore it will swap the button's functionality between ADD and CLEAR on every click.
    final Button butman = new Button("ADD");
    butman.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent t) {
                        if (butman.getText().equals("ADD")) {
                                  butman.setText("CLEAR");
                                  runAddData();
                        } else {
                                  butman.setText("ADD");
                                  runClearData();
                        } // END IF-THEN
              }});I hope this is what you wanted.
    Some extra food for thought.
    You might want to run the ADD and CLEAR methods in their own threads so that it can run in the back ground, without slowing down your user interface.
    I also like to rather reuse one button for multiple functionality in stead of making an application with hundreds of nodes only used rarely with masses of code to show and hide them if needed.

  • Using the Convert button in Adobe XI results in a pdf with check boxes containing ? marks

    Using the Convert button in Adobe XI results in a pdf with check boxes containing ? marks@

    Hi Charles,
    Are you still facing this issue. Is this issue reproducible with every file you want to convert.
    Regards,
    Ajlan Huda.

  • Buttons call to action with Google

    Hello
    My landing page for mobile works great buttons call to action with the Safari browser.
    But with Google Chrome and Google mobile search, do not work, have to leave your finger for several seconds, you see a menu with buttons to open, copy and cancel. But do not call!
    Here the URL.
    http://www.hotelruacuernavaca.com/phone/hotel-ejecutivo-en-cuernavaca.html
    Thanks
    Héctor
    [email protected]

    You can surely create a popup on your page :
    https://www.youtube.com/watch?v=Ufsz0V_CRLw
    Not an exact solution , but you can use a little tweak and use in similarly way.
    Thanks,
    Sanjit

  • I just installed Lightroom 5. It will not open. I have clicked on the desktop icon as well as the start menu button with no results. What am I missing?

    I just installed Lightroom 5. It will not open. I have clicked on the desktop icon as well as the start menu button with no results. What am I missing?

    I had the same problem, and I believe it is caused by having the Creative Cloud application doing the updating of LR.  I "fixed" the problem by:
    1. Uninstall Lightroom
    2. Download the stand-alone LR 5.6 installer from Product updates
    3. Install LR 5.6 using the stand-alone installer, instead of using the Creative Cloud application.

  • Command link / button action is not taking place if i use it in iterator.

    Hi,
    I am new to ADF, i am facing 1 issue while implementing ADF mobile browser application.
    Issue: command link / button action is not taking place if i use it in iterator. its just refreshing the page it self and displaying as no records.
    Scenario is i am populating the search results in results page from search page using iterator, i want to get the complete details in different page (results page -> details page) .
    I have tried in different ways.like
    case1:
    <tr:panelGroupLayout id="pgl2" layout="vertical" styleClass="af_m_panelBase">
    <tr:panelHeader text="#{classviewBundle.SEARCH_RESULTS}" id="ph1"/>
    <tr:iterator id="i1" value="#{bindings.SubjectVO1.collectionModel}" var="subject"
    varStatus="subIndx" rows="100">
    <tr:panelBox text="#{subject.Subject} #{subject.CatalogNbr} - #{subject.CourseTitleLong}"
    styleClass="af_m_listingPrimaryDetails" id="pb1">
    <f:facet name="toolbar"/>
    <tr:table var="ssrClass" rowBandingInterval="1" id="t1" value="#{subject.children}"
    varStatus="clsIndx" rowSelection="none"
    binding="#{SessionBean.subjectTable}" verticalGridVisible="true"
    emptyText="No Records" width="100%">
    <tr:column id="c9" sortable="false" styleClass="width:100%">
    <*tr:commandLink text="Section: #{ssrClass.ClassSection}-#{ssrClass.SsrComponentLovDescr} (#{ssrClass.ClassNbr})"*
    id="commandLink2" styleClass="af_m_listingLink"
    *action="#{pageFlowScope.BackingBean.searchaction}"></tr:commandLink>*
    //remaining code
    in this case commandlink action is not able to invoke serachaction() method
    case 2:
    <tr:commandLink text="Section: #{ssrClass.ClassSection}-#{ssrClass.SsrComponentLovDescr} (#{ssrClass.ClassNbr})"
    id="commandLink2" styleClass="af_m_listingLink"
    action="classdetails}"></tr:commandLink>
    in this case its not able to navigate to classdetails page.
    I gave correct navigation cases and rules in taskflow,but its working fine when the command link is out of iterator only.
    i tried with actionlistener too.. but no use.. please help me out of this problem .
    *Update to issue:*
    The actual issue is when i use command link/button in an table/iterator whose parent tag is another iterator then the action is not taking place.
    the structer of my code is
    < iterator1>
    #command link action1
    < iterator2>
    #command link action2
    </ iterator2>
    < /iterator1>
    #command link action1 is working but "#command link action2" is not...
    Thanks
    Shyam
    Edited by: shyam on Dec 26, 2011 5:40 PM

    Hi,
    To solve my problem I used a af:foreach instead.
    <af:forEach items="#{viewScope.DataBySubjectServiceBean.toArray}" var="text">
    <af:commandLink text="#{text.IndTextEn}" action="indicator-selected" id="cl1">
    <af:setActionListener from="#{text.IndCode}" to="#{pageFlowScope.IndicatorCodeParam}" />
    </af:commandLink>
    </af:forEach>
    By the way you need to convert the iterator to an Array using a ManagedBean.
    public Object[] toArray() {
    CollectionModel cm = (CollectionModel) getEL("#{bindings.TView1.collectionModel}");
    indicators = new Object[cm.getRowCount()];
    for(int i=0;i<cm.getRowCount();i++){
    indicators[i] = cm.getRowData(i);
    return indicators;
    public static Object getEL(String expr) {
    FacesContext fc = FacesContext.getCurrentInstance();
    return fc.getApplication().evaluateExpressionGet(fc,expr,Object.class);
    Hope that helps-
    Edited by: JuJuZ on Jan 3, 2012 12:23 AM
    Add getEL Method

  • Quiz slides - editing button actions

    All,
    I have a Captivate 3 project with various quiz slides
    throughout that act as section reviews. I was able to have the
    submit button send users back to a ToC slide; however, I want the
    same to happen when they click "Next" on the quiz slides (if they
    just want to skip the review). Is there any way to edit individual
    button actions on quiz slides?
    Andy

    FYI - Captivate REALLY hates jumping around where scored
    quizzes are concerned... it seems to expect each project to contain
    a single scored quiz and it expects the user to complete that quiz
    linearly. The "Allow backwards movement" option in the Quiz
    preferences may allow things to work as expected, but I doubt the
    user will be able to "retake" a section once it's been completed.
    Captivate doesn't seem to like that, either.
    If you continue to have problems jumping back to your TOC,
    try breaking everything into individual projects and have your
    links open the appropriate project to create your lesson flows.
    Captivate has no problem randomly jumping between projects,
    and doing so will also allow users to retake a section if desired.
    PS - Since you've created your own TOC, I'm guessing you're
    not reporting user results to an Learning Management System of some
    sort. The "link between projects" approach is typically not an
    option in an LMS environment since the LMS usually needs to launch
    all files itself in order to create the necessary results reporting
    interface.

  • Value  set in constructor is not getting saved in button  Action method

    Hi All,
    I am not understanding why the value set ( On Condition )in constructor is not hold in the button actoin method.
    Could any body explain me on that
    for this I will try to explain with sample example
    I have taken a button and add a integer property in session bean.
    now if session bean's property is even then I am trying to set the button value to bidNow other wise Accept Invitation.
    Till this opstion everything is OK
    but once I click on Button,
    Constructor is doing the right job only. But I do not understand why in button action I am getting the First Value only.
    public Page1() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
                if (getSessionBean1().getIntValue()%2==0)
                    button1.setValue("BidNow");
                else
                    button1.setValue("Accept Invitation");
                getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
                log("In Constructor Button Value : "+button1.getValue());
            } catch (Exception e) {
                log("Page1 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
        public String button1_action() {
            // TODO Replace with your code
            log("In Action Button Value : "+button1.getValue());
            return null;
        }and here is the log
    [#|2005-07-19T11:55:17.859+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:17.859+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.359+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:18.359+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.843+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.843+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.312+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:19.312+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.234+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:20.250+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:21.328+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:21.328+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.437+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.437+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.906+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:35.921+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.265+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.265+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.890+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:36.890+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.171+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.171+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.468+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:37.468+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]As per this log every time I am getting Bid Now only in action, though the value is changed in Construtcor
    Can u explain the reason for this

    Hi Sudhakar,
    Please try the following and you will get an idea as to what is happening:
    1. Drag and drop a button, 2 outputText components
    2. Add a property to the session bean called intValue of type int. Customize it to set it's initial value to 0
    3. Add the following lines of code to the constructor
    outputText1.setValue("" + getSessionBean1().getIntValue());
    getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
    4. Double click on the button component to go to the button action method.
    5. Add the following line of code
    outputText2.setValue("" + etSessionBean1().getIntValue());
    6. Save and run the application
    7. Watch the values of outputText1 and outputText2 with each click of the button
    Also, try the application with the following code block in the button action method:
    if(getSessionBean1().getIntValue()%2==0){
    button1.setValue("Bid Now");
    } else{
    button1.setValue("Accept Invitation");
    getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
    outputText1.setValue(button1.getValue());
    outputText2.setValue("" + getSessionBean1().getIntValue());
    When the above code block is in the button action method the values set to button are as expected.
    Hope that helps
    Cheers
    Giri :-)

  • Automator action with dropdown to make folders with predetermined names

    Is there an action/workflow that will allow me to create Folders using a dropdown menu of predetermined names for those folders?

    I haven't seen one, and since no one has posted about one yet, I'll throw this out.
    I modified a couple of handlers I have laying around into a Run AppleScript action that will make folders from a list of names. The list can be set in a Get Specified Text action, with the "menu" being a Choose from List action:
    Tested workflow:
    1) Get Specified Text (your folder names, separated by returns) for example:
    Testing
    Another test
    My Spiffy New Folder
    2) Filter Paragraphs (Return paragraphs that are not empty)
    3) Choose from List (Prompt: Please choose folder names:)
    4) Run AppleScript:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into an Automator 'Run AppleScript' action">
    on run {input, parameters}
    make folders with names from a list
    input: a list of names (text items)
    output: a list of Finder items (aliases) created
    set output to {}
    set DestinationFolder to missing value -- set the destination path here if desired
    try -- verify that the path is valid
    set DestinationFolder to DestinationFolder as alias
    on error
    set DestinationFolder to (choose folder with prompt "Choose the location to make the selected folders:")
    end try
    repeat with AnItem in the input
    GetUniqueName for AnItem from DestinationFolder -- avoid duplicates
    try
    tell application "Finder" to make new folder at DestinationFolder with properties {name:the result}
    set the end of the output to the result as alias
    end try
    end repeat
    return output
    end run
    to GetUniqueName for SomeName from SomeFolder
    check if SomeName exists in SomeFolder, creating a new unique name if needed
    parameters - SomeName [text]: a name.extension to check for
    SomeFolder [mixed]: a folder to check
    returns [text]: a unique name
    set {Counter, Divider} to {"00", "_"}
    set Here to -(offset of "." in ((reverse of text items of SomeName) as text)) - 1
    set TheName to text 1 thru Here of SomeName
    if Here is -1 then -- no extension
    set TheExtension to ""
    else
    set TheExtension to text (Here + 1) thru -1 of SomeName
    end if
    set NewName to TheName & TheExtension
    tell application "System Events" to tell (get name of items of folder (SomeFolder as text))
    repeat while it contains NewName
    set Counter to text 2 thru -1 of ((100 + Counter + 1) as text) -- leading zero
    set NewName to TheName & Divider & Counter & TheExtension
    end repeat
    end tell
    return NewName
    end GetUniqueName</pre>
    - the output from the Run AppleScript action is a list of aliases to the folders created, if you want that information to do something with.

Maybe you are looking for