Enable/Disable a link based on a column value

Hi Team,
I am Using Jdev 11.1.1.5.0.
I have a link button named 'register'on first page by clicking on to which will navigate to next page where i will get the option of selecting for the courses through checkboxes.
When all the checkboxes are checked by clicking on the submit button i am able to update the checkboxes value in the backend and able to navigate to the first page.
I can count that all the checkboxes are checked.
My requirement is if all the checkboxes are checked i wanted to disable the register button other wise keep it as enable.
The data on the first page and second page are joined using a view link.
the data on the first page contains employee records and the data on the second page contains record for the courses selected for the corresponding employee.
Please let me know what is the correct approach for it.
Kindly guide me in it.
Thanks,
Ajay

Which scope is the bean defined in?
You can put the bean in pageFlowScope. This way it can be accessed from both pages. Now you implement a method in the bean which returns the count or better a method which make the decision if all check boxes are checked and returns true if yes and false otherwise.
The signature of the method looks like
    public boolean isAllChecked()
        // calculate if all marks are checked
        return true;
    }and in your page you access the method on the disabled property like
              <af:commandButton text="commandButton 1" id="cb1"
                                disabled="#{pageFlowScope.YUOT_BEAN.allChecked}"/>Timo

Similar Messages

  • Can I use action link based on hierarchical column?

    Hi all,
    I used OBIEE 11.1.1.6.2.
    And I want to know can I use action link based on hierarchical column? I want to show link based on some conditionally..
    I try to add conditions, such as Department is equal to A, But after I added, it show me "Department is equal to", why?
    Can anybody give me some hints?
    Regards,
    Anne

    Hi Anne,
    It should work. How did you add the action link? .Click on the + icon on the hierarchical column in criteria tab, this will list all the columns in the hierarchy.Each column will have its own column properties. Click on the Hierarchy level properties of Department column ->Interaction tab and define your conditional action link.
    Regards,
    Dpka

  • How to restrict a table with its set of data based on a column value in it?

    Hi,
    I have a scenario in which I have to show a set of data of a pivot table by restricting data based on a column value. I am creating BIP report whose source is from BIA ie.RPD. Based on a column value I want to restrict the data being displayed in the table. Since I also want the hidden data in the first table to be displayed in another table in the same report I cannot restrict the data at the query level i.e at RPD or at BIA. For this reason I used
    <?xdofx:if saw3_ = 1?>
    the pivot table
    <?end if?>
    But it does not restrict any data.
    Also I tried using the if condition inside the table before the row level looping happens. But no good show even then.
    How can I forgo this problem?
    Regards,
    The MM

    Hi,
    See : http://download.oracle.com/docs/cd/E12096_01/books/PubUser/T421739T481157.htm#4535373 regarding column and row.
    Regards,
    Colectionaru

  • Need to  color a Table row based on a Column value

    Dear Alll
    I have a requirement to color the rows of a table based on a column value in it. I have tried and surfed many useful materials over the net. but none of them solves my purpose. Please help me, I know that i can used OADataBoundValueViewObject and create a custom css file and apply color to a particular column of a table using a decode in the select statement of that VO.
    But all i need is to color a particular row with a particular color. Need your help with this ........
    Please do reply
    Best Regards
    Edited by: Antony Jayaraj on Mar 27, 2012 8:54 PM

    These posts might help you.
    How to change the row color based on Condition
    Can we colour the rows in the column of a table
    Regards,
    Peddi.

  • Enable / Disable a button Based on a value

    Hi all,
    How can i enable or Disable a Button Based on some input Text value.
    Here is the ADF Code fragment:
    *<af:switcher id="customActionButtons"*
    *facetName="#{actionAvailable.isCustomActionButtons}">*
    *<f:facet name="true">*
    *<af:panelGroupLayout layout="horizontal" id="pgl10">*
    *<af:commandToolbarButton actionListener="#{invokeActionBean.setOperation}"*
    *text="#{wf:getResourceValue('APPROVE', 'bindings.customActions')}"*
    *disabled="#{!bindings.APPROVE.enabled}"*
    *action="#{invokeActionBean.invokeOperation}"*
    *partialSubmit="false"*
    *visible="#{wf:isCustomActionAvailable('APPROVE', 'bindings.customActions')}"*
    *id="ctb2">*
    *<f:attribute name="DC_OPERATION_BINDING"*
    *value="bindings.APPROVE"/>*
    *</af:commandToolbarButton>*
    *<af:inputText value="#{bindings.input.inputValue}"*
    *label="#{bindings.input.hints.label}"*
    *required="#{bindings.input.hints.mandatory}"*
    *columns="#{bindings.input.hints.displayWidth}"*
    *maximumLength="#{bindings.input.hints.precision}"*
    *shortDesc="#{bindings.input.hints.tooltip}"*
    *id="it1">*
    *<f:validator binding="#{bindings.input.validator}"/>*
    *</af:inputText>*
    I have highlighted the Button and Input text in Bold.
    Any suggestions,
    Thanks,
    karthik

    you need to set the autosubmit property for the text field to true. and set the partial trigger for the the button to that input text id.
    and set the rendered property for the button based on the input text value.
    same idea is exist in this link:
    http://groundside.com/blog/GrantRonald.php?title=conditional_rendering_of_jsf_fields_depe&more=1&c=1&tb=1&pb=1
    Edited by: M.Jabr on Feb 7, 2011 1:26 AM

  • Enable disable linkbar links in datagrid itemrenderer.

    Hi All,
    I have to show the linkbar in datagrid column as a renderer and enable and disable the links according to attached documents codes.
    here are my sample code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();">
    <mx:Script>
        <![CDATA[
            import mx.collections.ArrayCollection;
            [Bindable]
              public var arrColl:ArrayCollection = new ArrayCollection();
              public function init():void{
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
                  arrColl.addItem(["1,2,3","1,2"]);
                  arrColl.addItem(["1,2,3", "1,3"]);
        ]]>
    </mx:Script>
        <mx:DataGrid id="dg" dataProvider="{arrColl}" width="200" height="500" x="510" y="168" >
            <mx:columns>
                <mx:DataGridColumn  itemRenderer="assets.components.linkbarItemRenderer"  />   
            </mx:columns>
        </mx:DataGrid>
    </mx:Application>
    My item renderer linkbarItemRenderer.mxml as
    <?xml version="1.0" encoding="utf-8"?>
    <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="init();" >
    <mx:Script>
        <![CDATA[
            import mx.controls.LinkButton;
            import mx.collections.ArrayCollection;
            import mx.controls.Alert;
            [Bindable] public var arrColl : ArrayCollection = new ArrayCollection();
            public var arrDocType : ArrayCollection = new ArrayCollection([{data:"1" , label:"AP"},{data:"2" , label:"AR"},{data:"3" , label:"BOL"}]);
            public var attDoccodes : Array;
            public function init():void
                try
                    var requiredDoc :String = data[0];
                    var attachDoc : String = data[1];
                    var reqDocCodes :Array =  requiredDoc.split(",");
                    attDoccodes = attachDoc.split(",");
                    if(reqDocCodes != null)
                        //add the links of required documents.
                        for(var i:int = 0 ; i<reqDocCodes.length; i++ )
                            var obj:Object = new Object();
                            for(var j : int = 0; j < arrDocType.length; j++)
                                if(arrDocType.getItemAt(j).data == reqDocCodes[i])
                                    obj.label = arrDocType.getItemAt(j).label;
                                    obj.data  = reqDocCodes[i];
                            arrColl.addItem(obj);
                    callLater(enableDisalbeLinks);
                catch(error:Error)
                    Alert.show("error ::"+error.getStackTrace());
            public function enableDisalbeLinks():void
                try
                    //disable all links first
                    for(var q:int=0; q< arrColl.length; q++)
                        LinkButton(linkBarId.getChildAt(q)).enabled = false;   
                    if(attDoccodes != null)
                        for(var k:int = 0; k<attDoccodes.length; k++)
                            for(var l:int = 0 ; l<arrColl.length; l++)
                                if(arrColl.getItemAt(l).data == attDoccodes[k])
                                    LinkButton(linkBarId.getChildAt(l)).enabled = true;   
                catch(error:Error)
                    Alert.show("error ::"+error.getStackTrace());
        ]]>
    </mx:Script>
            <mx:LinkBar id="linkBarId" dataProvider="{arrColl}" />   
    </mx:HBox>
    It renderes the link in correct form in datagrid first time.when i scroll the datagrid the rows are miss up with each other and links are not shown propers in enable/disable format.
    Thanks,
    Amol.

    Hi All,
    It was my fault. Got it work now.
    When I redirect to PR, it also calls my page initialization method and clear all data. I added a parameter and issue resolved.
    Thanks & Regards,
    KJ

  • Filter a tableview based on a column value-Navigation Issues.

    Hi,
    I have a table view with total 99 values. The values are displayed in 10 tabs of the table view with 9 values in each tab.I go to the third tab and select a column value, which triggers an event and filters the result list from 99 to 12.
    I am simply removing the collection and filling it again with fresh values.
    My problem is-when i set the collection with new values, i want the end user to be navigated to the first tab.
    But the user is always navigated to the second tab which has the last three values.
    Is there any way to navigate the user to first tab of table view?
    I have already tried-visibleFirstRow and it is not working.
    Thanks and Regards,
    Rohit

    Hi Ashish,
    You can implement some code in DO_INIT_CONTEXT to filter your Items' BOL collection based on the condition quantity <> 0. I believe the Quantity field is available in the BOL structure.
    Here is a code snippet.
    DATA: lr_col TYPE REF TO if_bol_bo_col,
    DATA: lr_node TYPE REF TO if_bol_bo_property_access.
    lr_node = me->typed_context->CONTEXT NODE->collection_wrapper->get_first( ).
    WHILE lr_node IS BOUND.
    CALL METHOD lr_node->get_properties
    IMPORTING
    es_attributes = ls_struct.
    IF ls_struct-quantity = 0 .
      lr_col->remove( iv_bo = lr_node ).
    ENDIF.
      lr_node = lr_col->get_next( ).
    ENDWHILE.
    Regards,
    Masood Imrani S.

  • Workflow to grant access to each List item based on a column value

    Hi,
    I have 2 lists Risks and RisksLookup.
    In Risks, I have Title, Description, service impacted and status columns.
    In RisksLookup, I have service impacted, AD1, AD2, AD3, AD4 and AD5.
    I have a requirement where in I have to write a Workflow to provide access to each List item based on the value of service impacted. i.e. If service impacted in Risks List is Client A, I have to lookup what all AD groups are present for Client A in RisksLookup
    List and provide access to only those groups for that item.
    Regards, Shreyas R S

    Hi
    another approach
    create 5 more lists, dedicated to each impacted service. for  Each one these lists apply needeed right ( based onAD groups )Keep you main list where first level will add new items . Attach a workflow to this main list, which will start when an item
    is added and which will add specific item's value to his new list ( based on impacted service value )
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Different flex components based on AdvancedDataGrid column value

    I have the following code snippet, here I am able to change the label of the button based on the Data Grid's Column value. I am unable to think of a way where I can add two completely different buttons, based on Data Grid's value. Any help will be greatly appreciated.
    _SM
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()" >
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    import mx.collections.ArrayCollection;
    import flash.utils.Dictionary;
    import mx.core.Application;
    import mx.controls.Alert;
    import mx.events.ItemClickEvent;
    [Bindable]
         public var seatingChart:ArrayCollection = new ArrayCollection();
         public function init():void {
    var airCraftSeating:Object = new Object();
    airCraftSeating["fname"] = "foo";
    airCraftSeating["lname"] = "bar";
    airCraftSeating["iflag"] = true;
    seatingChart.addItem(airCraftSeating);
    airCraftSeating = new Object();
    airCraftSeating["fname"] = "dude";
    airCraftSeating["lname"] = "buddy";
    airCraftSeating["iflag"] = false;
    seatingChart.addItem(airCraftSeating);
    airCraftSeating = new Object();
    airCraftSeating["fname"] = "playstation";
    airCraftSeating["lname"] = "three";
    airCraftSeating["iflag"] = true;
    seatingChart.addItem(airCraftSeating);
    airCraftSeating = new Object();
    airCraftSeating["fname"] = "dudeeye";
    airCraftSeating["lname"] = "buooosldk";
    airCraftSeating["iflag"] = false;
    seatingChart.addItem(airCraftSeating);
    ]]>
    </mx:Script>
    <mx:Canvas id="baseColor" height="100%" width="100%">
    <mx:Form left="5" right="8" width="100%" height="100%" borderThickness="2" id="classForm" >
        <mx:DataGrid  id="dgClassTypes" dataProvider="{seatingChart}" sortableColumns="false" wordWrap="true" variableRowHeight="true" horizontalGridLines="false" verticalGridLines="false" width="100%" height="100%" verticalAlign="top" >
        <mx:columns>
    <mx:DataGridColumn dataField="fname" headerText="fname"  textAlign="left" visible="true"/>
    <mx:DataGridColumn dataField="lname" textAlign="center" visible="false"/>
    <mx:DataGridColumn textAlign="center">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Button  label="{data.iflag?'check':'delete'}" visible="true" />
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    <mx:DataGridColumn dataField="lname" textAlign="center" visible="false"/>
        </mx:columns>        
    </mx:DataGrid>
    </mx:Form>
    </mx:Canvas>
    </mx:Application>

    Put the buttons in the VBox inside the itemrenderer and set the visible property bindable to iflag value.
    <mx:DataGridColumn textAlign="center">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Canvas>
        <mx:Button  label="check" visible="{data.iflag}" height="{data.iflag? 20:0}"/>       
        <mx:Button  label="delete" visible="{!(data.iflag)}" height="{data.iflag? 0:20}"/>   
    </mx:Canvas>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    Thanks and Best regards,
    Pooja Kuber | [email protected] | http://www.infocepts.comwww.infocepts.com

  • Get a Column value based on other column value in a single query

    Hi All,
    I have a problem here -
    In Table XYZ I have columns by name A, B, C and COL_I. COL_I has a value A or B or C. Based on the value in COL_I, I need to get the value from the corresponding column in the table.
    For Ex: If the COL_I has the value as 'A' then I need to fetch the value from the column A. If it is 'B' then fetch from column B.
    This has to be done in a single query.
    Thanks,
    san_mah

    Hi You can use this query
    I have taken this simple case
    SQL> desc column_fetch
    Name Null? Type
    C_FIRST_NAME VARCHAR2(30)
    C_MIDDLE_NAME VARCHAR2(30)
    C_LAST_NAME VARCHAR2(30)
    C_GET_NAME VARCHAR2(30)
    based on C_GET_NAME find values in columns C_FIRST_NAME,C_MIDDLE_NAME,C_LAST_NAME
    Values in Table
    SQL> select * from column_fetch
    2 ;
    C_FIRST_NAME C_MIDDLE_NAME C_LAST_NAME C_GET_NAME
    A B C D
    A B C F
    A B C F
    A B C A
    A B C B
    A B C C
    CASE Statement:
    SELECT
    CASE WHEN c_first_name=c_get_name THEN c_first_name
    WHEN C_MIDDLE_NAME=C_GET_NAME THEN C_MIDDLE_NAME
    WHEN C_LAST_NAME=C_GET_NAME THEN C_LAST_NAME
    ELSE 'Nothing' END
    FROM column_fetch;

  • Formating the Row Based on one column value

    Hi Friends
    I am trying to format the Entire row based on the value of the first column in my Answers.
    Example if first column value in 'F' now i want the Entire row to be colored
    I can do conditional formating on one column but i want to do it on the entire row
    F     8.1 %     12.0 %
    E     5.2 %     3.5 %
    M     2.3 %     3.3 %
    If any one has done this or any suggestions please respond
    Thanks
    Sang

    Its a Pivot View
    F 8.1 % 12.0 %
    E 5.2 % 3.5 %
    M 2.3 % 3.3 %
    the column 1 --> F,E,M are the Product
    the column 2 --> 8.1% , 5.2% , 2.3% are the sales in year 2008
    the column 3 --> 12.0 % , 3.5 %, 3.3 % are the sales in year 2009
    So will i be able to apply the formating in pivot view based on one column to other column If yes please let me know how or
    suggest if this can be done using the BI Office , or BI publisher
    sing the BI Office i can do the formating in Excel but once i refresh the data all the formating is gone ... :(
    I am donno BI Publisher if we have to use BIP please suggest any solution its very very very urgent and important report formating they need here ....
    Thanks in advance David
    sango

  • Retrieve records based on a column value

    Hi,
    I want to retrieve all the records from a table where the first name column value is
    George but i don't know in which case the name is stored.. should i use the Upper or Lower function in the WHERE clause?
    Thank in advance for anyone who might reply.
    Arjun

    either of the two is ok.
    where upper(name) = 'GEORGE'

  • Design for enable/disable subtab links

    Hi All,
    I have 4 subtabs, after submit button clicked, then the second tab should be enabled and thrid, fourth should be still disabled.
    I have code to disable/enable subtab in PR (webBean only can be modified in PR) as following:
    OALinkBean pubSubTabLink =
    (OALinkBean) webBean.findChildRecursive("PubSubTabLink");
    if(pubSubTabLink != null)
    pubSubTabLink.setDisabled(brand);
    My issue is, when I capture submit button event in PFR, then I'm trying to redirect same page (setForwardURLToCurrentPage) PR to enable second subtab but all info on first tab are gone. I did retain AM when using setForwardURLToCurrentPage.
    Is there any way I can keep my first tab text info?
    If not, any suggestion to disable/enable subtabs?
    Thanks & Regards,
    KJ

    Hi All,
    It was my fault. Got it work now.
    When I redirect to PR, it also calls my page initialization method and clear all data. I added a parameter and issue resolved.
    Thanks & Regards,
    KJ

  • Enabling and disabling input filed based on the Dropdown values selection

    HI,
    I have a requirement with Adobe Interactive forms being called from HCM Forms & Processes. We have a drop-down list and a inputbox.
    based on the values selected from the drop-downlist, the input box should be visible and hidden.
    If the input value is visible, I got to send  some part of the value selected from the drop down to the input field.
    i tried to write the following script in the click event of dropdown  but the input field is not appearing with any value selection.
    if data.Layout.CH1.CHContent.ISR_DDL_1stSelected.rawValue = "00000000" then
    data.Layout.CH1.CHContent.ISR_NEW_COST.presence = 'Visible' else
    data.Layout.CH1.CHContent.ISR_NEW_COST.presence = "Hidden"
    endif
    Thanks in Advance,
    VR.

    Hi Mukesh,
    THanks alot.
    Yes,  The Split functionality is working.  I have added the code in 'Change' event and  for selecting the value from the Drop down, am  writing the code in the 'exit'.
    In addition to this, I am populating the values to the drop down from the Generic service.  The problem is, while running  the  Process from Portal and check and send button,  the fields fetched from the generic service & the dropdown values are getting refreshed. i hope, this is because of the java script.
    pls. suggest me if this can be handled .
    Thanks &Regards,
    Venkatesh.

  • Custom Install of Acrobat, how to enable / disable Office plugin based on User group membership

    Hi,
    Just configuring Adobe Acrobat X (10.1.5) on Citrix Xenapp 6.5 (Win 2k8 R2)
    I've set up a cusom install and have already removed the context menus and a few other bits and bobs.
    I wondered if it was possible to essentially add the Office plugins in but only for certain users.
    I've removed the plugins successfully by turning off the 5 / 6 features (IE, office , outlook etc)
    Now I just wondered what files / registry entries I could create on login (using Group policy preferences etc) which will add the plugins back in.
    Thanks
    Chris

    okay no replies yet but I've just removed the office / IE features for now, adding the context menu items in for specific users is working good enough at the moment. if anyone does know how to do this just reply to this at any point i'll pick the mail up.
    thanks

Maybe you are looking for