Hide button bug, feature or doing it the wrong way ??

Hi All,
I'm trying to hide a button via a dynamic action. I've changed the template to include the button attrributes and given the button an ID to reference this in my dynamic action ( DOM Object name = button id ) and also applied this template to the button.
This always seems to work fine until :
If I have a button with position "top and bottom of the region" and in the dynamic action this is the only Dom object which I reference in the hide action.
When I do this only 1 instance of the button gets hidden, the one on the bottom of the region is still shown....
I am able to bypass this by adding another dummy DOM object name to the line of reference Dom objects in the dynamic action ( so the DOM object which is hidden is reference as "button_id,dumm" ), the dummy does not exist but adding this string to the line seems to fix it.
Am I missing something or is this a bug ?
Ciao
Bas
btw this is apex 4.02

When you choose the display position as "top and bottom" , there are two button elements rendered with same properties(that you specify for the button properties.)
If you have two page elements with the same ID(which is a bad practice anyway) ,accessing the DOM using the ID directly will pick only one of them(the first found in DOM, I think) , this is the same behaviour with $x , document.getElementById or jQuery $('#..) methods too and is nothing special about apex.
You can either change the selector to jQuery and jQuery selctor as
[id="button id"]The proper way would be to give it a name attribute or a class property using the "button attributes" field and use an appropriate selector.

Similar Messages

  • Is this a bug or am I using the wrong flags in userChrome.css

    I'd like to have my Bookmark Toolbar automatically hide until I move my mouse over the location. I found some code a while ago to do this, but I never really tried it until now with FF4. When I put in the code and move the bookmark toolbar into the self-hiding panel, it works fine until I open a new window or exit/restart the browser.
    <br />
    <pre>#PersonalToolbar {display: none;}
    #navigator-toolbox:hover > #PersonalToolbar {display: -moz-box;}
    </pre>
    The auto-hide until hover works fine with the box, but the Bookmark Toolbar comes up completely empty. No arrow, just empty space. Every time I comment out the line in userChrome.css, the buttons reappear. When I move the bookmark toolbar out and then re-enable the line and restart, the buttons are fine when I move them back in until the next exit.
    I've tried this on three machines (all Windows 7 though, both 32-bit and 64-bit) and the behavior is the same. I've also tried disabling all add-ons and extensions with no change in the results.
    Is this a bug or am I using the wrong flags (-moz-box)? Thanks for any ideas/help provided.

    cor-el:
    Thanks for the suggestion. I already tried rebuilding that file as well and it didn't help. Also, all the changes I make are retained from session to session in terms of placement and what's shown/hidden, it's just the contents of the bookmark toolbar that disappear. The toolbar is still there and I can drag things to it, but again, they disappear after restarting the browser.
    edit (clarification):
    When I say the items disappear, I mean they are no longer visible or clickable. They are still there in the sense that they appear in the Bookmark menu and if I move the Bookmark Toolbar from its own toolbar into the space next to the Menu Toolbar, they are then shown.

  • Putting a CD & DVD in the Drive? am i'm doing it The Right Way?

    i'm little bit new to this iMac cause i just bought a iMac 24 inch Computer in July of 2009 & i needed to know this, when i put a CD or DVD in My iMac Computer am i'm soppose to push The CD & DVD into The iMac Computer? or is there soppose to be another way? cause when i want to play a CD or DVD I been pushing them in there & i'm not really sure if i'm doing the right thing, so i was just taking pre-caution that if i'm doing it the right way?

    Hi Apple4Ever556: The CD/DVD needs to be pushed gently, approx 75% - 80% into the slot before the mechanism will engage and pull it into the drive.
    Stedman

  • Little problem, the skip button is facing the wrong way!

    as you can see, on the quick access thing in windows 7, the skip button is facing the wrong way. an unusual problem, doesn't affect the funtion of the button. dont know if anyone else is having this problem, might just require a new install.
    let me know if this is just me! or any suggestions?

    WRT the skipping crashes,  there was some posts, that the earlier iPod Classic do crash, when playing song of this format
    mp3/mono/96kbps
    Check if your iPod contains these MP3 format.

  • I took all my video with my iPhone turned the wrong way. When I view it on my pc it's turned on its side. How can I rotate the video and crop it?

    I took all my video with my iPhone turned the wrong way. When I view it on my pc it's turned on its side. How can I rotate the video and crop it?

    Try plugging it into a computer with iTunes opened. If you see anything that says restore, say no.
    Sometimes these issues resolve themselves when you connect the device to iTunes.
    What happens when you hold the home and sleep/wake button? I know it doesn't work, but does it shut off at all?

  • Dialog box: "you removed the device the wrong way"

    iMac + 30 gig iPod. New Mac user here.
    Everytime I start iTunes (by plugging in my iPod), I get the dialog box telling me that I removed my iPod the wrong way and may have lost data. How can I get that dialog box to stop showing up?
    By the way, I always hit the little eject button next to my iPod's name before unplugging it from my computer. Not sure why this keeps popping up. It started after I updated to the latest iTunes software.
    Thanks in advance!

    Well, at the time I was leaving for college. There, I met a girl who inconveniently dragged me around the country for fifteen years. But we're moving to Boston this summer, so we're getting closer.
    I had a similar issue a while ago, and fixed it by just wiping my iPod, doing a Software Restore, and re-syncing it with my library. It wasn't exactly the same (iTunes thought the iPod was connected even when it wasn't), but if something on the iPod is stuck in "I was disconnected improperly!" mode it might help.

  • Photos keep appearing the wrong way round in slideshow!

    Photos which I imported from my old macbook (running 10.4) onto my new imac (10.5.8) keep appearing the wrong way round or stretched out when I play them as part of a slideshow even though in the library they appear fine. Can anyone tell me how to fix this please?
    Thanks

    Yes the plist file is important, but next time you start iPhoto it will create a brand new one.
    This file records various user settings - like the background colour, for instance. If you trash it then when iPhoto re-creates it it simply returns things to the factory default settings.
    Trashing the plist file is troubleshooting 101.
    Also don't understand what you mean by "If you've moved your library you'll need to point iPhoto at it again"
    By default, your iPhoto Library lives in your Pictures Folder. That's where iPhoto looks for it. If you've moved the Library - and I'm guessing you haven't - then you need to tell iphoto where you moved it to. Why? Because that's a setting recorded in the plist file.
    Regards
    TD

  • HT4111 Logitech K810 UK layout problem with @ and " being the wrong way round.

    I have tried this keyboard on Windows 7 devices and they work just fine, but on IOS7, either the first version or the version released today, it remains the wrong way around - i.e. US spec.

    Hi,
    I have a problem with the same keyboard when I start up and hold the ALT key you can select a startup disk this is not working by my keyboard when I use a old keyboard I'ts working again do you have that problem also.
    Best regards Garry

  • I want to install window7 on my macbook pro but i do the wrong way

    I want to install window7 on my macbook pro but i do the wrong way
    my gf she use macbook pro then she want to use windows program so she just put window7 cd then she restart and boot from cd rom and she just format all drive from window7 installer after install mac can start up and can use window7 but cant connect to network or wifi also windows can not find driver
    what should i do now can any1 tell me please or any1 have been same problem ...

    To install Windows you can use Boot Camp Assistant or use a virtual machine like Parallels, Fusion, or VirtualBox. You can't install Windows as you described in your post.

  • When I use FaceTime the picture is the wrong way up. How can I rectify this?

    When I use FaceTime the picture is the wrong way up, how can I rectify this?

    Make sure that you don't have "rotation lock" turned on.

  • Everytime I open a website apart from popular ones, firefox shows ads with open/hide buttons which are not served by the website actually. What to do?

    if i could show you a screen shot.... that would have cleared the situation. ads show up in left bottom corner with open/hide button in a frame. and the same ads show up in every html plugin on the webpage especially in facebook social plugins. however on google, mozilla, facebook, twitter there comes no ad like this. Its very annoying. I recently uninstalled firefox for the same reason but nightly is having the same problem. and let me tell you there is no such thing in other browsers like chrome and i.explorer. I like firefox i dont want to change it but i will have to if the problem persisted. :( please help.

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    please also run a full scan of your system with the security software that you have in place and different other tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Troubleshoot Firefox issues caused by malware]]

  • IPod Classic's Back & Forward Button Work The Wrong Way

    As I was clicking through the podcast episodes on my new iPod Classic 120GB I had to find out that if I wanted to go forward one episode I had to click the back button because if I clicked the forward button it would take me to the previous episode.
    Also when I finish listening to a podcasts episode it does not jump to the next episode but to the previous episode.
    I looked at the settings of the iPod but didn't find any options that would change the behavior of the iPod. I also thought it might be a sorting issue but I couldn't find anything that would change this either, nor could I find any setting in iTunes.
    Is there a problem with my settings or a problem with the iPod itself?

    turingtest2 wrote:
    In the iPod podcasts are organised in reverse order of release date. Most recent first, then the next oldest etc.
    +"It's not a fault, it's a feature"+
    Well it's a very strange feature!
    Seriously, iTunes and the iPod catch and play Podcasts much better than some other Podcast Catchers and MP3 players I've tried but this is one of the few strange "features" about the Podcast capability of the iPod that let it down. Working on the philosophy that "even if you are ahead, don't stop trying to improve" Apple should at least consider the following:
    1. User facility to reverse the play order of Podcasts
    2. An indication that only part of a Podcast episode has been played (in addition to the existing blue {unplayed} spot)
    3. Indication of the "episode time" in the menu, (so that I know if I have enough time to listen to that episode. One programme can have episodes of very different lengths.)
    ... and yes, I have put these in as suggestions.

  • Adding buttons to multiple frames -- is this the best way to do this?

    In CS5, I want to create a series of buttons that when clicked will linked to other frames in the same timeline. So one button will link to frame 5, one will link to frame 10, one will link to 15, etc. All the buttons will appear across the top of the stage on a layer, and I want them to appear on all of the frames so the user can click back-and-forth to the different frames/screens.
    1. Is the best way to do this to just add the buttons to frame 1 and add a keyframe to the last frame in the timeline, frame 15, so they are copied to all the frames in between?
    2. Are there any issues with doing it this way?
    Thanks!!!

    Just have the one keyframe in frame 1 and extend it to frame 15.  You do not need/want another keyframe at frame 15.

  • Doing something the DAQmx way that doesn't fit? (Triggered counter on PXI 6608)

    Hi,
    I want to create a counter with my PXI6608 that is triggered with an external input, then counts up. I then want to be able to read the count in LabVIEW and hence determine the time since the trigger. I have achieved this before with old-style code, but it is not clear how to do it the DAQmx way. In particular, I can't create a task because what I'm looking to do doesn't seem to fit in with any of the pre-envisaged DAQmx task templates.
    Can anyone help? I'm assuming there's some way to create an 'empty' DAQmx task so I can fill in the details with property nodes?
    Cheers
    Lee
    Solved!
    Go to Solution.

    You'll want to make an edge count task and set the source to be one of the internal timebases using a DAQmx property node (set it before starting the task):
    The trigging functionality you're looking for is called an "arm start trigger" in DAQmx.  It's configured through a property node (also before starting the task):
    I'm not sure what you're getting at with regards to the "empty" DAQmx Task.  Typically you'll use the standard API to set typical properties and the property nodes for more advanced functionality so you'll end up with a combination of the two.  In many cases you could replace the DAQmx API with property nodes (for a fun example of this, open up the DAQmx Timing VI), but odds are you might be forgetting something important so I would always suggest using the VIs and then tacking on property nodes for additional functionality when necessary.
    If you're using LV 2012, this example should get you started (or if not, the picture still shows you what the task would look like).
    Best Regards,
    John Passiak

  • CS2 - 6D art pen brushes rotate the wrong way

    I'm wondering if this is the normal behaviour of the 6d art pen brushes that come with Illustrator CS2. When I use them with my 6d art pen, they rotate in the opposite direction as I rotate my pen. Does anyone know a way around this? The pen works fine in Painter and Photoshop.
    My setup is Macbook Santa Rosa 2.2 Ghz, 4 gb ram, windows xp home sp2 (up to date), Cintiq 12 WX with the 6D art pen (art marker).

    Dear CS3 and CS4 photoshop users,
    I hope I can straighten out the whole confusion with the 6D art pen ROTATION feature not working. (not a solution but clarify)
    Although we appreciate all forms of opinions, I have a message for people saying that rotation feature will work when you set the brush settings correctly. WE_ARE_NOT_NEW at this. Many of us have been using the rotation feature with CS3 perfectly fine, and yes, we know how to set it up. Thank you for your tips but IT IS NOT working as it should. I don't know whether it is defendant with: x64 or x32 syst on our part, driver problem with wacom, or in fact with the CS4. I will tell you what I did and what I got however.
    X64 Vista Ult. 6G RAM, Quad core, both Intuos 3 and Cintiq 20wsx.(Cintiq is my primary and the only one I use now a days and I don't have both plugged at the same time. However, I have tried with Intuos3 separately, and it won't work) I uninstalled old wacom driver and updated to the latest (5days old), remade brush settings fresh with rotation setting (not just using my own saved preset from CS3) and it still WON"T WORK... so there it is. Hope this clarifies the issue so that the TECH can help us (please) and not think that we are all confused.

Maybe you are looking for

  • Using ipod mini power adapter for nano?

    I just got an ipod nano and I have a few questions: I noticed that it doesn't come with a charger (or power adapter?...not sure what it's called) which I thought was unhandy for traveling because then I can only charge it through a computer and I won

  • Unable to clear Keywords metadata value

    Hello, I'm trying to clear the keywords metadata field using the following code but it doesn't work as expected. No errors just doesn't clear the Keywords field. var xml = new XML(doc.metadata); var nsrdf = new Namespace("http://www.w3.org/1999/02/22

  • ERP System credibity.. Aging issue.

    Hi , ERP system creditbilty is at stake as quoted by my client when issue was encountered regarding thousands of customer invoices. Payment term was made using Posting date as default for baseline date. When invoices were raised the system didnt pick

  • Manupulating high resolution Dicom image make a problem

    hi friends, i m working on dicom viewer project, when i rotate its threr size automaticlly srink in irreguler behaviour<p>this problem comes only on CR Modality image</p>as u know this type of images have much much more resolution than our screen <p>

  • Syncing ipad with existing iphone

    If you read my first question, I did get my ipad reset back to where it was when brand new. I'm still having problems figuring out how to sync it with my iphone that's backed up on iTunes. Should I "choose to set up as new iPad" or "restore from back