Help sorting pop-up menu
Hello all,
I am trying to create a alphabetized pop-up menu from data on a second sheet and need help. Manually typing in the data into inspector will work once but data is continously added and would like it alphabetized.
Here is what I have. Sheet 1 cell A1 contains the pop-up. Pop-up should pull from sheet 2 cell A1 on down. Various cells in sheet 1 will use the Vlookup function refrenced to cell A1, this part was easy since it was identical to Excel but Pop-up in Numbers isn't
Someone had mentioned maybe trying to format cell A1 as Slider but this is beyond my ability. Any help would be appreciated.
-aespinoza101
Be wary of editing pop-up menus in Numbers. Altering any menu that has been set will change the menu AND its current setting.
See Alphabetizing pop-up menu, particularly the entries by Badunit and Hiroto.
Regards,
Barry
Similar Messages
-
Customizing Sorting Pop-Up Menu
I've looked on all the forums, can't find answer to this specific question.
I'm using Aperture 1.5.6, but will take an answer on 2.0 too.
I don't use most of the "default" categories established in the Sorting Pop-up Menu. But I do use other categories, like IMPORT GROUP, to sort pictures. Each time I want to see pictures according to category not in default I have to go to the List View and click on category. I cannot figure out a way to save this sort or add this category to "default" list.
Is there a way, a workaround?
Thanks.Be wary of editing pop-up menus in Numbers. Altering any menu that has been set will change the menu AND its current setting.
See Alphabetizing pop-up menu, particularly the entries by Badunit and Hiroto.
Regards,
Barry -
Help! Pop-up menu problem
I made a pop-up menu in a trial version of Fireworks 8.
Everything works great within Fireworks, but when I try to insert
it in Dreamweaver 4 (using the Insert Fireworks html button) it
tells me that I need to insert an Fireworks html that was exported
from Fireworks. The pop-up menu I made was exported as an html from
Fireworks. Help!I don't think you are going to have much success trying to
marry DW4 with
anything contemporary. It's methods and structure are so
antique, you know?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Erin88" <[email protected]> wrote in
message
news:er308c$391$[email protected]..
>I made a pop-up menu in a trial version of Fireworks 8.
Everything works
>great
> within Fireworks, but when I try to insert it in
Dreamweaver 4 (using the
> Insert Fireworks html button) it tells me that I need to
insert an
> Fireworks
> html that was exported from Fireworks. The pop-up menu I
made was exported
> as
> an html from Fireworks. Help!
> -
Im haveing a hard time figuring out how to make a pop-up mene i created work correctly. I what to have a pop-up menu that will let you select a type of item, and return the items associate cost in the adjacent cell.
Exaple:
select option 1-3 in cell "A" and return values x,y & z in cell "B".
I figured out how to create the pop-up in cell "a" but cant seam to fugure out how to give each of the options a seperate value that appears in "b".Assuming the pop up is in B1:
you could enter the following formula in C1:
=IF(B1=1, "A", IF(B1=2, "B", IF(B1=3, "C", "")))
This will result in the following:
B1 = 1, C1 will return "A"
B1 = 2, C1 will return "B"
B1 = 3, C1 will return "C"
This method is ok for a small translation set. Much larger and it is hard to change and update. So the next method is to recognize if there is a pattern. If there is no pattern then you can make a translation table:
In this case you look up the value "3" in the Data table (column 1) and return the corresponding value from a different cell in the same row (column 2):
B3=VLOOKUP(A1, Data :: A:B, 2, 0)
I hope this helps,
Wayne -
Need help with pop-up menu and applied Rules
I'm working on a spreadsheet that calculates my profit and losses. I drive a big rig so it needs to keep track of a lot of variables so I know if I'm going to make money on a run or lose money.
I get fuel discounts of various amounts depending on which vendor I fuel at.
I went to a section of the sheet and did a pop-up menu that contains the vendor names.
In the trip section I have cost of fuel per gallon, gallons purchased, total fuel cost, cost minus fuel surcharge.
What I would like to do is apply a rule to cost per gallon box (H7) that takes a variable from the pop-up menu (B40).
So if H7 has $2.58 entered as a cost and B40 has pilot selected then $0.050 will automatically be deducted from the $2.58. This way I will have a history of where I fuel, the deduction is made automatically, and I have a history of fuel prices in a certain region.
If anyone looks at this and sees a simpler way of figuring this calculation please make the suggestion. I want to keep this sheet as small and hassle free as possible.
I have 3 fuel stops per trip with totals that are connected to other areas. Once I get all of this done I will be adding a chart for easy comparison and long range simple tracking to see where improvements can be made and costs are going.
Thanks in advance all help will be appreciated.
Message was edited by: Hwoodwriter for clarification.The IF Lookup table worked. Did a little modification by placing the table in another part of the chart then hiding that part.
I tried doing the discount as a negative but got a negative total which had a negative affect on my total trip income.
Here is how it works in it's final version.
Gallons on board minus gallons required for trip.
Cost per gallon (retail) multiplied by gallons purchased.
Fuel cost equals (Gallons purchased multiplied by Retail gallon price) minus ("IfLookup" multiplied by Gallons purchased)
Fuel Cost Minus Fuel Surcharge (the actual price I pay, which includes all my savings) equals (Retail Gallon Cost minus Fuel Surcharge minus "IfLookup") multiplied by Gallons Purchased.
Some of my trips take up to 3 fuel stops. So this helps me keep track of each fuel stop and all savings per trip.
I now have where I fueled, the retail price, with discount and surcharge applied. A few keystrokes and I know if a trip is going to be profitable or a loss for me.
Thank you for the help. I now have what I need at my fingertips to make my job more effective.
Thanks again. -
Need Help: JTable POP up menu in a CellEditor to display on a right click
This was from a previous post:
I am trying to make a POP menu in a JTextComponent that has a assigned JEditorPane for a HTMLDocument to make use of the HTMLEditorKit to allow modifying HTML by the POP up menu.
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.table.*;
import javax.swing.text.html.*;
import javax.swing.undo.*;
import javax.swing.border.*;
import javax.swing.filechooser.*;
public class SimpleTableDemo extends JFrame {
public SimpleTableDemo() throws Exception {
final JTable table = new JTable(new MyTableModel());
table.setPreferredScrollableViewportSize(new Dimension(500, 70));
TableColumn fileColumn = table.getColumnModel().getColumn(2);
FileTableCellEditor editor = new FileTableCellEditor();
fileColumn.setCellRenderer(editor);
fileColumn.setCellEditor(editor);
JScrollPane scrollPane = new JScrollPane(table);
getContentPane().add(scrollPane, BorderLayout.CENTER);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
table.setRowHeight(100);
public static void main(String[] args) throws Exception {
SimpleTableDemo frame = new SimpleTableDemo();
frame.pack();
frame.setVisible(true);
class MyTableModel extends AbstractTableModel {
String[] columnNames = {"First Name","Last Name","HTML File"};
public Object[][] data;
MyTableModel() throws Exception
data = createArray();
private Object[][] createArray() throws Exception
Object[][] data = {{"One", "Andrews", createDoc("file1.html")}
return data;
private Document createDoc(String url) throws Exception
File file = new File(url);
URL baseURL = file.toURL();
InputStream in = baseURL.openStream();
InputStreamReader r = new InputStreamReader(filterTag(in));
HTMLEditorKit kit = new HTMLEditorKit();
Document doc = kit.createDefaultDocument();
kit.read(r,doc,0);
return doc;
} // workaround for HTMLEditorKit.Parser, cant deal with "content-encoding"
private InputStream filterTag(InputStream in) throws IOException {
DataInputStream dins = new DataInputStream( in);
ByteArrayOutputStream bos = new ByteArrayOutputStream(10000);
DataInputStream din = new DataInputStream(new BufferedInputStream(in));
while (din.available() > 0) {
String line = din.readLine();
String lline = line.toLowerCase();
if (0 <= lline.indexOf("<meta ")) // skip meta tags
continue;
bos.write( line.getBytes());
din.close();
return new ByteArrayInputStream( bos.toByteArray());
public int getColumnCount() {
return columnNames.length;
public int getRowCount() {
return data.length;
public String getColumnName(int col) {
return columnNames[col];
public Object getValueAt(int row, int col) {
return data[row][col];
public Class getColumnClass(int c) {
return getValueAt(0, c).getClass();
public boolean isCellEditable(int row, int col) {
if (col >< 1) {
return false;
} else {
return true;
public class FileTableCellEditor extends JScrollPane implements TableCellEditor , TableCellRenderer
public JTextComponent jtext;
JEditorPane editor;
HTMLEditorKit kit = new HTMLEditorKit();
HTMLDocument doc = new HTMLDocument();;
private EventListenerList listenerList = new EventListenerList();
private ChangeEvent event = new ChangeEvent(this);
public FileTableCellEditor()
editor = new JEditorPane();
editor.setContentType("text/html");
doc=new HTMLDocument();
editor.addMouseListener(new MouseHandler());
editor.setEditorKit(kit);
editor.setDocument(doc);
editor.setEditable(true);
editor.setCaretColor(Color.RED);
getViewport().setView(editor);
setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column)
// System.out.println("has focus: "+hasFocus+", isSelected: "+isSelected);
if (isSelected)
table.editCellAt(row,column);
table.editCellAt(row,column);
return getTableCellEditorComponent(table,value,isSelected, row, column);
public Component getTableCellEditorComponent(JTable table,
Object value, boolean isSelected, int row, int column)
editor.setDocument((Document)value);
return this;
public boolean isCellEditable(EventObject anEvent)
{ return true;
public boolean shouldSelectCell(EventObject anEvent)
{ return true;
public void cancelCellEditing()
{ fireEditingStopped();
public boolean stopCellEditing()
{ return true;
public Object getCellEditorValue()
{ return null;
public void addCellEditorListener(CellEditorListener l)
{ listenerList.add(CellEditorListener.class, l);
public void removeCellEditorListener(CellEditorListener l)
{ listenerList.remove(CellEditorListener.class, l);
protected void fireEditingStopped()
{ Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2)
((CellEditorListener)listeners[i+1]).
editingStopped(event);
protected void fireEditingCanceled()
{ Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2)
((CellEditorListener)listeners[i+1]).
editingCanceled(event);
///////////createPopupMenu///////////////
protected JPopupMenu createPopupMenu()
JPopupMenu popup =new JPopupMenu();
popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.cutAction)).setAccelerator(null);
popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.copyAction)).setAccelerator(null);
popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.pasteAction)).setAccelerator(null);
popup.addSeparator();
popup.add(getTextComponent().getActionMap().get("font-bold"));
popup.add(getTextComponent().getActionMap().get("font-italic"));
popup.add(getTextComponent().getActionMap().get("font-underline"));
//popup.add(getTextComponent().getActionMap().get("break"));
return popup;
public JTextComponent getTextComponent()
return jtext;
protected class MouseHandler extends MouseAdapter{
public void mouseReleased(MouseEvent me){
if(me.getButton()==MouseEvent.BUTTON3){
Point p=me.getPoint();
createPopupMenu().show((Component)me.getSource(),p.x,p.y);
}I got the pop up to work, I had to go back to and add a createActionTable editor that is a JEditorPane, vs the JTextComponent!
Here is the latest version:
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.HashMap;
import javax.swing.*;
import javax.swing.undo.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.table.*;
import javax.swing.text.html.*;
import javax.swing.undo.*;
import javax.swing.border.*;
import javax.swing.filechooser.*;
public class SimpleTableDemo extends JFrame {
public SimpleTableDemo() throws Exception {
final JTable table = new JTable(new MyTableModel());
table.setPreferredScrollableViewportSize(new Dimension(500, 70));
TableColumn fileColumn = table.getColumnModel().getColumn(2);
FileTableCellEditor editor = new FileTableCellEditor();
fileColumn.setCellRenderer(editor);
fileColumn.setCellEditor(editor);
JScrollPane scrollPane = new JScrollPane(table);
getContentPane().add(scrollPane, BorderLayout.CENTER);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
table.setRowHeight(100);
public static void main(String[] args) throws Exception {
SimpleTableDemo frame = new SimpleTableDemo();
frame.pack();
frame.setVisible(true);
class MyTableModel extends AbstractTableModel {
String[] columnNames = {"First Name","Last Name","HTML File"};
public Object[][] data;
MyTableModel() throws Exception
data = createArray();
private Object[][] createArray() throws Exception
Object[][] data = {{"One", "Andrews", createDoc("file1.html")}
return data;
private Document createDoc(String url) throws Exception
File file = new File(url);
URL baseURL = file.toURL();
InputStream in = baseURL.openStream();
InputStreamReader r = new InputStreamReader(filterTag(in));
HTMLEditorKit kit = new HTMLEditorKit();
Document doc = kit.createDefaultDocument();
kit.read(r,doc,0);
return doc;
} // workaround for HTMLEditorKit.Parser, cant deal with "content-encoding"
private InputStream filterTag(InputStream in) throws IOException {
DataInputStream dins = new DataInputStream( in);
ByteArrayOutputStream bos = new ByteArrayOutputStream(10000);
DataInputStream din = new DataInputStream(new BufferedInputStream(in));
while (din.available() > 0) {
String line = din.readLine();
String lline = line.toLowerCase();
if (0 <= lline.indexOf("<meta ")) // skip meta tags
continue;
bos.write( line.getBytes());
din.close();
return new ByteArrayInputStream( bos.toByteArray());
public int getColumnCount() {
return columnNames.length;
public int getRowCount() {
return data.length;
public String getColumnName(int col) {
return columnNames[col];
public Object getValueAt(int row, int col) {
return data[row][col];
public Class getColumnClass(int c) {
return getValueAt(0, c).getClass();
public boolean isCellEditable(int row, int col) {
if (col < 1) {
return false;
} else {
return true;
public class FileTableCellEditor extends JScrollPane implements TableCellEditor , TableCellRenderer
JEditorPane editor = new JEditorPane();
HTMLEditorKit kit = new HTMLEditorKit();
HTMLDocument doc = new HTMLDocument();;
private EventListenerList listenerList = new EventListenerList();
private ChangeEvent event = new ChangeEvent(this);
HashMap<Object, Action> actions;
public FileTableCellEditor()
getContentPane();
editor.setContentType("text/html");
doc=new HTMLDocument();
editor.addMouseListener(new MouseHandler());
editor.setEditorKit(kit);
editor.setDocument(doc);
editor.setEditable(true);
editor.setCaretColor(Color.RED);
getViewport().setView(editor);
createActionTable(editor);
makeActionsPretty();
setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
public void makeActionsPretty(){
Action a;
a=editor.getActionMap().get(HTMLEditorKit.cutAction);
a.putValue(Action.SHORT_DESCRIPTION,"Cut");
a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('X',Event.CTRL_MASK));
a=editor.getActionMap().get(HTMLEditorKit.copyAction);
a.putValue(Action.NAME,"Copy");
a.putValue(Action.SHORT_DESCRIPTION,"Copy");
a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('C',Event.CTRL_MASK));
a=editor.getActionMap().get(HTMLEditorKit.pasteAction);
a.putValue(Action.NAME,"Paste");
a.putValue(Action.SHORT_DESCRIPTION,"Paste");
a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('V',Event.CTRL_MASK));
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column)
if (isSelected)
table.editCellAt(row,column);
table.editCellAt(row,column);
return getTableCellEditorComponent(table,value,isSelected, row, column);
public Component getTableCellEditorComponent(JTable table,
Object value, boolean isSelected, int row, int column)
editor.setDocument((Document)value);
return this;
public boolean isCellEditable(EventObject anEvent)
{ return true;
public boolean shouldSelectCell(EventObject anEvent)
{ return true;
public void cancelCellEditing()
{ fireEditingStopped();
public boolean stopCellEditing()
{ return true;
public Object getCellEditorValue()
{ return null;
public void addCellEditorListener(CellEditorListener l)
{ listenerList.add(CellEditorListener.class, l);
public void removeCellEditorListener(CellEditorListener l)
{ listenerList.remove(CellEditorListener.class, l);
protected void fireEditingStopped()
{ Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2)
((CellEditorListener)listeners[i+1]).
editingStopped(event);
protected JPopupMenu createPopupMenu()
JPopupMenu popup =new JPopupMenu();
popup.add(getActionByName(DefaultEditorKit.cutAction));
return popup;
protected class MouseHandler extends MouseAdapter{
public void mouseReleased(MouseEvent me){
if(me.getButton()==MouseEvent.BUTTON3){
Point p=me.getPoint();
createPopupMenu().show((Component)me.getSource(),p.x,p.y);
private void createActionTable(JTextComponent textComponent) {
actions = new HashMap<Object, Action>();
Action[] actionsArray = textComponent.getActions();
for (int i = 0; i < actionsArray.length; i++) {
Action a = actionsArray;
actions.put(a.getValue(Action.NAME), a);
private Action getActionByName(String name) {
return actions.get(name); -
Need help with pop-up menu please!
So I have an older version of Dreamweaver.
I want to apply a drop-down menu or pop-up menu whatever to
words, but so far I don't think I can do that.
I've decided to apply it to a picture instead, and I've done
this successfuly before.
I select the picture, then go to behaviors and select "show
pop-up menu", fill in the info and say OK, but I then get this
message that goes something like "while applying behaviors action
javascript failed" and "ReferenceError:imgName isNot defined" or
whatever and it won't let me add it.
I've restarted the program and even my computer but it won't
go away.
Does anyone know how to fix this?
-anna> So I have an older version of Dreamweaver.
DW4?
The pop-up menus are very troublesome. Nobody here would
recommend that you
use them.
> Does anyone know how to fix this?
What is your operating system?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"anzya91" <[email protected]> wrote in
message
news:eibt0r$esr$[email protected]..
> So I have an older version of Dreamweaver.
> I want to apply a drop-down menu or pop-up menu whatever
to words, but so
> far
> I don't think I can do that.
> I've decided to apply it to a picture instead, and I've
done this
> successfuly
> before.
> I select the picture, then go to behaviors and select
"show pop-up menu",
> fill
> in the info and say OK, but I then get this message that
goes something
> like
> "while applying behaviors action javascript failed" and
> "ReferenceError:imgName
> isNot defined" or whatever and it won't let me add it.
> I've restarted the program and even my computer but it
won't go away.
> Does anyone know how to fix this?
>
> -anna
> -
Help with pop-up menu --- please!
I want to see if I can get this simple code working so that I can integrate the ideas into a larger application. But, I'm getting errors on this one! What am I missing or forgetting?
public class example implements MouseInputListener,MouseMotionListener{
JPopupMenu menu = new JPopupMenu();
public static void main (String args[]) {
Frame f = new Frame();
{Window w = new Window(f);
w.setSize(200,100);
w.setVisible(true);
w.setLocation(300,300);
//New Red Window
{Window w= new warningwindow (f);
w.setSize(200,100); //setSize is in a superclass
w.setVisible(true);
w.setLocation(370,370);}
// Create and add a menu item
JMenuItem item = new JMenuItem("Hi Kimberly!");
addMouseListener(this); //ERROR WITH THIS LINE
menu.add(item); //ERROR WITH THIS LINE ALSO
// Set the component to show the popup menu
public void mouseClicked (MouseEvent e) {
if(e.isPopupTrigger()){
menu.show(e.getComponent(),e.getX(), e.getY());
public void mouseReleased (MouseEvent e){
if (e.isPopupTrigger()){
menu.show(e.getComponent(),e.getX(),e.getY());
public void mouseExited (MouseEvent e){
public void mouseMoved (MouseEvent e){
public void mouseDragged (MouseEvent e){
public void mousePressed (MouseEvent e){
public void mouseEntered (MouseEvent e){
}You're forgetting that we can't see your computer from here. Tell us what errors you are getting.
-
hi people, can anyone tell whether one has the possibility in numbers, the entries in the pop-up menu to sort alphabetically me
Hi Dieter,
Your profile shows Mac OS X (10.6.8) so it seems you are using Numbers version 2.x
Numbers 2 does not have the ability to sort Pop-Up Menu entries (except by a painful process of adding or subtracting entries in Inspector).
Numbers 3 makes Pop-Up Menus a breeze. But it is your choice whether to update to OS X Mavericks and Numbers 3 . Some features have been lost, other features have been added, and there are some workarounds.
Have a look at these threads before you decide:
Features that Apple has promised to reinstate:
http://support.apple.com/kb/HT6049
Hints on workarounds here:
https://discussions.apple.com/message/23622372#23622372
What has been GAINED in Numbers 3 is here:
https://discussions.apple.com/thread/5473882?start=75&tstart=0
What has been lost in Numbers 3 is here (with corrections where Apple has already reinstated some lost features in the Numbers 3.0.1 update):
https://discussions.apple.com/thread/5470448?start=240&tstart=0
Regards,
Ian. -
Help using right-click to display text in the console/call a pop-up menu
Hi folks,
I hope someone can help me with this problem because, to be honest, I cannot see where I'm going wrong!
Basically, I'm trying to create a routine to display a bit of text in the console (and, if I can get this to work, call a pop-up menu) if a user clicks on an image panel (which I've already created and works fine). My code for this is as follows:
// --- Rest of program here
this.addMouseListener(new MouseAdapter()
public void mouseClicked(MouseEvent e)
// This bit works fine
if (e.getClickCount()>=2)
// Display a dialog box if the user double clicks on the panel
else if (e.isPopupTrigger())
System.out.println("Right mouse button clicked")
// Rest of program in hereThe problem is that, despite my best efforts, "Right mouse button clicked" does not display in the console if the right mouse button is clicked, and I cannot figure out why. I can, however, get it to work PARTIALLY if I use e.isControlDown(), but this only works (I guess) if the user is working on a Mac but isn't using an external mouse. Not ideal.
I'm developing on a Mac (10.4.8) using Eclipse (rather than a PC), but this surely cannot be the problem?Do you start this application in a console window?
If yes then isPopupTrigger() is never true - presumably mouseClicked gets called.
If no then please note that java does not 'pop' a console window when System.out is called. System.out represents an existing output connection. If you want to pop some sort of console then you need to add code to do that. -
I am new to numbers and am trying to develop a logbook to track my flight time. I need to be able to keep running totals of total time and by aircra type. I have a number of questions, but I think this is the one to start with:
i would like to have a pop-up menu (drop down list) to be able to select which aircraft type in a cell. I want the pop-up menu items to be based on what is typed into a different cell (reference cell).
i would like whatever txt is typed in a range of cells to be what is available as a pop up in a different range of cells.
In table 1 if I type C182t in cell b1 thru b10, I want C182t to be available as a pop-up or drop down menu in table2, f2-f200.
i.e.
table 1, b1 I type C182t
table 2 (f2 thru f200) have C182t in pop up/dropdown
Next In table 1, b2 I type PA28R
table2 (F2 thru f200) now have C182t and PA28R as choices
and so on....
thanks in advance nce for the help
anthonyIn table 1 if I type C182t in cell b1 thru b10, I want C182t to be available as a pop-up or drop down menu in table2, f2-f200
Inspired by quinn's script, here is a specific AppleScript solution to this problem.
Given a first table named 'Aircraft Types', with C182 in B1 and PA28r in B2:
C182t
PA28r
And a 'Table 2' like this:
A
B
C
D
E
F
PA28r
C182t
PA30
PA28r
PA30
C182t
You can copy-paste this this script into Script Editor and run it to populate column F with Pop-Up Menu containing the choices from 'Table 1'. Whenever you add an item to 'Table 1' just one-click will update the Pop-Ups. (It's not fully automatic the way it can be in Excel, but it's just one click. No need to get involved in the details of the script... unless you want to.).
--change to match where popup values are listed:
property source : {sht:"Sheet 1", tbl:"Aircraft Types", col:"B"}
--change to match range where you want the Popup Menu cells:
property target : {sht:"Sheet 1", tbl:"Table 2", col:"F"}
property guiDelay : 0.15 -- may need to increase on your machine
tell application "Numbers" to tell front document
tell sheet (source's sht) to tell table (source's tbl)
set the selection range to first cell -- put focus on table to sort
sort by column (source's col) direction ascending -- omit if want orginal order
set popSrcRng to my makeBodyRng(source's sht, source's tbl, source's col)
set popSrcRng's format to pop up menu
set selection range to popSrcRng's last cell --put 'first cell' if want default to be first value,etc.
my copyPaste("c")
set column (source's col)'s format to text -- restore format so can add new items as needed
end tell
tell sheet (target's sht) to tell table (target's tbl)
set range (target's col)'s format to text -- clear any existing popups
set selection range to my makeBodyRng(target's sht, target's tbl, target's col)
my copyPaste("v")
end tell
end tell
to makeBodyRng(theSht, theTable, theCol) -- builds the range for just the body cells in a column
tell application "Numbers" to tell front document's sheet theSht's table theTable
set theRange to range ((column theCol's cell (header row count + 1)'s name) & ¬
":" & (column theCol's cell (row count - footer row count)'s name))
end tell
end makeBodyRng
to copyPaste(k)
activate application "Numbers"
delay guiDelay --gives user interface a chance to catch up
tell application "System Events" to keystroke k using command down
end copyPaste
Be sure to change the values in the property statements (within the quotes) if your tables have different names, are on a different sheet, or if you want the Pop-Ups in a different column. And, of course, make sure it runs the way you want on a test document before using it with your real data.
SG
P.S. quinn, note that you can get AppleScript to indent properly on the forum by clicking 'html' and removing the minus sign wherever you see something with this pattern: text-indent: -39.3px. (The number will vary; just delete the - wherever you see it). Then click 'Show Full Editor' upper right to return to the normal view. A little bit of a pain, but it goes quickly, and does the trick until they fix whatever bug is inserting those minus signs. -
Help inserting Fireworks pop-up menu into Dreamweaver
I wonder if anyone can help me with pop-up menu insertion
process. I create the menu in Fireworks and export it to
Dreamweaver. I place the menu in a fresh test document and it works
perfectly every time, but when I go through the exact same series
of steps in my real page, I get a broken image icon. I just can't
understand why the path is fine one way, yet gets lost in the
shuffle the other way. The only two differences I can think of are
where in the site folder the test page is saved, as opposed to
where the real (archive) page is stored, and the fact that the
archive page already has rows and columns and cells, where the
fresh test page has just one basic table and nothing else at all. I
even tried manipulating the code directly to make the sections in
question identical, and even that doesn't do it. As far as I could
see, my actual working site page (which won't accept the insertion)
had one extra bit of code, namely
<td colspan="4"
Everything else seems to be the same.
I am losing my sanity over this!Would it be too late to direct you to another menu approach
altogether? The
FW pop-up menus are not the sharpest knife in the drawer -
Check the uberlink and MacFly tutorials at PVII
http://www.projectseven.com/)
and the Navbar tutorial/articles at Thierry's place
http://tjkdesign.com/navbars/)
Or to get it done fast, go here -
http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"birdpics" <[email protected]> wrote in
message
news:ed2pnn$5cl$[email protected]..
> I wonder if anyone can help me with pop-up menu
insertion process. I
> create
> the menu in Fireworks and export it to Dreamweaver. I
place the menu in a
> fresh
> test document and it works perfectly every time, but
when I go through the
> exact same series of steps in my real page, I get a
broken image icon. I
> just
> can't understand why the path is fine one way, yet gets
lost in the
> shuffle the
> other way. The only two differences I can think of are
where in the site
> folder the test page is saved, as opposed to where the
real (archive) page
> is
> stored, and the fact that the archive page already has
rows and columns
> and
> cells, where the fresh test page has just one basic
table and nothing else
> at
> all. I even tried manipulating the code directly to make
the sections in
> question identical, and even that doesn't do it. As far
as I could see, my
> actual working site page (which won't accept the
insertion) had one extra
> bit
> of code, namely
>
> <td colspan="4"
>
> Everything else seems to be the same.
>
> I am losing my sanity over this!
>
>
>
>
> -
CS3 "Show Pop-Up Menu" Behavior Help
I just got CS3 (and un-installed DW8) and I have learned that
the "Show Pop-Up Menu" behavior is depreciated. The problem I'm
having is it is Grayed out (And yes, I made sure I had a 'link'
selected when I tried to choose this behavior) Does anyone have any
suggestions what to do so this selection is not grayed out? Is
there a setting in the Preferences that I missed or is CS3 just
teasing me w/a remembrance of this easy to use pop up menu maker?
Any help is appreciated :)
Thanks,
Monica
[email protected]
ps: I do know about the "Spry assets" but I want to see if
the above option is possible first. thanx :)> Does anyone have any suggestions what to do so this
selection is not
> grayed
> out?
The functionality has been REMOVED as a primary function in
CS3. It will
allow you to edit a LEGACY MENU, but not create a new menu
from scratch.
This is a good thing. The DW menus were indescribably
horrible.
In their place, use the Spry menus, or -
Check the uberlink and MacFly tutorials at PVII -
http://www.projectseven.com/
and the Navbar tutorial/articles at Thierry's place
http://tjkdesign.com/articles/dropdown/
Or this one (more recent article):
http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
Or to get it done fast, go here -
http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Moni057" <[email protected]> wrote in
message
news:f3na5s$9lv$[email protected]..
>I just got CS3 (and un-installed DW8) and I have learned
that the "Show
>Pop-Up
> Menu" behavior is depreciated. The problem I'm having is
it is Grayed out
> (And
> yes, I made sure I had a 'link' selected when I tried to
choose this
> behavior)
Is there a setting in the Preferences that I missed or is CS3
just teasing
> me w/a remembrance of this easy to use pop up menu
maker? Any help is
> appreciated :)
>
> Thanks,
> Monica
>
> [email protected]
>
> ps: I do know about the "Spry assets" but I want to see
if the above
> option is
> possible first. thanx :)
> -
Help with transparent background for the pop up menu!
Hello everyone,
I am working on a Web site which has a pop up menu created in Dreamweaver 8. The pop up is over a picture and I'm thinking about to make its background transparent. I'm not really a programmer to be able to do it manually but I'm familiar with JS. Would anybody be able to help me with this? I truly appreciate it.
I could find the code but don't know where to place it! The JS file is about 700 lines!!! I'm so confused...Below is the source file for the JS that you could download...
http://www.arxcustomhomes.com/mm_menu.js
Thanks so much.
MojanSure.
http://www.arxcustomhomes.com
Thanks a lot.
Mojan -
Help with Fireworks pop-up menu
Hi All,
I created a vertical pop-up menu from Fireworks MX 2004. I
inserted it into my Dreamweaver file and it works great. However, I
want the white background of the pop-up menu to be have a 40%
opacity. I know I have to add a bit of coding to the mm_menu.js
file and I've tried every conceivable bit of coding I can think of
but still no luck. Does anyone know what to write and where to
write in the code? Thanks in advance for any help!
Below is the section of code that I've been working with. I
assumed the opacity coding would go here some where.
* mm_menu 20MAR2002 Version 6.0
* Andy Finnell, March 2002
* Copyright (c) 2000-2002 Macromedia, Inc.
* based on menu.js
* by gary smith, July 1997
* Copyright (c) 1997-1999 Netscape Communications Corp.
* Netscape grants you a royalty free license to use or
modify this
* software provided that this copyright notice appears on
all copies.
* This software is provided "AS IS," without a warranty of
any kind.
function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh,
halgn, valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah)
this.version = "020320 [Menu; mm_menu.js]";
this.type = "Menu";
this.menuWidth = mw;
this.menuItemHeight = mh;
this.fontSize = fs;
this.fontWeight = "plain";
this.fontFamily = fnt;
this.fontColor = fclr;
this.fontColorHilite = fhclr;
this.bgColor = "#555555";
this.menuBorder = 1;
this.menuBgOpaque=opq;
this.menuItemBorder = 1;
this.menuItemIndent = idt;
this.menuItemBgColor = bg;
this.menuItemVAlign = valgn;
this.menuItemHAlign = halgn;
this.menuItemPadding = pad;
this.menuItemSpacing = space;
this.menuLiteBgColor = "#ffffff";
this.menuBorderBgColor = "#777777";
this.menuHiliteBgColor = bgh;
this.menuContainerBgColor = "#cccccc";
this.childMenuIcon = "arrows.gif";
this.submenuXOffset = sx;
this.submenuYOffset = sy;
this.submenuRelativeToItem = srel;
this.vertical = vert;
this.items = new Array();
this.actions = new Array();
this.childMenus = new Array();
this.hideOnMouseOut = true;
this.hideTimeout = to;
this.addMenuItem = addMenuItem;
this.writeMenus = writeMenus;
this.MM_showMenu = MM_showMenu;
this.onMenuItemOver = onMenuItemOver;
this.onMenuItemAction = onMenuItemAction;
this.hideMenu = hideMenu;
this.hideChildMenu = hideChildMenu;
if (!window.menus) window.menus = new Array();
this.label = " " + label;
window.menus[this.label] = this;
window.menus[window.menus.length] = this;
if (!window.activeMenus) window.activeMenus = new Array();> Dreamweaver file and it works great
You think? Read this -
http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"creativemoon" <[email protected]> wrote in
message
news:[email protected]...
> Hi All,
> I created a vertical pop-up menu from Fireworks MX 2004.
I inserted it
> into my
> Dreamweaver file and it works great. However, I want the
white background
> of
> the pop-up menu to be have a 40% opacity. I know I have
to add a bit of
> coding
> to the mm_menu.js file and I've tried every conceivable
bit of coding I
> can
> think of but still no luck. Does anyone know what to
write and where to
> write
> in the code? Thanks in advance for any help!
>
> Below is the section of code that I've been working
with. I assumed the
> opacity coding would go here some where.
>
> /**
> * mm_menu 20MAR2002 Version 6.0
> * Andy Finnell, March 2002
> * Copyright (c) 2000-2002 Macromedia, Inc.
> *
> * based on menu.js
> * by gary smith, July 1997
> * Copyright (c) 1997-1999 Netscape Communications Corp.
> *
> * Netscape grants you a royalty free license to use or
modify this
> * software provided that this copyright notice appears
on all copies.
> * This software is provided "AS IS," without a warranty
of any kind.
> */
> function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg,
bgh, halgn, valgn,
> pad,
> space, to, sx, sy, srel, opq, vert, idt, aw, ah)
> {
> this.version = "020320 [Menu; mm_menu.js]";
> this.type = "Menu";
> this.menuWidth = mw;
> this.menuItemHeight = mh;
> this.fontSize = fs;
> this.fontWeight = "plain";
> this.fontFamily = fnt;
> this.fontColor = fclr;
> this.fontColorHilite = fhclr;
> this.bgColor = "#555555";
> this.menuBorder = 1;
> this.menuBgOpaque=opq;
> this.menuItemBorder = 1;
> this.menuItemIndent = idt;
> this.menuItemBgColor = bg;
> this.menuItemVAlign = valgn;
> this.menuItemHAlign = halgn;
> this.menuItemPadding = pad;
> this.menuItemSpacing = space;
> this.menuLiteBgColor = "#ffffff";
> this.menuBorderBgColor = "#777777";
> this.menuHiliteBgColor = bgh;
> this.menuContainerBgColor = "#cccccc";
> this.childMenuIcon = "arrows.gif";
> this.submenuXOffset = sx;
> this.submenuYOffset = sy;
> this.submenuRelativeToItem = srel;
> this.vertical = vert;
> this.items = new Array();
> this.actions = new Array();
> this.childMenus = new Array();
> this.hideOnMouseOut = true;
> this.hideTimeout = to;
> this.addMenuItem = addMenuItem;
> this.writeMenus = writeMenus;
> this.MM_showMenu = MM_showMenu;
> this.onMenuItemOver = onMenuItemOver;
> this.onMenuItemAction = onMenuItemAction;
> this.hideMenu = hideMenu;
> this.hideChildMenu = hideChildMenu;
> if (!window.menus) window.menus = new Array();
> this.label = " " + label;
> window.menus[this.label] = this;
> window.menus[window.menus.length] = this;
> if (!window.activeMenus) window.activeMenus = new
Array();
> }
>
>
>
Maybe you are looking for
-
Queue gets blocked in Receiver System . Pls advice urgent
Hi All, When I send data from CRM --- XI --- DM system Whenever data comes at DM system everytime queue gets blocked and gets status "SYSFAIL". Pls tell me how to solve this problem. Regards
-
Safari Quits Unexpectedly On Start up OS X 10.10.2 can anyone help? I cant find any malware or any virus I updated to 10.10.2 also to try to fix the problem.
-
Integrating Lotus Domino with XI ?
Hello, We have some applications developed in Lotus Domino which we'd like to integrate with SAP XI in real-time and online fashion. There is no adapter for Domino as I researched existing SAP offerings. Does anyone have any idea how to get this done
-
LION ADDRESS BOOK. no data
Hi, I have just downloaded LION and everything appears to work ok apart from ADDRESS BOOK. In Snow Leopard I have set up hundreds of names and addresses but this data has not migrated in to the new address book in LION. Has anyone got any ideas how t
-
Can an authorized user pick up a Verizon iPhone 5 at an Apple Store?
Yesterday, a local Apple Store finally got the iPhone 5 I had been looking for in stock for Personal Pickup the next day. When I received the email saying that the phone was ready to pick up, it also said at the bottom: "In most cases, the primary a