Enable/Disable Column in a Advanced Bean Table

Hi,
I have 2 columns that needs to be enabled/disabled on a standard oa page PO Lines summary page.
I went through couple of blogs/forums and found 2 approaches :-
Approach 1
1) Extended the standard VO POLinesMerge.
2) Added a attribute column DeriveDisplayFlag of type VARCHAR2 . This call a database function and will return Y or N
3) Added a attribute of type ShowAdditionalColumn boolean. the get method of this attribute returns TRUE if DeriveDisplayFlag is 'Y' otherwise returns FALSE.
4) created a substitution for the custom VO
5) uploaded the substitution to mds.
6) copied the xml/class files to $JAVA_TOP/..
7) Bounced entire middle tier
8) using personalization, entered a SPEL command on the rendered property. I know rendered will hide/show the column but for time being I just want this to work.
But this fails :-
oracle.apps.fnd.framework.OAException: Message not found. Application: FND, Message Name: FND_VIEWOBJECT_NOT_FOUND. Tokens: VONAME = XXPBPoLinesMergeVO; APPLICATION_MODULE = oracle.apps.po.document.server.DocumentAM;
I am not aware how to get around this. Can someone help please?
Approach 2
1) steps 1 to 6 from Approach 1.
2) trying to extend controller class OrderLinesTableRNCO. But have couple of questions. This iis a advanced bean table so how should i reference individual record and the column that i need to disable/enable ?
Conceptual questions
Also, when i am entering a new record at what point in time the 2 new attribute will derive its value? the 2 attributes are dependent on the Item number column but i have not created a dependency between the attributes and Item# column.
Will the controller logic fire for every column while i am entering a new record?
Thanks.

Hi Anil,
Thanks for the response. I have given up that i will get reply on this post.
I have done the substitution and upload the jpx to umsing importer.
But you are correct may be i might have done something wrong. Can you please help me. I can send you the files if you can review and let me know it will be great.
Also, will this approach work since PO Lines is a advanced bean table ?
One of the experts suggested to use Bound values. I am not sure how to implement it though?
I have went and told back to my business team that I am not able to do this so now they have asked me to enable/disable columns based on a dff value on po header. I thought this will be easier by extending the controller class on PO Lines table but that too is not working.
Can you help me please ?
Here is my code to extend the controller class :-
package xxpb.oracle.apps.po.webui;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;
import oracle.apps.fnd.framework.webui.beans.table.OAColumnBean;
import oracle.apps.fnd.framework.webui.beans.table.OASortableHeaderBean;
import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
import oracle.apps.po.document.order.webui.OrderLinesTableRNCO;
public class XXPBOrderLinesTableRNCO extends OrderLinesTableRNCO
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAAdvancedTableBean tableBean =
(OAAdvancedTableBean)webBean.findIndexedChildRecursive("LinesTableRN");
OAMessageLovInputBean poLineLov =
(OAMessageLovInputBean)tableBean.findIndexedChildRecursive("XXPBSecondaryUOMLOV");
poLineLov.setDisabled(false);
}

Similar Messages

  • OA Framework Enable/disable  columns conditionally in a table.

    Hi
    I have a requirement to enable / disalbe multiple coulmns of a row in a table.
    For ex: A table in which user can enter items with a add row button. The table has item name and three othere columns new price, amount off and discount off. If user enter enters new price then other two columns should be disabled and vice versa.
    I tried following:
    I added a CO to the table and I registered PartialFireAction event for each of columns.
    Each column is mapped to a PVO attribute ${oa.SpecialPricingPVO1.NewPriceEnable}, ${oa.SpecialPricingPVO1.amountEnable}, ${oa.SpecialPricingPVO1.percentOffEnable} etc.,
    In the Event method code and PVO init method I'm setting the Boolean value for above PVO attributes. In the init of PVO I'm always getting the first row.
    The problem I have is that the columns of all rows are getting the same boolean values based on latest row values. So if I enter values for AmountOff column then New Price and Percent Off are getting disabled for the latest row and for all other previous rows.
    Can some body suggest how can I over come this problem? is there a way I can refer row number in SEPL attribute references?
    Or suggestions on any other approach that works to enable / disable column in multiple rows would be great

    In order to capture row level PPR events you need to trap the row which triggered the PPR event, pass the row reference and modify the value of the row accordingly.
    if ("<ItemPPREventName>").equals(event))
    // Get the identifier of the PPR event source row
    String rowReference =
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] parameters = { rowReference };
    // Pass the rowReference to a "handler" method in the application module.
    am.invokeMethod("<handleSomeEvent>", parameters);
    You need to do this in addition to the databinding which Tapash has specified in his last reply. For details on how to databind properties to a viewAttribute check the dev guide.

  • Scroll Bar Enable/Disable

    I need a code that will enable and disable the browser window
    scroll bars when the browser window is resized smaller than my
    MovieClip (800x650) and will disable them when the browser window
    is bigger than the movie clip.
    I have my publish settings set at 100% and becuase of this it
    does not allow the browser scroll bars to be enabled/disabled.
    Thanks In Advance For Any Help You Can Provide!

    The scrollbar can be placed on a separate stacked canvas, the same dimensions as the scrollbar. Then the canvas can be shown or hidden.

  • Button enable/disable in Master-Detail table

    I am using JDeveloper 11.1.1.3.0 and I have a page fragment (.jsff) which includes a Master-Detail table and the Master table has 3 buttons that get enabled/disabled based on the specific string within a column say, if the column has value, 'DRAFT', the buttons should be enabled. In all other cases, the buttons should be disabled.
    The above mentioned scenario works in cases where the table has more than one row in the table; but in two cases the buttons don't get enabled even though the column has 'DRAFT' as its value:
         1. when the table first loads with the data populated in the table; clicking on the first row doesn't trigger the buttons, clicking on any other row triggers the buttons
         2. when there is only one row in the table
    To resolve this, I tried looking at the logs for any specific information regarding the buttons getting enabled or disabled. I couldn't find info on setting up a breakpoint for the commandbutton and the disabled property which would enable me to determine whether it is being triggered as soon as the table gets populated or not.
    How can I get the buttons to work per my requirements? Also, can I set breakpoints for the button and/or evaluate disabled property's EL expression?
    Thanks in advance.

    Navaneeth:
    The buttons are part of panelCollection which exists in panelHeader. As the below code demonstrates,
    1. Buttons are defined in the toolbar (t2) in panelCollection (pc1)
    2. Each buttons' partialTrigger is set to the table (md1)
    3. Tables' (md1) partialTrigger is set to the toolbar (t2).
    <af:panelHeader text="#{viewcontrollerBundle.HISTORIC_PANEL_SPECS__TESTER_S}" id="ph2">
            <af:panelCollection id="pc1" styleClass="AFStretchWidth">
              <f:facet name="menus"/>
              <f:facet name="toolbar">
                <af:toolbar id="t2" partialTriggers="t2">
                  <af:commandButton actionListener="#{bindings.promotePanelSpec.execute}"
                                    text="#{viewcontrollerBundle.PROMOTE_PANEL_SPEC}"
                                    id="cb1" icon="/Images/up16.png"
                                    partialTriggers="md1"
                                    disabled='#{bindings.Status!="DRAFT"}'
                                    immediate="true"/>
                  <af:commandButton text="#{viewcontrollerBundle.ADD_TESTER_SPEC}" id="cb2"
                                    partialTriggers="md1"
                                    icon="/Images/action_add.gif"
                                    actionListener="#{bindings.CreateWithParams.execute}"
                                    action="addTestSpec"
                                    disabled='#{bindings.Status!="DRAFT"}'/>
                  <af:commandButton actionListener="#{PanelSpecTesterSpec.deleteTesterSpec}"
                                    text="#{viewcontrollerBundle.REMOVE_TESTER_SPEC}"
                                    id="cb3" partialTriggers="md1 ::pc2:t1"
                                    icon="/Images/delete.png"
                                    disabled='#{bindings.Status!="DRAFT"}'/>
                </af:toolbar>
              </f:facet>
              <f:facet name="statusbar"/>
              <af:table id="md1"
                        rows="#{bindings.PanelSpecTesterSpecView1.rangeSize}"
                        fetchSize="#{bindings.PanelSpecTesterSpecView1.rangeSize}"
                        emptyText="#{bindings.PanelSpecTesterSpecView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                        var="row"
                        value="#{bindings.PanelSpecTesterSpecView1.collectionModel}"
                        rowBandingInterval="0"
                        selectedRowKeys="#{bindings.PanelSpecTesterSpecView1.collectionModel.selectedRow}"
                        selectionListener="#{bindings.PanelSpecTesterSpecView1.collectionModel.makeCurrent}"
                        rowSelection="single" partialTriggers="::t2"
                        filterVisible="true" displayRow="selected"
                        filterModel="#{bindings.ProductIdPanelSpecVersionToolNameQuery.queryDescriptor}"
                        queryListener="#{bindings.ProductIdPanelSpecVersionToolNameQuery.processQuery}">
                <af:column headerText="#{bindings.PanelSpecTesterSpecView1.hints.ProductId.label}"
                           sortProperty="ProductId" sortable="true" id="c39"
                           filterable="true">
                  <af:outputText value="#{row.ProductId}" id="ot28"/>
                </af:column>
                <af:column headerText="#{bindings.PanelSpecTesterSpecView1.hints.Status.label}"
                           sortProperty="Status" sortable="true" id="c43"
                           filterable="true">
                  <af:outputText value="#{row.Status}" id="ot40"/>
                </af:column>
              </af:table>
         </af:panelCollection>
    </af:panelHeader>The fact that the above code works when there are multiple rows tells me that buttons are having trouble reading the first row of the table.
    Also, I changed the displayRow property for the table from "selected" to "first" but no luck either.

  • Not null and enable or disable  column in tabular form

    Hi,
    Using apex version 4.1 and working on tabular form.
    ACT_COA_SEGMENT_MAS is Master table
    and
    ACT_SEGMENT_VALUES_MAS is detail table
    I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i specified PARENT_SEGMENT_ID with value in master table then in detail table there is column PARENT_ID that should not be null and enable.
    How i can enable or disable column when in master table PARENT_SEGMENT_ID column is null then in detail table PARENT_ID column should disable and vice versa.
    I have created tabular form on Detail table. before insert into the tabular form Check in master table in first entry if PARENT_SEGMENT_ID is not null in first row of master table then in tabular form PARENT_ID should enable and not null able in corresponding to this first row id's lines in tabular form.
    Same should check for second row in master table if PARENT_SEGMENT_ID is not null then entered rows with PARENT_ID into tabular form corresponding to 2nd id in master table should not nullable and column should enable in tabular form.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 9, 2013 9:12 PM

    Vedant,
    You need to create you own manual tabular form and not use the wizard.
    Using APEX_ITEM api you should be build you own form and you will be able to control how you wan to display the rows. (See Link [Apex Item Help|http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CACEEEJE] )
    select case when PRIMARY_TABLE_COLUMN is null then APEX_ITEM.DISPLAY_AND_SAVE(3 , DETAIL_COLUMN ) else APEX_ITEM.TEXT(2,detail_column) end "ALIAS" from detail table
    Hope that help.
    Vivek

  • Enable/disable operation buttons according to the selected row in table?

    Hi,
    I used JDev 11.1.1.2.0
    On my main page, it has a query section and display search result to a table component, and also has some operation buttons like (update/delete) on the toolbar.
    I want to enable/disable the operation buttons according to some filed value of the selected row in the table, and I searched the OTN forum, found more questions like this but seemed no found one right solution.
    The table is single selection, and has a status column, its data type is Integer, and I want to enable buttons when the selected row's status field value is 0 or 1, disable buttons when status value is other values.
    Table code like:
    <af:table value="#{bindings.VO1.collectionModel}" var="row"
    rows="#{bindings.VO1.rangeSize}"
    emptyText="#{bindingsVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.VO1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.VOCriteriaQuery.queryDescriptor}"
    queryListener="#{bindings.VOCriteriaQuery.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.VO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.VO1.collectionModel.makeCurrent}"
    rowSelection="single" id="resId1">
    Operation buttons code like:
    <af:commandToolbarButton text="Update" id="ctb2" action="editDAF"/>
    Any suggestion will be great help.
    Thanks,
    zeroxin

    Hi,
    create an attribute binding in the PageDef file for the status field. Then setup the button PartialTriggers property to point to the table ID. The button's disabled property then points to the status attribute binding like
    #{bindings.statusField.inputValue=='value'}
    Frank

  • Disable columns in table control based on condition

    Hello Gurus,
         I am having a table control in my module pool program.Out of 25 columns , I am having 12 columns on months wise like (jan, feb, march....).Now my concern is based on current month I want to enable the column of month rest all months will be in disable mode.So that the user can enter his/her time of work.Could you please tell me any way.I tired to read tc-cols and stored in col with index but its not working I wrote this code for first month without any condition
    READ TABLE tC-COLS INTO col INDEX 22.
       col-SCREEN-INPUT = 0.
       MODIFY tC-COLS FROM col INDEX 22.
    but its not working.I wrote this code in PBO as well as i tried in PAI as wellstill my columns is in enable mode.Also when user clicks on button then only the table control required fields should start working like months enable/disable process.for eg. I am having 2 button one is Create and other is Search on both these buttons after click the condition for enable/disable months should work.
    Thanks
    Gaurav

    Hi,
    In my scenario, I have used months as radio buttons. A month is selected and "enable" button must be clicked so that only the corresponding column of the month turns into an editable mode.
    I have attached the output.
    The field can be disabled or enabled by using the line type of <table_control_name>-cols.
    It contains the screen elements. For disabling / enabling, use active element in screen.
    This must be written in PBO event of the corresponding screen containing the table control.
    Coding:
    * Type-Pools
    TYPE-POOLS: abap.
    *   Types
    TYPES: BEGIN OF ty_month_emp,
             jan   TYPE char30,
             feb   TYPE char30,
             mar   TYPE char30,
             apr   TYPE char30,
             may   TYPE char30,
             jun   TYPE char30,
             jul   TYPE char30,
             aug   TYPE char30,
             sep   TYPE char30,
             oct   TYPE char30,
             nov   TYPE char30,
             dec   TYPE char30,
             id    TYPE char10,
             name  TYPE char10,
             age   TYPE char10,
            END OF ty_month_emp,
            ty_t_month_emp TYPE STANDARD TABLE OF ty_month_emp.
    *   Data
    DATA: gs_month_emp  TYPE ty_month_emp,
           gt_month_emp  TYPE ty_t_month_emp,
           ok_code       TYPE sy-ucomm,
           r1            TYPE char1 VALUE abap_true,
           r2            TYPE char1,
           r3            TYPE char1,
           r4            TYPE char1,
           r5            TYPE char1,
           r6            TYPE char1,
           r7            TYPE char1,
           r8            TYPE char1,
           r9            TYPE char1,
           r10           TYPE char1,
           r11           TYPE char1,
           r12           TYPE char1.
    *   Table Controls
    CONTROLS: tc TYPE TABLEVIEW USING SCREEN 9000.
    *   Field-Symbols
    FIELD-SYMBOLS: <fs_cols> LIKE LINE OF tc-cols.
    *   Initialization
    INITIALIZATION.
       CALL SCREEN 9000.
    *&      Module  ENABLE_COLUMN  OUTPUT
    *       text
    MODULE enable_column OUTPUT.
       LOOP AT tc-cols ASSIGNING <fs_cols>.
         PERFORM enable_col USING: r1 'GS_MONTH_EMP-JAN' CHANGING <fs_cols>,
                                   r2 'GS_MONTH_EMP-FEB' CHANGING <fs_cols>,
                                   r3 'GS_MONTH_EMP-MAR' CHANGING <fs_cols>,
                                   r4 'GS_MONTH_EMP-APR' CHANGING <fs_cols>,
                                   r5 'GS_MONTH_EMP-MAY' CHANGING <fs_cols>,
                                   r6 'GS_MONTH_EMP-JUN' CHANGING <fs_cols>,
                                   r7 'GS_MONTH_EMP-JUL' CHANGING <fs_cols>,
                                   r8 'GS_MONTH_EMP-AUG' CHANGING <fs_cols>,
                                   r9 'GS_MONTH_EMP-SEP' CHANGING <fs_cols>,
                                  r10 'GS_MONTH_EMP-OCT' CHANGING <fs_cols>,
                                  r11 'GS_MONTH_EMP-NOV' CHANGING <fs_cols>,
                                  r12 'GS_MONTH_EMP-DEC' CHANGING <fs_cols>.
       ENDLOOP.
    *  LOOP AT tc-cols INTO ls_cols.
    *    IF r1 = 'X'.
    *      ls_cols-screen-active = 1.
    *    else.
    *      ls_cols-screen-active = 0.
    *    ENDIF.
    *    modify tc-cols FROM ls_cols INDEX sy-tabix.
    *  ENDLOOP.
    ENDMODULE.                 " ENABLE_COLUMN  OUTPUT
    *&      Form  ENABLE_COL
    *       text
    *      -->P_0170   text
    *      -->P_0171   text
    *      <--P_<FS_COLS>  text
    FORM enable_col  USING    p_radio              TYPE c
                               value(p_screen_name) LIKE screen-name
                      CHANGING pa_cols              LIKE LINE OF tc-cols.
       IF p_radio = abap_true.
         IF pa_cols-screen-name = p_screen_name.
           pa_cols-screen-active = 1.
         ELSE.
           pa_cols-screen-active = 0.
         ENDIF.
       ENDIF.
    ENDFORM.                    " ENABLE_COL
    Thanks & Regards,
    T. Prasanna Kumar

  • How to enable /disable a command Button based on a table's selectOne choice

    Hi everyone.
    I am using JDeveloper 10.1.3.3 and wish to enable / disable a commandButton based on the user's selection of the selectOne radio button.
    The idea is that a row of a table may have an associated document so I want to enable or disable the button that downloads it based n the current row selected.
    I have followed the advice on problem with table I defined my selectOne component as follows :
    <af:tableSelectOne text="#{res['tables.selectionFacet.title']}"
        autoSubmit="true"
        attributeChangeListener="#{backing_browseCVs.onSelectionChange}">The function inside the backing bean looks like this
        public void onSelectionChange(AttributeChangeEvent attributeChangeEvent)
            // access the faces context
            FacesContext fc = FacesContext.getCurrentInstance();
            // get value of the expression #{row.hasCVDocument} that indicates
            // if a document has been added
            ValueBinding vb =
                fc.getApplication().createValueBinding("#{row.hasCVDocument}");
            Boolean hasDoc = (Boolean)vb.getValue(fc);
            // enable the doownload button accordingly
            downloadCVDocBtn.setDisabled(!hasDoc);
        }My problem is that the method never fires. I have placed a breakpoint at the first line but it is never reached.
    Any advice will be most welcome.
    Thanassis

    Hi,
    You might need to add 'dataProvider' part in the expression language in your selectionListener:
    #{bindings.CVList.currentRow.[b]dataProvider.hasCVDocument}
    #{bindings.CVList.currentRow} returns an instance of ViewRowImpl which does not have 'getHasCVDocument()' method, but does have:
    Object getCurrentRow()
    method, which returns objects from your CVList list, which do have getHasCVDocument() method...
    Expression language is resolved through reflection, so when you write:
    #{processScope.someClass.someReferencedClass.someAttribute} it is something like:
    Get someClass from processScope map, then:
    someClass.getSomeReferencedClass().getSomeAttribute()
    It's a bit more complex but you get the idea.
    Vladimir

  • ALTER TABLE privilege and CREATE/DROP/ENABLE/DISABLE constraint privilege

    Hi,
    I am looking for some detailed info regarding the below previleges
    ALTER TABLE, CREATE CONSTRAINT, DROP CONSTRAINT, ENABLE CONSTRAINT AND DISABLE CONSTRAINT PRiVILEGES.
    I have two schemas 'A' and 'B', I want to provide user 'A' with Alter table, create or drop constraint,Enable or Disable constraint on schema B.
    Please let me know how to make this work.
    Thank you

    I got the answer for my second question, I have an option to grant 'Alter ANY table' privilege to the user.Yes, but you should not do that.
    Regarding question one, Suppose I have two schemas A and B and I want Schema A to have alter table privilege on all tables of Schema B.
    Can I do this in one command No
    or I need to grant alter on each table saperately?Yes
    If I am chosing the second option for each table saperately then whenever a table is added in schema B we need to grant privilege on that table as well.Yes. But nothing strange there. Designing and creating objects includes the privileges on them.
    If user A is granted with alter table privilege on a table which user B owns then can user A drop/create/enable/disable constraints for that table?Yes, isn't that what all this about?
    Again, letting one user alter the objects of another user is generally not such a good idea. Hope you see this from our discussion.
    Alter table privilege includes adding and dropping columns. This is why I suggested writing a procedure that does exactly what you need. And then grant execute on that to A.
    The best thing of course would be NOT TO disable the constraints, they are probably there for a reason.
    I am currently handling an issue where one session doing this, deadlocks with another session doing only selects - From other tables, that is!
    Regards
    Peter

  • ADF -- Accessing table column header in java bean called from jsf

    Hi everyone,
    I am calling a common bean function for all columns of a table from jsf inlineStyle, for each call i need to access caller column's headerText in bean.
    How can i access the same in that common function, i.e. for each column's call to the bean, i need the respective headerText accessible in bean.
    Can anyone help me out with this???

    store the value in page flow scope and get it anywhere you want.
    RequestContext rc = RequestContext.getCurrentInstance();
    rc.getPageFlowScope().put("somevar", somevalue);

  • SQL Dev  3.0.04 Database Diff on Tables ignores Enabled/Disabled flag. Bug?

    Hello everyone,
    it seems like SQLDeveloper Ver. 3.0.0.4 Tools -> Database Diff ignores ENABLED/DISABLED flag when comparing tables. Namely, two tables (in two schemas) were reported identical although a foreign key constraint was enabled in one schema and disabled in the other schema.
    Am I missing something or is this indeed a bug?
    Many thanks,
    Bob

    Hello everyone,
    it seems like SQLDeveloper Ver. 3.0.0.4 Tools -> Database Diff ignores ENABLED/DISABLED flag when comparing tables. Namely, two tables (in two schemas) were reported identical although a foreign key constraint was enabled in one schema and disabled in the other schema.
    Am I missing something or is this indeed a bug?
    Many thanks,
    Bob

  • Populating a table with two columns using a custom bean

    hello,
    Can someone provide me or give me a link to an example of populating a table (with two columns) with a custom bean?
    thank you
    fwu

    1)create a java class
    2)have a list as a class variable
    3) populate the list in the constructor..
    4) map the values in the af:table
    //Employee pojo
    public class Employee {
        public Employee() {
            super();
        private String empName;
        private String empManager;
        private String job;
        public void setEmpName(String empName) {
            this.empName = empName;
        public String getEmpName() {
            return empName;
        public void setEmpManager(String empManager) {
            this.empManager = empManager;
        public String getEmpManager() {
            return empManager;
        public void setJob(String job) {
            this.job = job;
        public String getJob() {
            return job;
    //maanged bean
    public class Bean {
    private List<Employee> employee;
        public Bean() {
            super();
            employee = new ArrayList<Employee>();
          Employee e1 = new Employee();
          e1.setEmpName("xxxxx");
          e1.setEmpManager("xxxxxxxx");
          e1.setJob("xxxxxxx");
          Employee e2 = new Employee();
          e2.setEmpName("yyyyyyy");
          e2.setEmpManager("yyyyyyy");
          e2.setJob("yyyyyyt");
          Employee e3 = new Employee();
          e3.setEmpName("zzzzzz");
          e3.setEmpManager("zzzzzzz");
          e3.setJob("zzzzzzzz");
          employee.add(e1);
          employee.add(e2);
          employee.add(e3);
          employee.add(e4);
        public void setEmployee(List<Employee> employee) {
            this.employee = employee;
        public List<Employee> getEmployee() {
            return employee;
        }in the table map like
    <af:table value="#{Bean.employee}" var="row" rowBandingInterval="0"
                        id="t1">
    <af:column headerText="Employee Name" id="c1">
                  <af:inputText value="#{row.empName}" id="it5"/>
                </af:column>
                <af:column headerText="Employee Manager" id="c2">
                  <af:inputText value="#{row.empManager}" id="it2"/>
                </af:column>
    </af:table>

  • Remove Enable, Disable and Delete columns from searchUser.do

    Hello,
    What jsp form do I need to modify to remove the enable, disable and delete columns from the searchUser.do page? I edited tjspSearchUserResultsTiles.jsp but that didn't seem to do it.
    Thanks

    Hi,
    TableGenerator.jsp is the general jsp so you shouldn't modify it.You need to extend tcSearchUserAction.java class aand create a custom class.You need to over ride populateColumnHeadings and populateTableData.
    I won't suggest this approach until you are very much familiar with struts development and oim classes.
    Regards
    Nitesh

  • Hide/show or enable/disable report column

    Hi,
    I m using Oracle Apex4.0
    I m having an interactive report which has a cloumn with Link provided to it.
    I want to enable/disable the linked cloumn for certain records or else the link column can ba hidden/shown for certain records.
    How can it be done?

    Hi,
    Did you look at the Denes example ? It looks as good solution for you.
    Is your report in format like this ?
    col_1 col_2 col_link
    col_1 - column1
    col_2 - column2
    col_lnk - column with link
    in the link there is some redirection to detail page where you can provide update ?
    the link should contains record ID. correct ?
    The only possibility in your case is Denes or some other simple solution. (case solution)
    It should be good if you reproduce it on apex.oracle.com
    We can provide more help to you in there.
    Regards
    J :D

  • Dynamically enable a field based on a selected table row

    Hi everyone.
    I'm getting really confused right now, please show me the right way. My approach may be, and probably is, wrong since I am self learning this and all I have is an ASP.NET background.
    I have a page with a table in it. I've created a DataControl for a collection I've made and mapped it to the table. I added a column that shows an "edit" button. On it's click, I open a popup that shows the selected row's data. Naviguation controls are also present on the popup.
    This is working fine.
    My problem comes in the popup. Each row has multiples fields. These fields, shown on the popup, need to dynamically be enable/disable. To toggle those field, the only way I can see right now is to have a function that takes into parameter the rowId and the fieldName. Based on those two fields, I can get the necessary information to know if I need to enable or disable the control.
    What I was aiming for, but then again I totally failed, was to have that function called on the "enabled" EL Expression, returning a Boolean.
    Now that this has been said, can someone guide my on how to dynamically enable/disable each field based on the selected row.
    Thanks !

    Above +
    why don't you create a bean method that returns a Boolean ans through EL Expression Builder select the method to this property.
    btw .. on which components are you setting this?
    Also,
    If there is business logic that prohibits to update this object unless that is met.. you can also do it as..
    In EOImpl .. override isAttributeUpdateable(int i) method eg:
    @Override
    public boolean isAttributeUpdateable(int i) {
    if(i == this.ENAME && "KING".equalsIgnoreCase(this.getEname())){
    return true;
    }else
    return super.isAttributeUpdateable(i);
    and then in UI for the component say
    ReadOnly = #{bindings.Ename.updateable}
    Or, In UI
    disable = #{ bindings.Ename.attributeValue == 'KING' & bindings.Mrg.attributeValue == null ? true : false}
    adf does provides many ways to do it ..
    Cheers, Amit

Maybe you are looking for