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

Similar Messages

  • 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

  • Marking Fields as Read-Only After Digitally Signing Issues

    I am creating a PDF form that contains several digital signatures.  I am selecting a signatures and am in the property options for that specific signature looking at the "Signed" tab.  I select, Mark as read only, than choose "Just these Fields.
    When I select "pick" a new box opens that lists all the fields in my form with a check box next to each.  It appears that I can select the fields I want to mark as read only, however, when I attempt to check a box, nothing.  I can select "select all" and all the firlds become checked, but I cannot check individual fields.
    Any thought on what might be going on?

    Hi Thomas,
    Any chance you could share the PDF file if I gave you an e-mail address?
    Steve

  • Changing a Record to Read-Only after an event.

    I have a Developer application that needs to be modified. This
    application includes several fields as well as a comments
    field. I'd like to change all updatable fields (not to included
    the comments field) to READ-ONLY after a certain event. Then
    after a certain date, I'd like to make the comments field READ-
    ONLY.
    Do you have any suggestions?
    Regina Grimes
    919/874-3140
    null

    Dear Regina,
    Have you tried to set_block_property in pre-record trigger to update allowed/not allowed depending on the event. And in post-record update not allowed. These triggers must be on block level. Also on item level to the item 'Comment' define pre-item trigger where take a new decision whether you want to open the entire block or not, the same way as on block level triggers. But in post-item trigger always make the entire block read-only again.
    Regards
    Jan Kramle

  • How to make fields read only after form is filled in

    I am creating forms to be used within our company.  The customer srv representative (CSR) would fill in the form and send it to the customer for signature and initial.  There are a few issues I can't solve.
    1)  I need to make the rate & services fields read only after the CSR initials the form

    Will the CSR have Acrobat or just Reader, and what type of computer will the CSR be using (Windows/Mac/mobile OS)? If just Reader (Wind/Mac), this is possible by setting the fields to read-only with JavaScript. The problem is this can't be considered secure, even if using a password as discussed here: Password-protect and hide one form field
    With Acrobat you have the ability to flatten certain fields, which makes it a bit more difficult to change the "fields".

  • Make all text fields read only after signing form

    Hello,
    I have a live cycle form which needs to have all of the text fields set as read only after signing.
    The java script has been placed in the post sign event of a digital signature field.
    for(var i=0;i<this.numFields;i++) {
    var cNm = this.getNthFieldName(i);
    if (cNm.type = "text") this.getField(cNm).readonly = true;
    After signing the form the following console error is shown:
    this.getNthFieldName is not a function
    Can anyone please advise how to revise the script so that when the form is signed all of the text fields become ready only?
    Any assistance will be most appreciated.
    Thank you.

    You don't need any JavaScript to do this.
    In Designer you can setup the signature field in that way, that all fields will be locked after signing.
    Look here:
    http://forums.adobe.com/message/3121870?tstart=2

  • Make a field required on record creation, read only after that

    Hello,
    Does anyone know of a way to make a pick-list field required on record creation, but read-only after that? The other twist to this is that we need to allow this field to also be read-write for all the integration edits, since this field's value could change in the enterprise database.
    Thanks,
    Neal G.

    Hi !
    I think you can add a validation rule for that. Something like :
    IIf(PRE('&lt;YOURFIELD&gt;') IS NULL, &lt;&gt; '', = PRE('&lt;YOURFIELD&gt;'))
    This means that if the previous value of your field is null (it's a creation), so the value must be different than blank. Else, it must be equal to the previous value, so not modified.
    I didn't tested it, but I let you get back to me if it works... or not !
    You'll just have to add a message saying that this field is required on creation and readonly after...
    Hope this will help, feel free to ask more !
    Max

  • 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);
    }

  • Is it possible to circumvent read-only after a pdf has been signed?

    Hi, my pdf has a signature field.  In the signed event I have make all fields read-only.  Is it possible for someone to come along and make them not read-only anymore?  It seems the easiest way to make my document tamper-proof.  Thank you.

    goodprogramming wrote:
    It's not the file that is set to read-only at the OS level.  The signature field has an event for signed.  Once that occurs I have the checkbox selected that says mark all fields as read-only.  I want to be sure it is really read-only and that there is no way to make it non-read-only.
    save as does not change the read onlyness of the pdf.  I have tried this.
    It shouldn't matter.
    Making changes to the file after the signature is added will invalidate the signature. You'll know someone has been messing around if the sig is invalidated.
    Even if you have a reason to do what you want, you can't. At least not without a very expensive Digital Rights Management solution plus a server to run it.

  • Changing not possible; field is read-only

    Hello,
    I need update Expected Value in Opportunity.
    Expected Value is bound Opportunity.SalesForecast.ExpectedRevenueAmount.content.
    When I try to update in adsl, "Changing not possible; field is read-only" error appears in frontend to the user.
    Thanks!

    Hi Rodrigo Mathias,Not an answer to your post just to share my problem
    Seems Opportunity has a lot of problems. As in my case i am trying to code in BeforeSave method that when ever the opportunity gets create by code i have to poppulate my CUSTOM Invonved Party ( i have created custom party role ).
    And i have passed partykey.partyId.content and RoleCode but when i click on save it gives me the error about Role Category!
    now when debugged that all Parties ( i debugged and checked whole collection) had the Role category every party from that collection had the Role category associated!
    So i tried to add r
    ole category by code! but that is also public write access set as FALSE!
    So finally i again opened the book for clod , and a line is specificaly written that PartyID node will not be used after 1402 there will be separate node PartyNAme where u can pass partyid , name or email!
    but unfortunately that is also not available in the opportunity BO!
    So i am also kind of stuck!
    Btw one thing i would like to mention is when u try to maintain your custom role in opportunity manually it works and data gets saved!
    Regards,
    Dhruvin

  • Fields in read-only mode for BP transaction in upgrade from 4.72 to ECC6.0

    Hello,
    This is regarding the query for BP transaction in upgrade from 4.72 to ECC 6.0.
    While creating BP / Changing BP system is disabling the fields in compnay code & sales area option. There is a SAP not provided 907860; and specified that the proplem is because of the delta customizing.
    All the customization settings are as per the note. And the Synchronization Control is also activated. But still the fields are disabled only.
    I have checked the field settings also in Cross-Application-Components & Logistic-Genral.
    But these are not working for compnay code & sales area data.
    please let me know if anyone has faced this type of problem / found any solution on this.
    Best Regards,
    Shubhada

    SAP IMG  -> Cross Application Components -> Master Data Synchronization &#61664; Synchronization Control -> Synchronization Control -> Activate Synchronization options
    This setting allows you to activate synchronization of BP with R/3. Not maintaining the values may result in certain fields being read-only in BP.
    Suggested Values:
    Source Object: BP | Target Object: CUSTOMER | Active Indicator : X
    Source Object: BP | Target Object: VENDOR | Active Indicator : X
    Source Object: CUSTOMER | Target Object: BP | Active Indicator : X
    Source Object: VENDOR | Target Object: BP | Active Indicator : X
    Have you set all of the above settings??
    BHARATH

  • Sending forms as read only after they are filled out

    Hello, I am having lots of issues with the latest form I am doing in Adobe Designer 7.0. I am not experienced at all with this software. My question I think is easy but nothing ever is. When I submit forms with a submit button to an email address can the attached pdf be set to be read only so the recipient can not make changes to it?
    Pleae help....
    Thanks in advance.
    Crysta

    Hi Crysta,
    you could add some functionality in your form. On the email submit add code to set a value (of an invisible field or directly in the data). Next, in the form ready, run a script that checks if the value has been set, if so, then set the access of the form to "readOnly". Please note that this is no real security. If you need that, you should use encryption and signature fields.
    example for adding data: http://partners.adobe.com/public/developer/en/livecycle/lc_append_data_sample.zip
    or checkout all samples:
    http://www.adobe.com/devnet/livecycle/samples.html
    Kind regard, Marijn Sponselee

  • Make adobe form -read only after Submit button

    Hi,
    I have an Interactive form withuser input fields.
    I am submitting it via E-mail.How do I make it read only after I click Submit ?
    I am using javscript for sending e-mail.
    rgds
    vara

    Resolved it : in click event javascript
    ADOBE_DATA.form.field.access = "readOnly";

  • Make Sticky Notes Read-Only After Creation?

    Hello,
    I am wondering if there is a way to make sticky notes read only after someone has created one?
    I have a form that we want people to add comments to but we don't want anyone to be able to remove those comments.  Possible?
    Kristi Tost

    Resolved it : in click event javascript
    ADOBE_DATA.form.field.access = "readOnly";

  • Permissions "read only" after copying files FROM server

    Hi everyone!
    OK, just setup a Leopard server. Clients all at Tiger - level..for now. This is what I want to do:
    I want a read only - network library drive so that the clients can grab files from but then modify locally on their machines. No need to put back on that server as I have another system in place for things like that.
    *The problem:* If I propagate permissions at "read only" then when the user copies to their local drives, the owner changes but the permissions remain. They have to manually change the permissions back to match their local, then they can work with the file. When we're talking about hundreds of files for 15+ users a day, then it is quite a pain and a show stopper.
    I had this setup previously on a panther server with no trouble. I've maintained settings as close as possible but still having trouble.
    Any ideas as to what I'm missing?
    FYI- I don't want to change permissions to read/write to protect the library from tampering.
    thanks

    +If I propagate permissions at "read only" then when the user copies to their local drives, the owner changes but the permissions remain.+
    OK, from your description, you'd have to have the POSIX owner's permissions set to just read-only or read and execute. As you've observed, a copy obtains permissions in the following manner:
    The POSIX owner changes to match the account performing the copy (the action-bearing account), and the POSIX group is inherited from the copy's destination parent. The POSIX permissions stay the same, though. (Inherited ACL entries on the original are also lost; explicitly-defined ones are preserved, and new inherited entries apply to the copy from its destination parent.)
    All of this is proper behavior, and there's an easy way to make it work to suit your needs.
    Since the POSIX owner changes to the action-bearing account for the copy, you'll want to ensure that the original POSIX owner's permissions are read and write. This does not require that you make the original's POSIX owner the same as that of the action-bearing account. An example would better illustrate the situation:
    Example POSIX Permissions for the Original on the server:
    Owner root can read and write
    Group somegroup can only read
    Everyone else can only read
    Thus, let's say that tsmith is the action-bearing account. So tsmith copies the file to his desktop, and the POSIX permissions now look like this:
    Owner tsmith can read and write
    Group staff can only read
    Everyone else can only read
    Thus, tsmith receives the POSIX permissions of the POSIX group or everyone else field on the server - let's say there are no ACLs for the time being - and he becomes the owner of the copy. Since the original owner, root on the server, had read and write permissions, those permissions are preserved and given to tsmith for the copy.
    Another way to deal with this situation would be to use ACLs by placing an inheritable ACL granting full control or read and write for tsmith on his home folder. Any new items copied to or created in his home folder would inherit that ACL. Similarly, an inherited ACL deny entry (but not an explicitly-set entry) affecting tsmith and the delete and delete_child controls could be placed on the affected server share point's top-level before the original was copied there. Then, any subsequent copies from the server volume would drop this inherited ACL entry entirely. These would, however, be much more complicated situations, and your scenario is best handled in the POSIX-only fashion. (This doesn't mean that you have to disable ACLs on the server - just don't apply them for the share point!)
    --Gerrit
    search:Owner read only

Maybe you are looking for

  • Error in loading the WSDL file

    hi when i am creating a Adaptive Webservice model with the sneak preview 2004s while Choosing the published service from UDDI i am getting and error called "Error in loading the WSDL file" i have gone through the log files it basically saying that Ca

  • N8 poor signal reception and other hardware issues...

    I have always been a Nokia fan . I started with Nokia 6600, then N70, then N82 and now a Nokia N8. However, I am facing the worst experience with N8 reception issues. The problems faced are as under : 1) Poor Signal Reception Issues - Signal strength

  • Oracle Reports 9I generate output in excel

    Report Builder 9.0.4.0.33 I tried generating output to Excel using 10GR2 Report builder using SPREADSHEET for destype on the web and it works. The requirement is for this one customer who is on 9I and they are asking for excel output functiuonality o

  • Foreign currency conversion not picking up rate or time period

    I am running the standard FX conversion (standard stored procedure - fxtrans.lgx) on SAP BPC MS version 7.5 , but everytime I run the package, even though I choose a particular day,  it seems to run for multiple time periods. In the formula log  I ge

  • IP SLA, Tunnels, and static routes

    Here's the scenario:  1 router will have a primary and secondary ISP connection.  I set up an SLA to track connectivity on the primary connection.  Here are the static routes: ip route 0.0.0.0 0.0.0.0 Tunnel55 track 10 ip route 12.54.X.X 255.255.255.