Rows or columns to be read only

Hi,
I need to set Cells or Rows to Read Only If some attribute doesnt contain any value.
First i have to search for records basd on some condition and display it in the table. And the records will be read only if certain attribute/field of the record is NULL.
Regards,
Sonika

Hi Sonika,
for tables the individual cell editors used within the column have  properties that can be mapped to the context for things like read only and visibility.
So you can turn the Cell on and off programmatically by changing the context.
Access to column and cell variants is also possible via the so called MODEL on the ALV
component.  Check some the of the standard demos beginning SALV* for ALV examples.
regards
Phil.

Similar Messages

  • Need to Add and Remove Columns of ADF Read Only table from Backing bean

    I have a scenario where I am trying to Populate TransientVO which is shown has a ADF Read Only Table in page.
    I have couple of Check Boxes Based on their selection I am trying to render and hide certain Columns.
    But the Issue which I am facing is only the Column Header seems to change where as the Rows and Values doesnt..
    even If I apply the expression language rendering condition on the outputText inside those columns.. ..
    So I am thinking to add and remove VO Attribute columns to the table from backing bean.
    Need some sample code snippet or a better design to achieve this. Its kind of urgent too...having an aggressive deadline :(
    Please chip in People..
    Thanks in Advance .
    TK

    Table Code..
    <af:table value="#{bindings.InventoryGridTrans.collectionModel}"
                                    var="row"
                                    rows="#{bindings.InventoryGridTrans.rangeSize}"
                                    emptyText="#{bindings.InventoryGridTrans.viewable ? 'No data to display.' : 'Access Denied.'}"
                                    fetchSize="#{bindings.InventoryGridTrans.rangeSize}"
                                    rowBandingInterval="0" id="t4"
                                    partialTriggers="::sbcSales ::sbcUsage ::cb1">
                            <af:column sortProperty="Period" sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Period.label}"
                                       id="c38">
                              <af:outputText value="#{row.Period}" id="ot33"/>
                            </af:column>
                            <af:column sortProperty="Past12SalesCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12SalesCount.label}"
                                       id="c29"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                              <af:outputText value="#{row.Past12SalesCount}"
                                             id="ot40"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12SalesCount.format}"/>
                              </af:outputText>
                            </af:column>
                            <af:column sortProperty="Past12UsageCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12UsageCount.label}"
                                       id="c40"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                       visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                              <af:outputText value="#{row.Past12UsageCount}"
                                             id="ot47"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12UsageCount.format}"/>
                              </af:outputText>
                            </af:column>
                            </af:column>
                    </af:table>

  • UIX: How to add linked view table columns to the Read-only table

    Hi
    I have two tables
    T1: ID, STAFF_ID, NOTE
    T2: STAFF_ID, USERNAME
    I have created corresponding entity objects (E1, E2), views (V1, V2), association A(E1->E2 as *..1 using STAFF_ID) and viewlink VL(V1->V2 as *..1 using association A).
    My model in AppModule looks like
    V1
    ----V2 via VL
    Now I have single UIX page in which I drop V1 as Read-only table. The table displays columns correctly: ID, STAFF_ID, NOTE
    What I want is to add a column STAFF_ID from the V2 into this table. I have tried to drop it into the table but when the page is run it does not display anything in that column. It has to do something with binding.
    I have done similar test with dropping V1 as read-only FORM and then added STAFF_ID from V2 as messageTextInput and everything is rendered correctly.
    Anyone knows how to do the same thing but with table?

    Yes that is true but I would like to give another example where this may not apply.
    Say I have 3 tables
    CLIENT(INDIVIDUAL_ID,...)
    ADDRESS(ADDRESS_ID,...)
    ADDRESS_HISTORY(ADDRESS_ID, INDIVIDUAL_ID,BEST_ADDRESS)
    where ADDRESS_HISTORY is intersection table in CLIENT to ADDRESS many to many relationship.
    Suppose I have VO2 that consists of ADDRESS and ADDRESS_HISTORY entities (corresponding association exists) and user needs to add new address for the selected customer in VO1 (made from CLIENT entity). There are several issues here:
    1) An input form made out of VO2 must contain an entry for BEST_ADDRESS flag but since it will be read-only, seems that this approach may not work. However, I found a post re:Updating view objects with multiple entities that provides workaround this.
    2) In that case assume that I use DBSequence to automatically add ADDRESS_ID when user inputs new record in this input form. I am using DB Trigger on ADDRESS table and have selected ADDRESS_ID in ADDRESS entity as DBSequence. Now observe that VO2 would contain another ADDRESS_ID from ADDRESS_HISTORY entity which has to be automatically populated with the same value. How?
    In a nutshell my question relates to the problem how to automatically populate intersection table when new record is added to the detail. But the trick is that some attributes of the intersection table must be inserted by the user in the form..
    Please advise

  • Read only column in tabular form

    There is a not null column ( say SEQ) in a tabular form that is getting an auto value from other process. 2 more columns need user input on each row.I need to make this column(SEQ) as read only.
    If I make this column (SEQ) as standard report column then when I submit the newly added row , I always get ORA-20001 error- can not insert NULL into SEQ.. even though I can see there is a value there. Switch ithe column back to text field, the insert went just fine .
    How do you solve this read only column issue ?
    Thanks a bunch for your help.
    Tai

    thank you for your reply.
    Nope, SEQ is not the first column. Primary Key is and I leave the pK alone.
    When I press ADDROW button , tabular form is like the following: ( table alreay has 2 rows), I auto populate SEQ column and I like to make this SEQ column display only.
    -- represents checkbox
    PK      SEQ      col1           col2
    --     1     890          test1
    --     2     675          test2
    --     3     

  • 11.5.10 : Modifying read only property of columns

    Hi All,
    I am having an advanced table with 4 columns and all of them are editable [value is entered through an LOV].
    My requirement is that if user enters value in one column then all other columns should become read only [in that row only].
    Can somebody suggest some way out? Should i go for EL or PPR?
    A sample code will be of great help.
    Regards
    Lokesh

    Hi,
    Please correct if im wrong...
    U have impleted 3 lov item in advance table RN lov1,lov2,lov3
    if any one selected remaing 2 should moved to read only....
    for this
    use ppr for this,cretae 3 tr attributes and chnage the read only prpty using SPEL ...
    then in CODE.:
    if("lov1".equals(pageContext.getParameter(SOURCE_PARAM)) && "lovValidate".equals(pageContext.getParameter(EVENT_PARAM)))
    write the code for making remaing 2 lov read only.
    else if("lov2".equals(pageContext.getParameter(SOURCE_PARAM)) && "lovValidate".equals(pageContext.getParameter(EVENT_PARAM)))
    write the code for making remaing 2 lov read only.
    else if("lov3".equals(pageContext.getParameter(SOURCE_PARAM)) && "lovValidate".equals(pageContext.getParameter(EVENT_PARAM)))
    write the code for making remaing 2 lov read only.
    im sure try this u can achive this issue..
    Nani
    Edited by: Nani652595 on May 31, 2010 11:15 PM

  • Read Only ID Columns

    Hi,
    I have several simple look up tables with two columns, ID and DESCRIPTION.
    ID is a numeric primary key.
    They have been put into their own groups with the Layout Style set to "table".
    The ID attribute's "Updateable?" has been set to "When New".
    My problem is that when I go to the pages that edit these tables, some of the ID columns
    are editable while some of the ID columns are read-only. I want all of the ID columns
    to be read-only (except for the new row).
    The ID attribures look identical in the ADF BC Properties Editor for all of the tables.
    Where else should I look for differences?
    Cheers,
    Patrick Cimolini

    Patrick,
    Actually, the line should not be present in the View Object file. Only if it is cleared, the value from the Entity Object should be picked up. I have experimented a bit and I could reproduce one weird case.
    Start by going to the Entity attribute and set it to 'Always'. Then go to the View attribute and set it to 'Always' as well. Now check the ViewObject xml file. The 'isUpdateable' attribute should NOT be there now! If it is, something weird is going on and I would close JDev, remove the attribute in notepad and launch JDev again.
    In the next bit, take care you follow the steps in this exact order. Go to the View Object attribute, and set it to 'While New'. Go to the Entity Attribute and set it to 'Never'. Go back to the View Object attribute. It will now be set to 'Never' and you won't have the option to put it back to 'While New' or 'Always' (greyed out). All very nice and logical, but if you look at the View Object XML file, it still says 'isUpdateable="while_insert"'. This is indeed an inconsistency between the JDev GUI and the actual XML file. As JHeadstart uses the XML file, it will use the 'while_insert' instead of the 'Never' that both the Entity and ViewObject GUI are showing you.
    However, this is the only problem I have found. Could you please make sure that if you set everything back to 'Always', if necessary remove that 'isUpdateable' attribute from the ViewObject XML file as I mentioned above, then only set the 'While New' at the Entity level, and make sure that the 'isUpdateable' property is NOT present at the ViewObject XML file, if everything works as expected when running the generator?
    Kind regards,
    Peter Ebell
    JHeadstart Team

  • UIX - Changing read-only-table row colors

    Hi
    I have the requirement to alternate the background-row-color in an UIX read-only-table dependent on a value in the row.
    Can anybody point me in the right direction of a solution please?
    I'm familiar enough with the styles in the XSS style sheets, and using EL to dynamically change attributes of a UIX web page when rendered. However in the default <table> UIX tag generated by JDeveloper when dragging a data control onto a UIX web page, there doesn't appear to be a <row> tag for changing the background colour?
    Any help appreciated
    I'm using JDeveloper 9.0.5.2.
    Cheers,
    CM.

    I don't know if this works in JDeveloper 9.0.5.2, but there's a solution at least for JDevloper 10.1.2. You have to define a different styleClass (a CSS) for each column, depending on a condition. This solutions works as well together with row banding:
    <column>
      <columnHeader>
        <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.MyView,'Seats')}" text="Seats"/>
      </columnHeader>
      <contents>
        <rowLayout width="100%" styleClass="${ui:cond(uix.current.IsLocked == 'J', 'OraTableCellLocked', '')}">
          <contents>
            <cellFormat>
              <contents>
                <textInput model="${ui:defaulting(uix.current.Seats, ' ')}" columns="10" readOnly="true"/>
              </contents>
            </cellFormat>
          </contents>
        </rowLayout>
      </contents>
    </column>The styleClass "OraTableCellLocked" has to be defined in the file "base-desktop.xss". An example ("Locked" cells are displayed with a red background):
       <style selector=".OraTableCellLocked">
        <includeStyle name="TableCellDataText"/>
        <includeStyle name="TableCellDataVerticalAlign"/>
        <!--<includeStyle name="TableCellDataBackgroundColor"/>-->
        <includeStyle name="TableCellDataBorderColor"/>
        <property name="background-color">#FFA4A4</property>
      </style>Hope this helps, although the original is very old.
    Regards,
    Georg

  • Read only columns in Planning Webform

    Hi All,
    I have build a form with Period (months jan, feb and Mar) and members of Custom called Type dimension in Columns.
    The members in Type dimension I have selelcted is Type1, Type1 Adj, Type2,Type2 Adj.
    My requirement is that I want to show Type1 and Type2 Columns as READ ONLY where the users should not enter any data in those two coulmns.
    Is there any way to achieve this requirement.  I am using Planning 11.1.2.2 version.
    Any suggestions would be appreciated.
    Thanks in Advance

    Hi,
    Please follow the below steps to make particular columns as read-only in Hyperion 11.1.2.2.
    1) Open the form in Edit mode
    2) Click on the Layout tab, once layout tab is opened. Please click on the below Column which you want to make as "Read-only" (A, B, C etc), if you have three columns then you could see A, B and C.
    Note: Mouse Cursors are very sensitive in latest version, if you click on the right place only, you will get the required proprieties, otherwise it wont show any properties.
    In this example, am going to make Column B as read only. Exactly move the cursor on "B" and click, in the right hand side, you could see lot of properities, click on "Segment Properties" and under that option as "Read only", select that check box to make column as read only.
    Thanks,
    Prakash

  • Setting read-only property for a RTL inputtext.

    HI,
    I am using JDeveloper version 11.1.2.2.0. In my fusion web application, in the af:inputtext field, if the language is, RTL or LTR the value is displaying according to that. Suppose, if it is English, the value is displaying left to right. If it is, Arabic, the value is displaying from left to right. But if I set the column value is read-only, everything is displaying as left to right. Here is the code of my input text field.
    <af:column sortProperty="#{bindings.PhraseTranslationView3.hints.Description.name}"
    sortable="true"
    headerText="#{bundle['PhraseTranslation.des']}"
    id="c5">
    <af:inputText value="#{row.Description}" id="ot6"
    inlineStyle="border-style:none; overflow:hidden;border-color:rgb(255,255,255);direction:#{row.TextDirection};border-width:thin;height:16px; font-weight:bold; color:rgb(0,0,0); font-size:8.0pt;font-family:Arial Unicode MS;"
    label="Label 6">
    </af:inputText>
    </af:column>
    What is going wrong in this?

    Yeah, I have set it to 'True'. If I set it, the value is not displaying from left to right.
    Here is the code.
    <af:inputText value="#{row.Description}" id="ot6"
    inlineStyle="border-style:none; overflow:hidden;border-color:rgb(255,255,255);direction:#{row.TextDirection};border-width:thin;height:16px; font-weight:bold; color:rgb(0,0,0); font-size:8.0pt;font-family:Arial Unicode MS;"
    label="Label 6"
    styleClass="rtl" readOnly="true">
    </af:inputText>
    Regards,
    Infy

  • View object is read-only on Static Table

    Greetings,
    i have create a static af:table in JDeveloper 11.1.2.4.0 JSF,
    with 3 temporally columns, so i can create rows and select data. When im done create as many rows and choose data from all 3
    select one choice columns, to save on entirely different table using methodAction.
    I make all 3 columns Always Updatable, but when im going to create a row, it throws me the read-only table error.
    Keep in mind this temporally static table have no primary key.
    What should i do to bypass this error?
    Thanks in advance for any help.

    VIew object u created using real only view object wizard?  May be that can be cause..

  • 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

  • Read-only report for two records

    I have a table that has two records per one parent record.
    I want to display these two records on a page containing read-only fields (items) of the parent record.
    I was thinking of just having two regions each of which would perform a SELECT to pull it's respective record.
    Would I have to create fields for each record to load the fields into and then make each field be read-only?
    I did this to load one of the records into a form:
    select field1, field2 into px_field1, px_field2 where...
    I just wondered if there was an easier way other than creating two sets of fields to hold each record.
    I tried some of the canned reports using the wizard. Easy enough to pull the two records but the formatting goes a mile to the right and this page is to be used for printing.
    Thanks,

    semaphore,
    Have you considered using a Master Detail form. The forms have record navigation and the detail columns of the form can be altered to Display As Standard Report Column making them read only. As well, the Master part of the form can also be configured to be read or display only.
    Jeff

  • Coulmn should be read only

    Hi every one,
    I want to set field values to be read only
    I have chosen responsibility “Employee Self-Service” and then function “Personal Information” under that.
    Under section “Phone Numbers” I have , click on Update
    By default Number column is always editable.
    here I have to implement ,
    If I select Type as “Home Fax”, Number column should be read-only.
    How can I do this?
    Edited by: Want Java on Nov 15, 2010 3:18 AM

    Hi,
    Below steps for Vo extension:
    ---Copy the package in which that seeded vo exists to your local machine where you have jdeveloper installed.
    ---Create a new OA Workspace and project.
    ---Create your Custom package and in that create new View Object with new Query including your new attribute.
    Ensure in the extends you select the Seeded VO.
    ---While creating VO select in extends property standard vo and create tr attribute.
    ---Double click on your jpx and go to substitution and select seeded VO in available list and Custom VO in Substitute List Click on Add.
    ---FTP the new package you created to $JAVA_TOP
    ---Run jpxImport utility for your substitution to take place.
    ---Bounce apache.
    ---Through personalisation set read only for Number as i given in SPEL.${oa.seacrhVo1.readonlytr}.
    ---While you will attach VO to that field ensure View Instance name is your Seeded View Instance name while view Attribute will be your new Attribute added.
    Refer:
    http://oracle-hack.blogspot.com/2008/03/how-to-extend-view-object-in-oa.html
    Regards
    Meher Irk
    Edited by: Meher Irk on Nov 15, 2010 6:39 PM

  • DBMS - Data not visible to read only account users.

    I have created below view to know the status of my batch jobs which run on server every sunday.
    CREATE OR REPLACE VIEW CAFDB_REFRESH AS
    SELECT
    log_id,
    owner,
    to_char(log_date, 'DD-MON-YY HH24:MI:SS') TIMESTAMP,
    job_name,
    status,
    ERROR#,
    run_duration,
    instance_id,
    additional_info
    FROM user_scheduler_job_run_details;
    it is working fine and i am able to get the information.
    now to make it visible to read only account users - using "grant select " i have given access and also created public synonym.
    but it is showing only column names in read only account not the data.
    how to make this visible to read only account?
    please guide.

    USER_ views will only have the objects owned by the user running the query..In your case it will have only the schedules done by the user.
    You will have to ue ALL_ or DBA view (all_scheduler_job_run_details)

  • Read only set for few rows of a column in a table (not ALV)

    Hi Gurus,
    I have a table with multiple rows and columns. Under a particular column, I have to make few rows as read only, few rows as editable based on a coondition. How can I achieve this. I know how to make the whole column as editable or read only. But I'm not able to achieve few rows in a particular column as editable and few read only. Please give me more detail code.
    Appreciate your help.
    Regards,
    David.

    Hello,
    That you can achieve by creating an attribute isReadOnly of type WDY_BOOLEAN in the context node that you bind to the TABLE. And set isReadOnly attribute based on your condition whether to set readonly or editable for all the context elements.
    And in the layout view, for the column which has to be made readOnly or editable, bind the property readOnly to the context attribute isReadOnly.
    When you run application, you will see the column as readOnly if the attribute was set to true and editable if it was set to false.
    Hope this helps!
    Regards,
    Srilatha

Maybe you are looking for

  • Dreamweaver 8 'Brace balancing' bug

    One of the worst features of php is the reliance on braces for flow control. Although I try to carefully indent my code to indicate where I am, I frequently get into trouble because I have overlooked some brace somewhere. Dreamweaver's 'Brace balanci

  • How do you get the iTouch to charge if it is frozen on the red charging icon?

    My iTouch gen. 3 is displaying the red charging icon yet won't actually turn on. It's been displaying this for about 4 hours now with no change. I've tried resetting it and restarting it to no avail. Any suggestions?

  • Changing/Assigning the username and password for dataprovider.

    I'm creating a simple login screen, that would take the username and password from textboxes and replace those (mines actually) that was used in the dataprovider when the IDE sets the DP up when binding to an object. If someone has another approach I

  • How to uninstall 3rd party app from MacBook Pro?

    Does anyone know how to uninstall a 3rd party application (RMSViewer) from MacBook Pro?  The app doesn't work and I want to remove it from memory.  I can't find an "uninstall" utility on my computer and the 3rd party software doesn't include an unins

  • Activity Price in Cost Component Structure

    Hi, After costing run I have updated Activity Price in KP26.. I want to see latest activity price in Cost component structure e.g. Labour Activity and Machine Activity..cost for this a)  Is it require re-costing run? b) how can we calculate activity