Is it possible to paste multiple selections from excel?
How do you detect in Java whether a multiple selection in excel has been copied to the clipboard.
For instance: I have an excel spreadsheet - 3 rows x 3 columns. I highlight the first 3 rows in column 1 and the first 3 rows in column 3 then I copy this to the clipboard (ctrl-c). If I now go to a text editor and paste this then the data from all 3 columns, not the expected 2 columns, appears.
Likewise, in Java I have tried using the clipboard object looking at all the different data flavours to find a way of detecting that only data from the 1st and the 3rd columns were copied. But I can't find a way.
This is most likely a microsoft issue in that they never make this information available from the clipboard.
Can anyone shed any light on this one?
Use the setSelectionMode(ListSelectionModel.SINGLE_SELECTION ) for your JList / JTable.
Similar Messages
-
Multiple selection from drop down : NWDS7.0 SPS18
Hi Team,
How can achieve multiple selection from drop down? I am working on NWDS7.0 SPS18. I have known the concept of item list box... is that's the only option?.
Is it possible to make it as filter option that we have in our Microsoft excel.
Customer wants select either/all options @once from drop down.
TIA,
Vanita KHi,
Create a node with cardinality 0-n and selection property set to 0-n
Create a table UI element and bind this node as a datasource to this table.
Set the selection mode property of this table as auto or multi
Once this is done, populate the node with some data elements.
When you run the application, you will be able to select multiple rows from the table.
To get the selected rows, use below code on the action of some button
wdComponentAPI.getMessageManager().reportSuccess("Selected rows are");
int n = wdContext.nodeEmployeeData().size();//size of node binded with table
int leadSelected = wdContext.nodeEmployeeData().getLeadSelection();
for (int i = n - 1; i >= 0; --i)
if (wdContext.nodeEmployeeData().isMultiSelected(i) || leadSelected == i )
IEmployeeDataElement employeeDataElement = wdContext.nodeEmployeeData().getEmployeeDataElementAt(i);
wdComponentAPI.getMessageManager().reportSuccess("ID: "+employeeDataElement.getID()+"Name: "+employeeDataElement.getName());
For adding sorting and filtering functionality to the table follow the article
[WDJ - A Generic Java Class for Filtering Web Dynpro Tables|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60d5b593-ba83-2910-28a9-a7a7c7f5996f]
Regards,
Amol -
Is it possible to diable multiple selections in JTable and JList?
as the title states, is it possible to disable multiple selections? how to prevent user from using ctrl or shift keys to select multiple rows?
Use the setSelectionMode(ListSelectionModel.SINGLE_SELECTION ) for your JList / JTable.
-
Is it possible to delete data selectively from Business content cubes
Dear Experts,
Requesting you to help me out to know, is it possible to delete data selectively from Business content cubes.
When I'm trying to delete selectively from Business content cubes, the background job gets cancelled with ST22 logs stating
A RAISE statement in the program "SAPLRSDRD" raised the exception condition "X_MESSAGE".
Since the exception was not intercepted by a superior program, processing was terminated.
and i tried with few more Technical content cubes but the same thing happens.
Pls let me know how to selectively delete data from Business content cubes if it's possible?.
Thanks in advance for your favorable assistance.
Regards,
Ramesh-Kumar.Hi Ramesh,
Follow below steps for selective deletion:
1. Transaction code: Use the Transaction code DELETE_FACTS.
2. Generate selective deletion program:
A report program will be generated of the given name, here .
3. Selection screen:
Take the deletion program u201CZDEL_EPBGu201D to the transaction code SE38 to see/execute the program.
After executing it will take you to a selection screen:
As we need to carry out deletion selective on Calendar week, we need to get the screen field for the field Calendar week. For this, click on the Calendar week field and press F1.
Click on the technical information button (marked in red box above) you will get below screen:
ABAP program to carry out the Calendar week calculation
Problem scenario: As stated earlier the requirement is to delete the data from the cube based on the calendar week. Thus a code must be developed such that the number of weeks should be taken as input and corresponding calendar week should be determined. This calendar week should be then passed to the deletion program in order to carry out the data deletion from the InfoCube.
Transaction code: Use T-code SE38 in order to create a program.
Logic: Suppose we need to delete the data older than 100 weeks.
a. Get the number of weeks and system date in variables and calculate the total number of days :
lv_week = 100. *number of weeks
lv_dte = sy-datum. *system date
v_totaldays = lv_week * 7. *total days
b. Get the corresponding calendar day from the total days. This is obtained by simply subtracting the total no. of days from the system date.
lv_calday = lv_dte - v_totaldays. *corresponding calday.
c. Now in order to get the calendar week corresponding to the calculated calendar day we must call a function module 'DATE_TO_PERIOD_CONVERT'. This function module takes input as Calendar day and Fiscal year variant and returns the appropriate fiscal period.
Get the sales week time elements
call function 'DATE_TO_PERIOD_CONVERT'
exporting
i_date = lv_calday
i_periv = lc_sales
importing
e_buper = lv_period
e_gjahr = lv_year
exceptions
input_false = 1
t009_notfound = 2
t009b_notfound = 3.
if sy-subrc = 0.
ls_time-calweek(4) = lv_year.
ls_time-calweek+4(2) = lv_period.
endif.
v_week = ls_boots_time-calweek.
Note: We can pass the fiscal year variant which can be obtained from the table T009B.For e.g. here fiscal year variant lc_sales = Z2. LS_TIME will be any table with suitable time units.
d. Now we have obtained the required calendar week in the v_week variable. This calendar week is the week till which we need to keep the data. And older data than this week will be deleted. This deletion will be done by the deletion program
Submitting the Data deletion program for ZEPBGC01 and key field
SUBMIT ZDEL_EPBG WITH C039 LT v_week.
Here the calendar week value is submitted to the deletion program ZDEL_EPBG with the screen field of calendar week.
Hope ... this will help you..
Thanks,
Jitendra -
Inserting multiple selection from checkbox in to one column of the database
Hi,
how to insert multiple selection from checkbox into one column of the database.(I select array of values from checkbox ,then how to insert tat array of values iinto single column name).
Anyone can u reply me
Thanxhhhmmm.... is this what you mean?
lets say you hava a checkbox1 with values value1, value2, value3 and you selected all there of them? then you want then to be stored in the database in one column?
now the question is:
Is it going to be one column one row?
datafield
value1,value2,value3
Or one column multiple row?
datafield
value1
value2
value3
Which is it? -
Is it possible to send multiple attachments from pages?
Hello,
Is it possible to send multiple attachments from pages? Currently I'm facing problems with sending multiple documents from pages in an e-mail. I don't like to send a new e-mail everytime I want to share a document!You can only email one file at a time from Pages. There may workaround using other apps - sending the Pages files to another app that supports multiple attachments, so you could give that a try.
read this discussion for one such workaround.
https://discussions.apple.com/message/17331538#17331538 -
Is it possible to show the comments from Excel spreedsheets in Numbers?
Is it possible to show the comments from Excel spreedsheets in Numbers? And can I create comments in new Numbers spreedsheets like Excel?
Yes. You can open excel files with comments and add comments using the menu item "Insert > Comment":
Numbers will export a file as excel using the menu item "File > Export > Excel...":
But will not natively save excel files. So if you will be regularly working with a file in both Numbers and Excel you should consider using only one of the programs as the only way to save a document in Numbers is as a Numbers document. Said another way Number can only import and export Excel. -
How to get multiple selections from jsp page in my servlet
Hello Everyone,
I've a list that allows users to make multiple selections.
<select name=location multiple="multiple">
<option>
All
</option>
<option>
Hyd
</option>
<option>
Dub
</option>
<option>
Mtv
</option>
</select>I want to get the selections made by user in jsp page from my servlet, selections can be multiple too.
ArrayList locList = new ArrayList();
locList = request.getParameter("location");when I do so, I get compilation error as the request returns string type. How do I then get multiple selections made by the user.
Please let me know.For those kind of basic questions it would help a lot if you just gently consult the javadocs and tutorials.
HttpServletRequest API: [http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletRequest.html]
Java EE tutorial part II: [http://java.sun.com/javaee/5/docs/tutorial/doc/]
Coreservlet tutorials: [http://courses.coreservlets.com/Course-Materials/] -
How to perform multiple selection from dropdown list
Hi,
I have developed one application in which i have taken one dropdownbyindex and entered some values in it, now i need to have multiple selection of entries, can any one please suggest how to do these
Regards,
PrasannaA drop-down list is by definition a 1-from-many selector.
Armin -
Multiple Selection from a data block
Hello,
I have a data block returning the names and surnames of employees. Can I select multiple rows from that data block?
Thank youYou could put a checkbox on the row and if it is ticked then interpret this as a selected row.
Sometimes it is useful to store this type of selection in some type of structure like a record group or index by table and process those rows rather than read the data block -
It's is possible to make a select from a view?
I don't know if it's possible to make a select of a table-view like V_T5F99FW if it's possible does anybody tell me how can I do?
Thanks a lot,
Regards,
RebecaHi Rebeca,
You can surely do a selection from a projection and database view but not from a maintenance view.
The selection from a view works like a normal selection only.
watch this link
http://sap.ionelburlacu.ro/abap/ABAPperformance.html#Select_with_view
Regards,
Manish
Edited by: MANISH GUPTA on Aug 31, 2008 1:38 PM -
Is it possible to download multiple files from FTP
Hi,
Is it possible to download the multiple zip files from FTP.I need to download multiple files from FTP into temporary folder in my local machine. Please help me.
Regards,
ahamadOf course it is. Try it. Or, asked differently, what did you try that did not work?
-
Copy and paste multiple texts from Word to Indesign
Hello!!
I would like to simplify multiple operations where I need to copy multiple text boxes from a Word doc into multiple boxes in Indesign, and be able to specify the exact location of each box in the Indesign doc. For example, I would like to take 7 text boxes from a Word doc and copy them separately into 7 boxes in the Indesign doc, rather than have to go back and forth into the Word doc. 7 times and pasting each text box one by one.
See the screenshots
Thank you in advance,
EnricoThat looks a lot like case for Data Merge. It won´t give you any tools for copy/pasting multiple textboxes but with little work, you could make a template where you could drop multiple Items like you have in your screenshot. It won´t work with docs, but if you can convert your stuff to excel, then it would be quite nice solution for you.
-
Inserting multiple selection from checkbox into one column of the database
Hi,
How to insert multiple selection values from checkbox into one column of the database.
Anyone can u help me
Thanxhi
try to use request.getParameterValues("fieldname") -
BAPI for automatic Pr creation witth multiple files from excel sheet
I have written a programm for automatic PR creation with the help of bapi , where its picks data from excel sheet and makes PR .It is picking excel files from one folder(Files) for PR creation and moving to another folder(Files sucess).
now the problem is if Folder (Files) contains one excel sheet ,PR is created fine , but if the Folder(Files) have multiple excel sheet ,its is creating 1st PR right, but next PR's contains all the line item of 1st PR , 2nd PR and so on .can anyone suggest me where is the problem in codes.
types : begin of x_file ,
key1(10),
pur_grp(4),
maktx(40),
plant(4) ,
req(10),
s_qty(13),
wbs(24),
gl(10),
trackno(10),
supl(4),
deladd(255).
types : end of x_file .
data : str5 type char10.
data : mm type char2.
data : yyyy type char4.
data : dd type char2.
data : str9 type char10.
data : str6 type char10.
data : month type char2.
data : year type char4.
year = sy-datum+0(4).
month = sy-datum+4(2).
dd = sy-datum+6(2).
yyyy = sy-datum+0(4).
mm = sy-datum+4(2).
dd = sy-datum+6(2).
clear str6 .
clear str5.
concatenate dd'.' month '.' year into str5 .
concatenate yyyy mm dd into str6 .
DATA : file type rlgrap-filename .
data : it_file type table of x_file .
data : wa_file type x_file .
data : it_header type table of x_file .
data : wa_header type x_file .
*& Internal Table For Define Row and Coloum Postion
data: col_start type i value 1 ,
row_start type i value 2,
col_end type i value 256 ,
row_end type i value 65000 .
*& Internal Table For Retrieve Data From Excel
*data: excel_bdcdata like kcde_cells occurs 0 with header line.
*data: excel_bdcdata1 like kcde_cells occurs 0 with header line.
data: excel_bdcdata like ALSMEX_TABLINE occurs 0 with header line.
data: excel_bdcdata1 like ALSMEX_TABLINE occurs 0 with header line.
data: it_index type i.
DATA : IT_INDEX1 TYPE I.
*& Define Field Symbol
field-symbols: <fs> .
data : bdcdata like bdcdata occurs 0 with header line.
data : messtab like bdcmsgcoll occurs 0 with header line.
data : req_items type table of bapiebanc .
data : wa_req_items type bapiebanc .
data : req_acc_asg type table of bapiebkn.
data : wa_req_acc_asg type bapiebkn.
DATA : RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE .
*data : return type table of bapireturn.
*data : wa_return type bapireturn .
data : number type ebeln .
*****************************MOVE FILES******************************
data : xsource type string .
data : xdestin type string .
data : destin1 type string .
data : destin2 type string .
DATA : DEST1 TYPE STRING.
DATA : DEST11 TYPE STRING.
DATA : DEST2 TYPE STRING.
DATA : DEST22 TYPE STRING.
data : sou_dir_name like SALFILE-LONGNAME.
data : tar_dir_name like SALFILE-LONGNAME.
data : tar_dir_name1 like SALFILE-LONGNAME.
data : sou_filename like EDI_PATH-PTHNAM .
data : tar_filename like EDI_PATH-PTHNAM .
data : filename1 type string .
data : tar_filename1 like EDI_PATH-PTHNAM .
data : file_itab like SALFLDIR occurs 0 with header line.
data : wa_file_itab like SALFLDIR.
data : file_count type i .
data : dir_count type i.
data : dir_table like sdokpath occurs 0 with header line.
data : file_table like SDOKPATH occurs 0 with header line.
data : wa_file_table like sdokpath.
data : strr type string ,
str1 type string ,
str2 type string ,
str3 type string .
DATA : PA_VAL TYPE CHAR1.
sou_dir_name = 'D:\barcodes\files\'.
tar_dir_name = 'D:\barcodes\files-success\'.
"success folder.
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
EXPORTING
DIRECTORY = sou_dir_name
FILTER = '.'
IMPORTING
FILE_COUNT = file_count
DIR_COUNT = dir_count
TABLES
FILE_TABLE = file_table
DIR_TABLE = dir_table
EXCEPTIONS
CNTL_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
ENDIF.
loop at file_table into wa_file_table.
clear : strr , str1 , str2 , str3 .
strr = wa_file_table-PATHNAME .
concatenate sou_dir_name strr into str1 .
concatenate tar_dir_name strr into str2 . " success
concatenate tar_dir_name1 strr into str3 . " failed
FILE = STR1 .
*start-of-selection.
*& Function For Retrieve Data From Excel
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = FILE
i_begin_col = col_start
i_begin_row = row_start
i_end_col = col_end
i_end_row = row_end
tables
intern = excel_bdcdata
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
IF sy-subrc NE 0.
WRITE : / 'File Error'.
EXIT.
ENDIF.
loop at excel_bdcdata.
translate excel_bdcdata to upper case .
move excel_bdcdata-col to it_index.
assign component it_index of structure wa_file to <fs> .
move excel_bdcdata-value to <fs>.
at end of row.
append wa_file to it_file .
clear wa_file.
endat.
endloop.
sort it_file by key1. "pur_grp maktx plant .
it_header[] = it_file[].
delete adjacent duplicates from it_header comparing key1 pur_grp maktx
plant .
data : h_item(5) type n .
data : h_pack(10) type n .
data : line_no(5) type n .
data : ln_no(5) type n .
loop at it_header into wa_header .
ln_no = 1.
h_item = h_item + 10.
h_pack = h_pack + 1.
wa_req_items-preq_item = h_item .
wa_req_items-doc_type = 'BOM'.
wa_req_items-pur_group = wa_header-pur_grp .
wa_req_items-MATERIAL = wa_header-maktx .
wa_req_items-plant = wa_header-plant .
wa_req_items-pckg_no = h_pack .
wa_req_items-deliv_date = str6 .
wa_req_items-item_cat = '0'.
wa_req_items-acctasscat = 'P'.
*wa_req_items-distrib = '2' .
**wa_req_items-gr_ind = 'X'.
wa_req_items-ir_ind = '2'.
wa_req_items-purch_org = 'TISL' .
wa_req_items-QUANTITY = wa_header-s_qty.
wa_req_items-PREQ_NAME = wa_header-req.
wa_req_items-SUPPL_PLNT = wa_header-supl.
wa_req_items-trackingno = wa_header-trackno.
append wa_req_items to req_items .
clear wa_req_items.
wa_req_acc_asg-preq_item = h_item .
wa_req_acc_asg-g_l_acct = wa_file-gl .
WA_req_acc_asg-wbs_elem = wa_header-wbs .
append wa_req_acc_asg to req_acc_asg .
clear wa_req_acc_asg.
h_pack = h_pack + 1 .
endloop.
clear ln_no .
***BREAK-POINT.
*& BAPI FUNCTION
call function 'BAPI_REQUISITION_CREATE'
importing
number = number
tables
requisition_items = req_items
requisition_account_assignment = req_acc_asg
return = return .Can someone please give me sol........
Maybe you are looking for
-
SAP Notes for Deleted Shopping Carts in SRM 7.02 in ECS
Hi , I am having an issue in SRM 7.02 in Extended Classic Scenario, Where Users are able to delete Shopping Carts even after Follow on Document created i.e. till Confirmation. Now they want to delete the SRM PO. As there is no Shopping Cart existing
-
Hi, FILESIZE is in which unity for exp commande in 10g ? Is it in Mb, Kb, Gb or elese ? Meny thanks.
-
After my last lap top broke I havejust manadged to buy a new computer but have lost my Photoshop CS5 CD luckily I found my serial nummber on an email from adobe. How do I re download it All help would be great thank you, Abbie
-
Won't connect???
i am a web student. i didn't have any problems with the player connecting until my Actionscript 3.0. class. the issue starting when i try to debug in flash builder 4.5. i am not sure what happened but now i always have an issue trying to connect.
-
EM 11g - Anyone have any ideas when it might be out
I'd like to evaluate EM but just wondering if I should do it now or hold off. Depends on the availability of the next release. Does anyone have any ideas as to when that might be. Thanks, Richard