Setting visible/invisible when menu item is contained/not contained

Hello All,
I have a vertical rectangle (the containerButtonsRect) that contains menu items (text). The items slide up and down when using up and down keys. When the items go out the container I want to make them invisible. When they come back in the containerButtonsRect I want to make them visible. The following code does not work:
override public function create(): Node {
        for (i in [0..sizeof labelButtons - 1]) {
            def menuItem:MenuItem = MenuItem {
                        x: bind containerButtonsRect.x
                        y: bind (containerButtonsRect.y + (i+1)*ySpacing + i*maxButtonHeight)
                        width: bind containerButtonsRect.width
                        height: bind maxButtonHeight
                        content: labelButtons[i]
                        translateY: bind tracker*deltaY
                        visible: bind ((menuItem.y + translateY > containerButtonsRect.y) and ((menuItem.y + translateY + maxButtonHeight) < (containerButtonsRect.y + containerButtonsRect.height)))
            insert menuItem into menuItems;
            if (i == focusedIndexItem) {
                menuItems[focusedIndexItem].selected = true;
            updateMaxSize(menuItem);
        return Group {
            content: bind [
                containerButtonsRect,
                selectionRect,
                menuItems
    }It is strange that the following line:
visible: bind ((menuItem.y + translateY > containerButtonsRect.y) and ((menuItem.y + translateY + maxButtonHeight) < (containerButtonsRect.y + containerButtonsRect.height)))does not do the job.
Is there a better way to set the visible attribute based on the logic described above?
Thanks.
Edited by: sacchett88 on Jun 9, 2010 2:10 PM

Thank for the response.
The translateY is set to provide vertical motion. A time line is controlling the tracker variable. So when I move arrow up/down the items scroll up/down.
I agree JavaFX have way complicated the different variables you can set to position components and retrieve width and height. This cause a lot of problems hard to debug.
Interesting your ideas of setting the clip of the group. I am not to familiar with that attribute as well the description in the docs: http://java.sun.com/javafx/1.3/docs/api/javafx.scene/javafx.scene.Group.html is poor:
"Specifies a Node to use to define the the clipping shape for this Node."
Is there any example you could point me out to ?
Thanks.

Similar Messages

  • Setting focus to a menu item in New Form Instance...

    Dear All,
    Please let me know how to set focus to a menu item in New Form Instance trigger,
    so that as the user opens the form control should be with the menu item and not with the First item of Data Block.

    To my knowledge you cannot set input focus to a menu item.
    Alternatively you could create a push button and put input focus there.
    hth
    Hans

  • Adding Menu Items that are not pages.

    I want to add menu items that are not pages that I will create in Muse. They are linking to Wordpress pages that I have. How do I do this with a menu widget?

    Just look here:
    How can I create a hyperlink to a thirth party WEB site from Muse?

  • When menu item is clicked i'm unable to call user form to my b1

    hi every one,
    i'm new to b1 sdk. i have written some code to handle menuevents. when an item on menu is clicked a form should open ...such that i have written some code which is shown below....but when i'm debugging ..after entering the control into createmysimpleform() it is not moving further....
    plz provide me some help in this regard...
    ======================================================================================================
    CODE
    ===================================================================================================
      Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
    =============================================================================================
            If (pVal.MenuUID = "SM_VID_F1") And (pVal.BeforeAction = true) Then
                SBO_Application.MessageBox("Rajender")
                If (pVal.MenuUID = "SM_VID_F1") And (pVal.BeforeAction = true) Then
                    SBO_Application.MessageBox("My first Menu was clicked")
                    CreateMySimpleForm() ' to call the user form for which the code is written in another sub program
                End If
            Else
                If (pVal.MenuUID = "SM_VID13") And (pVal.BeforeAction = False) Then
                    SBO_Application.MessageBox("My Second Menu was clicked")
                End If
            End If
    Private Sub CreateMySimpleForm()
            Dim oItem As SAPbouiCOM.Item
            '// we will use the following objects to set
            '// the specific values of every item
            '// we add.
            '// this is the best way to do so
            Dim oButton As SAPbouiCOM.Button
            Dim oStaticText As SAPbouiCOM.StaticText
            Dim oEditText As SAPbouiCOM.EditText
            Dim oComboBox As SAPbouiCOM.ComboBox
            '// add a new form
            Dim oCreationParams As SAPbouiCOM.FormCreationParams
            oCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
            oCreationParams.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
            oCreationParams.UniqueID = "MySimpleForm"
            oForm = SBO_Application.Forms.AddEx(oCreationParams)
            oForm.Visible = True
            '// add a User Data Source to the form
            oForm.DataSources.UserDataSources.Add("EditSource", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
            oForm.DataSources.UserDataSources.Add("CombSource", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
            '// set the form properties
            oForm.Title = "Simple Form"
            oForm.Left = 400
            oForm.Top = 100
            oForm.ClientHeight = 80
            oForm.ClientWidth = 350
            '// Adding Items to the form
            '// and setting their properties
            '// Adding an Ok button
            '// We get automatic event handling for
            '// the Ok and Cancel Buttons by setting
            '// their UIDs to 1 and 2 respectively
            oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
            oItem.Left = 6
            oItem.Width = 65
            oItem.Top = 51
            oItem.Height = 19
            oButton = oItem.Specific
            oButton.Caption = "Ok"
            '// Adding a Cancel button
            oItem = oForm.Items.Add("2", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
            oItem.Left = 75
            oItem.Width = 65
            oItem.Top = 51
            oItem.Height = 19
            oButton = oItem.Specific
            oButton.Caption = "Cancel"
            '// Adding a Rectangle
            oItem = oForm.Items.Add("Rect1", SAPbouiCOM.BoFormItemTypes.it_RECTANGLE)
            oItem.Left = 0
            oItem.Width = 344
            oItem.Top = 1
            oItem.Height = 49
            '// Adding a Static Text item
            oItem = oForm.Items.Add("StaticTxt1", SAPbouiCOM.BoFormItemTypes.it_STATIC)
            oItem.Left = 7
            oItem.Width = 148
            oItem.Top = 8
            oItem.Height = 14
            oItem.LinkTo = "EditText1"
            oStaticText = oItem.Specific
            oStaticText.Caption = "Static Text 1"
            '// Adding another Static Text item
            oItem = oForm.Items.Add("StaticTxt2", SAPbouiCOM.BoFormItemTypes.it_STATIC)
            oItem.Left = 7
            oItem.Width = 148
            oItem.Top = 24
            oItem.Height = 14
            oItem.LinkTo = "ComboBox1"
            oStaticText = oItem.Specific
            oStaticText.Caption = "Static Text 2"
            '// Adding a Text Edit item
            oItem = oForm.Items.Add("EditText1", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oItem.Left = 157
            oItem.Width = 163
            oItem.Top = 8
            oItem.Height = 14
            oEditText = oItem.Specific
            '// bind the text edit item to the defined used data source
            oEditText.DataBind.SetBound(True, "", "EditSource")
            oEditText.String = "Edit Text 1"
            '// Adding a Combo Box item
            oItem = oForm.Items.Add("ComboBox1", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
            oItem.Left = 157
            oItem.Width = 163
            oItem.Top = 24
            oItem.Height = 14
            oItem.DisplayDesc = False
            oComboBox = oItem.Specific
            '// bind the Combo Box item to the defined used data source
            oComboBox.DataBind.SetBound(True, "", "CombSource")
            oComboBox.ValidValues.Add("1", "Combo Value 1")
            oComboBox.ValidValues.Add("2", "Combo Value 2")
            oComboBox.ValidValues.Add("3", "Combo Value 3")
            '// set the form as visible
        End Sub

    hi satish, thanks for ur reply...
    i have 1 more doubt...plz try to solve this prob as soon as possible....
    i have created a user form with some lables and textboxes... and buttons...
    if i click on "adddata" button all the data i have entered in the form is inserted to DB...
    i have placed 1 more button ...so as to make already entered data in textboxes values empty.... but it is not working when i wrote the code below.....
    If (FormUID = "TestForm") And ((pVal.ItemUID = "13") And _
       (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) And (pVal.BeforeAction = True)) Then
                Clear() ' this is update records with respect to code value entered in form to DB
            End If
    Public Sub Clear()
      oform.Items.Item("6").Refresh()
            oform.Items.Item("7").Refresh()
            oform.Items.Item("8").Refresh()
        End Sub
    is there any other method that is should call to clear the data...???

  • When menu items are selected they become invsible

    when I select a menu item the words become invisible.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Set vertical gap of menu items, list items...

    Hi, is there any way to adjust the vertical gaps between menu items, between list items, between combo box list lits? I am trying to make my Java application look like Windows application, but the vertical gaps in these Java components are just too big. Thanks!
    Yu

    Sorry for the massive bit of code, but you can use this to display the UI defaults and decide what to change if you want to try to affect (simple) global changes to the look and feel:
    It's far from beautiful but I've found it helpful from time to time.
    import javax.swing.JFrame;
    import javax.swing.Icon;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.Box;
    import javax.swing.BoxLayout;
    import javax.swing.UIManager;
    import javax.swing.UIDefaults;
    import javax.swing.border.Border;
    import java.awt.BorderLayout;
    import java.awt.Graphics;
    import java.awt.Component;
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Insets;
    import java.util.Iterator;
    import java.util.Set;
    import java.util.TreeSet;
    import java.util.Comparator;
    import java.util.Enumeration;
    public class DefaultsDisplayer extends JFrame
         private static class ResourceLabel extends JLabel
              private ResourceLabel(Object key, Object value)
                   super(key.toString());
                   if(value instanceof Icon)
                        setIcon(new SafeIcon((Icon)value));
                   else if(value instanceof Color)
                        setIcon(new ColorIcon((Color)value));
                   else if(value instanceof Font)
                        setIcon(new ColorIcon(null));
                        setFont((Font)value);
                   else if(value instanceof Border)
                        setIcon(new ColorIcon(null));
                        setBorder(new SafeBorder((Border)value));
                   else if(value instanceof String)
                        setIcon(new ColorIcon(null));
                        setText(key.toString() + ": '" + value.toString() + "'");
                   else
                        setIcon(new ColorIcon(null));
                    setText(key.toString() + ": " + value.getClass().getName());
         private static class SafeIcon implements Icon
              private Icon icon;
              private SafeIcon(Icon icon)
                   this.icon = icon;
              public int getIconWidth()
                   return icon.getIconWidth();
              public int getIconHeight()
                   return icon.getIconHeight();
              public void paintIcon(Component comp, Graphics g, int x, int y)
                   try
                        icon.paintIcon(comp, g, x, y);
                   catch(Exception e)
         private static class ColorIcon implements Icon
              private Color color;
              private ColorIcon(Color color)
                   this.color = color;
              public int getIconWidth()
                   return 32;
              public int getIconHeight()
                   return 32;
              public void paintIcon(Component comp, Graphics g, int x, int y)
                   if(color == null)
                        return;
                   g.setColor(color);
                   g.fillRect(x, y, 32, 32);
         private static class SafeBorder implements Border
              private Border border;
              private SafeBorder(Border border)
                   this.border = border;
              public Insets getBorderInsets(Component c)
                   try
                        return border.getBorderInsets(c);
                   catch(Exception e)
                        return new Insets(0, 0, 0, 0);
              public boolean isBorderOpaque()
                   return border.isBorderOpaque();
              public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
                   try
                        border.paintBorder(c, g, x, y, w, h);
                   catch(Exception e)
         private static class ObjectComparator implements Comparator
              public int compare(Object o, Object p)
                   String s = o.toString().toLowerCase();
                   String t = p.toString().toLowerCase();
                   return s.compareTo(t);
         public DefaultsDisplayer()
              super("Default Displayer");
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Box box = new Box(BoxLayout.Y_AXIS);
              UIDefaults defaults = UIManager.getDefaults();
              Set keys = new TreeSet(new ObjectComparator());
              for(Enumeration e = defaults.keys(); e.hasMoreElements(); )
                   keys.add(e.nextElement());
              Object key, value;
              JLabel label;
              for(Iterator i = keys.iterator(); i.hasNext(); )
                   key = i.next();
                   value = defaults.get(key);
                   label = new ResourceLabel(key, value);
                   box.add(label);
                   box.add(box.createVerticalStrut(5));
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(new JScrollPane(box), BorderLayout.CENTER);
              setLocation(50, 50);
              setSize(500, 500);
              doLayout();
              setVisible(true);
         public static void main(String[] args)
              new DefaultsDisplayer();
    }

  • WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION

    We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
    opening Copy Quote for this Form Personalization written.
    For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
    trigger-event: when-new-item-instance
    Trigger-object:copy_group
    condition:when copy_group='ALL'
    Action: showing message.
    The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
    Just I am thinking this overriding by Item level trigger of form.
    Please kindly help me quickly .What I need to do?
    How can I make trigger to Fire?
    Please kindly give solution.....Its very urgent Requirement.pls help me.
    Regards,
    Basavaraj

    Please kindly help me quickly .What I need to do?
    > Please kindly give solution.....Its very urgent Requirement.pls help me.
    Kindly log a SR for urgent issues.
    Thanks,
    Hussein

  • WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION(R12 UPGRAD

    We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
    opening Copy Quote for this Form Personalization written.
    For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
    trigger-event: when-new-item-instance
    Trigger-object:copy_group
    condition:when copy_group='ALL'
    Action: showing message.
    The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
    Just I am thinking this overriding by Item level trigger of form.
    Please kindly help me quickly .What I need to do?
    How can I make trigger to Fire?
    Please kindly give solution.....Its very urgent Requirement.pls help me.
    Regards,
    Basavaraj

    Please kindly help me quickly .What I need to do?
    > Please kindly give solution.....Its very urgent Requirement.pls help me.
    Kindly log a SR for urgent issues.
    Thanks,
    Hussein

  • When ever I right click on the menu item "open containing folder" in the downloads window, it only opens the 'My Documents' folder. It never goes any farther than that. How do I fix this?

    Open 'Tools----downloads'.---Right click on any downloaded file that is available in the list.---click on 'Open Containing Folder'
    Results in opening the My documents folder.
    Not in the folder I have listed in Tools ---Options --- General---downloads---Save files to:

    You can use this extension to modify the menu.
    *Menu Editor: https://addons.mozilla.org/firefox/addon/menu-editor/
    You can also achieve this with code in the userChrome.css file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #context-sendimage,
    #context-sendvideo,
    #context-sendaudio { display:none!important; }</nowiki></pre>

  • MENU item selection does not display drop down in ITS enabled transaction

    Hello,
    We are experiencing a strange behavior between two portal env.
    1. DEV.
    For example we have transaction MM01 display in the Portal via ITS (integrated). The end user can select the Menu Tab and the System Tab and the drop downs appear as expected.
    2. Prod
    Same  scenario as above. Only this time, end user is unable to select the button. The Menu and System Tab dont appear greyed out but selecting it does not display the drop down.
    Material, Edit GoTo Defaults are some of the links under the Menu tab for MM01.
    Very confusing. And this is the behavior in Prod for all transactions. Any ideas on why this is happening would be greatly appreciated.
    The architectural difference is that DEV has no Web Dispatcher versus Prod has the Web Dispatcher.
    We are on EP 7.0
    Many thanks.
    Regards,
    Sunil

    Thanks. Now, I realise this may cause dismay to some, but I have now solved the problem, and just wanted to share my experience with those even less savvy than myself. In Dreamweaver, the Spry css styles are arranged with little or no hint as to which style controls what. I found that there is a rule in the sub-menu styles that controls the little graphic arrows which indicate that there are dropdown subs under the tabs. I had removed these arrows to make way for my background images. However, the rules that control their positioning by percentage were still there, causing my images to display incorrectly. Of course, there was no way anyone could have spotted this and helped me as the fault was in the external spry css file, not the page code. So many thanks to vw2ureg for looking anyway. Regarding the page code, which you have flagged up, would you mind elaborating on what you see wrong here? I'm none the wiser. Many thanks again.

  • Problem when trying to add a link to the left menu item!!!!

    Hi everyone,
    I am trying to put a new menu group on the left menu,with a link in that group for every one.On checking with the customization guide this is what i did
    for one link i did add the following lines in each of the files
    1)xlWebAdmin.properties
    - menuGroup.Misc-Menu=Misc Menu
    - menuItem.Misc-Menu.My-Nomination=My Nomination
    2) xlDefaultAdmin.properties
    - menuItem.Misc-Menu.My-Nomination.link=mynomineefrm?showfrm
    3) repacked the war and the ear
    4) Restarted my server
    When I login into the administration(xelsysadm) page I didnt see any menu item with name "My Nomination" which i am supposed to see.
    secondly it shows the menu item when ever i select some group and click on assign menu item.
    Moreover, when I try to assign this menu item to all users group it gives me this error
    On browser it prints
    Permission Denied to Assign Selected Menu Items
    You do not have the permissions to assign one or more selected menu items.
    on console it prints
    ERROR [SERVER] Class/Method: tcDataObj/eventPreInsert Error :Insert
    permission is denied
    ERROR [APIS] Class/Method: tcGroupOperationsBean/addMenuItems encou
    nter some problems: maoRejections:You do not have permission to insert this obje
    ct.
    ERROR [APIS] Class/Method: tcGroupOperationsBean/addMenuItems encou
    nter some problems: Error occurred while adding menu items.
    ERROR [WEBAPP] Class/Method: UserGroupMenuItemsAction/commitGroupAs
    signMenuItems encounter some problems: {1}
    Thor.API.Exceptions.tcBulkException
    This problem eat my happy sunday :-(, any one has solution for this problem?
    - Also if some one can help on how to link jsp to the new link will be helpful for me!
    Thanks,
    doki

    Design Console > Form Information > add new
    Class Name Organizations.Merge
    Description Move users from one organization to another
    Type menuitem
    Add following to xlWebAdmin.properties, xlWebAdmin_en_US.properties
    Organizations.Merge=mergeOrgs.do?Display
    menuItem.Organizations.Merge.link=mergeOrgs.do?MergeOrganizations
    menuItem.Organizations.Merge=Merge
    mergeOrgs.button.display=Merge Organizations
    Even you have to assign first to System Administrator group
    First go to Manage Group
    Select System Administrator Group
    Select Menu Item
    Click Assign and select newly craeted Menu Item and click Confirm
    These are the steps to see the new menu item. To make this menu item working:
    you'll have to write action class, form bean class and you'll have to create JSPs and make their entry in struts-config as welll as in Tiles-def.xml
    Then your menu item will work.

  • Unable to create Menu Item List Buttons in Forms - Not Working!

    Hi guys,
    I need desperate help since I have been stuck on these for 2 days and I am unable to move forward!!
    I am trying to create a pdf form using Acrobat pro 9 and Adobe LiveCycle Designer ES. Since I am new to this, I have been browsing through numerous sites, forums and tutorials to learn about this. So far, I was able to create the forum with text fields, etc.. I am trying to have a column in my pdf form where the users can simply copy & paste image icons here..I was having difficulty with this already and have done numerous searches in google. In the end, I thought I am better off trying to use the "stamp" tool for this instead of image field. So this is what I did:
    1) I already placed the image icons (that the users will be copying & pasting) on my pdfs so users can simply click on it to select the image.
    2) I added a new bottom to this form which has the short cut to the menu item "copy" function. I labeled this button as 'Copy' and to this button, I added the following javascript for "Mouseup":
    app.execMenuItem("CopyFileToClipboard");
    3) Next I created another button that I called 'paste' and this button executes the "Paste Clipboard Image as Stamp Tool" menu. This button has the following javascript:
    app.execMenuItem("Annots:Tool:StampFromClipboardMenuItem");
    I thought that after doing the above, the user should be able to click on one of the images in the pdf, then click on 'copy' button and in the end click on 'paste' button that will then run an action so user can stamp this copied image to where ever they want in that file. But this is not happening!! I dont why?? Nothing happens when these buttons are clicked. I have made sure that the "Extended features in Adobe Reader..." is enabled and also tried running the above javascripts on my console window to test it and i know that the actual javascript code is not at fault since these functions works when I try the code through the debugger window. But I just cannot figure out why these menu item functions are not working when the buttons I had created are clicked!!! I dont know if what I have done is correct or if there is a easier way to achieve what I am trying to do!! Its a shame there is no simpler way for the end-users to copy and paste images to the columns in the pdf forms.
    please help me understand why the above button are not working....any help will be great!!

    Hi Paul,
    This is further to our email correspondence. I am just pasting your email response here since it may be useful to other newbies like me:
    "Ok here you go ......I had to add the new row via a script object as the new objects are not completely available until the script ends so I cannot resize the new row from teh current script.
    Then when we resize - we have to resize the row, the cells and the image ....we start with all existing subforms then we do it for the new row that was just added.
    Lastly I see that you have a delete row button. This will have to be part of the row otherwise we ill not know which row the user will want to delete .....unless you ask them (which is not good UI design)."
    I was really impressed the way you modified the script so the table height does not change when new rows are added. That did help me in understanding the methods and it will certainly be v useful to me in the future. I have been practicing and getting a hang of LS and I have actually decided to redesigned my form since it appears that trying to have a fixed table height is quite a bit of work each time a row is added, removed or changed, etc... Your advise so far have been v helpful and it has helped me in redesigned the form into a different layout. So far so good...However, I just have a few more clarifications regarding some hurdles I am facing:
    PS: I have emailed you a sample of my new form now so you can have a look at it.
    1) Dynamic Image fields:
    In this form, I have a subform that has a dropdown list and next to this, I have an image field. I want to change the image based on the selection in the dropdown list. I found a few samples and tutorials on this already and I tried 2 different approach for this. One works and the other doesnt.
    Method that works: What I have done here is, I added all the images in the form and have put their presence to invisible. Then using the javascript, I am making the image visible based on the selection in the dropdown list. I found this method somewhere through googling and it works.
    Method that doesnt work: Its similar to the above, but instead of putting all the images in the form, I just inserted 1 image field and then tried to change the url of this dynamic image based on the selection in the drop down list. But this method is not working. I tried inserting this jscript and nothing happens:
    switch (this.rawValue)
    case "1":
    myImages.value.Image.href=http://www.mysiteaddress.com/blah_blah.jpg;
    break;
    case "2":
    myImages.value.Image.href=http://www.mysiteaddress.com/blah_blah2.jpg;
    break;
    The 2nd method does not work. Although I know the method 1 above works and I am currently using it, I am just curious to find out why the 2nd method is not working? Did I get the script wrong or is this feature no longer allowed? I just thought that if the second method works fine, it saves the hassle of putting all the images on the form and then making them hidden. Instead, I just need to put one image field and then dynamically change its image based on the selection. I hope this make sense..please advise..
    2) Changing the background colour of the Dropdown list box:
    I am trying to change the bg colour of the listbox in the dropdown list object (only the listbox bg color and not the whole background color). So, I added the following script to the mouseEnter event and this works:
    var vName = this.somExpression;
    var fieldObj = xfa.resolveNode(vName + ".ui.#choiceList.border.fill.color");
    fieldObj.value = "255,255,225";
    My Problem: The above script works so I dont need to change anything there. But, I also want to add another script to the mouseExit event to change the fill color to its default once the mouse leaves the dropdown lists. Initially, this field has no fill colour and the border fill style is none. The fill color is only added during the mouseEnter event. How do I change the bg color fill back to none during mouseExit after the above script is executed on mouseEnter?
    (NOTE: If you see my form, I have used the above scripts for the dropdown list only in "boxSubform[0]".)
    3) Changing the length of the Dropdown List box:
    I only have about 1.6 inches workspace to add this dropdown list box. However, the length of some lists (list items) in this dropdown list box is actually longer and the remaining part is cut out. So, I added the following script to increase the dropdownlist length and it does not work the way I would have hoped...
    The script I have written so far:
    I added these to the mouseEnter event and it works fine -
    form1.pageSubform.dynamicSubform.Table1.Row1.boxSubform[0].MyDropdown::mouseEnter - (JavaScript, client)
    this.w = "2in";  //this is to to increase the width of the dropdown list
    I added these to the mouseExit event and it works fine too-
    form1.pageSubform.dynamicSubform.Table1.Row1.boxSubform[0].MyDropdown::mouseExit - (JavaScript, client)
    this.w = "1.625in";
    When I tested the form with the above script, this is what happens:
    1) First when you move the mouse over this field, the width increases. Similarly the width decreased when you move away.
    2) So, even if this is clicked, the list box is opened with this 2inch width so thats good.
    3) There are no problems when the mouse is moved over these list items as well. However, this does not look good when the dropdown list item is clicked with its item lists open and then the mouse leaves this area. In this case, as soon as the mouse leaves this area, the mouseExit script runs and hence it makes the drop down list width to shrink eventhough the list items are still open. How do I resolve this? I was thinking about this and I thought the possible way to overcome this is by writing a javascript for the mouseExit event executing something like this:
    if this dropdown list is open,
    then  this.w = "2in";
    else
    this.w = "1.625in";
    I am not sure how to write a jscript for the above?
    (NOTE: If you see my form, I have used the above scripts for the dropdown list in "boxSubform[0]".)
    4) Hiding the alternative row shadowing for hidden columns:
    If you check out my form, you can notice that I have put the "close" button (button to delete table rows) on the left column and I have also put its presence to "Visible (screen only)". The parent table has got the 'alternative row shadow' checked. What I notice here is, when this page is printed, eventhough the first column's presence is set to "Visible (Screen Only)", it still prints the row shadow for this column and it looks bad. How can I fix this? Any help will be great!
    I have already emailed you my new form again so you can have a look.
    Thanks again Paul and I cant thank you enough for your help. I am sooo happy to see such a great support and resources available here since it can be a nightmare for some newbies like me... :-)

  • "Hyperion" menu item does not appear in Excel after SmartView Installation

    Hi to all! When I first installed SmartView, everything was ok - "Hyperion" menu item appeared in Excel and I successfully established connection to Planning and worked with data in Excel. Then, once upon a time I happened to select all data through Ctrl+A in the data form open in Excel and tried to copy it to another worksheet in the same workbook, Excel threw out a message about some serious error and informed me that the Hyperion Add-on would be removed. So it was removed in fact. When I was reinstalling Smart-View, all the installation went smoothly but the "Hyperion" menu item did not appear in Excel again. I tried to reinstall both Excel and SmartView and rebooted the system several times but the Hyperion menu item still does not appear in Excel. Can anyone hint me on how to solve this? Thanks a lot in advance!

    Hi, John! Thanks a lot! Your link led me to the thread in which the last post had the link Re: Smart View errors in Excel?! containing the "low-tech" 's instructions. It was these instructions that pulled me from underwater! Thank you so much and to that guy too! :)

  • "open recent file" menu item - 2 issues / aspects (Mac & Windows)

    regarding the  "open recent file" menu item in the File menu.
    1)   should have a way to "clear recent items".  Most software solves this by appending an item "Clear Recent Items" to the bottom of the list of aliases that springs forth from the menu.
    2) Further, in the preferences it should be able to be set to 0 to prevent the function entirely, not just natural #s 1-99.  This is the case in Windows Adobe REader, and on the Mac it was the case the last time I was able to check, but due to the bugs in 9.1.x regarding the ability to handle a case-sensitive file system I haven't been able to even open the preferences on the mac for a while.

    Michael:
    Thanks for your quick reply.
    Please note that this issue:  "open recent file" menu item that is not clearable, nor is the system preference able to be set to retain 0 files,
    has absolutely nothing to do with the file system issue.  It is just a design choice (or oversight or bug depending on your point of view).
    It is an issue of security/privacy to not have the Reader keep a list of recently viewed files, or to at least allow the user to clear the list.
    Thanks again for your time, interest, and speedy reply.
    Cheers!

  • Actobat 9 Execute Menu Item problem

    I have a new PC with Window 7 and have successfully loaded Acrobat 9 pro - but a lot of the Acrobat functionality is now missing (it all worked under the XP platform). For example, when creating a form, using a buttom with an 'Execute menu item' command is not possible - it's blank actually. As this is the most useful tool within Acrobat forms it's really annoying. I have upgraded to 9.4.1 which is supposed to be Window 7 compatible but no luck. I've unistalled and reinstalled and called Adobe support (4 hours!) and still no solution.
    Can anyone help me?

    After selecting this action you're supposed to go to the actual menus and
    select the menu item that should be executed. This is instead of choosing it
    from a list. Did you try that?

Maybe you are looking for

  • Editing or changing a current page

    How does one delete links that are outdate on a page...

  • Want to transfer CS5 . Have serial number but not product key or discs. How can I do it?

    I have Cs5 on my Mac book but want to transfer it to my new MacBook Pro retina. I have the serial number BUT my installation discs are packed away. Can I retrieve the product key from Adobe ? Do I need it anyway? help would be much appreciated...

  • Lost my HD from Finder

    I have a Hitachi 1T external HD that connects to my MB Pro via USB.  Until the other day accessing the HD was as simple as plugging in the USB cable and opening the drive in Finder.  The other day, my HD no longer appears in Finder, though I can see

  • Aperture - Big Cleanup - Advice Please

    Frank, Kirby, Leonie, William, et al Attached is my Pictures Folder - many libraries and assorted image data.  All of this goes back to early versions of iPhoto as well as early versions of Aperture.  All of this is backed up.  All of the libraries w

  • Slow phone after iOS4 upgrade? Try this...

    I upgraded my iPhone 3G recently to iOS4, and experienced the general slowdown that others have reported. I also had problems with photos not displaying correctly. I deleted and reimported the photos, and that solved that problem, but the slowness an