How to delete multiple rows in a table of web dynpro for abap?
hi,
Experts ,
I want to delete the selected multiple records from a table from that i have inserted a check box ui element in a first column of a table what ever checkbox ix checked i want to delete those selected records from table .
please suggest me on
Thanks in advance
Hi,
If you have DELETE button, in that action you write this code -
DATA lr_node type ref to if_wd_context_node.
lt_set = lr_node->get_elements( ).
loop at lt_set into ls_set.
ls_set->get_staitc_attributes
importing
static_attirbutes = ls_row.
if ls_row-check = 'X'.
lr_node->remove_element( ).
endif.
endloop.
Check the methods and thier types.
Regards,
Lekha.
Similar Messages
-
How to delete multiple rows from ADF table
How to delete multiple rows from ADF table
Hi,
best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
Frank -
How to create the Dynamic UI element table in web dynpro in abap
Hi All,
Does anybody have reference note or teach me how to create dynamic UI element table in web dynpro in abap ?
Regards,
LukeHI LukeWong ,
for creating any UI dynamically you shoul use their runtime class that always start with cl_wd_* ui element name*
so for the Table UI element the runtime class is CL_WD_TABLE
now reffer the below code for creating the Table UI dynamically
METHOD wddomodifyview.
DATA lr_table TYPE REF TO cl_wd_table.
DATA lr_flow_data TYPE REF TO cl_wd_flow_data.
DATA lr_container TYPE REF TO cl_wd_uielement_container.
DATA lr_column_name TYPE REF TO cl_wd_table_column.
DATA lr_text_view TYPE REF TO cl_wd_text_view.
DATA lr_table_header TYPE REF TO cl_wd_caption.
DATA lr_column_name_header TYPE REF TO cl_wd_caption.
IF first_time EQ abap_true.
lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
lr_table = cl_wd_table=>new_table(
id = 'TBL_TABLE'
bind_data_source = 'TABLE'
design = cl_wd_table=>e_design-alternating
visible_row_count = 3
lr_flow_data = cl_wd_flow_data=>new_flow_data( element =
lr_table ).
lr_container->add_child( lr_table ).
lr_column_name = cl_wd_table_column=>new_table_column(
id = 'TBL_EXAMPLE_NAME'
lr_table_header ?= cl_wd_caption=>new_caption( text = 'Table UI elem
ent - example').
lr_table->add_column( the_column = lr_column_name ).
lr_table->set_header( lr_table_header ).
lr_text_view = cl_wd_text_view=>new_text_view(
id = 'TXV_NAME'
bind_text = 'TABLE.NAME'
lr_column_name_header ?= cl_wd_caption=>new_caption( text = 'Name').
lr_column_name->set_table_cell_editor( the_table_cell_editor = lr_text_view).
lr_column_name->set_header( lr_column_name_header ).
ENDIF.
ENDMETHOD.
Regards
Chinnaiya P
Edited by: chinnaiya pandiyan on Sep 17, 2010 12:01 PM -
How to call "compensation profile" iView in ECM from Web Dynpro for ABAP
Hi Experts,
I developed a compensation planning iView using web dynpro for ABAP using floor plan manager in ECM. I need to call the iView "compensation profile" but I don't know how to pass parameter to it, how to trigger it from my application. Is there anyone used to do this before?
Thanks!
- Anthony -I have to develop my own iView to replicate Java iView.
-
How to Call Transaction iView that calls RRMXP from Web Dynpro for ABAP
Dear Experts,,
I'm developing an application in Web Dynpro for ABAP wherein I'm supposed to give a link that should open an SAP Transaction iView that calls tcode = 'RRMXP' and I pass the application parameter as QUERY/WBID = <BI query/Workbook ID>.
I tried calling com.sap.portal.appintegrator.sap.bwc.Transaction iView, but it asks for system/application and GUI type parameters. How to pass through the URL?
Any help would be highly appreciated
Regds,
SriniHi Wolfgang,,
My problem was that I was supposed to call the BeX Web Analyser ( a BI excel based tool - client installation) on click of a button in my WD-ABAP application. I solved it as follows :
In the portal pcd, I cam across a folder content provided by SAP. Here, you'll find standard template iViews that can be used to call applications ( for which you make iViews). I had to call an SAP TCode : RRMXP so as to call a BI Workbook/Query.
So, I called the standard iView template for sap_transaction_iView as follows :
irj/servlet/prt/portal/prtmode/preview/prtroot/'
'pcd!3aportal_content!2fcom.sap.pct!2ftemplates'
'!2fiviews!2fcom.sap.portal.sap_transaction_iview?'
'sap-config-mode=true&System=BWR3System&TCode=RRMXP'
'&GuiType=WinGui&OkCode=y&ApplicationParameter=' <appnm> into url.
l_popup =
l_window_manager->create_external_window( url = url
has_menubar = ' '
has_statusbar = ' '
has_toolbar = ' '
has_location = ' ').
l_popup->open( ).
And , it worked.
Any more help pls feel free to revert.
Regds,
Srini -
Printing selected data in ALV or Table in Web Dynpro for ABAP
Hi Experts,
I have ALV / Table report in the Web Dypro for ABAP App. User wants to select a record in ALV/ table and / or preview it in PDF form and then he/she can print it. What is the technical steps do I need to achieve this result?
Thanks!
- Anthony -Hi,
In the Road map UI element , you can find number of Step .
Add one Interactive form in one that steps. Capture that records , pass that records to Step where the interactive form is there.
I think it will work...
regards,
Rama -
Issues with pagination when using Adobe table with Web dynpro for ABAP
Hi All,
I am facing strange issue with table text.
I have three cols in table, one is of type Char255 and other two cols are of type string.
The text in the col 1 is displayed perfectly but in other two cols of type string whenever we have pagination the text in table is getting truncated and in next page new row starts.
Could you please tell me the settings that will enable flowing of text in the row of table to next page.
Thanks,
Arti.Check the properties of the text field you use for those columns (if you want to control it on this level) or check the same attribute for the row subform (one level up control): "allow page break within content".
Regards Otto
p.s.: we all have deadlines... and manage to pay something back. Think about it. -
Best practice for deleting multiple rows from a table , using creator
Hi
Thank you for reading my post.
what is best practive for deleting multiple rows from a table using rowSet ?
for example how i can execute something like
delete from table1 where field1= ? and field2 =?
Thank youHi,
Please go through the AppModel application which is available at: http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
The OnePage Table Based example shows exactly how to use deleting multiple rows from a datatable...
Hope this helps.
Thanks,
RK. -
Web Dynpro for ABAP:How to insert and delete a row in a table
I have a table.
My requirement is to insert a row into the table and i want to delete a particular row also.
How can i do it.
Plz reply me..Try the Web Dynpro for ABAP forum:
Web Dynpro ABAP
Kind Regards
Stefanie -
ALV Web Dynpro for ABAP enable/disable single row
hi all,
is it possible to change the layout of one single row or cell in a alv (component SALV_WD_TABLE) web dynpro for abap?
i managed to get columns to be editable using the tutorial "Editing ALV in Web Dynpro for ABAP".
but it is not described how to change a single row or cell in this tutorial. also the example programs i found do not get into this subject.
did i miss something?
thanks in advanceHi,
I think you cannot set the focus to the particular cell.
I think you can loop at that row of that table and set the the cell design to apply some color to differentiate that way rather than focusing so that user can know that he has to do something in that cell.
check out this example salv_wd_test_table_focus
Regards,
Lekha. -
Import Data from Office Control (Web Dynpro for ABAP) into internal-Table
Hello,
I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
How can I import spreadsheet data from the Office Control into a internal-table?
I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
So now the question is:
How can I import changed data from the Office control into a internal-table staying in Web Dynpro application?
Please give some advice, if you have some useful code or ideas.
Thanks
ram
Edited by: Ramakullay Challa on Sep 24, 2009 9:05 AM
Edited by: Ramakullay Challa on Sep 24, 2009 9:07 AMHi,
Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
Then in that case you need to use the FILEUPLOAD UI element right.
Regards,
Lekha. -
Web dynpro for abap how to create a customize search help in alv column
hi:
Web dynpro for abap how to create a customize search help in alv column and put search help value into alv column?
Are there specific examples ?
thanks!!HI:
I want to created a freely programed help which include date&time,and put help value to alv column.
I have created a freely programed help in web dynpro for abpa application,I refer:
**************** - WebDynpro for ABAP
but have a problem!
If you focus on the the input field in the first row, you get the value help
However if I go to the second row and focus on the same input field in this column, I don't get the value help:
What is a good way to solve similar problems?
thanks -
Import Data from Office Control (Web Dynpro for ABAP) into SAP-Table
Hello,
I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
How can I import spreadsheet data from the Office Control in a SAP-table?
I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
So now the question is:
How can I import changed data from the Office control into a SAP-table staying in Web Dynpro application?
Please give some advice, if you have some useful code or ideas.
Thanks in advance,
Philipp
Edited by: Philipp Hiebler on Feb 11, 2008 10:15 AMHi,
Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
Then in that case you need to use the FILEUPLOAD UI element right.
Regards,
Lekha. -
How to confirm program version in Web Dynpro for ABAP
Hello expert
I would like to know how to confirm the program version for Web Dynpro for ABAP.
For ABAP we can confirm version using SE38.
Best regards,
Ichimuraeverything has a version
View has a version.
controllers have versions
WD component also has version
so double click on what you need and the follow the path -
Web Dynpro for ABAP alv table cell color
Hello,
I have a question about Web Dynpro for ABAP and ALV. I want to change the color of one cell as yellow. how to do it??in that method possible colors are
cellDesign: badvalue_dark
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-BADVALUE_DARK
cellDesign: badvalue_light
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-BADVALUE_LIGHT
cellDesign: badvalue_medium
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-BADVALUE_MEDIUM
cellDesign: criticalvalue_dark
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-CRITICALVALUE_DARK
cellDesign: criticalvalue_light
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-CRITICALVALUE_LIGHT
cellDesign: criticalvalue_medium
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-CRITICALVALUE_MEDIUM
cellDesign: goodvalue_dark
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GOODVALUE_DARK
cellDesign: goodvalue_light
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GOODVALUE_LIGHT
cellDesign: goodvalue_medium
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GOODVALUE_MEDIUM
cellDesign: group_level1
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GROUP_LEVEL1
cellDesign: group_level2
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GROUP_LEVEL2
cellDesign: group_level3
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GROUP_LEVEL3
cellDesign: key_medium
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-KEY_MEDIUM
cellDesign: negative
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-NEGATIVE
cellDesign: positive
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-POSITIVE
cellDesign: standard
CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-STANDARD
not able to set column color as yellow....
Maybe you are looking for
-
When I try to access the below mentioned site, it displays the following msg - == URL of affected sites == https://203.97.122.66:444
-
Are there any security or integration challenges with using the CIDX adapter (with content) to post messages from my client directly to a trading partner or receive messages from my trading partner through my web server located in my DMZ prior to bei
-
Return url for the current page
Hi, I would like to know how to return the url for the current page?
-
I don't see any evidence that this is malware. For instance i opened a page that was for a major newspaper from Dallas. As i reached my cursor to the page, it hid behind the other pages, and i had to now reach down to my taskbar to find it again. Whe
-
Recouping Images of the Data base - URGENTE!!!!
I am not obtaining to recoup the image of the data base, this thus appearing <img src="java.io.ByteArrayInputStream@a8a81c">.... The code that I am using is the following one... Somebody can me help...????? <%@ page import="java.sql.*" import="java.i