Strange issue on row selection in a wd_table

Hi all gurus,
I'm working on an SRM 7 system, specifically on the WD Component /SAPSRM/WDC_CTR_DOTC_IT, view V_CTR_DODC_ITEMS.
In the view there's a table showing items of a contract; we created a custom button ("item deletion") which simply triggers a method that sets the field ZZ_DEL_IND value to 'X' for the selected line(s).
Here's the method code:
METHOD onactionzdelete .
  DATA lv_action              TYPE /sapsrm/pdo_action_type.
  DATA lo_transaction_context TYPE REF TO /sapsrm/cl_transaction_context.
* Get instance of transaction object
  lo_transaction_context ?= /sapsrm/cl_transaction_context=>/sapsrm/if_transaction_context~get_instance( ).
* Set action id
  lv_action = 'DELETE_ITEM'.
  lo_transaction_context->set_current_action( iv_current_action = lv_action ).
* start ZZDEL_IND management
  DATA : lon_ctr_item     TYPE REF TO if_wd_context_node.
  DATA : lt_elem_set      TYPE wdr_context_element_set.
  DATA : ls_element       TYPE REF TO if_wd_context_element.
  DATA : deleted          TYPE abap_bool.
  CALL METHOD wd_context->get_child_node
    EXPORTING
      name       = 'CTR_ITEM'
    RECEIVING
      child_node = lon_ctr_item.
* Get the selected elements of the item table
  lt_elem_set  = lon_ctr_item->get_selected_elements( abap_true ).
* for each selected element, set ZZ_DEL_IND value
* Get the static attributes of all SELECTED elements into an internal table
  LOOP AT lt_elem_set INTO ls_element.
    CALL METHOD ls_element->set_attribute
      EXPORTING
        value = abap_true
        name  = 'ZZ_DEL_IND'.
    CALL METHOD ls_element->set_changed_by_client
      EXPORTING
        flag = abap_true.
  ENDLOOP.
  CALL METHOD wd_comp_controller->mo_bom_ctr->/sapsrm/if_cll_bo_mapper~fire_event_refresh( ).
ENDMETHOD.
Now, the problem:
- if I select a single row and press the button, ZZ_DEL_IND is set correctly for the selected row;
- if I select all the positions using the standard button SELECT->SELECT ALL , ZZ_DEL_IND is set correctly for all the selected rows;
BUT...
- if I select more than a single position (holding CTRL key down), ZZ_DEL_IND is NOT set.
In debug, I've seen that the problems are in the fire_event_refresh( ), which in case of single selection or all positions selected triggers correctly an update process, while in case of multiple selection "by hand" does not.
In details: /sapsrm/if_cll_bo_mapper~fire_event_refresh triggers a method:
me->/sapsrm/if_cll_xo_mapper~fire_event_update( )
which itself launches the update process:
me->fire_event_update( IMPORTING ev_update_performed = ev_update_performed )
Here, the method extracts all the mappers for the WD and loops over them to check for something changed:
LOOP AT lt_mapper ASSIGNING <ls_mapper>.
      CLEAR: lv_exception_occured, lv_update_performed.
      IF <ls_mapper>-mapper->is_ui_changed_by_client( ) EQ abap_true.
And that's the problem; when processing the mapper -> (in debug), I can see that:
- when a single row is selected, or all the rows are selected via "SELECT ALL" standard method, then the mapper results changed by client (the above condition is then satisfied)...
- while in case of multiple selection , is_ui_changed_by_client( ) = abap_false.
Has anyone suggestions on how to overcome this problem? I guess it deals with multiple selection process.
Thanks in advance

I found something that seems useful here:
[http://help.sap.com/saphelp_nw70ehp2/helpdata/en/4b/5d0d7a7f142b5fe10000000a42189c/content.htm]
in particular, differences between the onSelect and onLeadSelect actions.
By default, the wd I'm working on has the following table events - action bindings::
onLeadSelect -> row_select
onSelect, as a consequence, empty.
I tried the following modification (yes, I know, it's "technically" a standard modification, anyway I'm doing some attempts to make things work):
onLeadSelect -> empty
onSelect -> onSelect (that's a std action defined in the WD... perhaps SAP provided both ways to let the customer choose?)
Anyway... Let's go for a good and a bad news:
- the good one: onSelect is triggered anytime an item position is selected, and triggers an event, so... seems THE solution.
- the bad one: it dumps :-D and here's the motive... this is the standard code of onSelect:
METHOD onactionon_select .
* Object reference
  DATA: loe_context_element   TYPE REF TO if_wd_context_element.
* Constants
  DATA: lc_context_element  TYPE string VALUE 'CONTEXT_ELEMENT'.
* Get context element
----> loe_context_element = wdevent->get_context_element( name = lc_context_element ). <-----
  loe_context_element->set_changed_by_client( ).
* Call mapper class' hadle approve hier item mehtod
  wd_this->mo_dodm_ctr_items->/sapsrm/if_cll_do_tree_mapper~handle_approve_hier_item( io_wd_event = wdevent ).
ENDMETHOD.
The problem is in the marked line, as wdevent has the parameter with name CONTEXT_ELEMENT set to INITIAL.
As a consequence, loe_context_element is initial and the set_changed_by_client() method dumps - OBJECTS_OBJREF_NOT_ASSIGNED_NO.
What am I doing wrong? I simply swapped from onLeadSelect use to onSelect one, using methods provided by the standard. Can anyone help on this point? Seems quite an interesting task
Edited by: Matteo Montalto on Feb 22, 2011 10:39 PM

Similar Messages

  • Issue with row selection in VO

    I have the following piece of code in my method,
    OAViewObjectImpl myVO = this.getMyVO();
    Row myVOCurrentRow = myVO.getCurrentRow();
    The corresponding VO is getting executed and I have the row in my database.
    Now the issue is, sometimes myVO.getCurrentRow() returns me the correct row instance while sometimes it is returning me null.
    when I do myVO.first() it always returns me the correct row but I am not supposed to change this piece of code.
    WHat can be the issue?
    Why the VO row pointer is behaving weirdly ?

    Hi Timo,
    Which jdev version? : 11.1.1.6.0
    Where does your code reside? : Dint get it
    Under which circumstances is the code called? : I am running LRGs to test this method. I am dumping the data into db. To get data in this VO, I am executing it's parent VO which should automatically run this child VO. The regular code is working from UI but while testing through LRGs, or say while calling this method from back-end, it is causing issue.
    Which technologies do you use in general for the application? : ADF Framework.
    From your statement I don't see a 'weirdly' behavior. A VO doesn't have a current row at all points of time. This depends on some facts like if the VO is used on a page and you are just rendering the page. In this case the framework sets the first row as current row. If the VO is not used in the page there is no current row when you execute the query. To set the current roe, you have to navigate the VO (e.g. call first() on it). -->
    I think this is the issue, because I am running this application from back-end. What else can I do before callin gthis method to make sure that this does not happen. My LRG code doesnot allow me to initiate this VO separately. I can only call this method after.
    Thanks,
    Dish
    Edited by: Dish on Mar 20, 2012 12:09 AM

  • Issue on  row selection of a Table

    Hi Friends,
          I am having a table.At runtime by default first row is getting selected.I dont want any row to be selected by default.
    Can anyone please let me know how this is possible.
    Thanks and regards,
    Chandrashekar.

    Hi,
    Select the  initializeeadselection Property of Value node which is binded to table  to false.
    Regards,
    Naga
    Edited by: Naga Raju Meesala on Feb 21, 2008 12:38 PM

  • ALV - problem to disable row selection (SET_ROW_SELECTABLE)

    Hi,
    I'm using an (non editable) ALV with a supply function to display details to each line.
    I have to buttons "New" and "Modify" to insert a new line or to modify an existing row (in the details).
    This works fine.
    Now what I want to do is, if the user press one of the buttons "New" or "Modify", I want to disable the row selection of the ALV, so the user can't select another row during inserting or editing.
    For this, I've implemented in the WDDOMODIFYVIEW of the view the coding to enable or disable the row selection
    lo_value->if_salv_wd_table_settings~SET_ROW_SELECTABLE( ABAP_TRUE ).
    * or
    lo_value->if_salv_wd_table_settings~SET_ROW_SELECTABLE( ABAP_FALSE ).
    In case of "New" this works fine. The row selection is disabled.
    But not in case of "Modify".
    There is a strange behaviour:
    The row selection is not completely disabled. It looks like you can select rows, but if you select another row, it is automatically jumping to the first row and also the details is updated to the first row.
    The different between "New" and "Modify" is, that in "New", I create a new element in the ALV.
    Than it works correct. If I do the same in "Modify", I have the same correct behavior.
    But of course, I don't want to insert a new row in my "modify" mode.
    So maybe it has something todo with set lead selection?
    Maybe I do something wrong or that is a problem in the abap release. But I can't find anything in OSS.
    Thanks in advance!
    Andreas

    Hi,
    I would like to propose another approach here,
    I assume that ALV is in read only mode.
    1. User select the row and press the "Modify" button. As soon as user press the modify button "disable" the Modify and New button.
    2. Once the user is finish with the changes and press save. Enable the new and modify button.
    3. Without saving if user select anyother row then raise the "Save" confirmation popup with Yes, NO and Cancel button.
    4. If User press the New button then add new row and disable the "New" and "Modify button". Follow the Step 2 and 3 for this case also.
    I hope this will give you some idea.
    Thanks,
    Rahul

  • Strange issue on deleting some rows on SYS.AUD$ table

    I just found out this strange thing happened on my 10gR2 database. I created a user called AUDIT_LOG and GRANT DELETE, REFERENCES, SELECT ON SYS.AUD$ TO AUDIT_LOG when I logged on as SYS dba.
    (1) Then I logged on as AUDIT_LOG user, tested the following statements:
    SELECT count(*) from sys.aud$ where ntimestamp# < TRUNC (SYSDATE-14);
    COUNT(*)
    2
    DELETE from sys.aud$ where ntimestamp# < TRUNC(SYSDATE-14);
    0 rows deleted
    (2) When I logged on as SYS account, SYS deleted them all,
    DELETE from sys.aud$ where ntimestamp# < TRUNC(SYSDATE-14);
    2 rows deleted
    I don't understand why the AUDIT_LOG user can't delete that two rows?
    Thanks for your help!
    lixidon

    Apologies for misreading the first time. I am wondering if the rows in question were related to audit actions on sys.aud$ itself as those rows should not be deleted by the AUDIT_LOG user (even if the user has been granted delete).
    Here's an excerpt from the Security Guide under the "Protecting the Standard Audit Trail" section:
    Audit records generated as a result of object audit options set for the SYS.AUD$ table can only be deleted from the audit trail by someone connected with administrator privileges, which itself has protection against unauthorized use.
    Here's a quick example illustrating this:
    SQL> connect / as sysdba
    Connected.
    SQL> grant delete, references, select on sys.aud$ to scott;
    Grant succeeded.
    SQL> connect scott/tiger
    Connected.
    SQL> select count(*) from sys.aud$ where sessionid = 30002;
      COUNT(*)
             2
    1 row selected.
    SQL> delete from sys.aud$ where sessionid = 30002;
    2 rows deleted.
    SQL> commit;
    -- now try to delete the sys.aud$ rows related to the above delete
    -- this will not succeed as user scott even though delete has been granted
    -- the session that performed the delete is 422426
    SQL> select count(*) from sys.aud$ where obj$name = 'AUD$' and action# = 7 and sessionid = 422426;
      COUNT(*)
             2
    1 row selected.
    SQL> delete from sys.aud$ where obj$name = 'AUD$' and action# = 7 and sessionid = 422426;
    0 rows deleted.
    SQL>Regards,
    Mark

  • WebDynpro ABAP tree node collapse trigger event of row selection

    Hello expert,
    I have a table in my WD abap view, I use MasterColumn to display the tree structure, everything works just fine.
    However I encounter one problem:
    If I open the tree structure and select one node (table row selection), the event onLeadSelectis triggered, this is correct. However if I collapse any  parent nodes (along the tree path) of the selected node, WD puts the selection on the clicked parent and thus the event onLeadSelect is triggered for the parent. This is a strange behavior, because when I collapse a node, I certainly don't want to trigger the onLeadSelect event for the node, becaseu this would invoke the function linked to the event which is only supposed to be triggered when you explicitly select the table row.  (BTW, if you don't select any child nodes, then collapse the parent, it does NOT trigger the event).
    I've looked into the wdevent data to see if I can differentiate between the event of node collapsing and row selecting, event data is exact same for both cases, thus I have no way to stop the event handler in case of node collapsing.
    Anyone had this issue and a solution for this?
    Thanks
    Jayson

    Hi Jayson,
    Its the behavior of the tree element, the lead selection of child is carried over to the parent.
    Whenever there is lead selection set and on toggling of tree node, first OnToggle event triggers and then OnLeadSelect triggers. So you can control the execution of onLeadSelect by using EXPANDED parameter of event OnToggle.
    Please refer the below steps:
    Create an action ON_TOGGLE for the vent OnToggle of tree element and it will be having parameter EXPANDED
    Create an attribute in view-->attributes tab GV_EXPANDED
    Collect the parameter EXPANDED into gv_expanded
              wd_this->gv_expanded = expanded.
    Now, you can use wd_this->gv_expanded to control the execution of LEADSELECT logic
    Hope this helps you.
    Regards,
    Rama

  • How to avoid table refresh on row selection

    Hi,
    I have a table where the row selection happens on selecting the check box in the first column of the row. The check box is bound to the transient Boolean attribute of my VO to support this functionality which is missing in new version of ADF. The selection is working fine, however I am facing the issue with table refresh. Everytime I click checkbox to select or unselect a row my whole table is getting refreshed which is very unusual for user point of view. This is my code for the checkbox column:
    <af:column sortProperty="isSelected" sortable="true"
    headerText="#{bindings.pricingObjects.hints.isSelected.label}"
    id="c4"
    inlineStyle='#{(row.isSelected)?"background-color: #E7E7E7":""};'>
    <af:selectBooleanCheckbox value="#{row.bindings.isSelected.inputValue}"
    required="#{bindings.pricingObjects.hints.isSelected.mandatory}"
    shortDesc="#{bindings.pricingObjects.hints.isSelected.tooltip}"
    id="it4" simple="true"
    autoSubmit="true">
    <f:validator binding="#{row.bindings.isSelected.validator}"/>
    </af:selectBooleanCheckbox>
    I have to keep autoSubmit="true" on selectBooleanCheckbox because the table has to change color of the row everytime the checkbox is selected or deselected. Also, there are multiple commandToolbarButton such as "Delete" which needs to be enabled/disabled depending on the row selection.
    Is there anyway, I can achieve this behaviour with minimal refresh of table?

    Hi Marge,
    Yes I do have Add and Delete toolbar button in the panelCollection and also set partialTrigger="tableId" on them. I need this partialTriggers because Delete button should enable/disable depending on number of rows added in the table. However, I tried removing them but it did not work for me, table is still refreshing. BUT this solution does work in combination of other solution i.e. removing ChangeEventPolicy="ppr" on the iterator. I need ppr because I have a form which is bound to the same iterator and should change on table selection. The design is like this,
    - Read-only Table on top
    - Editable Form below
    - Select the row in table and edit the fields in the form
    If I remove ppr then my form is not updating with the row selection.
    Regards,
    Afroz

  • Help needed in row selection in Tabular form across pages

    Hi,
    I have a tabular form report similar to http://htmldb.oracle.com/pls/otn/f?p=31517:95. I want to select some rows from first page and then use the pagination to get to the next page, select some more rows and hit the submit button for processing. The rows selected in the last page alone are picked up for processing, and the ones selected in the earlier pages are lost. I see the same behaviour in Denes' example as well. I picked a row in the first page and a row in the next page, and then click "Pick Records", i see only the record i picked on the second page.
    I did play around with "partial page refresh" setting for the tabular form region, but that does not help.
    Is there a way to select across pages in a tabular form?
    thanks,
    Rams
    Edited by: rams1234 on Jan 22, 2009 10:19 AM

    Okay. I could make this work, but this seems to be a roundabout way for me. In my case I dont have any database related query to get the values, hence the Application level process may not be needed.
    When I select the checkbox, i get the value. I am hoping that I should be able to send the value to a javascript function and update the filed value in the function itself. Please see the function below..
    function setFileID(pThis) {
    var chkvals=pThis.value;
    var fldValue = new $x('f_FILELIST').value ;
    if (fldValue != 0)
    { $x('f_FILELIST').value= fldValue+'-'+chkvals;}
    else
    { $x('f_FILELIST').value = chkvals ;}
    This function works fine in making up the list. The issue is, when an already selected row is unselected, the value of the checkbox gets added one more time :) If I detect the checkbox status and subtract the corresponding value, this will be perfect..
    Thanks for the link anyway. I am marking this question answered.
    regards,
    Rams.
    Edited by: rams1234 on Jan 22, 2009 1:18 PM

  • JDev 11g-Multiple Row Selection Table-Ctrl+A error

    Hello All,
    Jdeveloper : Studio Edition Version 11.1.1.2.0, Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    ADF Business Components : 11.1.1.55.36
    Java(TM) Platform : 1.6.0_11
    Oracle IDE: 11.1.1.2.36.55.36
    SOA Composite Editor: 11.1.1.2.0.12.16
    Versioning Support: 11.1.1.2.36.55.36
    I am trying to remove the selected rows from the table with RowSelection property set to Multiple. I am able to select the rows using by holding key board Ctrl key and click on the rows. The following code in backing bean successfully deletes the rows selected using this step.
    public void removeGeoSpecs(ActionEvent actionEvent)
    RowKeySet rowKeySet = getGmemTbl().getSelectedRowKeys();
    CollectionModel collectionModel =
    (CollectionModel) getGmemTbl().getValue();
    for (Object facesTreeRowKey: rowKeySet)
    collectionModel.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData =
    (JUCtrlHierNodeBinding) collectionModel.getRowData();
    rowData.getRow().remove();
    But when i select all the rows in the table using Ctrl+A, all the rows got selected. I hit the Remove button, then after deleting the first row, getting the following error.
    javax.servlet.ServletException: ADFv: Could not find row: USA 548 with key: oracle.jbo.Key[] inside parent: GeoSpecTVOIterator with key: null.
    Caused by: java.lang.IllegalStateException: ADFv: Could not find row: USA 548 with key: oracle.jbo.Key[] inside parent: GeoSpecTVOIterator with key: null.
    Here USA 548 is my first row's data. Please let me know if you want complete error stack.
    During design time, While drag and drop the table i have not selected Row Selection check box as it sets property for single row selection. Table is inside the <af:panelCollection> . Here is the table source.
    <af:table value="#{bindings.GeoSpecTVO.collectionModel}" var="row"
    rows="#{bindings.GeoSpecTVO.rangeSize}"
    emptyText="#{bindings.GeoSpecTVO.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.GeoSpecTVO.rangeSize}"
    rowBandingInterval="0" id="GmemTbl"
    partialTriggers=":::AddRowsBtn :::AddRangeBtn ::RemoveBtn :::SaveBtn"
    rowSelection="multiple"
    binding="#{backingBeanScope.GeoGrpSpecBean.gmemTbl}">
    Here GeoSpecTVO is a transient view object which is not having query and not attached with EO.
    I tried to fix this issue by myself and also searched for similar issues in the FORUM and google. But no luck... I very much appreciate all your inputs/pointers. Kindly let me know if you need additional information.
    Thanks
    Annadurai.

    Hi Annadurai
    I tried the same work around but still i am facing the issue, could you please help me.
    public void deleteRec(ActionEvent actionEvent) {
    // Add event code here...
    RowKeySet rowKeySet = (RowKeySet)this.embossTB.getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)this.embossTB.getValue();
    Row specRow = null;
    ArrayList rowList = new ArrayList();
    int listLength = 0;
    ArrayList<Number> printReqLST=new ArrayList<Number>();
    ViewObject vo1=null;
    boolean flag=false;
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)cm.getRowData();
    specRow = rowData.getRow();
    rowList.add(specRow);
    listLength++;
    for (int index = 0; index < listLength; index++){
    specRow = (Row)rowList.get(index);
    Number printReqID = (Number)specRow.getAttribute("PrintRequestId");
    String PrintState = specRow.getAttribute("PrintState").toString();
    if (PrintState.equalsIgnoreCase("PRINTED")) {
    System.out.println("cann't delete");
    FacesContext fctx = FacesContext.getCurrentInstance();
    FacesMessage message =
    new FacesMessage("Cann't Delete the selected row:" + printReqID);
    message.setSeverity(FacesMessage.SEVERITY_ERROR);
    fctx.addMessage(null, message);
    } else {
    System.out.println("delete");
    flag=true;
    specRow.remove();
    if(flag){
    System.out.println("before commit");
    commitRows();
    }

  • A very very strange issue on BlazeDS Deserializing

    Hi all,
    I run into a very very strange issue on BlazeDS Deserializing. Is there any hint or idea?  Thanks a lot!
    Scenario 1:
    Both the browser(firefox or IE) and the midtier (BlazeDS ,java) are on the same machine.
    Actual result:
    Everything works fine.  All the properties in the Flex Object could be mapped to the Java Class
    Scenario 2:
    The browser(firefox or IE) and the midtier (BlazeDS ,java) are on the different machine.
    Actual result:
    Sometimes it works fine.
    And most of the time it does not work fine. Only the data in List is mapped correctly. All the values of simple data type such as int are mapped to 0 .
    Let me simplify the problem.
    The objects of Class B is always stored in the ArrayCollection  assocItems of Class A
    Flex side:
    public class A {
    public var id: int;
    public var  name: String;
    public var assocItems: ArrayCollection=new ArrayCollection();
    public class B {
    public var id: int;
    public var  assocItems : ArrayCollection=new ArrayCollection();
    The id , name in Flex Class A and assocItems in Class B could be  deserialize to correct value .  But the id of Class B is always mapped to 0. This is not correct.
    The log level of BlazeDS is configured to Debug. From the log I can see that  each value is passed from Flex side to Java server side correctly.
    [BlazeDS][INFO] Channel endpoint my-amf received request.
    [BlazeDS][DEBUG] Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/18)
    (Array #0)
    [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
    However, the Java object does not get the correct value of B.id.
    In conclusion,
    1. It’s an issue with only default types
    2. It does not occur every time
    3. It does not occur when the browser(firefox or IE) and the midtier (BlazeDS ,java) are on the same machine
    Have you ever run into the similar problems? And what’s your solution?

    I checked, when I hard-code the constant in linq, the generated sql is like this:
    SELECT "Extent1"."AA" AS "AA"
    FROM (SELECT "TBL"."AA" AS "AA"
    FROM "USERNAME"."TBL" "TBL") "Extent1"
    WHERE ('1062303212007000121' = "Extent1"."AA")
    if I pass a variable to the query with same value, the sql is like this:
    SELECT "Extent1"."AA" AS "AA"
    FROM (SELECT "TBL"."AA" AS "AA"
    FROM "USERNAME"."TBL" "TBL") "Extent1"
    WHERE ("Extent1"."AA" = '1062303212007000121' /* @p__linq__0 */) (@p__linq__0 is passed as parameter)
    The only difference is a paramter. I can't figure out why there is such a impact on performance.

  • Row Selection for second and subsequent level nodes in tree table

    Hi All,
    We have a .jsff page with tree bindings to display a three-level hierarchy tree table.Suppose the hierarchy is
    -> Department
    ->-> Employees
    ->->-> Employee details.
    I have a use case where-in when we add the employee node within a department,the department node must expand and the newly added employee node must be selected.
    In both the cases(for new department or employee), we are following the approach mentioned below:
    1. Get the treeTable Iterator.
    2.Adding the new object to the java ArrayList which is bound to the corresponding level in the tree.
    3.Refreshing the treeTable iterator.
    4.Execute treeTable.setSelectedRowKeys()
    5.Add a partial target to the treetable.
    The issue is that the new employee gets added but the upper-level department node collapses and no selection is performed on the new employee node.
    But when we add a new department node, it gets selected on creation.
    Is there any additional steps to be performed for second-level row selection?

    Hi,
    Thanks for the reply.
    I looked at the code given in sample 61.
    In the sample, a new node is not added dynamically (for ex.either new location or its child nodes.)
    As mentioned in the above post, after adding a new node at a level in our use case, when we perform the refresh of the tree-table's iterator,the selection state of the rows is not shown on the table.
    If the tree-table's iterator is not refreshed and the treeTable.setSelectedRowKeys() is executed, the rows get selected but the subsequent node additions do not show up in the table as the table's iterator is not refreshed.
    Any sample code is available where in both the addition of new node and its selection is performed at the same time?
    Thanks.

  • ORA-39165: During Expdp Strange Issue

    Hi All,
    DB -- 11.1.0.6.0
    OS --HPUX Itanium.
    Today , I came across with one strange issue , where EXPDP tells us the scehma does not exist. we then tried to look into this this particular schema into the database and discovered it's does exist there. One wearied thing is that , all the tables inside this schema are of same size and have bit strange naming convention.I also discovered the same issue with one more database on the same host.
    CPMDVFDM> Total estimation using BLOCKS method: 0 KB
    ORA-39165: Schema WMSYS was not found.
    ORA-31655: no data or metadata objects selected for job
    Job "SYS"."SYS_EXPORT_SCHEMA_01" completed with 2 error(s) at 11:02:43
    [1] +  Done(5)                    expdp  \'/ as sysdba\' directory=data_pump_dir1 logfile=wmsys.log schemas=wmsys &
    SQL> select table_name from dba_tables where owner='WMSYS';
    TABLE_NAME
    WM$RIC_TABLE
    WM$RIC_TRIGGERS_TABLE
    WM$INSTEADOF_TRIGS_TABLE
    WM$WORKSPACES_TABLE
    WM$VERSION_TABLE
    WM$NEXTVER_TABLE
    WM$VERSION_HIERARCHY_TABLE
    WM$VERSIONED_TABLES
    MAX(BYTES) SEGMENT_NAME
         65536 WM$RIC_TRIGGERS_TABLE
         65536 WM$WORKSPACES_TABLE
         65536 WM$MODIFIED_TABLES
         65536 WM$NEXTVER_TABLE
         65536 WM$CONS_COLUMNS
         65536 WM$MP_PARENT_WORKSPACES_TABLE
         65536 WM$LOG_TABLE
         65536 WM$ADT_FUNC_TABLE
         65536 WM$UDTRIG_INFO
         65536 WM$VT_ERRORS_TABLE
         65536 WM$NESTED_COLUMNS_TABLE
    MAX(BYTES) SEGMENT_NAME
         65536 WM$VERSIONED_TABLES
         65536 WM$RESOLVE_WORKSPACES_TABLE
         65536 WM$LOCKROWS_INFO
         65536 WM$MP_GRAPH_WORKSPACES_TABLE
         65536 WM$BATCH_COMPRESSIBLE_TABLES
         65536 WM$TMP_DBA_CONSTRAINTS
         65536 WM$RIC_LOCKING_TABLE
         65536 AQ$_WM$EVENT_QUEUE_TABLE_S
         65536 WM$INSTEADOF_TRIGS_TABLE
         65536 WM$VERSION_TABLE
         65536 WM$VERSION_HIERARCHY_TABLE
    MAX(BYTES) SEGMENT_NAME
         65536 WM$WORKSPACE_PRIV_TABLE
         65536 WM$WORKSPACE_SAVEPOINTS_TABLE
         65536 WM$UDTRIG_DISPATCH_PROCS
         65536 WM$REPLICATION_TABLE
         65536 WM$CONSTRAINTS_TABLE
         65536 WM$EVENTS_INFO
         65536 WM$LOG_TABLE_ERRORS
         65536 WM$REMOVED_WORKSPACES_TABLE
         65536 WM$HINT_TABLE
         65536 WM$RIC_TABLE
         65536 WM$ENV_VARS
    MAX(BYTES) SEGMENT_NAME
         65536 WM$SYSPARAM_ALL_VALUES
         65536 WM$EVENT_QUEUE_TABLE
         65536 SYS_IOT_OVER_12359
         65536 WM$REPLICATION_DETAILS_TABLERegards

    This is not true, there is a set of schemas that Data Pump knows are really not user schemas and therefore are not exported. Most contain sys, but they don't have to.
    If you created a schema called sysxyz, it would be exported.
    Dean

  • Row Selection

    Hi all,
    I have a data table and if a row is selected I want it to load a different JSF page. I want to use the row selection feature as the highlighting aspect is useful. However, row selection seem to me to only link to a listener, so I can load parts of the current page based on a row selection but not issue a command to take me to another page. Currently I have had to disable the row selection and just stick an icon at the start of the which is an commandImageLink.
    Is there a way to perform a action when a row is selected? I hope I'm missing something obvious as this would seem to me to be quite a common thing. Maybe its not there? is there a way to achieve this functionality? Maybe some sort of request dispatched in the selection listener method?
    Cheers,
    Dale

    Hi John, thanks for reply, don't understand how though? I have a rough idea of how to use the selectionlistener as I have used it in a few places but not to jump to another page, so I have tried just changing return type from void to String but that does link away...
        public String LoadTask(SelectionEvent selectionEvent) {
            RichTable table = (RichTable)selectionEvent.getComponent();
            Task selectedTask = (Task)table.getSelectedRowData();
            // to some stuff
            return "showTask"
        }So what I want to do is navigator to "showTask" when I select a row but I just can't see a mechanism to do that?
    Table looks like this...
                    <af:table value="#{Tasklist.taskList}" var="row"
                              rowBandingInterval="1" id="t1" rowSelection="single"
                              disableColumnReordering="true" emptyText="No tasks matching criteria"
                              fetchSize="#{Tasklist.pagingData.rowsPerPage}"
                              partialTriggers="::cb1 ::cb2 ::cb3 ::cb4"
                              immediate="true"
                              sortListener="#{Tasklist.SortTasklist}"
                              selectionListener="#{Tasklist.LoadTask}">
                        <af:column frozen="true" id="sel" headerText=" " width="30">
                            <af:commandLink id="loadLink" action="#{Tasklist.loadTask}" text="Load">
                              <f:param id="tskId" name="taskId" value="#{row.systemAttributes.taskId}"/>
                            </af:commandLink>
                        </af:column>
                        <af:forEach items="#{Tasklist.columnsMetaData}" var="colDef">
                            <af:column sortable="true" sortProperty="title" headerText="#{colDef.headerText}" align="start" id="dataCol">
                              <af:outputText value="#{ExprBean[colDef.valueBinding]}" id="ot4"/>
                            </af:column>
                        </af:forEach>
                    </af:table>I want to do away with that Load column but just can't seem to do it with row selection :o(
    Cheers,
    Dale

  • Row selection in Table should be the same, if we came back to the page?

    Hello All,
    I am using JDeveloper 11g.
    I created one adf Table on jsp(empPage) page and selected one row(single selection) , than user can move to other page(to finish some other task), after coming back to the earlier page(empPage), row selection should be the same.
    Can you please help me?
    --Neelmani Jaiswal
    Edited by: Neelmani Jaiswal on Jan 11, 2009 12:09 PM
    Edited by: Neelmani Jaiswal on Jan 11, 2009 12:10 PM

    check this post here. I still have the same issue.
    Code for getting the selected row in ADF Table 11G prod

  • ALV Grid Single Row Selection Only

    Hi,
    I have a requirement to select a single row in an ALV grid using class
    I tried with   layout-sel_mode   = 'B'  its not working, and don't want to use
      call method g_grid->get_selected_rows
        importing
          et_row_no = lt_row_no.
    and check for number of rows and giving error message " select only one row".
    Is there any other way to tackle this issue
    Thanks
    aRs

    Hi,
    DATA:
    * Internal table for indexes of selected rows
    gi_index_rows TYPE lvc_t_row,
    * Information about 1 row
    g_selected_row LIKE lvc_s_row.
      CALL METHOD go_grid->get_selected_rows
        IMPORTING
          et_index_rows = gi_index_rows.
      DESCRIBE TABLE gi_index_rows LINES l_lines.
    Here the L_Lines will contain the number of rows selected
    Regards
    Sudheer

Maybe you are looking for

  • How to call a class method from a jsp page?

    Hi all, i would like to create a basic jsp page in jdev 1013 that contains a button and a text field. When clicking the button, i would like to call a method that returns a string into the text field. The class could be something like this: public cl

  • Can I use my iPad as a screen to play content from my iPod

    I have an iPod classic which has a much greater capacity than my iPad. I want to know whether I can plug my iPod into the iPad in some way and use it as a larger screen to play the videos etc from my iPod. Does anyone know if this is possible?

  • Am looking for any example vi's for impact/mod​al analysis testing. I am

    LAbview VI or C++ application in labview CVI

  • Non Windows Credentials Sql Server Analysis Services

    I am attempting to connect to an OLAP cube using power query from sql server analysis services, but without windows credentials.  Is there a way in which I can perform this action?  It doesn't seem to support this type of connection without using win

  • EMBED IE in JAVA

    hi guru's I wanted to embed IE browser as part of my Application to show the user a Preview screen of an javascript , i dont have any other option to excute and show the script to the user so i thought to embed a IE browser into my java application a