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

Tags: Java

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

  • Select the property read only question to cross the field validation

    I've created two elements on a page and they are named P47_REQUEST_SOURCE_KEY (RSK) and P47_REQUEST_SOURCE_OTHER (RSO). I want to do SAR conditionally read-only based on the value of the RSK. BSR, here is a list of selection based on a LOV and RSO is a text field. I want RSO read-only unless the Serbian Republic of Krajina is equal to 'other '. I've experimented with read-only Condition Type value of ' expression element 1 is! exepression2 =', P47_REQUEST_SOURCE_KEY and expression expression1 two "other". (The value of the key stored in the LOV is 'OTHER' but the display value is 'Other'). I also tried the ' text in expression1. = to exepression2 with various permutations of expression1 and expression2.

    How do RSOcolumn condition that the content in the Serbian Republic of Krajina? No matter what I put the values in the properties read-only which is always read-only even when the value of the RSK is "other". Any ideas what I am doing wrong

    Thank you, Ned

    Hello

    You can try to javascript
    Place it in the HTML page header

    
    

    This page HTML Body

    onload="disRSO();"
    

    And then point the Form HTML P47_REQUEST_SOURCE_KEY element attributes

    onchange="disRSO();"
    

    Hope this helps

    BR, Jari

  • How to make a part of the BLOB read-only?

    Hi all

    I need to open a word document saved in the database read-only. It is for the user manuals. I got the code, its working very well... But I need to open the word read-only document. How do I do that? A way to make the POINT of BLOB read-only?

    The structure of the table is as follows.

    ANNUAL NOT NULL NUMBER (5)
    NAME VARCHAR2 (128)
    BLOB OF DOC
    DOC_NAME VARCHAR2 (50)



    Thanks in advance,

    Nycy

    Hello

    What do you mean by 'read only '?
    If you don't want to store any subsequent end-user, do not save this return to the database after you display.

    François

  • How can I change the attributes read-only or system files?

    How can I change the attributes read-only or system files?

    To view or to remove the read-only or system attributes, use the Attrib command at a command prompt:

    1. click the Start button, type cmd in the search box and press ENTER.

    2. to view the syntax for the Attrib command, Type attrib------? at the command prompt.

    WARNING: If you remove the read-only or a file system attribute, it may seem like a regular folder and some customizations may be lost. For example, Windows customizes the Fonts folder and provides a special folder view that allows you to hide variations, such as bold and italics. It also allows you to change the display settings of the file in a way that is specific to fonts. If you remove the read-only attributes and the Fonts folder system, these custom display settings not available. For folders that you have customized by using the tab, customize the folder properties dialog box, the folder icon and other other customizations may be lost when you remove the read-only attribute.

    If a program cannot save files to a folder with read-only, such as My Documents, change the read-only to the system attribute by using the Attrib command at a command prompt.

    To remove the read-only attribute and to set the system attribute, use the following command:

    attrib - r + s drive:------------.

    For example, to remove the read-only attribute and set the attribute to system for the C:\Test folder, use the following command: attrib - r + s c:\test

    Be aware that some programs may not work correctly with folders for which the read-only attribute and the system attribute are granted. You can use the following command to remove these attributes:

    attrib - r-s c:\test

  • JavaScript to make the fields to fill in the form read-only?

    How the fields to fill out my form read-only? I created the form, send to clients. Clients fill out the fields and click the submit button. The submit button pulls an automatically generated email and send the pdf file. I want the pdf file to send with the fields read-only. How then?

    This code should do the trick:

    for (var i=0; i		   
  • 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

  • Format/erase how to read only the sd card.

    The card had already switch to unlock. When try to formatting so that send the message that this is a read-only. The map equipped with old data GPS which must erase and reuse the card.

    Rastafario

    So it is probably locked by Ford for GPS use only.

  • 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

  • CD - RW will only burn the data read-only and will not format a disk

    I have a laptop Latitude D610 w/a CD-RW/DVD (SCB5265) disc.  I can burn data on CD, but the data is read-only.  I can't format a drive either.  The drive itself seems to be well - do I need a different software?  If so, someone know where I can find that?

    Thank you - this forum has been a great help to me.


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

  • 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

  • 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}
    
  • Cannot change the expression - read-only

    I have a problem as some of the steps in my sequence of the expression has become read-only. This has happened on and off the power for awhile on several machines, the job is to create a new step copy the expression and remove the old stage. I did once see a message something is set to 'read only', but I couldn't find where to disable it.

    I can always change to another part of the stage, in the properties-> Expressions pre and status windows are white and I can change them, the expression post window is gray and cannot be changed. The expression tab is the same, gray and read-only.

    TestStand 2012, that step is now a function f (x), don't know if it's always the case.

    I searched here and find only very old posts that sugest that the problem is solved in 2012.

    TS is considered to be a well hidden. You can view the properties hidden in the Preferences of the Station Options tab.

    Looks like your sequence files are INI format, then you might be able to fix it in a text editor. Open the movie file in a text editor and locate the steps in question. They are listed in order of their index position (e.g. "[SF. SEQ [0]. Hand [2]. TS]"), or you can use their stage names or IDs to find. In the steps that you want to modify, delete the line ' % FLG: PostExpr = 1 "to reset the indicators of the property to 0.

    You can try to generate checksums before and after copying the file in sequence to check if the file is actually change. You can also try saving the file in the sequence in binary format or XML instead of INI.

  • Cannot delete the files read-only on display

    Hello

    I copied files from my PC to the view, but when they were on the PC, they were marked read-only. Now, I found that I can't remove them from the sandisk as it says that they are read-only.

    How do I change the properties of the files so I can delete them?

    Thanks for any help!

    Worto.

    I format the device if these files take up a lot of space, then resyn or copy the data (do not read that things) on the device.  Be sure to back up all data you want to save the device before formatting.

    The format option is in the settings menu system.

Maybe you are looking for