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
Similar Messages
-
No rows selected in table Transfer Rules
Hi All,
I have a Generic master datasource which is working fine. I am trying to append a field ZEINH to generic existing master datasource which uses user exit in R/3. It is working fine in R/3.
I have replicated R/3 datasource to BW and assign source system and datasource to infosource.I can see the ZEINH field in Transfer structure .I have tried to map ZEINH with infoobject of same domain and data element in the Infobject assign column of Transfer rule.
When It does not propose transfer rule for new field,however old fields are there. When I select new field and try to transfer to the comm.struc/Trns. rule column, it gives me error"No rows selected in table Transfer Rules"
Thanks in advance for your attentionHi,
In 'Transfer rules' tab, in the right frame, in the 'Infoobject' column, type in a name of infoobject to which you want to map incoming data from datasource.
Best regards,
Eugene -
Select a Row in a table and display the related in formation
I have a uix page displaying table "room" ,there are several patients in every room .What I want to do is: Using "SingleSelection" to select a room and display some attributes of this room and the related patients in a table with using another page. How can I do this? Can I do it declaratively?
room.uix
<bc4j:table name="viewTable" width="80%"
alternateText="No rows found">
<tableSelection>
<singleSelection selectedIndex="0"
shortDesc="Select Row"
text="">
<contents>
<submitButton text="Rooms"
ctrl:event="update"/>
</contents>
</singleSelection>
</tableSelection>
<bc4j:keyStamp>
<bc4j:rowKey name="key"/>
</bc4j:keyStamp>
<contents>
<!-- A bc4j:column element is added for each attribute
in the ViewObject. -->
<bc4j:column attrName="PacsDemonstrationId">
<columnHeader>
<bc4j:sortableHeader/>
</columnHeader>
how to then write patients.uix?...
Thanks
YongHi,
Check the below thread
[Find the records in Table control |Reg : Find the records in Table control]
in the above thread, you can omit the POPUP_GET_VALUES function module since you have an input field for search purpose
Hope this serve your purpose
Cheers
Ramchander Rao.K -
Need to get the row selected in table control without ay action
Dear Team,
I have a requirement in which I need to pass the row selected of a table control to a variable.
Here I need to get the row selected with out any other action
then the action of selection of a row.
Is it possible to read table control values using FM DYNP_VALUES_READ.
thanks in advance,
regards,
SaiHI,
Sai Kumar Potluri
I tried in IDES it working.
Here is the code.
REPORT ZPRA_TC_D.
TABLES : SCARR.
CONTROLS TC TYPE TABLEVIEW USING SCREEN 1.
DATA : SELLINE TYPE I,
SELINDEX TYPE I.
DATA : ACT LIKE SCARR-CARRID,
ANT LIKE SCARR-CARRNAME.
DATA : ITAB LIKE SCARR OCCURS 0 WITH HEADER LINE.
CALL SCREEN 1.
*& Module STATUS_0001 OUTPUT
* text
MODULE STATUS_0001 OUTPUT.
SET PF-STATUS 'ME'.
* SET TITLEBAR 'xxx'.
SELECT * FROM SCARR INTO TABLE ITAB.
ENDMODULE. " STATUS_0001 OUTPUT
*& Module MOV OUTPUT
* text
MODULE MOV OUTPUT.
MOVE-CORRESPONDING ITAB TO SCARR.
ENDMODULE. " MOV OUTPUT
*& Module USER_COMMAND_0001 INPUT
* text
MODULE USER_COMMAND_0001 INPUT.
CASE SY-UCOMM.
WHEN 'BACK' OR 'UP' OR 'EXIT'.
LEAVE PROGRAM.
WHEN 'SEL'.
GET CURSOR FIELD SCARR-CARRID LINE SELLINE.
SELINDEX = TC-TOP_LINE + SELLINE - 1.
READ TABLE ITAB INDEX SELINDEX.
ACT = ITAB-CARRID.
ANT = ITAB-CARRNAME.
ENDCASE.
ENDMODULE. " USER_COMMAND_0001 INPUT
In Flow Logic.
PROCESS BEFORE OUTPUT.
MODULE STATUS_0001.
LOOP AT ITAB WITH CONTROL TC.
MODULE MOV.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT ITAB.
ENDLOOP.
MODULE USER_COMMAND_0001. -
Call a method on row selection in table.
Here is my use case:
I have created my dc using a wsdl. I have a main page having a panel splitter which divides the page vertically. On the right panel I have created a dynamic region which displays result of task flows on clicking a task flow links present on the left panel. In one of the task flows i am displaying an adf table. My requirement is that on selecting a row in this table i want to call a method present in my dc which will take the value from selected row and should display the result depending on this input parameter received. I want its result to be displayed on the same page (below the table). How do i achieve this?
-PankajDrag the method you want to invoke from the data control palette onto the table's column and drop it as a link there.
This will create a component that when pressed will call the method.
If instead you want to enable this through a selection of a line in the table - then you can write a selectionListener on the table that will do the same thing that the link does.
(double click the link to generate its activation code in your backing bean). -
My Swing GUI appliaction has a large table in it, and I'm using a custom Table Cell Renderer. One of my columns uses a widget I wrote myself that is identical to the "star rating" widget you see in iTunes. (In fact, you can basically think of this app as being iTunes-like in terms of its UI.) It's working pretty well: when I see an item I want to rate, I can click on the widget in a particular row, and it shows the appropriate number of stars, etc.
But here's the problem: this doesn't work if the row has already been selected. I can only modify the star widget on rows that are unselected.
Does anyone have an idea of how I could correct this problem?
Thanks very much.Does anyone have an idea of how I could correct this problem?Given that we have very little information to go by, I'm guessing that you have a custom TableModel and you are not firing the TableCellUpdated() method when you change the data, so the table doesn't know it should repaint the cell.
-
Hi All,
I created a table with three columns - Select(Checkbox), EmpID(TextView), Status(TextView).
The data for EmpId column and Status column is coming from a webservice. While i created a node with a boolean attribute and bound to the "Checked" property of the Select column editor.
I created a method RowSelect and assigned it to the onToggleEvent of the check box.
I need to have a functionality where the user should be able to select some Emp ids through the checkbox, and on the click of Activate button, the ids and the status of the selected rows should be passed to webservice as input.
But when i deploy the code, the check boxes in the table are disabled.
Can anyone tell me where iam doing wrong?
Regards,
MaggieHi,
In the Init() method of the view editor, initialize the boolean attribute to false and try once:
for(int i=0; i < tablesize; i++)
wdContext().node<nodename>.get<nodename>ElementAt(i).set<booleanvalue>(false);
Regards,
Poojith MV -
Row selection in Table (Web Dynpro Abap)
Hello,
I have 2 views in my web dynpro component.
In first view , i am taking carrid and on click of submit button , i am displaying connid,fldate,currency,planetype,seatsmax in second view.
I have one button on second view to go back to fist screen.
Now, My question is :
if i select a one row of table , i want to dispaly deatils of that row in first view.
How can i do this?
Please help.The second part of the requirement is not clear on where woudl you click and where shoudl the data be shown.
However, all this data should be ideally maintained in the component controller i.e. the c.controller should have the conterxts and map relevant nodes to the appropriate views.
Now, all the data is in c.controller which can be accessed from any view within the component. This way you can show any data in contexts in preferred view.
Regards,
Sharath -
Multiple row select for table not working..
Hi Experts,
I have a table in ABAP Web Dynpro where I have enabled the multiple row select functionality. I can select all and deselect all. I can also select a block of adjacent rows of table by choosing first and last by pressing Shift key.
But I am not able to select multiple individual records for that table.
I tried the same thing in different system and it works fine there.
Please let me know if we are missing some standard plugin or we need to enable this in some settings.
System where the issue is:
SAP_APPL: release 600, level 18
SAP_BASIS: Release 700, level 22
System where it is working fine:
SAP_APPL: release 604, level 8
SAP_BASIS: release 701, level 8
Regards,
Anand KolteHi
Press CTRL key and Select records, you can select multiple records, continuously or randomly your desired selection.
Cheers,
Kris. -
Multiple row selection in Table
Hi Experts,
I have created one popup with a table inside that.
My question is how can i add multiple rows, enter value in those rows and on clicking the
copy button all the value in the rows will be copied into the main view.
All the rows should be editable.Hi Armin,
Thanks a lot for the reply.
In my application when i am selecting the multiple rows which i entered earlier in the popup window, it's getting populated into main window.
But in main window only one input field is there,so only the fiest record is getting displyed after selection.
Rest of the records i am not able to display in the main window.And the problem is i can't add more than one input field in main window. Rest of the values will be passed into R3 through coding but it can't be displayed on screen.
So please advice me on these two scenarios.
1 . How to populate multiple row values(input fields in popup window with value enterd by user) into
main view. In main view only one input field is there.
2 . How to pass all the selected values from main window to R3 by webdynpro coding.
All the values coming from popup need to be passed even though only one value is displayed.
Here the input field in main window is mapped to one model attrribute.
Thanks a lot. -
Multiple row selection in table control...
hi...
i can select one row from table control and display in a list..
the same thing i want to do for multiple lines...
thanks..use the table control wizard to create a table control on the screen...while going thru the steps, there will be a screen which asks you about the selection column (this is a single character field in your internal table). on this step there is a selection option for single/multiple selection of rows....
to access the selected records, use...
loop at itab where sel eq 'X'.
endloop.
where
<b>itab</b> is the underlying internal table for table control and <b>sel</b> is the name of the selection column
or if u already have a table control on screen...double click and open the properties window...there u can see radio buttons None, Single and Multiple for line selection. choose the multiple option.
rgds,
PJ
Message was edited by: Priyank Jain -
How to get current row value from table when press the submit button
Hi,
I want to get the current row value of SuccessionPlanId which is one of the column in a advanced table.
I created one button (created using personalization, action fired thru CO)in the table as column, so each row having one button, if i press the first row's button means then i want to fetch the first row's SuccessionPlanId and if it is 3rd means then i want to get the value of third row's value.
How to do it in controller extension?
Please reply soon, its urgent.
Thanks in advance,
SANPratap,
Yes, I tried with 'delete' button which is seeded one.
For this, our code using row reference is working too fine. it throws exact SuccessionPlanId value of corresponding row.
I created MessageStyledText, but here i need to give text value right, then only it 'll appear in the page.
Instead i created one image and fired explicitly from the controller processRequest method.
But the same problem remains..
here my code:
public void processRequest(OAPageContext pageContext, OAWebBean webBean){
super.processRequest(pageContext, webBean);
OAButtonBean oabb = (OAButtonBean)webBean.findChildRecursive("XXSubmit");
FireAction action = new FireAction("XXSubmit");
oabb.setAttributeValue(UIConstants.PRIMARY_CLIENT_ACTION_ATTR, action);
OAImageBean oaib=(OAImageBean)webBean.findChildRecursive("XXSubmitImage");
oaib.setFireActionForSubmit("XXSubmitImage", null, null, true);
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean){
if("XXSubmitImage".equals(pageContext.getParameter("event"))){
String succIdI="";
String rowRefI = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
if(rowRefI != null && !("".equalsIgnoreCase(rowRefI ))){
PerSuccPlanSearchVORowImpl rowI = (PerSuccPlanSearchVORowImpl)oaam.findRowByRef(rowRefI);
if(rowI != null)
succIdI=rowI.getAttribute("SuccessionPlanId").toString();
}else{
throw new OAException("Row is null");
throw new OAException(succIdI, OAException.INFORMATION);
}else{
super.processFormRequest(pageContext, webBean);
If i run the page using this controller, it throws exception without any value, because for 'succIdI' i initialized without any string.
Can you please suggest me how to solve? -
Table name and count of rows in that table through out the database
Hi All,
how to find the table_name and the number of rows in that table for all in a database.
Bhargava S Akula.Hi,
Something like this
create function table_count(
owner dba_tables.table_name%type
,table_name dba_tables.table_name%type)
return number
is
the_count number;
stmt varchar2(2000);
begin
stmt := 'select count(*) from ' || owner || '.' || table_name;
execute immediate stmt
into the_count;
return the_count;
exception
when others
then
return 0;
end table_count;
select owner, table_name, table_count(owner, table_name)
from dba_tables
where 1 = 2; -- remove this Regards
Peter -
Get index of row selectable in table in web dynpro abap
Hi all,
How i get the index for the row in a table which i selected .
Help me.
Points are Sured.
Sanket sethiHi ,
in the wdevent parameter of the action get the selected element
eg
context_element type ref to if_wd_context_element .
context_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
then call the get_index method..
context_element->get_index( ).
Regards
Yash -
ABAP WD, Multiple Row selection in table control without using Crtl key
Hi all,
I am displaying the records using the table control, i have to select the multiple records in the list <b>without using Crtl key</b>.
How do i solve this?
ThanksHi,
you should set the table parameter selectionMode to multi or multinolead
than you can select multiple records,
these you can retrieve: lt_selected_elements = node->get_selected_elements( ).
also see this <a href="https://forums.sdn.sap.com/click.jspa?searchID=4209200&messageID=3544158">thread</a> for info
grtz,
Koen
Maybe you are looking for
-
Install R12 on windows 2003 server 64bit
Hi Experts, I need to install Oracle Apps R12 on windows 2003 server 64Bit. what are all the steps should be followed to install Apps R12 on win 2003 server 64bit, Please help me to do this, Thanks Sundaravel.R
-
System 11 Essbase 11.1.3 - Maxl Start up issue
Working on a upgrade project from system 7 to 11, Shared services, EAS, Essbase everything seems to be installed and running fine, was able to migrate and acess Essbase apps via EAS smart view etc but issue persists with MAXL. unable to start ESSMSH.
-
Orange line along bottom of clip in event library?
The last clip I imported has an orange line along the bottom of the clip in the event library. I can't locate anything in the help file or getting started pdf about what this is. Does anyone know? This may be related to the fact that it is the only c
-
FDM - Import Format (Fixed Column Type - No Delimiter)
Hello, Question on FDM. I've built an import format and successfully imported a Fixed Column type text file. Everything imports beautifully. FYI - The format of the file looks just like a Trial Balance with a column for Debits and one column for Cred
-
IMovie 10.03 cannot be open
Version 10.0.3 - Hi, I was working on a project 4.62GB - saved it - deleted all data as well in the Theater. ended iMovie. since today no reply. It cannot be open any more. Please help.