How to disable a bean (messageChoice) in a Table region on  a condition?

Within a Table based region, I have a requirement to disable MessageChoiceBean (Expense Type) based a specific value of expense type.
This is in iExpense (CreditCardLines page) module. When the user clicks next btn and navigates to CreditCardLines page, BusinessCreditCardLinesVO gets executed. I can loop thru this VO and can check the specific value of Expense Type but I do not know how to get handle of that bean for a given row in VO and disable that particular expense type bean.
Hope this is clear. Can you please help?
Thanks,

Hi,
When the page is standard, you need to substitute the VO BusinessCreditCardLinesVO, and add a new attribute which will return true or false (according to your condition)
and assign that to disabled property of the item (like ${oa.XXTTermsAndConditionsPVO1.Accept}).
Thanks.
With Regards,
Kali.
OSSI.

Similar Messages

  • How to find total recs in a local table for a particular condition

    Hi,
    How to find total recs in a local table for a particular condition?
    Thanks,
    CD

    Well, you may want to try this as well, and compare to the LOOP way.  Not sure what kind of overhead you may get doing this way. Here ITAB is our main internal table, and ITAB_TMP is a copy of it.  Again I think there may be some overhead in doing the copy.  Next, delete out all records which are the reverse of your condition.  Then whatever is left is the rows that you want to count.  Then simply do a LINES operator on the internal table, passing the number of lines to LV_COUNT.
    data: itab type table of ttab.
    data: itab_tmp type table of ttab.
    itab_tmp[] = itab[].
    delete table itab_tmp where fld1 <> 'A'.
    lv_count = lines( itab_tmp ).
    Regards,
    Rich Heilman

  • How to mapping Entity beans to existing database tables.

    dear all
    how can i mapping Entity beans to existing database tables and not to create new table in Orion.
    thanks for any input.
    seabin

    * You define the name of the table that an Entity EJB maps to in orion-ejb-jar.xml. For eg:<entity-deployment name="MyEntityEJB" data-source="MyDS" table="MY_DB_TABLE" ...>* If you don't want to let Orion create the tables for your EJBs, have the following entry in either of the files given below:<orion-application autocreate-tables="false" ...>1) <orion-home>/j2ee/home/config/application.xml (global effect)
    2) orion-application.xml file of that particular application (application specific)
    HTH.

  • How do you add calculation columns to a table Region by using the Footer?

    I have a requirement to add some aggregate metrics at the bottom of my "tableRegion". The "TotalValue" property value for the table is not going to work for me since I the data I'm calculating is more complicated then doing a simple "sum".
    My first try (simple test case) was to use "OATableFooterBean". However, when it tries to find the table bean, it comes back as "null":
    if (empDetails != null) {
    OATableFooterBean tblFooter =(OATableFooterBean) empDetails.getFooter();
    if (tblFooter != null) {
    tblFooter.setAttributeValue("EmployeeName", "Merit Inc Target/Budget");
    I'm guessing it is due to not defining a "footer" region for my "table" region. When I click on the "Table" region, then due "New", I dot see "Region" listed as an option. So my question is how do I add a region "footer" to my "table" region? Once I have that, I'm sure it will solve the "null" exception I'm seeing for trying to get the table footer in the above code.
    Thanks

    Hi,
    For this create a transient attribute in the VO.
    Perform your required logic on this new transient attribute.
    Now create a footer region and create a styledtext and assign this transient attribute.
    Regards
    Sridhar

  • How to disable a node in ADF Tree Table?

    Hi,
    I'm using JDeveloper version - 11.1.1.7
    I have a requirement to disable the nodes in Tree table based on status of the node. How can I achieve this?
    Any inputs would be helpful.
    Thanks
    Ravi

    Hi,
    you cannot disable nodes in the sense that they cannot be expanded or selected. What you can do though is to ignore node selections in a custom selection handler or to render the node different (e.g. using an output text component instead of a command link or image etc.). What is your functional requirement for what disabled nodes should not do
    Frank

  • How to disable a single cell in a table (and not the whole column)

    Hi there,
    I've got a webdynpro table with a few columns, rows can be created dynamically through a button in the table toolbar.
    Depending on the value of a certain cell I have to disable another cell (in the same row).
    I tried to manipulate the view in the modifyview but no joy. I also tried to manipulate the attribute property through the coding below:
      DATA lv_knttp TYPE knttp.
      lo_nd_kostl = wd_context->path_get_node( path = `MULTIVALUES.KOSTL` ).
      lo_el_kostl = lo_nd_kostl->get_element( ).
      lo_el_kostl->set_attribute_property(
      attribute_name = 'LTEXT'
              property       = lo_el_kostl->e_property-enabled
              value          = ''
    but it disables the whole column!!!! I just need the cell to be disabled (I thought the code above, through the lead selection, would affect a certain cell only - but I was wrong).
    Any ideas?
    Thanks!!!

    Hi,
    using cell variants you can do this.,
    check this article: [Cell Variants in WDA|http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynproforABAPCellVariants]
    Instead of binding the read only property of table as a whole , just bind the read only property of column group of table., You can do this bu drill down the table and select the required column and bind the read only column.,
    then In onAction Event of button .,
    loop the table, if condition satisfied set the read only property to true else false.,!!
    hope this helps u.,
    Thanks & regards,
    Kiran

  • How to disable index defined on a stsndard table j_1ipart2?

    Dear Friends,
    I am using a stndard table j_1ipart2 for updating line items for GL account.I am using a hashed type internal table for this purpose.But There is already two indexes defined. and they are not useful to me.So I just want to disable these indexes for my hashed type internal table for better perfomance.Plz guide me urgenty.
    Also if possible send me sample coding structure...............!!!!!
    For better understanding problem write to me
    Thanks&Regards
    Ricky

    Hi Ricky,
    You dont have to bother about the index selection.The database optimizer will select the best index for your selection.
    Reward Points if helpful,
    Regards,
    jinesh.

  • How to disable first row selection in a table

    Hi,
    I have three tables which have master child relationship. I need to enable a button for each table based on row selection of corresponding table.But first row is being selected automatically and the buttons are enabled.
    what should i do in order to avoid first row selection in a table.I tried by removing selected Row Keys.But still i am getting the same problem.can anyone suggest on this.
    Thank You,
    Sukumar

    I know a hack but I don't recommend it, anyway here it goes:
    Remove selected Row Keys
    Change selectionListener from the default and create a custom action listener (You can call the default one inside of it) (Tip: use makeCurrent function in this PDF
    This will make sure that there is no selected row highlighted for the first time, but it actually means that the first row is selected, it's just not shown.
    This method is tested with 11.1.1.7

  • How to Implement Auto tabbing feature in a table region???

    Hi All,
    I am trying to implement auto tabbing feature in one of my OAF page using java script which is actually working for individual items but
    while implementing the same for a table bean its not working. is there any way to implement this feature in OAF without using java script?
    if not could anyone give some rough java script for this feature? please this is urgent..
    Thanks in advance
    Sree

    Sree,
    check this if it helps ;
    https://forums.oracle.com/thread/963732
    Not sure we can set Focus in : PFR ,  I hope it is possible in only PR.
    Regards
    Sridhar

  • How to delete a particular row in ALV table

    Hi,
    How to delete a particular row in ALV table based on some condition(by checking value for one of the columns in a row)
    Thanks
    Bala Duvvuri

    Hello Bala,
    Can you please be a bit more clear as to how you intend to delete the rows from your ALV? By the way deleting rows from an ALV is no different from deleting rows from a normal table. Suppose you have enabled selection property in ALV & then select multiple rows and click up on a button to delete the rows then below would be the coding: (Also keep in mind that you would have to maintain the Selection property of the context node that you are binding to your ALV to 0..n)
    data : lr_table_settings  TYPE REF TO if_salv_wd_table_settings,
                 lr_config          TYPE REF TO cl_salv_wd_config_table.
      lr_table_settings  ?= lr_config.
    ** Setting the ALV selection to multiple selection with no lead selection
      lr_table_settings->set_selection_mode( value = cl_wd_table=>e_selection_mode-multi_no_lead ).
    Next delete the selected rows in the action triggered by the button:
    METHOD onactiondelete_rows .
      DATA:  wd_node TYPE REF TO if_wd_context_node,
             lt_node1 TYPE ig_componentcontroller=>elements_node,
             wa_temp  TYPE REF TO if_wd_context_element,
             lt_temp  TYPE wdr_context_element_set,
             row_number TYPE i VALUE 0.
      wd_node = wd_context->get_child_node( name = 'NODE' ).
      CALL METHOD wd_node->get_selected_elements
        RECEIVING
          set = lt_temp.
      LOOP AT lt_temp INTO wa_temp.
        wd_node->remove_element( EXPORTING element = wa_temp ).
      ENDLOOP.
      CALL METHOD wd_node->get_static_attributes_table
        EXPORTING
          from  = 1
          to    = 2147483647
        IMPORTING
          table = lt_node1.
      wd_node->bind_table( new_items = lt_node1 ).
    ENDMETHOD.
    If in case this isn't your requirement please do let me know so that I can try come up with another analysis.
    Regards,
    Uday

  • How to change the images dynamically in a table.

    Hai,
                     How to change the images dynamically in a table based on the condition in webdynpro abap.
    Edited by: Ravi.Seela on Oct 13, 2011 2:17 PM

    This has been much discussed earlier. Do search posts.
    For your scenario i would do the following.
    inside your node which is binded to the table, i create a new node image with cardinality 1 ..1 and a attribute called path of type string.
    create a  supply function for the node image .
    Supply method now has a Element (Parent element ) and node.
    Based on your record in element, set the right image source to path attribute and bind the node.
    This will make sure that the framework calls the image supply function for every row in a table.

  • How to default Sysdate in Advance table region on clicking Add Another Row

    Hi,
    Can any one please help me how to default Sysdate (MessageTextInput column) in Advance table region on clicking Add Another Row.
    Thanks,
    Mohan

    Got it... thanks mukesh..here it works.Reference to others!!!
    if (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    OAViewObject vo3 = (OAViewObject)am.findViewObject("XxStageLineVO1");
    OARow row1 = (OARow)vo3.getCurrentRow();
    java.util.Date sysdate = pageContext.getCurrentUserDate();
    String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
    row1.setAttribute("StrtDt", convSysDate);
    }

  • How to disable cache implementation in 8.1 SP6 for entity beans

    How to disable cache implementation in 8.1 SP6 for entity beans
    In our production environment, we want to disable cache implementation for entity beans. We are using weblogic 8.1 SP6.
    Weblogic cache implementation has been causing many cachefull exceptions so we want that it fetches the data from database everytime instead of cache.

    Check the "max-beans-in-cache" setting in your weblogic-ejb-jar.xml. The cache full exception, means that a new bean could not be created because of this cache being full.
    Nothing to do with fetching from the database directly.
    If you really want direct fetches then do not use beans at all. Consider using direct JDCB/SQL calls (without a entity bean) to fetch huge data.
    Let's again review your application based on the below explanation before making a decision on which configuration change to perform:
    If you truly have many ejbs simultaneously enrolled in transactions, then yes, the cache must be big enough to hold all the instances.
    Your cache must have a max size large enough to handle your peak simultaneous transaction load.
    Also, try to ask the following query to your application developer. Does every user actually have to have more than one bean in the cache ? Are many of these values read-only reference values that are not updated ?
    SOLUTION CHOICE:
    1. If you are testing with more number of users simultaneously, then you will need to increase the "max-beans-in-cache" setting in your weblogic-ejb-jar.xml to match the load.
    2. If you have few users but still seeing a lot of beans, then consult with your application developer and try to ask the above questions (Does every user have more than......) and based on that try to redesign/tune your application to make it an effective Entity bean model.
    3. If you have queries where huge result sets are returned, consider using plain/direct JDB/SQL calls.
    Arun

  • How to disable and enable a java bean area's visability?

    I have a large javabean area on my initial canvas when first dispalying my form.
    When I use the SHOW_CANVAS('canvas name') to display another canvas, everything looks fine except that the javabean from my previous canvas is still visible and covering up portions of this new canvas.
    So I tried using the set_property visible for the javabean area in the form and it only got rid of the surrounding edge of the javabean area.
    Last I made some set_custom_property values to send to the bean that would then use java calls to enable and disable the beans visability.
    But once the beans visibility was disabled in Java then it wouldn't come back after the calls to enable the visibility and refresh the bean were made through Java calls.
    Is there any other ways of disabling and enabling a java bean area's visability?
    Thanks,
    Michelle

    Hello,
    Maybe the bean is always display because of its particular paint() method ?
    Anyway, without any reflexion, I could suggest you to set the bean item width and height to 1 pixel when you don't want to display it. (Set_Item_Property)
    Francois

  • How to disable columns while displaying

    Hi,
    How to disable columns from the page which we don't want to show to the users.For example Users will search by "Invoice No" but they don't want to see again Invoice No on the results page.
    Appreciate your quick response.
    Thks.

    Check out Dev Guide
    Chapter 4: Implementing Specific UI Features -> Search -> Declarative Implementation: Auto Customization Criteria
    With this Query Bean option you can separate the Search region from the results table. You map the items in the search region to the items in the result region. You can mark the item in the result table as Rendered=No. OAF will run the query against this item even though it's not displayed.

Maybe you are looking for

  • Where condition for a column in BMM

    Hi Gurus, I have a requirement where in the BMM(The LTS for this logical table is say 'Fact'), I need a logical column with the following definition. count(Dim.status) where Dim.status = ' Accepted' (I didnt add the Dim table to the LTS yet, should I

  • How to make a fullscreen slideshow like this?

    this is an app I found that the slideshow is what I want to make,but with original slideshow I can't make it,so I really want to know the special way to do I am using the adobe content viewer on ipad to test my file, is it the reason? some functions

  • Integer comparaisons not working so well

    I am working on an encoding program, but I have a slight glitch when comparing Integers, here is the relevant code:     public Association findAssociate(char toFind)         /*  Post:   finds the association according to the key          *          r

  • Changing Billing Address in Skype Manager and Alte...

    Four days ago, I contacted customer support about changing my billing address in Skype Manager. I am unable to change my billing address in Skype Manager. When I click edit on the billing address, the registration address shows up instead and is uned

  • Boot Camp Services allegedly interfering with Windows 7 upgrade installer

    The MS Windows 'upgrade advisor' analyzes my Vista install & says I'm good to go with an upgrade, onto my Boot Camp partition, from Vista 32 bit to W-7 32-bit - - - - BUT..... when, after booting up in Vista, I try to run the W-7 installer program th