make a column in tab form readonly but writable when you press Add the line
Hi allI have several pages with tabular forms based on a single table with an ID as the key primary and filled with a sequence by a trigger. So far so good. Now, I also have the 'significant primary key', presents a second column that has a unique key constraint. Now, I want to make this column readonly tabular form for all records already there and I want to do is return to writing when I push add line. So in fact, a user can insert this 'unique key', but then he can't change it more.
I already tried to use java script as
< script type = "text/javascript" >
$(document) .ready (function () {}
var arr1 = $("td[@headers=ART_ID]");
for (i = 0; i < arr1.length; i ++)
{
If ($(arr1_).html() == null | $(arr1[i]).html () .length == 0)
{
{$(arr1[i]).each (function ()}
$(arr1[i]).readOnly = true ;}) ;
}
on the other
{
{$(arr1[i]).each (function ()}
$(arr1[i]).readOnly = false ;}) ;
}
}
});
< /script >
But this only works with the "disabled" attribute, but then I had the problem that I can't introduce any line.
Anyone with a solution for this?
Thank you
Erwin
O.K.
so you use javascript to loop on columns and set the attributes of cells to all that. You're right, disabled will cause the error message "no data found" to appear (I've had this a few days ago and first I wondered why :)).
Of course, readonly works. You just need to write a little different:
$x('f01_0001').readOnly = "readonly";
and it will do the job.
See this example:
http://Apex.Oracle.com/pls/OTN/f?p=31517:213
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------
Tags: Database
Similar Questions
-
audio source, but not when you drag on the timeline
Hello
I was just change some videos taken with a digital SLR, and the audio is in the source, but not when you're dragging to the timeline?
I see there is an option to select drag video or audio only, but I can't select audio...
No help with tis please...?
Kind regards
Sabine
-
Tab 2 A7-30 crack when you press the back cover
I had 2 tab 7-30 a couple of days and I noticed that when I pressed the back cover with my finger, I hear a strange crackling. So there is a cavity in the back... Is this normal?
I don't know if this is a defect, but the Bank just called me and they are replacement
-
I'm develpoing apps using the SAPI, TAPI, however, I'm stuck with a fundamental question... when I dial a number, I can hear the ringtone on the speakers of the laptop... and I can hear the person on the other side as well... but he can't hear me... and as soon as the others left up to the 'Phone dialer' pcks pops up a window with two buttons... 'Talk' and 'Hang up', when I press the talk button, the line is automatically disconnected. Pleas help to solve this problem...
Hi abhi.jeet,
Thank you for visiting the website of Microsoft Windows Vista Community.
The question you have posted is related to application development and would be better suited to the MSDN Community. Please visit the link below to find a community that will provide the support you want.
http://msdn.Microsoft.com/en-us/default.aspx
Hope this information is useful.
Jeremy K
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
We have virtual machines on one of our groups that show alarms, but when you click on the tabs, alarms, or tasks and events there is no corresponding alert.
Can you try to make a vmotion host and see if it gets resolved? If not, can you close the virtual machine and start again? I have seen this problem before and a stop and start resolved.
-
When you look at the performance of a virtual machine, when you make a graphic of 3 months it appears correctly for the first two, but the last month is compressed.
Hello
When you say that the last two months are compressed. I do not have what exactly you mean by that. Is there a chance you can attach a screenshot of the same thing? Also let me know if there are any made VC-database activity recently?
-
How to prevent a new tab in Firefox to open when you open a PDF file in Adobe.
First of all, this problem started Monday, August 25, 2014 when I was forced to update Firefox to log in my accounting online program. I had no such problem in the previous version of Firefox.
When I open a PDF document to an e-mail (which displays a Firefox icon next to it), the document opens in Adobe reader, but also a blank tab opens in Firefox, even with it is not already open. When I close the PDF, the Firefox tab remains open and I have to close it manually. Happening with PDF documents that I saved to the network of my company or my computer (which have the Adobe icon). I don't want to have to save a PDF file on my computer as a workaround for this problem.
Under Tools > Options > Applications, I already spent the Adobe/PDF options to open it in Adobe. In addition, in topic: config, the value of 'pdfjs.disabled' reads 'true' and 'plugin.disable_full_page_plugin_for_types' contains "application/pdf".
I work with a lot of PDF files and I'm frustrated to the point where I'm about to uninstall Firefox and just use Internet Explorer.
Hello, it works when you enter in the Acrobat > edit > Preferences > General & click on the application by default option at the bottom? to reselect it adobe application and confirm this selection...
-
There is no way to enter web addresses and then go to them. You can type an address in the bar address, but when you press on enter, nothing happens... It's as if the button enter is broken... I have no problem with Explorer or Chrome... Firefox worked very right up until a few weeks ago... I can't think of any change to this question... I just uninstall Firefox and reinstalled the latest version to have the same problems...
This problem may be caused by an extension that is not working properly.
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
-
How can I make windows play a sound when you press the SHIFT key
My keyboard doesn't have a light to indicate when it is capitalized. He used to play a sound, but it is more the fact after that I said not to do. However, when entering passwords that are case sensitive, it gives the wrong password. Can someone tell me how to re - turn on the sound.
Its a Logitech MK320 wirelessLook in Control Panel > accessibility, and then click "make the keyboard easier to use." Check the box "turn ToggleKeys. This will produce a note when you press the lock keys. Or just check the other box beneath it. In this way, you can turn the tone on or off without having to return to these settings.
SC Tom
-
I recently created a form to complete for the app e-business of the company. When you press the button submit, he only sent to our Inbox to project and not sent to the e-mail provided in the URL. Can someone help us to program the key to help explain why / tell us step by step what we should do?
OK, I re-read your question. It's actually expected behavior. The user must manually send the email.
If you want it to be a silent process, then you must either install a script on the local computer of the user who will do this, or use any email but something as a service web to which you directly submit the form data.
-
PHP form script is missing from the web server or PHP is not properly configured on your web hosting provider. Help - I get this message on my site when the form is filled out and you press send... Check if the form PHP script has been downloaded correctly, contact your host about the configuration of PHP.
Hi Graham,
If you, please add your site to this link ( http://my-site.com/scripts/form_check.php ) and make sure that all green checkmarks are appearing. If they don't, let us know what errors you seem to receive and include the link to your site.
In addition, check out this guide on the forums of Muse troubleshooting: Troubleshooting Muse form used on the servers of third party Widgets
I hope this helps!
Emily
-
Hello, Ive just purchsed PSE 13 and when you click on the download button, nothing happens. It routes me to a black screen with an icon of Adobe, but that's all. Can someone help me in what I should do next?
Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache. If it fails to connect, try to use another browser.
-
Add the line in the long-form Master
Hi all
I wonder if there is a way to simply add a line in the form of master (tabular) detail without actually submitting the page. So if the user has updated an existing line before clicking on the add a line button, the update does not have to be submitted by click on the button Add a line. If possible, so I want to submit (insert) the newly added line, but also the updates made to existing lines when the user click on the button 'apply changes '.
A little luck?
Thanks for the help.
MilanMilan,
Well, your intent is not UPDATED when the user has clicked on the "ADD ROW" button.
When we create tabular, AEPX creates two submit after MRU (for updating the table) processes, a MRU runs when you click the button SUBMIT and other MRU runs when you click on the button 'ADD ROW '. Then change this SRM process and set it to run EVER (conditional processing > Type of Condition)
Kind regards
Hari -
When you press the new tab, how can I get the homepage instead of the history of tiles?
When you press the new tab, how can I get the homepage instead of the history of tiles?
You can try this.
Instead of the parameter mentioned pref in about: blank, you can enter any site of your choice.
-
Key on the keyboard does not work in firefox box when you type in the web site, but it works everywhere else?
Try Firefox SafeMode to see how it works there.
A way of solving problems, which disables most of the modules.
(If you use it, switch to the default theme).- You can open the mode without failure of Firefox 4.0 + by pressing the SHIFT key when you use the desktop Firefox or shortcut in the start menu.
- Or use the Help menu option, click restart with the disabled... modules while Firefox is running.
Do not choose anything at the moment, just use 'continue in safe mode.
To exit safe mode of Firefox, simply close Firefox and wait a few seconds before using the shortcut of Firefox (without the Shift key) to open it again.
If it's good in Firefox Safe mode, your problem is probably caused by an extension, and you need to understand that one.
http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themesCan be caused by an add-on to the AVG.
When find you what is causing that, please let us know. It might help others who have this problem.
Maybe you are looking for
-
2 web pages are bound as Siamese twins in 1 browser. How to disconnect?
When I opened a Web site, (i.e. my bank account, I can see the details of the daily transactions), I GET the bank account (that's okay) but it opens just on the left side (about 4 inches wide with a left/right scroll bar along the bottom and down alo
-
I accidentally clicked on full screen and have a lot how I recover the toolbar
I clicked on full screen and have lost the toolbar and bookmarks etc. How can I get that back please.
-
I have an updated IMac upgraded to El Capitan. I recently received an email from Bernie Sanders, that I read and then put in the trash. Mail will not let me delete the e-mail. It gives me the message: could not open the file "180791.emlx" because
-
Satellite A200 - 19l: function FN Touchpad do not work Vista Ultimate
Hello I installed my Satellite A200 - 19l new with Vista Ultimate to a microsoft dvd.It works fine but the FN keys (like e-mail, Volume etc.) do not work on my Touchpad. I installed the package of value added and other FN keys on the F keys work. Tha
-
You can show a movie on iTunes on an Apple TV to an iPad for viewing, rent you?