Set a record read only
hi everyone,
i would like to know if is it possible to desable any update (or delete) from a specific record, if a flag is on? Let's say that this record reflect an old situation and must not be changed
Thanks
Hi,
This may be the code....
create or replace trigger a on table_t before Insert or update
begin
Raise_Application_Error(-200001,'Soory Your are not allowed to Entter...');
end;Regards,
Ganesh R
Similar Messages
-
SQL Query (Updateable Report) conditionally set a column read-only with lov
Hi
I'm attempting to set a column that has a select list lov read-only if there is existing data in the column otherwise permit the end-user to enter a value using the select list.
I've looked at Re: A better method of handling tabular forms with variable column type? and using this code as an example it almost works, except the select list lov button is still active and therefore the data can be changed. How does one conditionally disable the select list lov button in Javascript?
TIAIn the JS code where you make the field readonly, add another line to hide the lov opener link ( in jQuery it would be *$('<selector>').hide()* ).
If you can provide the HTML code from your page for such a column (the JS code would depend on the template/theme), I can try helping. -
Custom.pll to set block to read only
Hi all,
I want to use custom.pll to make the item revisions
form read-only for certain responsibilities in 11.5.9.
What is the best property to set to accomplish this?
Alterable_plus looks like a good candidate...
Thanks,
ScottActually, it looks like alterable_plus works at the item level - is there a property I can set for the block?
Thanks,
Scott -
I would like others to be able to log into my ical through mobile me as read-only and not have any access at all to the other applications such as contacts idisk, email, etc.
Is there as way to set MobileMe for this type of usage?
Bryan
< Edited by Host >you can do that by calling class method CL_GUI_FRONTEND_SERVICES=>FILE_SET_ATTRIBUTES exporting parameter READONLY
note: this will work only in the foreground, it is not possible to do it in a background job -
Batch renaming setting xmp to read-only
Doing some batch renaming of audio files and it seems like randomly xmps are being set to read-only, losing the previous filename preservation in the process.
Purging the cache for the folder seems to reset the xmp back from read-only, but i dont know
why it is happening.Hi Felco,
In the method IF_CRM_BSP_MODEL_ACCESS_IL~READ of the class associated with your structure(MAC) you have a parameter ET_FIELD_ATTRIBUTE in this you can mark the fields with this properties:
A Not Changeable
B Not Relevant
C Mandatory Field
Regards.
Manuel -
Lion administrator setting changed to read only for file sharing. Now hung machine
I was trying to network my Mac with a WIndows 7 machine and tried to have my name in the file sharing read write instead of other users such as administrator when I changed the administrator to read only for file sharing rights and could not add my name as a file sharing user with read write permissions Really silly move
I have performed a repair of disk permissions however still hung.
Whats worse is that my time machine for the last three days has been disconnecting when backing up leaving a partially complete backup. Backup failed. I also left a apple support community message a few days ago to solve it.
So its critical
Timely HELP is needed.This same problem happened to me, all the sudden one day my mac decided to revert to the original standard root username and password which I obviously did not know. In order to change this:
1) Activate single user mode on reboot as by pressing cmd + s as your computer starts up. Make sure you do it right away, and keep the keys pressed down.
2) Where the cursor pops up, type exactly
+/sbin/mount - uw/+
3) When the next cursor pops up type exactly
passwd
4) Then you can type any password you want (now changing the root password to be what you want)
Note you will not be able to see what you type, but the text is being recognized
5)The computer asks for you to retype the password, retype it
6) Type reboot
Once the computer restarts you can navigate to system preferences>accounts> and then unlock the account (lock is located on the bottom left corner) using Username: root and the password you just set. Henceforth, you can appoint your account as the administrator. Hope it works! -
Set word file read only after exporting through mail merge
Hello,
I am exporting the ALV report to word file using standard functionality using mail merge.
But my requirement is after exporting to word ,file should be protected or read only.
Plz Help me to solve this issue.
Thanks,
Paresh.you can do that by calling class method CL_GUI_FRONTEND_SERVICES=>FILE_SET_ATTRIBUTES exporting parameter READONLY
note: this will work only in the foreground, it is not possible to do it in a background job -
Set fields to read-only after addInstance()
I have this function on my form "add row" which allows user to create a new row to fill in additional fields; when user click submit, the fields of the form will become read-only.
however after i add another new row into the form, when i click submit that row does not change into read-only.
this is the code for my add row: Table1.Row1.instanceManager.addInstance();
and this is the code for my submit button, whereby upon clicking the field becomes read-only
-----Test.#subform[0].Subform2[1].buttonForm.Submit::click - (JavaScript, client) -----------
Test.Subform1.IsSubmitted.rawValue = "1"; //submitted ----0 is default
Test.Subform2.Payee.access = "protected";
Test.Subform2.Name.access = "protected";
Test.Subform2.GST.access = "protected";
Test.Subform2.Amount_GST.access = "protected";
Test.Subform2.Currency.access = "protected";
Test.Subform2.Invoice_Date.access = "protected";
Test.Subform2.Invoice_No.access = "protected";
Test.Subform2.Company_Code.access = "protected";
Test.Subform2.Tax_Code.access = "protected";
Test.Subform2.Payment_Method.access = "protected";
Test.Subform2.House_Bank.access = "protected";
Test.Subform2.Description.access = "protected";
Confirm.presence="visible";
Edit.presence="visible";
Submit.presence="invisible";
Add.presence="invisible";
Table1.Row1.GL_Account.access = "protected";
Table1.Row1.DC.access = "protected";
Table1.Row1.GL_Description.access = "protected";
Table1.Row1.Amount_exclgst.access = "protected";
Table1.Row1.Tax_Code.access = "protected";
Table1.Row1.Fund_Center.access = "protected";
Table1.Row1.Cost_Center.access = "protected";
Table1.Row1.Button1.access="protected";
Test.Subform1.StaticText1.presence="invisible";
Test.Subform1.Summary.presence="visible";Hello,
Perhaps you could create a trigger for that table that prevents update, delete and even insert of rows before a specified timestamp.
CREATE OR REPLACE TRIGGER <Triggername>
BEFORE INSERT OR DELETE OR UPDATE ON <Table>
FOR EACH ROW
BEGIN
IF <RowDate> < <sysdate - <days>> THEN
Raise_application_error(-20001, 'ROW is in read only range.'
END;
null -
Set .jpg as read only OK?
Whilst I shoot raw with my SLR's, the 'toy' compact only shoots jpgs
I'm fed up with them changing all the time when I add key wordwords, develops, etc.
Sadly, LR can't create XMP's, so I'm thinking of making all my jpg's Read Only.
Obviously this will mean that external programs won't see the keywords, which is not an issue, but will LR be happy to write everything to the DB and ignore writing to the jpg, or will it have an issue?
Ta,
Mike.Mike,
DramaticFoto wrote:
Obviously this will mean that external programs won't see the keywords, which is not an issue, but will LR be happy to write everything to the DB and ignore writing to the jpg, or will it have an issue?
Why ask us when you could just try it?
Also, you could turn off "Automatically write changes into XMP" in your Catalog Settings. That would also stop it for your raw files, but that could possibly be OK. You could always do it manually for your raws if you prefer.
Hal -
Set up a read only group on the config.xml file through Admin console
I would like to set up a group which can use Admin console
(http://ip:7001/console).
However, this group cannot deploy, modify anything on the configuration. In
the document, I can add ACL lists. But how? The table of permission
function on the document is not clear. For example, there is no READ and
WRITE on the table in the Admin Server guide. Please help.
If I have guest enable on the Admin console. What is the user name and
password of a gest to use the Admin console?
Thanks for help.Do you want to expose the Admin app on the same network as the managed app?
If not, just hide (black hole) the IP/port to the admin server.
If I have guest enable on the Admin console. What is the user name and
password of a gest to use the Admin console?I don't think guest has a password. Allowing guest means non-auth'd users
can access it.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"SLC" <[email protected]> wrote in message
news:3c5dcd78$[email protected]..
I would like to set up a group which can use Admin console
(http://ip:7001/console).
However, this group cannot deploy, modify anything on the configuration.In
the document, I can add ACL lists. But how? The table of permission
function on the document is not clear. For example, there is no READ and
WRITE on the table in the Admin Server guide. Please help.
If I have guest enable on the Admin console. What is the user name and
password of a gest to use the Admin console?
Thanks for help. -
SelectBooleanCheckbox read-only after setting selection
Hello!
I'm trying to set the selection of an adf selectBooleanCheckbox!
When I set it by the pull-down menu (true, false) in the Property Inspector, everything is ok!
But when I set the selection depending on an ADF binding, the value is set correct,
but the checkbox is read-only and a change of the selection is impossible!
Here's the very simpel code of the Box:
<af:selectBooleanCheckbox
label="myLabel"
value="#{bindings.SomeValue.inputValue != null}"/>
Can anyone help me, how to enable the checkbox for selection?
Thank you very much!
Sebastian
PS: I'm using JDeveloper 10.1.3.3!hi..
the previous error is ok now..
below is the script, the status is when click on 'Add new row' button, it will pass status = 'ADD_ROW' and set the startdate read only = False.
my question now is...
e.g i've a multiple rows (can display up to 10 rows) display in table form in the page....i query 3 rows of records, then i click 'Add new row' button,
how to make sure the 3 rows queried early is having startdate read only = Yes and for the new row startdate read only = False?
with the below codes it will set all rows startdate read only = False (including those queried data)... pls help...
public void setReadonly(String status)
OAViewObjectImpl vo = (OAViewObjectImpl)findViewObject("SeaoeAutoMosPVO1");
OARow row = (OARow)vo.first();
OAViewObject SeaoeAutoMosSummaryVO = (OAViewObject)findViewObject("SeaoeAutoMosSummaryVO1");
OARow SeaoeAutoMosSummaryRow = (OARow)SeaoeAutoMosSummaryVO.getCurrentRow();
if (status=="ADD_ROW")
row.setAttribute("StartDateRender", Boolean.FALSE);
else
row.setAttribute("StartDateRender", Boolean.TRUE);
} -
Changing sales employee on document set to read only
*Our customer has invoices set to read only for certain users. however they need these users to be able to change just one field - sales employee.*
*Is there anyway this can be achieved??
Edited by: Samantha Glanville on Oct 8, 2009 3:25 PMIf it set up as read only, there is no room for updating even only one field. Better leave this to other more powerful user to change. Otherwise, the read only setting would be overridden.
Thanks,
Gordon -
Globally setting read-only classes
Is there any way to globally set all 1-1 mappings to
read-only AND have them write out the columns(s) on the
object they represent. I would like to do this without
having an additional direct to field mapping for the column.
I am trying to not have to programmically set readonly classes for objects.
ThanksNot sure I follow what you mean by "write out the column(s)" -- I assume you mean as a step in logging?
You can get the descriptors from a Session (or Project if you use the old way of creating sessions and want to do this before login) by saying "getDescriptors()". You get a hashtable key=class and value=Descriptor. Then you can get the mappings from the descriptor and pretty much do whatever you want (i.e., check for mappings that are 1-1 and set them to read only, get the columns they map to, etc). Check the Javadoc on Descriptor for more info.
- Don -
Hi All,
I am trying to figure out a way to keep my primary keys from being edited. I created a primary key constraint but did not know how to set it as read-only.
Each time I create a new record, commit, and change its primary key, Oracle allows me.
Can someone please shed a light to this?
THanks!I was actually thinking of that update trigger but I thought maybe there was a direct declaration or attribute that I could simply set to my primary key constraint as read-only. No there is nothing like that as far as i know.
In regards to allowing update on primary key, that is my issue I don't know how to set it to read-only. I don't allow it. It's default. If I go to my table and start typing on the primary field, it'll replace it without throwing an exception. Its not a rule of thumb that the primary key should not be updated. And hence such a thing is not set by oracle. But as far as best practice is concern its good not to update a primary key.
I just thought maybe there was a direct solution. I guess I have to just apply another step to my process. Thanks! The best way is to Design your application in such a way that it does not allow any updation on the primary key. -
SD Card Slot READ ONLY mode.
I have this problem.
My SD Card Slots it's in READ ONLY MODE.
I already use the SD cards in this computer without a problem, they we're always read/write. Not anymore since a month. (I think from the last software update, but I'm not sure of this).
Someday, without notice, all these cards are read only on my macbook pro.
I don't have this problem with my G5. I can read/write on these SD cards. Of course, all of them are unblocked.
I tried in several formats (formatting the cards with my G5). Same results.
My Macbook Pro 13 (last edition so far, I brought it on November 2010).
I read is probably A Snow Leopard 10.6.6 problem.
So I reinstalled the system without updating the computer, but the problem is the same.
ANY SOLUTIONS?
Message was edited by: Daniel_ItaliaWent to the Apple store today. I opened up my MBP the SD card worked perfect, no issues.. I couldn't believe it. But after we (me and the tech) removed the card a few times / formated it. It stopped working and started setting it for read only, and we couldn't get it back to read / write. IE same issue as we were posting.
The tech spoke to his lead technician, which both said they have never heard of this, but decided that the motherboard is defective and needs to be replaced. So I left it there for them to replace it. Price, if out of warrenty, was 650.00. Can't remember if that included labor. I have AppleCare (which they didn't have on record) so free for me. Glad I paid the 350 when I bought the laptop.
Overall I waited an extra 15 minutes before being seen. A little annoyed about that. But the tech was very nice, professional, and helpful. I did ask about the SMC, but we were talking about a couple of things and that kind of got lost in the shuffle and I completely forgot.... Sorry I had "I am Number 4" on my mind as we were planning on seeing that next.
Will update as soon as I get it back
Message was edited by: skygremlin
Maybe you are looking for
-
How to transfer bookmarks from one computer to another?
how to transfer bookmarks from one computer to another?
-
Calling a form in a tab from another form in another tab, same page
I've created a page with three tabs and a different form for each tab, then I've placed a button in each form to call the following form, using this code: htp.formOpen('PORTALORACLE.wwa_app_module.link? p_arg_names=_moduleid&p_arg_values=1544154288&
-
Passing Header Data in BAPI_CONTRACT_CREATE from BODS
Hi all, I am new to BODS. I am trying to create contract using BAPI_Contract_Create from BO-Data Services XI 3.2 to ECC 6.0. In the New Function Call, while defining the "Input Parameters" for Header (and HeaderX), I can only select single column. Ac
-
Apex_collection.add_member not adding all fields
I am trying to add the contents of three page items into a collection, and to verify, I queried the collection for the three fields and output them to other page items. The problem is, only one field returns a value. Background: I set up the collecti
-
Pricing not determined based on Customer hierarchy
Hi All, I searched the forum for the specific issue, but could not find a proper solution. I have a specific scenario where we are migrating from 4.6C to 6.0. The hierarchy is already maintained in 6.0 version in a way which we need to adopt it. Th