Can't change DataTable properties the first time the table is loaded.

Hi all!
I just want to change dynamically the value of columClasses in my DataTable with dataTable1.setColumnClasses(mystylesheet). It works fine when i use any link or button on my page, but the first loaded, the dataTable never change. I put my code in the constructor, in the beforeRenderResponse(), in afterRenderResponse(), without success.
Any idea ?

Hi,
Here are the steps I followed:
1. Added the following lines in the stylesheet (created a new class)
.column-appearance {
background-color: cyan
2. Dragged and dropped a datatable
2. In the constructor of Page1.java added the following line of code
dataTable1.setColumnClasses("column-appearance");
3. Save and run the application
4. The datatable is rendered with the columns having cyan as the background color
Is it the same as what you are trying or having I missed out anything???
Cheers
Giri :-)
Creator Team

Similar Messages

  • How to make a program that will ask for a name the first time the program is used and if is not the first time will not ask the name?

    I want to make a program that will ask for the ID of the testing machine the first time the program is running, then will never ask for it. I'm using Labview 6.0

    Hi
    There are a Couple of methods you can use for this.
    Method 1 -
    You can create an ini file and save a boolean Key "First Instance" as True. Now In your Program you read this Key, If it is True then you can show your ID Dialog VI.If False do not run the VI. At the Conclusion of Id Dialog you can update this registry enrty to False. So In effect you have created One time Event. In fact you can save ID as another Config entry.
    The Drawback and advantage is that such an INI file can be edited by someone moderately knowledgeable about the Program
    Method 2
    Use Unitialized Shift Register in A while Loop. Please see LV2 style Globals entry under this forum. You can read and write to this Variable and it retains the Value it last had within it.
    You can read
    this Global the Very first time and say if it true you display your ID Vi. If False you dont. When you display your ID Vi you can Update your Global Like Before.
    If you need Example Let me Know.
    Good Luck
    Mache!!
    Good Luck!
    Mache

  • When I plug my device into the computer for the first time the setup process doesn't begin. What do I do?

    When I plug my device into the computer for the first time the setup process doesn't begin. What do I do?

    Try to connect in recovery mode, explained in this article:
    iOS: Unable to update or restore
    Before that, back up your device, explained here:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    How to back up your data and set up as a new device
    You can check your warranty status here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • The query just run the first time, the second doesnt run

    The query just run the first time, the second doesnt run, i checked it in the SM50 and appear this msg:
    CL_RSR_CACHE_BO_FF============CP
    its not a problem of indexes, i repaired it but its really weird cause the first time the query run ok, the second doesnt, it seems that the cache is confused or i dont know, help guys, i'll really appreciate it

    I was watching the notes, its really weird when i load the cube and execute the query for the first time, its ok, to the second stay in cache, but i was watching that the cube doesnt allow me activat the BD statistics, i dont know if this is necesary to improve the performance of the query, what i know is this:
    1- before i create a Hierarchy for an infoobject thta is in the cube ,  the query used to run ok. Now when i load the first time and execute its ok, but the second stay in cache.
    2- now i can activate the statistics for the cube, the indexes are ok, i checked for the RSRV and all is ok less the statistics.
    what can i do help friends...

  • Photoshop elements 12 won't load up on my PC. The first time I try to load it up I get a large egg timer, which lasts about 3 seconds. The programme then closes and if I try to load it again I get the circular icon which spins for 1 second and disappears.

    Photoshop elements 12 won't load up on my PC. The first time I try to load it up I get a large egg timer, which lasts about 3 seconds. The programme then closes and if I try to load it again I get the circular icon which spins for 1 second and disappears. I've tried rebooting several times but nothing happens. Please help!

    Hi,
    Please try resetting preferences?
    On Windows: Goto %appdata%\Adobe\Elements Organizer\12.0\Organizer folder and rename the files “psa.prf” (to say psa_old.prf) and “status.dat” (to say status_old.dat).
    Try launching Organizer and see if it launches fine.
    Thanks
    Andaleeb

  • In setting up for the first time, the appletv will not let me submit my password

    I am setting up appletv for the first time.  After entering my password, I try to submit and it does nothing.  Do I use the center select button for the submit?

    Meredith199,
    does your MacBook Pro have an Eject key (⏏) in the top-right corner of the keyboard? If so, does pressing Control-⏏ show a restart/sleep/shutdown dialog box?
    If you press Shift-⌘Q, does your MacBook Pro recognize that as an attempt to log out?

  • Why is it that whenever i rate a song in iTunes for the first time, the volume slightly decreases?

    - i mean, THE volume of THE song. not the computer volume. or even the iTunes volume.
    - i swear, there's nothing wrong with my headphones. I checked!
    - when i rate the song the SECOND time, nothing happens. the volume doesn't decrease. or even increase.
    - What can i do about this?

    Same thing happens to me - drives me f-ing nuts. I assume it is some kind of sound check related bug.

  • After shutdown I have to log in twice.  The first time it starts to load, then goes black, then gives me login page again.  Do you think I have a virus?  Or is this Yosemite bug?

    Just updated to Yosemite on my MBP.  After shutdown now when I login, it starts the process (the bar starts to move), then the screen goes black, then it asks me to login again and this time it is a successful startup.  Is this a Yosemite bug or do I have a virus?  I also have some funny tiling on the screen at youtube and some other websites.  Another bug? 

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Also see:
    Reinstall OS X Without Erasing the Drive
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • HT4009 I bought gems for the game The Tribez. i bought them twice thinking i didnt submit the first time. the money has come out of my account but no gems. how do i get my gems.

    I bought gems in the game The Tribez. i bought them twice thinking i didnt submit them. when i looked into my account, the money was gone but i never recieved the gems. how do i get my gems.

    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    iTunes Purchase Problems: How to Report a Problem to iTunes Support
    http://tinyurl.com/7tscpa7
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Getting Refunds for your iTunes Store Purchases
    http://www.labnol.org/software/itunes-app-store-refunds/13838/
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • The first time I try to load video on BBC website, firefox crashes. When I restart it, the video loads. This happens EVERY TIME I start a new internet session. WHY?

    I am using a mac, and every time I turn it on, load the BBC website on firefox and then try to load a video there, firefox crashes. I select restart from the two options provided, and when it reloads the BBC page, I can watch that video and any other on the site without problems. Then, if I shut the mac down and turn it on again, the problem once again occurs. Is this just a bug in firefox?

    Do a clean reinstall and delete the Firefox program folder before (re)installing a fresh copy of the current Firefox release.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 20.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible, to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will lose all personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *(32 bit Windows) "C:\Program Files\Mozilla Firefox\"
    *(64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.
    If you keep having problems then also create a new profile.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • When I launch Finder for the first time the same folders are always open

    Hi. When I first boot up and launch Finder the same folders are always open on my boot drive. I close them all and continue to work on the computer, opening and closing folders as needed for that day's projects until I quit for the day. But the next time I start up (normally the next day) the same exact folders are open on my boot drive when I first open Finder or if I just double-click the drive. I've tried switching accounts and then back again and trashing Finder preferences, making sure every single folder is closed before I shut down, but the folders continue to show up as open the next time I boot up my Mac Pro. Any ideas anyone?
    Mac Pro 2.8 GHz Quad-Core Intel Xeon / OS X 10.6.8

    Thanks for your suggestion. In the meantime I contacted support at www.bombich.com (creator of Carbon Copy Cloner) and told them what I was thinking about doing and they suggested deleting the hidden .DS_Store files in the folders remaining open. This is the explanation they gave me:
    This file, created by the Finder, keeps track of folder view options, icon positions, and other visual information about folders. A separate .DS_Store file is created in each directory about that directory.
    So I went online and found the Terminal commands for showing (and hiding) hidden files and trashed, one by one, all the .DS_Store files in the folders that were remaining open and that did the trick. I've tested Finder several times on relaunch and reboot and it's working perfectly again. Folders remain closed as I've left them before shutting down. Big relief. And I've learned something about .DS_Store files.
    Thanks to you and Eric Root for your replies and suggestions. They are appreciated.

  • F380. When printing the first time, the preview image shows the same old document

    I have a HP Deskjet F380 All In One. The OS of my laptop is Windows Vista, provided with the latest updates. When after starting the laptop, a first print order should be executed, after pressing the PRINT button, the preview window shows not the concerned document, but a very old one. The printing order will be corrected finished, however the old document preview remains somewhere. I am looking for a way how to remove that old document from the preview.

    Some of the troubles with printing could be addressed in the system update:
    •Mac OS X 10.6.8 Combo Update v1.1
    http://support.apple.com/kb/dl1399
    {Usually if there were printer drivers (often are) for all of the main brands
    of printers, these Combo updates included them; plus later or more
    recent versions of these, are available from the maker's support site.}
    I'm a bit curious if you'd tried a second-user account to see if (once set up
    from scratch) that would give you some other information on how to go in
    and re-set your main user account's print settings.
    Some basic system issues can be resolved by simple things, such as in
    the use of Disk Utility's 'repair disk permissions' that can affect almost all
    things a user can do in the system.
    •OS X Printer & Scanner Software Available for Download:
    support.apple.com/kb/ht3669
    •Mac printing and scanning on HP Support Forums - BoardReader:
    http://boardreader.com/fp/HP_Support_Forums_1153782/Mac_printing_and_scanning_22 27042.html
    [About old MacBooks, I can see by the OS X version that it could be
    almost any MB prior to 2010 that could run Snow Leopard. My old
    MacBook1.1 (coreduo, first edition MB 2006) can run it, but isn't.]
    Been several years since I used an HP all-in-one, it worked OK until one
    day it would not print. It pretended to print, the heads went back & forth;
    but no ink came out. New cartridges, almost new HP device; checked
    drivers (got newest) and as the unit was new-old-stock, the warranty was
    gone in short order. A relative bought it ahead of need; clock was ticking.
    So my current AIO is an Epson, bought it new at 55% off. Even has a
    real phone modem for the fax. And it does OK prints. Not as good as
    my older Epson photo printer, whose inks are harder to find now.
    Anyway, hopefully you could fine the helpful paper usually included with
    the HP printers, a quick reference set-up guide; they have Mac info, too.
    Good luck & happy computing!

  • I installed itunes on my hp netbook.  Opening items for the first time, the user agreement does not show an "accept" button to accept the agreement and use itunes.  Have reinstalled twice with the same result.

    Is itunes compatable with HP netbook?

    If the netbook has less than 768 dpi vertical resolution, the "Accept" button will be displaying off the bottom of the screen. (I'm afraid, if so, you'll run into similar trouble when trying to make preferences changes.)
    With any luck, the "accept" button although not visible on your system might be the active one. If you hit your enter key does the setup proceed beyond the liscensing agreement?

  • When I type the text in the google search box the first time the text is visible. Then if I try to type the text again for another seach or query in the text box, the typed text is not visible and it is visible only if I highlight the whole text.

    I can send you an attachment of the screen but you have not given the option of adding an attachment.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Advanced edit hyperlink-properties grayed out the first time

    advanced edit hyperlink-properties grayed out the first time
    Sub Problem:
    When using the advanced edit cursor, right click Is used to select a hyperlink-properties the first time the dialog box pops up it does not have “focus” (not sure that is the right term, but the box is grayed out and will not respond to the keyboard.). It must be mouse clicked to get focus. The second time a link is right clicked to properties the popup responds to the key board and will move to the action tab with ctrl-tab
    It’s not clear to me where the acrobat program is at that point.
    Is that a known action or problem with acrobat pro 9.4.4?
    Is there a key or keys from the keyboard that can force focus to the box?
    The problem is each file I open I have to manually find a link and right click it to get the box then click in the box to get “focus”. After the first one the box pops up with focus.
    John
    Main Problem:
    I have been working on converting a set of pdf files with 1000’s of hyperlinks like www.site.com\folder1\file1.pdf#page=10
    To jump to a local copy of the files with a relative type link
    ../folder1/file1.pdf and then go to the proper page.
    I have found that it can be done manually by changing the hyperlink to a javascript
    var otherDoc = app.openDoc('../folder1/file1.pdf', this);otherDoc.pageNum = 10 - 1;
    and setting each destination file with a disclose()=true;
    Based on the help so far that java script cannot access the hyperlink value in a link
    See: http://forums.adobe.com/thread/1039908?tstart=60
    I have resorted to the following plan using acrobat javascript, an external keyboard macro recorder and excel in combination to get around the problem
    Four folder level acrobat javascripts with “buttons”
    One to get all the link quads in an array, in the pdf and report the total number
    The second creates a form field in the far corner of the first page and moves there.
    The third jumps to each link found by creating a form field just to the left of the link and zooms in so it can be selected by a “mouse click” from the keyboard macro recorder 
    The forth deletes the form field
    The keyboard macro recorder runs javascript 2 and then 3 then clicks on the link just to the right of the middle of the screen and uses keys to get to the advanced editing to get to edit the hyperlink .
    The hyperlink is then copied to excel where it is converted using string functions to the needed javascript text to be copied back.
    To the acrobat file into a java script (after deleting the hyperlink)
    Rinse/lather/repeat
    I have been able to convert about 150 links an hour.
    Better then hand typing, but not like having java access to the links.
    I am looking to improve the solution

    Rick,
    I didn't intend to say you must close the X box after each
    apply. It's OK to apply one change and go to another item before
    closing the dialogue. It's the OK button that messes up sometimes.
    Even when you hit the Apply button for a very large selection
    of topics, the OK button sometimes will undo the apply, not
    necessarily for all selected topics. Even when you've made just one
    batch change.
    I think it's because OK tries to re-set all settings (that's
    why it takes forever), but does not correctly pick up the mass
    changes previously applied. Or maybe it takes forever because it
    can't find the new info and defaults to the existing settings.
    A pain in the butt when you're trying to apply a stylesheet
    to a very large number of topics. Please don't ask me to define "a
    large number."
    Maybe it's a space limit in RH, similar to the space limit
    for the number of characters in a batch of file names you want to
    import. Or maybe the OK button doesn't look in the right places.
    Harvey

Maybe you are looking for

  • What is the diffrence between Row id and primary key ?

    dear all my question is about creating materialized views parameters (With Rowid and With Primary kry) my master table contains a primary key and i created my materialized view as follow: CREATE MATERIALIZED VIEW LV_BULLETIN_MV TABLESPACE USERS NOCAC

  • What was your first experience owning a laptop?

    For many its a dream , for others looking around, its a sign of becoming envious one of these days, what was it like for you when you got your first laptop, and what kind was it? What was the reaction of others around you when you had it out in publi

  • How to find Account Payable Accounted Status

    Dear All, I need to find the Account Payable invoice screen contain general table contain field 'ACCOUNTED' how to find this field in database. Regards

  • Minor AIFF Sound Effect

    I realize this is a minor problem but I have an Sound effect in iMovie 6.0.3 , along with many others, and it will not burn in my iDVD project. Not to a DVD or Disc Image, nothing. I remove it from iMovie and it will burn in iDVD. I realize this is t

  • Where is mail going

    After three years, my Mail finally bit the big one and on advice of another person, I threw away my Pop folder in LIbrary-Mail. Everything came back working, and I still have my old e-mail, but without the folder in LIbrary-Mail, I don't know where i