Home > Default > How to read the current selection in a table.

How to read the current selection in a table.

October 11Hits:0
Advertisement
Hello Experts,
I've this issue with the web dynpro. I have a Adaptive Webservice Model in web dynpro. And I have three tables in the UI. When a row is selected in the first table, the second table is populated with the appropriate data (using a method in the web service.) the same applies to the third table, when the a row is selected in the second table, the third table has to be populated with the appropriate data. The methods in the web service are all working fine. However, in web dynpro, I am not able to figure out on how I read the selected row in a table. Any information on how to resolve this would be really really helpful.
<
wdContext.currentGetMailElement().setProfileID("-Should be read from the selected row in the table.");
wdThis.wdGetMailControllerController().executeGetMail();
>
regards,
Sam.

Answers

Hi Samuel,
I didnt clearly understood  your problem. When you are selecting a particular row in a table you are executing a web service named Get Mail. Are you passing any input parameter(any selected row data)  while executing a web service. And when you get the response node where you have a attribute in the node getmail. Am I right.
If this is the case, then first check if the GetMail node is present or not by comparing it will null or checking its size. If the node is null then you will not get attribute as the element itself is null as nothing is retrieved in response. And if the node is not null then the element at 0th position is selected by default. you can retreieve the attribute by directly using the following code
if(wdContext.nodeGetMail() !=null)
    String profileId= wdContext.currentGetMailElement().getProfileID();
Check if this works for you.
Regards,
Ardhendu Sarkar

Read other 8 answers

Tags:

Related Articles

  • How to dynamically display the data from a table base on row selection of another table in ADFOctober 11

    Hi , I have a requirement in ADF. I need to change the data of a table  based on row selection of another Table . Both the table have a Parent Child relationship between them. They have a common attribute say department_id.                           

  • While selecting Frame for Table in SmartformOctober 11

    hi   While i am selecting Frame for Table in Smartform , it displaying very Bold frame. wat is the reason, guide mehi, do this steps, ->first in the shading of the table select white color ->provide the saturation as 100 ->select the pattern and

  • How to have both Single and Mutilple Selection in a table?October 11

    Hi , I have a page with an advanced, there is a multiple selection for the table for deleting row. Now I want to have a single selection column for other purpose. But it does not seem that we can have both in a table. If I implement SingleSelection m

  • Using radio button selection in multiple tablesOctober 11

    Hello All, I've got a bit of a design issue and it being a Friday my brain is a bit foggy and I can't seem to figure out a solution. what I want to do is have 3 tables. The user should only be able to select one line from any of the three tables. I c

  • How to find out the selected column in Table ControlOctober 11

    Hi all,       How to find out the selected column in Table Control? Thanks & Regards, YJRHi, Let your table control name in Screen painter be TC1. READ TABLE TC1-COLS INTO WA_COLS (some wok area)              WITH KEY SELECTED = 'X'.         IF SY-SU

  • How to get selected row from table(FacesCtrlHierBinding ).October 11

    I'am trying to get selected row data from table: FacesCtrlHierBinding rowBinding = (FacesCtrlHierBinding) tab.getSelectedRow(); Row rw = rowBinding.getRow(); But import for oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding cannot be fo

  • Error while selecting  from nested table in PL/SQL block ............October 11

    SQL> create type string_table is table of varchar(100); 2 / Type created. declare v_names string_table := string_table(); begin v_names.EXTEND(3); v_names(1) := 'name1'; v_names(2) := 'name2'; v_names(3) := 'name3'; dbms_output.put_line(v_names(1));

  • Record selected in the table controlOctober 11

    Hi All,   How do i know the line no of the record selected in the table control.I have declared a table control CONTROLS : t_control1 type tableview using screen 200.But in t_control1-current_line the line no that is stored is always 1. Thanks, Rakes

  • How to populate a table based on a row selection from another table.October 11

    Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario . By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to p

  • How to do a SELECT from different tables into an internal table?October 11

    How to do a SELECT from different tables into an internal table? I want to select data from MARA, MARC and ZPERSON and populate my ITAB_FINAL REPORT  zinternal_table. TABLES:   mara,   marc,   zperson. TYPES: BEGIN OF str_table1,   v_name LIKE zperso

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 15 q. 0.941 s.