Making a field as read-only using Forms Personalization.

Hi All,
I have one requirement.I developed one form which is used to display Customer related Information.Some fields are created under one block and "reason-for-write off amount" field is created under another block.I have created Master-Detail relation for these 2 blocks.If there is any "reason-for-write off amount" is present for queried customers then it shows the "reason-for-write off amount" data.check boxes also created beside customer number field in Master block.If there is no "reason-for-write off amount" for any customer I need to write it and when I click on "submit" button in my form it goes to database.
Now my requirement is :
I need to make "reason-for-write off amount" field as read-only and I need to CHECK corresponding Customer "check_box" and make "SUBMIT" button as disable using personalization.
I wrote code in Personalization as
Trigger-Event:WHEN-NEW-FORM-INSTANCE
Condition: :DUMCUST.REASON_FOR_WRITEOFF IS NOT NULL
Processing mode:BOTH
Actions:
object type: ITEM
Target Object: :DUMCUST.REASON_FOR_WRITEOFF
Property Name: Enterable
Value:false
object type: ITEM
Target Object:      :XXMCS_CUSTOMER_DETAILS.CUSTOMER_NUMBER_CBX
Property Name: Value
Value:1
object type: ITEM
Target Object:      :XXMCS_CUSTOMER_DETAILS.SUBMIT
Property Name: Enabled
Value:False
But it is not working..the applied changes are not affected in my form.I tried the above actions with WHEN_NEW_BLOCK_INSTANCE trigger also.I didn't write any validation triggers for these items in my FMB also.
Could anyone please help me..
Thanks in Advance.

in your iterator declare the inputfield with disabled = true .
p_replacement_bee = cl_htmlb_inputfield=>factory(
                            id        = p_cell_id
                            disabled  = 'true'
                            value     = comments ).
this will generate the html like below
<input type="Text"
class="urEdf2TxtEnbl urEdf2TxtRo urV" autocomplete="off" id="TAB1_1_4" ct="InputField" name="TAB1_1_4" st="r" tp="STRING"
readonly value="some value" onblur="sapUrMapi_InputField_Blur('TAB1_1_4',event)"
onkeydown="sapUrMapi_InputField_keydown('TAB1_1_4',event)"
onkeyup="sapUrMapi_InputField_KeyUp('TAB1_1_4',event)" onfocus="sapUrMapi_InputField_focus('TAB1_1_4',event)">
now you can use js getElementById as this now has a id attached (TAB1_1_4)

Similar Messages

  • To make DFF read only by forms personalization

    Hi All,
    How to make a DFF read only by forms personalization...Please suggest...
    Regards,
    Abhishek

    Descriptive Flex Fields (DFF) and Forms Personalization are features of the Oracle Enterprise Business Suite (EBS) not a feature of Oracle Forms. Please post your question in the General EBS Discussion forum. If you have just a Forms question, by all means ask it here.
    Craig...

  • Making Multiple Digital Signatures Read-only in Form (Acrobat 9)

    I have created a form which includes two (2) digital signature fields.  What needs to occur with the form is Person1 fills the form and then digitally signs it thereby making the form fields read-only .  Person2 then digitally signs the form which should make Person1's digital signature read-only.
    Here's what I've done:
    1) For the Person1 digital signature field, in Digital Signature Properties, under the Signed tab, I have selected Mark as read-only <all fields except these> and selected the Person2 digital signature field.
    2) For the Person2 digital signature field, in Digital Signature Properties, under the Signed tab, I have selected Mark as read-only <all fields> since once Person2 signs the form I do not want Person1 to be able to clear the digital signature and make changes to the form.
    Here's what actually occurs:
    Step 1 above works fine.  Once the signature is applied all the form fields are read-only except for the Person2 digital signature field.
    The problem is that after Person2 digitally signs the form, even though I selected all fields as read-only, Person1 can 'clear' their signature which leaves all the form fields available for editing and leaves Person2's digital signature still on the form.
    I honestly don't care about 'validating' signatures on this form since it's going to be printed but I cannot allow Person2's signature to remain on the form and allow Person1 to edit the form.
    --Mike.

    Hi!
    I have the same problem. Have not been able to figure it out, although tried everything.
    Hope somebody can help
    - MackeMan

  • How to lock a form (all fields read only) using a button (JavaScript)

    Hi guys,
    I have a form with several input fields, check boxes. Using a button in the form, I would like to lock it using a JavaScript. Locking means in my case that all input fields, checkboxes, etc. are read only (cannot be changed anymore).
    I already use the following approach:
    data.form.MyInputField.access = "readOnly";
    The problem is, that this approach is not comforable from maintenance perspective. I would like a more generic or more simple way.
    Generic:
    loop over all fields and set them to "read only"
    Simple:
    xfa.form.lock; // but this does not work
    Do you have any ideas how to solve this requirement in another way as I currently do?
    Thanks,
    Thomas

    Now I used the following script:
    // set the whole form as container
    var objContainer = data.Report;
    // call the method to set all fields to read only (recursion)
    disableAllFields(objContainer);
    function disableAllFields(objContainer) {
         for (var i=0; i < objContainer.nodes.length; i++) {          
              switch (objContainer.nodes.item(i).className) {
                   case "field" :
                   case "exclGroup" :
                        objContainer.nodes.item(i).access = "readOnly";
                        break;
                   case "subform" :
                        disableAllFields(objContainer.nodes.item(i));
                        break;
                   default:
    It works but is there another possibilitiy such like
    form.lock;
    Thanks,
    Thomas

  • 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".

  • Field is read-only -- Error

    Using ASP vbscript, I created a small query to test one of my
    db connections, requesting three fields from a specified record
    based on URL parameter (this is a different project than my
    previous post) running IIS with an ODBC connection to a local db.
    The ODBC driver is read-only, which is fine, the purpose of this
    project is to display reports, not data entry. Anyway, when I test
    the query in DW CS3, everything is good, I get the results as
    expected. When I upload the page to the remote server and test the
    page I get:
    HTTP 500.100 - Internal Server Error - ASP error
    Internet Information Services
    Technical Information (for support personnel)
    * Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
    Field is read-only
    /job_details.asp, line 21
    I am not updating or inserting, so I do not understand this
    error. I also can't find anything on this specific error anywhere.
    Anyone got any ideas about where I should start looking?

    > It is using a DSN. I have never used this particular
    ODBC driver or this
    > type
    > of database before (Omnis), so I don't know if the
    problem was driver
    > specific.
    > All I know is that it works fine if I bypass the
    parameter append.
    >
    > Now if I could just get the connection to work with
    cross-platform
    > servers.
    > In the above example, I put a copy of my datafile on the
    same machine that
    > the
    > web server is running on ... and it's working. But when
    I try to connect
    > to
    > the live db, which resides on a mac osx server I get :
    >
    > Error Type:
    > Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    > Unable to read disk (bad disk)
    > /job_details.asp, line 16
    >
    > But I can use the same ODBC connection from MSAccess on
    the Windows
    > machine
    > and get query results.
    Normally, I would advise against DSN and recommend an OLEDB
    connection, but
    I've never used that type db, don't know if a string is
    possible.
    www.connectionstrings.com does not show a string for it, so I
    can't help.
    Sorry.

  • 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

  • How to change report region fields in read only mode?

    How to change report region fields in read only mode?
    skud.

    add the following javascript fuction to page header(or Javascript function and variables section)
    function disableItems(pRegionStaticId,pDisableFlag) {
      $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
        if( $(this).attr('name').match(/f[0-9][0-9]/) ){
          return $(this);
      }).attr('disabled',pDisableFlag);
    pRegionStaticId is the region's static Id+
    Note that this code specifically disables only application arrays. Disabled items are not available after submission (and hence are different from readonly) . But any page javascript can modify disabled or readonly items(client side), so you must check at the server side to validate the data.
    You can disable items using
    disableItems('MY_REGION_ID' ,true);and enable them by passing false
    disableItems('MY_REGION_ID' ,false);

  • 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

  • Cmp-field is read-only

    Say I have beans A and B where A <- B (unidirectional relationship)
    and A.cmp_A and B.cmr_A point to same db field
    I try this and get exception as below while doing A.setCmp_A()
    javax.ejb.EJBException: When a cmp-field and a cmr-field (relationship) are mapped
    to the same column, the setXXX method for the cmp-field may not be called. The
    cmp-field is read-only.
    the cmp-field and cmr-field are in separate beans.
    F1

    Say I have beans A and B where A <- B (unidirectional relationship)
    and A.cmp_A and B.cmr_A point to same db field
    I try this and get exception as below while doing A.setCmp_A()
    javax.ejb.EJBException: When a cmp-field and a cmr-field (relationship) are mapped
    to the same column, the setXXX method for the cmp-field may not be called. The
    cmp-field is read-only.
    the cmp-field and cmr-field are in separate beans.
    F1

  • Creating a new field in a standard form using Forms Personalization

    Gurus,
    Has anyone done this? If so, could you please provide steps involved or point me to a good tutorial
    I need to add user name to a standard transaction-based form. I want to make sure this can be done through personalization.
    Thanks,
    Scott
    P.S. I give points for helpful or correct answers
    Edited by: sreese on Oct 17, 2011 1:24 PM

    Pl post details of OS, database and EBS versions.
    I do not believe you can add new fields to seeded forms using forms personalization.
    MOS Doc 420518.1 - Limitations of Forms Personalization
    BTW, points are meaningless :-)
    HTH
    Srini

  • Adding fields using forms personalization

    Hi All,
    Is it possible to add the fields to a form using forms personalization.
    Thanks and Regards,
    Zaheer.

    No. But if you have fields that are not being used, you can change the prompt and repurpose them (provided the data type does not have to change) and validations can be manipulated.
    Have you looked into creating descriptive flex fields?
    Sandeep Gandhi
    Edited by: Sandeep Gandhi, Independent Consultant on Jul 13, 2010 11:52 AM

  • How can we make the ms-word data as read-only using java code?

    How can we make the ms-word data as read-only using java code?

    MVSK wrote:
    By using java code i opened a file in ms-word. But the data i want to display as read-only. that means should not change it.I don't think you can do that. Display pdf documents instead.

  • Sum of the fields in SO form using Forms personalization

    In sales order form, Once we enter the item and qty in a line . The qty entered should be multiplied by volume of an item avaiable in mtl_system_items_b and should be displayed in the line level DFF(attribute14). Thus we get the line level Volume
    Once n number of lines are entered in SO form . The sum of line level volume should be displayed in the header level DFF(attribute14.
    I am able to get the Line level volume using global variable.
    Could any one please let me know is it possible to get the sum of line level volume in the header DFF using forms personalization.

    My requirment is to get the "Line level volume" information in line level DFF and "order level volume" information in header level DFF of a Sales Order form.
    line level volume = unit_volume*quantity
    Order level Volume = sum of n number of line level volumes = line level volume of line 1.1 + line level volume of line 1.2 + line level volume of line 1.3 ......
    For Example consider an item 2E00001010 item. The volume of this item is mentioned in the physical attributes of an item. we can get the volume of this item from unit_volume in mtl_system_items_b . say for example the unit_volume of this item is 20 litres.consider another item 2X000X101 and unit_volume is 15 litres.
    Now in sales order in line 1.1 i have entered an item 2E00001010 and quantity as 10. In line 1.2 i have entered an item 2X000X101 and quantity as 10 and saved the sales order.
    1.1 line level volume = 20*10 = 200
    1.2 line level volume = 15*10 = 150
    Order level volume = 200 + 150 = 350
    So as according to the requirement in
    1.1 line level DFF(LINE.ATTRIBUTE14) 200 should be displayed .
    1.2 line level DFF(LINE.ATTRIBUTE14) 150 should be displayed.
    In header level DFF(order.attribute14) 350 should be displayed.
    By using below forms personalization i am able to get the Line level Volume information displayed in Line level DFF(Line.attribute14)
    seq 10
    description : Line Level Volume
    Trigger event : when-New-Item-Instance
    Trigger Object : Line.Ordered_quantity
    Level : Site
    Action Seq: 10
    Type: Property
    Object Type: Global Variable
    Target Object: XX_VOL
    Property Name : Value
    Value = =SELECT to_char(nvl(Unit_volume,0)) from mtl_system_items_b where segment1 =:line.ordered_item_dsp and organization_id = 89
    Action Seq: 20
    Type: Property
    Object Type:Item
    Target Object: LINE.ATTRIBUTE14
    Property Name: Value
    Value = =to_number(:global.XX_VOL)*:line.ordered_quantity
    I would be glad if any one could let me know how to get the Order level volume and get displayed in the Header level DFF(order.attribute14) using forms personalization.

Maybe you are looking for

  • Adobe abandons help. no follow up on case numbers

    just thought i'd enlighten new users/purchasers of the ps/lr photographers bundle of the creative cloud. new choice on the phone tree press two if you wish to cancel your membership. apparently they are overwhelmed or short handed or otherwise cluele

  • How does presentation server cache shared by users and roles in OBIEE 11.1.1.6.7

    We are running through a scenario where user1 is assigned to role1 and run a report and after couple minutes user1 is assigned to role2 and run the same report, in 2nd run i see an error in saw log, even though there is presentation server cache that

  • EDI-IDOC-To see error messages of number of IDOCS

    Hi, I have a scenarios where more than 1000 inbound idoc are with status 51. I want analyse the error messages of all. When i see the entry in EDIDC table the status text is 1&, 2& in stead of document numbers. Pl let me know with which program i can

  • How to unregister/drop a schema

    I want to delete/ unregister a schema.How can I do the same? Currently I'm using isValidSchema for validating a xml with a given schema. I think this function register the schema. When I use the function isValidaSchema with the same URL and same sche

  • Macbook Pro (2GHz Core Duo) won't boot while ANY internal DVD attached

    15" Macbook Pro 2GHz Core Duo (2006-7) Hi all - I'm having trouble with this macbook pro... it runs perfectly fine, as long as I do NOT attach any DVD-drive/Superdrive to the logic board (internal drives). However, if I attach the correct drive (conf