Advanced table read only fields

Hello

I have a table advanced based on VO.

I want to do some column read-only fields.

I did like that.

OAApplicationModule am = oapagecontext.getRootApplicationModule ();

OAViewObject vo = (OAViewObject) am.findViewObject ("SearchHeaderVO1");

Line SearchHeaderVORowImpl = null;

int fetchedRowCount = vo.getFetchedRowCount ();

Rank [] rows = vo.getAllRowsInRange ();

for (int i = 0; i < fetchedRowCount; i ++) {}

If (rows [i]! = null) {}

System.out.println ("In makeReadOnly");

Rows [i] .setAttribute ("EntityCode", Boolean.true);

}

}

What is the right way to go?
Thanks again
Varun

Varun,

1. create an additional attribute in your VO of Boolean type. ex:-name: customReadOnlyAttr

2. set this attribute value as the property readonly for each field in the page. as a ${oa. SearchHeaderVO1.customReadOnlyAttr}

Now in your code, set the value of this attribute programmatically, based on any desired conditions.

What is the State you want to make these fields readonly?

See you soon

AJ

Tags: Oracle Applications

Similar Questions

  • Advanced table read-only elements

    Hi all

    How elements Message choice and Message check box in Advanced Table read-only via code?

    OATableBean oatablebean = (OATableBean) oawebbean.findIndexedChildRecursive ("ItemsTable");
    oatablebean.findIndexedChildRecursive("Type").setDisabled (true);

    cause compilation error.

    setRendered works. How to define the need, read only properties through code?

    Thank you
    Kumar

    Hello

    Try like this

                        OATableBean oatablebean = (OATableBean)tab.findIndexedChildRecursive("ItemsTable");
    
                        OAMessageChoiceBean messageChoiceBean=(OAMessageChoiceBean)oatablebean.findChildRecursive("Type");
                        messageChoiceBean.setReadOnly(true);
    

    Ajay

  • Registration number read only fields of alignment

    APEX 4.0.2 / RDBMS 11G R2

    I would like, in a form of the APEX, aligned to the right a read only numeric value which is calculated by my application.  According to the doc of the APEX, this feature is not available under number of alignment "does not apply to read only fields and the fields where the element HTML Form attributes are specified.

    Does anyone know of a workaround for this problem?  Ideas, suggestions and/or recommendations are welcomed and appreciated.

    Thanks in advance,

    John S

    Hi John,.

    You can try adding some css yourself:

    Add a class to your form field in the Form Element Classes fields HTML CSS attribute and add a property text - align for this class in your css file, or in the header html region.

    For example, put 'rightAlignField' in the attribute of the form element to HTML CSS Classes and add

    to the header html form regions.

    Kind regards

    Vincent

  • API import block and read only fields

    I want to create a custom field for a Contact that will be read only in the interface user of E10, but for that I can import values via import bulk API.  I created my domain via the REST API as a text type and marked read-only; It appears as such in the user interface.  I then create an import via the API definition in bulk and run an import.  The status of the synchronization ends as "warning", and my read only field is not filled.

    I tried the same import API code block using custom fields not unalterable and he succeeds, then I'm sure it has to do with the read-only field.  Is there a way to accomplish what I'm trying to do?

    UPDATE: I received confirmation from someone of Eloqua fields read-only cannot be set via the import bulk API.

  • Read only fields become unlocked when PDF is open again

    I created a quote that is has several buttons on it.  The buttons perform many actions such as the Add/Remove lines, add or remove columns, etc.  There is a "Finalize" button at the bottom of the form that locks all the text fields and hides all buttons so that they cannot be changed by the customer when the quote is sent to them.

    The problem occurs when the form is completed, saved, and then reopened.  All the buttons become visible again and the text field becomes editable when the PDF file is reopened.  Is there a way to keep the hidden buttons and text read-only fields?

    Thank you.

    The "State" of the form is not saved automatically. Under the form of file/properties/Defaults make the checkbox 'Keep changes to the scripts to form when registering' is set on automatically.

    Paul

  • Read only field select set to true but content can remove?

    Hi experts,

    I have a problem when I check-in then I select read-only, but after successfully check-in I can remove this content please tell me why it is possible, I want that he can't delete if I chose True in field read-only?

    Thanks for the intention,

    I think that you have not to my question, Question that is 'defeated shaped when I chose the field read-only as true' content must not removed by any one. But I can remove it. Then things is - so it is possible at the University Complutense of MADRID does not allow as described on the page

    Using folders and WebDAV - 11g Release 1 (11.1.1)

  • PDF form javascript to read only field using the button

    Please let me know the PDF form JavaScript to make the selected fields (text field, dropdown list, etc.) read-only button.

    Do you want your button to read-only?

    Let's start with Acrobat JS Reference.

    do all the fields in a form read-only;

    var oField; variable field processing;

    Browse the form fields;

    for (var i = 0; i)< this.numfields;="" i++)="">

    treat each domain name;

    oField = this.getField (this.getNthFieldName (i)) .readonly = true;

    }

  • How can I jump tab stops to read only fields?

    Hello

    I have created a form using Livecycle ES2 and have a Q.

    I have a Yes and no box that, once Yes is clicked does another check box and the date field read-only. When I click No., they are open for data entry. It works fine, but I found when I click on Yes and then press tab, it always stops on the deposits of only reading.

    Logic and well... very well anything else I did know the fields.

    Is there a way to blow up the field if it is read-only? I guess it would be in the sense of when the field is entered and is read-only, it will automatically go to the next tab stop.

    Any suggestions?

    Try, yourField.access = "protected" instead of "readOnly"

    Kyle

  • How to do a table read only based on a button click event

    I have two tables: table of an insert and a single table reading and calculate the button between the two.
    When the user has entered the values of the first array and push the button calculate, the second table is supposed to show the result.
    I want to calculate the first table to read only when the user clicks the button.

    JDev 11.1.1.5.0
    ADF BC

    You will need to write an EL to the readOnly attributes property in the table representing a Boolean parameter and put a PPR on the table during the click on the button calculate

    readOnly=#{pageFlowScope.isCalculateButtonClicked}
    
  • Save event - make text read-only field if not empty

    I have a document which must have read only 1 field if it is not empty when the form is saved. I have the Document Actions 'spared' configured to run a script that contains only:

    getField("DepositDue").readonly = true;

    The problem is, if I save the document so that it can be filled and saved by adobe reader, this field is changed to read-only. What I need is an if statement to check if this field is empty first, but do not know how to do in this regard. The extered text is a date in the format of date as well.

    The following works for me in paper will save the event, but not the Document spared:

    var f = getField ("DepositDue");

    f.ReadOnly = f.valueAsString;

  • Table read-only with a LOV on VO attribute

    Hello

    I have a VO ('X') which appears as a table in read-only. 'X' has an attribute called "SubscriptionId". The value of "SubscriptionId" is a foreign key to another table called "subscription". My "Subscription" database table contains a column named "Description".

    Example:

    'X' has an attribute "SubscriptionId" = 14

    DB table "Subscription" has a line that looks like this:

    14, "A description of subscription" (where "A description of the subscription" is the "Description" column)


    I created a LOV for "SubscriptionId" on my 'X' VO, whereas it should show the value of 'Description' of "Subscription" instead of the "SubscriptionId".

    If I view my VO 'X' as a form, I can see my LOV (for 'Description').

    However, when I view my VO ('X') as a table in read-only, it is not adhering to the LOV I set on my VO and instead watch the "SubscriptionId".

    What do I need do differently on my table to show the "Description" instead of the foreign key "SubscriptionId"? I want just a text output of the Description, not a list of choices.

    Thank you

    Joel

    Hello
    In simple passerby just put property ReadOnly from the list of choices in the coloum = true
    for example

    headerText = "#{bindings." DocTransactionView1.hints.EmpId.label}.
    ID = "c2" align = "center" >

    label = "#{row." Bindings.EmpID.label}.
    required = "#{bindings." DocTransactionView1.hints.EmpId.mandatory}.
    shortDesc = "#{bindings." DocTransactionView1.hints.EmpId.tooltip}.
    ID = "soc4" readOnly = "true" >


  • Can I change some partitions of the partitioned table read-only?

    I have a table partitioned by range (partitioned hourly).

    I want to keep history in line of the query data (historical data are rarely accessd). But in this way, the table is too large. The performance can be a big problem. Thus, certain problems may arise:
    How can I change the years partition read-only?
    How to decrease the workload on this table and improve performance?

    Oracle 10g (10.2.0.3) + Solaris 10

    How can I change the years partition read-only?

    10.2.x.x I think only tablespaces can be made read-only.

    In 11g you can place tables in read-only mode, but I don't know for specific partitions.

  • How to disable the warning of validation on the calculation (read-only) field in the table

    Is it possible to add a line in a calculation script (JavaScript) that prevents a dialog box of a calculation field validation?

    Scenario:

    • Working with fields in a table inserted.
    • In each line, I have a couple of fields that the user has entered. These fields have a Validation model has allowed that the user must enter the data correctly.
    • There is a calculated field based on the data entered by the users. It is this field that throws a warning dialog box "the value entered for Total_Row1 is not valid. "To ignore the validations for Total_Row1, click on ignore.

    Even if I turn off the Model Validation on fields used for the calculation of the warning dialog box always appears. So, it seems to be isolated in the field of computing.

    The calculation area displays the time and I got it originally set as a Date/time field, but also tried to use a text field (as the calculation should appear as 0:45 for 45 minutes in this area).

    I have a suspicion that the warning appears only because I used an array for formatting fields, as I used similar validation profiles and other calculation fields and see not the message when the fields do not appear inside the table.

    I think of easier workaround would be to disable validation for this particular calculation field, but I have no idea how the script that. Any help appreciated lot.

    CARI

    I discovered the problem.  In a word: it was a mistake by naming the fields.

    • I have fields named with line numbers in the field name (for example FieldName_Row1).
    • and fields calls with FieldName_Row1.formattedVallue must have triggered some confusion.

    As soon as I removed the word 'Row' of file names, the question of the warning dialog validation mystery Adobe Acrobat for the calculation field have disappeared.

    Ago about 3-4 hours of my life that I won't be back... ha - ha but if someone else has the problem, I thought I better share my discoveries

  • Formatting in the Table read-only ADF conditional

    Hi all!

    I would like to ask if it is possible to add conditional formatting to a table of the ADF, (I want to change the background of the cell) according to a rule of one field on this table...

    I tried to put plain JSTL (< c: choose >) after a < af:column > but did not...

    Anyone with some advice?

    Thank you in advance,
    Take care

    Published by: user11313533 on 30 Ιουλ 2009 10:29 πμ

    Hello

    Yes, it is possible via CSS. in the case of JDev 10.1.3 you can get inspired by this blog post: http://www.freewebalbum.com/blogs/faces/bjanko/blogs.jsp?blog=bjanko20071010184401

    Kind regards

    Branislav

  • See the full timestamp in the column of table read-only to ADF

    JDeveloper 12.1.2

    My VO is SQL based (no OA) and selects just the DB table 3 attributes. One is the DATE.

    By default the attribute date in original Version is created in the form of stamp. Then I dropped this table on a jsf page.

    My purpose is to display full timestamp, date not only piece.

    So, I went back to the original Version and changed the UI tips for the attribute. Now, it looks like this:

    < ViewAttribute

    Name = "InterviewDateTime".

    IsUpdateable = "false".

    IsPersistent = "false".

    PrecisionRule = 'true '.

    Type = "Java.Sql.Timestamp"

    ColumnType = "DATE".

    AliasName = 'INTERVIEW_DATE_TIME. '

    Expression = "INTERVIEW_DATE_TIME."

    SQLType = 'DATE' >

    Properties of <>

    < SchemaBasedProperties >

    < FMT_FORMAT

    ResId="reports.dataaccess.mfrp2.mfrp2Rep3.InterviewDateTime_FMT_FORMAT"/ >

    < FMT_FORMATTER

    ResId="reports.dataaccess.mfrp2.mfrp2Rep3.InterviewDateTime_FMT_FORMATTER"/ >

    < / SchemaBasedProperties >

    < / properties >

    < / ViewAttribute >

    In JSF page the code is like this:

    < af:column sortProperty = "#{bindings.mfrp2Rep3.hints.InterviewDateTime.name}" sortable = 'true' "

    headerText = 'Interview Date Time' id = 'c3' >

    < af:outputText value = "#{rank." InterviewDateTime}.

    shortDesc = "#{bindings.mfrp2Rep3.hints.InterviewDateTime.tooltip}" id = "ot3" > "

    < af:convertDateTime pattern="#{bindings.mfrp2Rep3.hints.InterviewDateTime.format}"/ >

    < / af:outputText >

    < / af:column >

    However, I still don't see much of the time? Any ideas?

    Change SQLType = 'DATE' to SQLType = "TIMESTAMP" in the definition of the attribute XML and set a mask of the appropriate format in the indication of the format of the attribute of the VO.

    Dimitar

Maybe you are looking for

  • Equium L40 - cannot boot from recovery CD

    Hi, can anyone help? I want to use the recovery cd, but when I press f12 at startup and the drive in the menu, nothing happens.After a few moments, the laptop starts normally. Its an equium L40. Help, please

  • Hi HP

    When I run my assistant to win 8 it shows a compatible application and other things I look at to re install and incompatible apps there was one thing I didn't understand it says "secure boot is not compatible with your PC your PC firmware does not su

  • Impossible to uninstall the visual studio 2013 Community

    Tried to uninstall the visual studio 2013 to 2015 community, but this has happened every time Is there another way to uninstall?

  • time in the queue - ICM/IPCC Enterprise

    Once a call is on hold, how to configure route after a certain period of time? For example, management wants the call to route to a grouping of different positions, after that the appellant was in the queue after 60 seconds. I tried different formula

  • Share request administrator password

    I have three PCs: -Windows 7 Enterprise edition 2 -Windows Server 2008 with AD I have domain-joined computers and created on each PC power users. The problem when I try to share any folder I always get a screen asking you personal username and a pass