How to use selected row on another tab ?
Hi,
I created a table with a number of rows, containing a objectid and other stuff.
When I select 1 or more rows and click a button,
my application is doing his thing,
and finally I got a message that all went fine.
When I select another tab in that same page,
I want to display the previously selected object id's.
I created a getter and setter in my backingbean for these id's.
When I print them on the first tab, they are available,
but when I click the other tab, they dissapear....
Anyone who can help me how to do this ?
So I need to set a String in 1 tab, and display it after I changed to another tab.
Thanks.
Hi,
I'm not using a VO.
I have in memory an array of selected id's.
They should be printed on another tab , but when I click that tab, they are empty.
If I display them on the same tab, they get filled out after I clicked the button.
But navigating away from that tab clears the contents.
Maybe some code could help :
in my backingbean_method :
RowKeySet rks = graph_table.getSelectedRowKeys(); => graph_table is the table using a VO and displaying some rows. (binding)
while(itr.hasNext())
key = itr.next();
graph_table.setRowKey(key);
Object o = graph_table.getRowData();
JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) o;
Row row = rowData.getRow();
objectid[i] = row.getAttribute("Objectid").toString(); => array of objectid[] contains all selected objectids I want to display in another tab.
title = objectid[0]; => just to try one
i++;
I added a getter and setter method for title in the backing bean.
In my JSPX page, I use : #{FNI_backing_bean.title}
Similar Messages
-
How to get selected row index of a Table ?
hi gurus,I'm new to Webdynpro for abap
I'm displaying just Flight details in a Table so
how to get selected row index of a Table and need to be display in Message manager.Hi,
For getting the row index use the following code.
DATA lo_nd_node TYPE REF TO if_wd_context_node.
DATA lo_el_node TYPE REF TO if_wd_context_element.
DATA index TYPE i.
* navigate from <CONTEXT> to <NODE> via lead selection
lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_node ).
lo_el_node = lo_nd_node->get_lead_selection( ).
index = lo_el_node->get_index( ).
node is the name of the node which is binded to the table.
For printing the message u can use code wizard.
Press ctrl-F7. Now Select generate message.
IN this select the method REPORT_SUCCESS
In the code now u can give index to Message text Exporting parameter. Comment receiving parameter.
Write the whole code in onLeadSelect of the table.
Regards,
Pankaj Aggarwal -
In SQLScript, how to use EXEC to call another procedure with parameters in procedure?
Hi experts,
In SQLScript, How to use EXEC to call another procedure with input and output parameters in procedure?thanks very muchHi Sagar,
thank you! I generate another procedure with an input parameter and an output parameter in a procedure. Then i need to call the generated procedure using EXEC. Here is my code:
create procedure ftest1(out sum_num bigint)
as
begin
declare fa_output bigint;
declare v_sql_drop varchar(200);
declare v_sql varchar(500);
declare cursor c_cursor1 for select num from TABLE1;
--v_sql_drop := 'drop procedure fe';
--exec v_sql_drop;
v_sql := 'create procedure fe(in i_num bigint,out o_num bigint) as begin';
v_sql := :v_sql || ' o_num := :i_num * 2 + :i_num * :i_num;';
v_sql := :v_sql || ' end';
exec v_sql;
open c_cursor1;
for c_item as c_cursor1 do
exec 'call fe(c_item.num,o_num=>fa_output)';
if sum_num is null then
sum_num := fa_output;
else
sum_num := :sum_num + fa_output;
end if;
end for;
close c_cursor1;
end;
The underline code is using exec to call the generated procedure. But this method cannot work. Any suggestion? thanks again! -
How to use selection creteria in Trial Balance ???....
Dear all,
Redefining my question in another thread,
How to use selection creteria in Trial balance to get closing balance of previous fiscal year as
opening balance of current fiscal year(01.04.09 to till date) ?
Since Revenue,Expenditure account get zeroed on YEC procedure,
My question is concerend with Balance sheet accounts
Note : YEC is performed on 31.03.09.
Expecting ur valuable replies.
JeyakanthanHi Jey
You tried this ?
What is the result are u getting ?
choose Financials Financial Reports Financial Trial Balance . Under Selection criteria
Opening Balance for Period u2013 Select this option when you need to differentiate between the balance of the selected posting period and that of the previous periods. When a date range of a current posting period is selected, you can select this checkbox to display the bookkeeping balance prior to the selected date range in a separate column: OB.
As default, the checkbox is cleared. Selecting it displays the following options:
OB from Start of Company Activity u2013 Displays the opening balance accumulated since the companyu2019s activity started.
OB from Start of Fiscal Year u2013 Displays the opening balance accumulated from the start of the current fiscal year.
Presently i dont have that enviroment to check.
Ashish Gupte -
How to edit selected rows in a datagrid?
Hi all,
I am new to flex and I would like to know how to edit
selected rows( through check boxes) in a data grid. As of now the
whole data grid becomes editable.
Regards
Saran.This is not simple in Flex 2.0.
You will need to use a custom itemRenderer.
Search the net, perhaps someone has a component or sample
close to what you want.
Tracy -
How to get selected row keys from RichSelectManyCheckbox
Adf Table has getSelectedRowKeys but SelectManyChekcbox does not has anything similar. Can you tell me how to get selected row keys programmatically for RichSelectManyCheckbox?
Hi User,
selectManyCheckbox component's value property holds the selected items values. Bind this property to some bean variable(of type list) so that you can get the selected values by accessing the bean property.
Sireesha -
How to use temporary interface in another interface as derived table in 10g
Hi ,
Can somebody please tell me how to use temporary interface in another interface as derived table in 10g.
I have an option in odi 11g to this task.But i am working on odi 10g for my project.So that please help me to do this task.
I can able to create temporary interface in 10g ,but i dont know how to use that temporary interface in another inerface as derived table.
Thanks in Advance
Thanks,
Srikanth AA temp interface CANNOT be used as a derived table in ODI 10g.
All you can do is to drag and drop the temp interface as the source in the mapping.
PS. Please remember to assign correct/helpful points to the people who help you in the forum. -
HOW TO USE SELECTION SCREEN
I WANT TO INSERT PURCHASE DOCUMENT NUMBER
AND WANT TO SEE ALL INFORMATION FOR THAT PURCHASE DOCUMNET NUMBER.
THANKS IN ADVANCED.The main use of the selection-screen is to select screen in the back ground
ex :
TABNAME
IN THE ABOVE FIGURE TABNAME IS THE FIELD AND THE BACK END IS CREATED SCREEN IN THE BACK END
THIS SCREEN CREATION WE CAN USED THE SCREEN SELECTION -
How to use selection-set in submit report
Hi ,
How to use,
submit report via selection-screen
using selection-set 'ABC' .
Can somebody pl tell me how to use selection-set 'ABC' in submit report . It would be nice if someone can send me a piece of code.
Regards,
HardikHi,
This is from ABAPDOCU.
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
Effect
Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00.
You can use f1 help also. -
How to use select options whitout ranges ie like parameter
how to use select options whitout ranges ie like parameter and pls send me the code on that
thanks
raja.hi,
SELECT-OPTIONS : s_kunnr for kna1-kunnr <b>no intervels.</b>
eg: code
<b>SELECT-OPTIONS : s_kunnr for kna1-kunnr <b>no intervels.</b></b>
data: itab type table of kna1 with header line.
select * from kna1 into table itab where kunnr IN s_kunnr.
rgds
Anver -
How to use SELECTION-SET with FREE-SELECTIONS?
Hi,
how to use SELECTION-SET with FREE-SELECTIONS?
Regards,
Vinay.Check http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm
-
How will use Select-Options in Read table Concept.
Hi All,
How will use Select-Options in Read table. For example,
Select-Options : test for bseg-prctr.
Select * from bseg into table ITAB.
Read table ITAB with key prctr in test.
Last line is showing error. If any way to read ITAB as conditions given per select options.
Thankx Advance,,,HI,
you cannot use " IN " with read statement , read statement is used as:
READ TABLE it_collect ASSIGNING <fs_collect>
WITH KEY rbpl = <fs_wkdet>-arbpl
ufnr = <fs_wkdet>-aufnr.
anyways you can use loop at statement before read to use " into " statement as:
LOOP AT it_master INTO l_master
WHERE werks = l_werks
hope it will help you
regards
rahul
Edited by: RAHUL SHARMA on Dec 30, 2008 9:14 AM -
How to get selected row values in a table using check box
Hi ADF Experts,
JDEV Version 11.1.1.7.0
My requirement is getting the selected row valuesof a af:table using a checkbox(multi select).
Thanks,
AnimeshHi,
add a transient attribute to the POJO entity and update this through a check box. The ensure you have autosubmit=true set on the check box. In a value change listener set or remove the row's checbox attribute value
Frank -
How to get selected row from table(FacesCtrlHierBinding ).
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 found from my JDev 11.
What is correct package for FacesCtrlHierBinding?Hi, another problem.
I fill table with data manualy from source:
<af:table var="row" value="#{getCompanyData.com}"
rowSelection="single" columnSelection="single"
editingMode="clickToEdit"
binding="#{getCompanyData.tab}"
selectionListener="#{getCompanyData.GetSelectedCompany}">
<af:column sortable="false" headerText="col1">
<af:outputText value="#{row.id}"/>
</af:column>
<af:column sortable="false" headerText="col2">
<af:outputText value="#{row.name}"/>
</af:column>
<af:column sortable="false" headerText="col3">
<af:outputText value="#{row.phone}"/>
</af:column>
</af:table>
and when I'am trying to use method to get selected row:
RichTable table = this.getTab(); //get table bound to UI Table
RowKeySet rowKeys = table.getSelectedRowKeys();
Iterator selection = table.getSelectedRowKeys().iterator();
while (selection.hasNext())
Object key = selection.next();
table.setRowKey(key);
Object selCompany = table.getRowData();
JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) selCompany;
row = rowData.getRow();
I got an error:
SEVERE: Server Exception during PPR, #1
javax.el.ELException: java.lang.ClassCastException: data.COMPANY cannot be cast to oracle.jbo.uicli.binding.JUCtrlHierNodeBinding
When I created tables by dragging data from date control, all worked fine.
What could be a problem? -
Change selected row when press tab
Hi
I use JDev11.1 with ADF, i have grid in my jsf page, this grid are updatable, i need when i press tab and go to next record set selected row that cursor on it, how can i do that?
ThanksHi,
one option is to add a clientListener to the input text fields, intercept the tab key and then use a serverListener component to reference a managed bean method that
- sets the row currency to the next row
- PPRs the table so it shows the selection change
Frank
Maybe you are looking for
-
SQL*Plus Release 9.2.0.1 remote connection to 10g EX
Greetings, I am trying to access my XE database from a linux machine using SQLplus 9.2.0.1. I do the following: sqlplus /nolog sql>connect username/[email protected]:XEERROR: ORA-06401: NETCMN: invalid driver designator If I leave out the "XE" I get
-
How to use run() method in serlvets
Hi, I want to execute run() method in servlet as i have got a web application where in I want to set timer for the choosen times and want to pop up when ever the time elapses..can anybody help Thanks, veni..
-
Queries regarding management console
Dear friends, I am having a queries.. If i am having a ABAP+JAVA dual stack system, can i use JAVA MC to stop my ABAP system as well .. so which one is true ? - Both Java and ABAP can be shut down using java based MC - Only Java can be shut d
-
Where can i get minisap 4.6d
hi all, I haven't been able to get the two cd pack 4.6d minisap. let me know from where can i purchase or download the same. anyhelp in this regard will be greatly appreciated. harry
-
Access connection icon won't allow shrinking of the Sidebar (thick wide icon)
this one is wierd but I can't get it fixed I just installed new HDD with everything fresh Win 7/64 sp1. This ACCESS CONNECTION (v. 5.97) icon won't allow me to shrink sidebar ,even thou in my old HDD I'm able to shrink it. Whole new install is same a