Column going from Readonly to Editable with the click of a button.

Hi,
I am building an app where users will have to input some data in certain colunms, once the user finishes the data entry he will have an option to finalyze his report by clicking on a button. I am having trouble with the part of switching from a textfield to a readonly field. I ave tried to do ti through a select SQL with the APEX_ITEM.HIDDEN and APEX_ITEM.TEXT but i keep getting an missing expression error.
Here is the code:
SELECT
APEX_ITEM.HIDDEN (1,a."VueR") || a."VueR" Condition,
CASE (a."VUER")
WHEN "-1" THEN APEX_ITEM.HIDDEN(2,a."ID_ELE15") || a."ID_ELE15" TESTLABEL
ELSE APEX_ITEM.TEXT(2,a."ID_ELE15") TESTLABEL
END
FROM Budget_Main a
WHERE upper(a."User_Director") = :APP_USER
OR upper(a."User_Line_Manager") = :APP_USER
With the column attributes i was able to make the column disappear once the button is clicked, but i want the user to be able to see his work .
Thank you for the help.

Hello:
I am assuming that the query you posted is for a tabular form. With that said, you can use the query below
SELECT
APEX_ITEM.HIDDEN (1,a."VueR") || a."VueR" Condition,
CASE
WHEN a."VUER" ='-1' THEN APEX_ITEM.DISPLAY_AND_SAVE (2,a."ID_ELE15")  --- Display Only
ELSE APEX_ITEM.TEXT(2,a."ID_ELE15")                                                        --- Allow Edit
END TESTLABEL
FROM Budget_Main a
WHERE upper(a."User_Director") = :APP_USER
OR upper(a."User_Line_Manager") = :APP_USERVarad

Similar Messages

  • Everytime I open Safari on my MacBook Pro a pop-up window from my Finder menu, with the Applications highlighted on the left in the favorites column with the Resources folder highlighted comes up and locks my Safari page until I manually close the Resourc

    Everytime I open Safari on my MacBook Pro a pop-up window from my Finder menu, with the Applications highlighted on the left in the favorites column with the Resources folder highlighted comes up and locks my Safari page until I manually close the Resources window then I have to refresh the internet search address line at the top of Safari. Can someone tell me how to stop this. It started after a software upgrade. It didn’t do that before. Thank you.

    A few thoughts for diagnosis/testing purposes:
    Have you recently run the disk utility and repaired HD and permissions? If not do so.
    Boot into the Safe mode - hold down shift key on boot - and see if the problems are still there. Some functions won't work but see if anything odd happens.
    Check your startup items. Get rid of them temporarily.
    Create a new user account and see if the problems occur with the new account.
    Lastly, be sure your backup is up-to-date.

  • Retrieve all column data of a table along with the number of records received

    hi, i want to select all the records from a table along with the number of records received as i need to use that number in a loop  to retrive data from another table
    can i use 
    SELECT @emp_id=emp_ID, @emp_NAME=emp_NAME,@RowCnt = (select count(*) from emp_id) order by emp_id

    i tried your idea, i get error in at the over() . I am using sql compact edition and i guess it is not supporting over() function. But i am still going to use the code for example something like this assuming it will work in real time with
    enterprise edition. Please let me know what i am going to use is correct or not?
    SELECT [EventID],[BallroomCharge], @rowcnt=count(*) Over()
    FROM [testSample].[dbo].[Events]while (@rowcnt > 0)perform some request

  • I want the Genius recommendation column back.  Is this possible with the latest iTunes?  If not, this was a poor decision to remove it :/

    I want the Genius recommendation column back.  Is this possible with the latest iTunes?  If not, this was a poor decision to remove it :/

    Hi,
    Genius recommendations are available in the itunes Store.
    Jim

  • The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the

    When i tried to login in inbrowserediting.adobe.com i see that:
    The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user.
    What does it mean? What is problem?

    Hi,
    I have just created my First website using Muse and Its all been uploaded to my FTP server but i cant access the in browser editing which was the whole reason why i re-done the website for my client using muse
    its saying the following
    "The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user. server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user."
    Yet i Can access my website fine "www.calmwood.com.au"
    My ftp server responds to either the IP Address or the DNS Address www.calmwood.com.au
    so i am not understanding how it thinks its different. when its fully referenced
    any help would be appreciated.
    thanks

  • My iPad screen has gone black.  I have tried resetting it with the sleep and home buttons and it only flashes the apple on the screen for a nano second and then it goes black again.  I can even hear notifications arriving, but I cannot see anything...

    My iPad screen has gone black.  I have tried resetting it with the sleep and home buttons and it only flashes the apple on the screen for a nano second and then it goes black again.  I can even hear notifications arriving, but I cannot see anything...I'd rather not reset it to the factory settings as I have a lot of things I worry about using.  Either way seems to me that the system itself is working since I can hear it working, but its the screen that isn't.  It has not been dropped and has been in a case for years!  Please help!

    When the power is on and I press the home button, I can slide my finger where the slider bar "would be" and it makes the noise as if its "opening" flashes a blue screen then returns black...

  • Can't Zap the P-RAM , Can't start from an installer disk with the C-Key...

    Can't Zap the P-RAM , Can't start from an installer disk with the C-Key... or The D-Key for Apple Hardware test or run with the shift Key in Safe Mode!!!
    About a week ago I started to have problems with the Mac after 10.5.6! First the Mac after shut down would restart on its own in 10 to 15 minutes. I read in various forums about some of the 10.5.6 problems. I did a clean reinstall where the Mac created a previous system folder. After this suddenly mail, I-Chat as well as some other programs would open, then close immediately! Since I did not have things backed up because I didn't have a large drive, I dragged my files and apps to another drive and reformatted the drive zeroing out all data and did a fresh new install then brought in the combo 10.5.6 update.The Mac is running correctly but I can't Zap the P-Ram, startup from the Mac OS X installer Dvd with the C key or run Apple Hardware Test with the D key or boot in safe mode with the shift key. I can boot any of the Bootable disks from the start-up Disk in Preferences.
    I went over this with Apple and they suggested I run the Apple Hardware test. It won't run on this machine because I can't boot it with the D- Key. I ran tech Tools and every single thing checks out OK! This Mac has worked great since I got it in I believe Feb or March of 2007.

    Make sure that you don't have firmware password protection enabled. It will prevent some boot key shortcuts from working, like clearing NVRAM, etc. You can disable firmware password protection by booting off the OSX DVD and loading the utility.

  • My MacBook Pro will not start. When I started it goes to a gray screen with the Apple logo and has the spinning dial. When I started in safe mode it will not start. In safe mode it as an error message that says MacBook Launch_msg():Socket is not connected

    My MacBook Pro will not start. When I started it goes to a gray screen with the Apple logo and has the spinning dial. When I started in safe mode it will not start. In safe mode it as an error message that says MacBook Launch_msg(): Socket is not connected

    If running 10.7 or later hold down Command-R at Startup.
    This should invoke recovery Mode.
    Choose Disk Utility.
    Select your Hard drive. Inspect the SMART Status in the lower right of the window for "Verified".
    Select the Mac OS X Volume (originally Macintosh HD) click (Repair Disk)
    If errors, run again until it comes clean or gets stuck.
    Report any error messages.

  • HT4757 Is there ever going to be RAW compatibility with the Panasonic Lumix DMC-FZ28 added to Aperture 3?

    Is there ever going to be RAW compatibility with the Panasonic Lumix DMC-FZ28 added to Aperture 3?
    It's a good camera which I think has been overlooked in this area?
    Any advice you good people?

    Hello,
    I don't know when but you can send a message to Apple so they can add that in a next update (not 100% sure but you can try).
    Go here : http://www.apple.com/feedback/aperture.html and in the Feedback Type select : Harware compatibility.

  • Hi, I am working with CS6 Design Standard for Mac, I bought from Adobe a DVD with the Software. I installed it already on my mac book. Soon I wanna buy a second computer for my work. When I bought the software I was told that it is possible to install the

    Hi, I am working with CS6 Design Standard for Mac, I bought from Adobe a DVD with the Software. I installed it already on my mac book. Soon I wanna buy a second computer for my work. When I bought the software I was told that it is possible to install the software on a second computer. But I also read lately that I will only be allowed to work with one computer. I want to work on both of my computers without de/installing and de/activating the software every time. Is this possible? Thank you!!

    You should be able to install the products on two computers as long as they are not running at same. Also the platform should be MAC.
    You may download the product from
    Download CS6 products

  • How do I delete apps from my iPhone 4s with the iOS 8 updates?

    How do I delete apps from my iPhone 4s with the iOS 8 updates?

    You simply need to press and hold the app icon on your home screen until it "shakes", then press the red icon to remove the app.

  • I have problem when transferring book (PDF/Epub) from Computer to iPad with the new iTune? Please Help....

    I have problem when transferring book (PDF/Epub) from Computer to iPad with the new iTune? Please Help....

    With iTunes 11 you can enable the left-hand sidebar via control-S on a PC, option-command-S on a Mac. If you are trying to get it to the iBooks app then with the sidebar enabled the process should be similar to how it was on previous versions of iTunes e.g. add it to your iTunes library via File > Add To Library, connect the iPad and select it on the left-hand sidebar, and then use the Books tab on the right-hand side to select and sync it to the iBooks app.

  • I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 on the page Am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 spaces on the page. I am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I do the following: Hold down the command key and highlight all the items to be reproduced. Then hold down option and drag the items from the first to each subsequent card.

  • I have the problem with the eFax Create Account button being grayed out for my newly purchased 6525.

    I have the problem with the eFax Create Account button being grayed out for my newly purchased 6525.
    Can you help?

    Hi Marv13, disregard my last post. The 6520 does have eFax capabilities and the support document I provided a link to needs updating. If you contact HP Cloud Services phone support they will be able to resolve this issue for you. The number and available times are posted below:
    HP Cloud Services
    1-855-785-2777
    Hours of Operation
    Monday-Friday 8am-11pm ET
    Saturday 10am-6:30pm ET
    Best.
    If my reply helped you, feel free to click on the Kudos button (hover over the "thumbs up").
    If my reply solved your problem please click on the Accepted Solution button so other Forum users may benefit from viewing the post.
    I am an HP employee.

  • I just uploaded the latest IPad software to my IPad and am now having loads of trouble with the device recognizing "online buttons", that is, links, etc.

    I just uploaded the latest IPad software to my IPad and am now having loads of trouble with the device recognizing "online buttons", that is, links, etc.  what can I do?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    -  Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

Maybe you are looking for

  • How can I get back an itunes gift code redeemed by the same gifting account?

    I gifted an aplication that I already owned to mi mail so I could resend it as needed to someone else. I tried right clicking in the redeem button to get the code but instead it opened itunes and automaticaly started downloading the app even wen I al

  • How to get data in a line in reporting from 2 data sources

    Hi my infocube gets data from 2 datasources and once the data is loaded into infocube , its show the data from 1st datasource in one line and shows data from 2nd datasource in second line my requirement is to show the data in reporting in a single li

  • Mp4 files cant view video only music. nokia 5530 h...

    help pls. what must be the application that suites on my phone. my mem card got virus and need to.format it. then all files gone. please help can play mp4 files. thank u.

  • While creating  the purchase order

    Hi all, While creating the purchase order I am getting error like No account assignment to customer order (Not Active in co area 1100, Year 2007) please help me out from this problem Thanks and regards, Sreekanth Lokaray

  • [solved] Can grub2-efi chainload a bios target?

    Hi, my laptop runs arch in efi-mode which works fine for me for everyday use. However (its summer break) I would like to install windows for some gaming. Since my internal hard drive is occupied by linux and data, I tried to install to an external ha