Selecting Collections in a Grid
For expediency, while looking through a folder, I create a Quick Collection, then save the Collection. All this without rating the images. Later on, I'd like to be able to delete the images that are not in the Collection.
I noticed that while I am in the Grid view of the folder with no images selected, if I hover my mouse over the Collection name in the left panel, the images in the Grid view that are in the Collection have a temporary thin white border. Apparently, this is to show you which images are part of the collection. A nice feature. Now I am wondering if I can somehow use that to actually select those images in the Grid. Then I can do an Invert Selection, and delete the unwanted images.
Any ideas?
Nick
The simplest way is to go to your collection, select all, go back to the folder (this should keep all images you selected previously selected), invert selection and delete.
Similar Messages
-
How to detect a selected row in ALV GRID
Hi,
Can anyone tell me how to detect and catch an event when a row is selected in an ALV GRID?
I would like to catch such event when the end user presses Ctrl + Shif + Space bar.
Thank you and best regards.
Hassane.Hi,
Use this wiki link, to have a checkbox with all the records in ALV Grid and to process those selected records at a user command, as per the requirement.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bcheckbox%252bto%252bprocess%252bselected%252brecords%252bat%252bruntime
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir -
How to find the selected item in alv grid or table control
can any one tell me please
how to find the selected item in alv grid or table controlIn table control, If you goto screen painter and goto table control properties ( f2 ), there is one check-box w/selColumn check that and give column name. Then add that column to your internal table.
IN PAI
LOOP AT it_tkhdr.
FIELD it_tkhdr-sel_row
MODULE tab_tkhdr_mark ON REQUEST.
ENDLOOP.
MODULE tab_tkhdr_mark INPUT.
MODIFY it_tkhdr INDEX tc_tkhdr-current_line.
ENDMODULE. " tab_tkhdr_mark INPUT
here it_TKHDR is internal table sel_row is field for selection
After that, you can loop at it_tkhdr where sel_row is 'X' to get selected rows.
regards,
Gagan -
HOW CAN I HAVE THE NUMBER OF SELECTED ROWS IN ALV GRID?
HI.
HOW CAN I HAVE THE NUMBER OF SELECTED ROWS IN ALV GRID????
GABRY =)You need to use
data : grid1 type ref to cl_gui_alv_grid.
call method grid1->get_selected_rows
importing
et_index_rows = i_sel_alvrows[].
a® -
SCCM 2012 report w/ selectable collection
I am trying to create a report with a selectable collection parameter. The original query I'm using is as follows (Stolen from
http://blogs.technet.com/b/infratalks/archive/2013/09/10/sccm-2012-reporting-get-system-serial-number-amp-create-custom-ssrs-report.aspx):
Select sys.Name0 Machine, CS.UserName0 'User Name',OS.Caption0 OS, OS.CSDVersion0 'Service Pack',CS.Manufacturer0 Manufacturer,CS.Model0 Model,BIOS.SerialNumber0 'Serial Number',RAM.Capacity0 Memory, cs.SystemType0
From v_R_System SYS
left join v_GS_COMPUTER_SYSTEM CS on sys.Name0=cs.Name0
left join v_GS_PC_BIOS BIOS on sys.ResourceID=bios.ResourceID
left join v_GS_OPERATING_SYSTEM OS on sys.ResourceID=OS.ResourceID
left join v_GS_PHYSICAL_MEMORY RAM on sys.ResourceID=ram.ResourceID
--Where sys.Name0 = @variable
order by sys.Name0
This works fine, but it gives me that information for EVERY machine in our infrastructure globally. I am only interested in getting this information from machines in certain collections and I want to be able to select the collection each time I run
the report. I found this article:
http://it.peikkoluola.net/2013/06/02/report-with-a-selectable-collection-parameter-sql/ and followed the steps, but cannot run the report successfully. I'm guessing it has something to do with needing to modify my query, but I am a newb with SQL and
have no clue what or where I should be tweaking. Just adding "WHERE(dbo.v_FullCollectionMembership.CollectionID
= @COLLID)" gives me a syntax error. Moving it above "Order by sys.name0" gives an error about not being bound to anything, which makes sense but as I mentioned, I don't know what to tweak. Help! Thanks.Select sys.Name0 Machine, CS.UserName0 'User Name',OS.Caption0 OS, OS.CSDVersion0 'Service Pack',CS.Manufacturer0 Manufacturer,CS.Model0 Model,BIOS.SerialNumber0 'Serial Number',RAM.Capacity0 Memory, cs.SystemType0
From v_R_System SYS
left join v_GS_COMPUTER_SYSTEM CS on sys.Name0=cs.Name0
left join v_GS_PC_BIOS BIOS on sys.ResourceID=bios.ResourceID
left join v_GS_OPERATING_SYSTEM OS on sys.ResourceID=OS.ResourceID
left join v_GS_PHYSICAL_MEMORY RAM on sys.ResourceID=ram.ResourceID
join v_fullcollectionmembership fcm on fcm.resourceid=sys.resourceid
Where fcm.collectionid = @COLLID
order by sys.Name0
Try the above, note that @COLLID is a placeholder for a variable. It is presumed that you are creating this using Report Builder 3.0 (or better) or some other SQL tool to create reports for use on your SRS reporting point. If you happen
to be using Report Builder, once you save the above, under parameters you'd have a place for COLLID. Now, what you want is to be able to have that parameter be populated with your collection names, so that you can select from the list when the report
is run.
So... another DataSet, with a query like:
select collectionid, name
from v_collection
order by name
Then, back to your parameters, COLLID, available values, Get values from a query, and you'll want to use that dataset you just made, and Value field is collectionid, and Label field is Name.
If you want to test the top query in regular sql, don't use @collID. figure out the collectionid of a specific collection, and put in where fcm.collectionid='ABC00012'
Standardize. Simplify. Automate. -
by default, the 3d interface & dialog opens when the 3d option is selected. (ya know, the grid on the artboard; 3d tools...etc...) I must have checked the box for it to never appear, because it doesn't appear and I'm not skilled enough with CC to operate Photoshop without it.
I've noticed on FF29 that the "Save and Quit" "Quit" "Cancel" Option has disappeared. The normal changing of preferences in Firefox about:config below won't work.
Type about:config into the address bar and press enter
Accept the warning message that appears, you will be taken to a list of preferences
Locate the preference browser.tabs.warnOnClose , if its value is set to false, double-click on it to change its value to true
Repeat this for these 3 preferences ''browser.warnOnQuit'', ''browser.warnOnRestart'' and '''browser.showQuitWarning''
To get the Save and Quit warning box back you have to Type about:config into the address bar and press enter
Accept the warning message that appears, you will be taken to a list of preferences
Right click on an open space in the preferences settings field and select a new Boolean and enter ''browser.showQuitWarning'' and click on OK, then make sure that it's set to true -
How to hide selection column from alv grid
hi
i want to hide selection columns form alv grid.. how can i do it.. Is there any fm for that?
regards
palakHi,
the ALV Grid Control allows you to directly hide key columns with NO_OUT (field KEY_SEL is not used).
Field name:NO_OUT
Comp. type:LVC_NOOUT
Dtype(length):Char(1)
SPACE, 'X'
If you set this field, you hide the relevant column in the list. Nevertheless, the column is available in the field selection and can be interactively selected by the user as a display field. The ALV displays the contents of hidden fields on the detail screen for a row in the grid control.
Regards,
Neenu.
Edited by: Neenu Jose on Oct 21, 2008 10:46 AM -
Hi everybody,
How can I know which row is selected in a grid?
I can know it with pval.row when I work with the gridself, but how I can Know with a button?
Is there some property similar selectedRow that returns de number of row?
Thanks
CarlesYou can access it two ways.
1. oGrid.Rows.SelectedRows which returns you all the selected rows in a collection
or
2. do a loop and check
int selectedrow=0;
for(int i =0; i<oGrid.Rows.Count; i++)
(if oGrid.Rows.IsSelected(i) == true)
selectedrow = i;
break; -
Displaying the selected rows in ALV Grid output
Hi Experts,
I am developing one interactive ALV Grid report where user can process the selected records/rows from the ALV Grid output.
for displaying the ALV Grid, I have used the class CL_GUI_ALV_GRID class. I am working on ECC 6.0 system.
when I select any records/rows from output and then press any Application Toolbar button, PAI and then PBO modules of the screen gets executed as per the normal flow.
however After PBO, when same ALV output comes, all the selected/highlighted rows appear as unselected, that means I want to retain the ALV
rows selection during the round trip.
please advise.
Regards,
JageshHi,
Feiyun Wu is correct.
Get_selected_rows and set_selected_rows are the methods to be used .
Some code:
Note the sequence of code:
FORM set_gui_alv_grid_1 .
DATA: wa_layout TYPE lvc_s_layo ,
wa_print TYPE lvc_s_prnt .
DATA: it_sort TYPE lvc_t_sort ,
wa_sort TYPE LINE OF lvc_t_sort .
DATA: it_fieldcatalog TYPE lvc_t_fcat.
IF gui_custom_container_1 IS INITIAL .
CREATE OBJECT gui_custom_container_1
EXPORTING
container_name = 'GUI_CUSTOM_CONTAINER_1'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6 .
IF sy-subrc <> 0.
ENDIF.
PERFORM get_field_catalog
USING gc_log_group_1
CHANGING it_fieldcatalog .
CREATE OBJECT gui_alv_grid_1
EXPORTING i_parent = gui_custom_container_1.
CREATE OBJECT ob_event_receiver_1
EXPORTING log_group = gc_log_group_1 .
* registers the event handlers
SET HANDLER ob_event_receiver_1->handle_toolbar FOR gui_alv_grid_1 .
SET HANDLER ob_event_receiver_1->handle_user_command FOR gui_alv_grid_1 .
SET HANDLER ob_event_receiver_1->print_top_of_page FOR gui_alv_grid_1 .
SET HANDLER ob_event_receiver_1->hotspot_click FOR gui_alv_grid_1 .
wa_layout-cwidth_opt = abap_true .
* wa_layout-excp_fname = gc_excp_fname .
* wa_layout-ctab_fname = gc_ctab_fname.
* wa_layout-excp_led = abap_true .
CALL METHOD gui_alv_grid_1->set_table_for_first_display
EXPORTING
is_layout = wa_layout
is_print = wa_print
i_save = 'A'
is_variant = gs_disvariant_1
CHANGING
it_sort = it_sort
it_fieldcatalog = it_fieldcatalog
it_outtab = it_alv_grid_1.
ELSE .
CALL METHOD gui_alv_grid_1->refresh_table_display.
* Restore selections
CALL METHOD gui_alv_grid_1->set_selected_rows
EXPORTING
it_index_rows = ob_event_receiver_1->it_rows.
* Restore position
CALL METHOD gui_alv_grid_1->set_scroll_info_via_id
EXPORTING
is_col_info = ob_event_receiver_1->wa_col
is_row_no = ob_event_receiver_1->wa_roid.
ENDIF.
ENDFORM . "set_gui_alv_grid_1
Regards. -
Collection Errors in Grid Control Sybase Plugin
Hi.
I have some collection failures in a Sybase 15 Database i registered to Grid Control using the Sybase ASE Plugin. These are the 3 of them:
Result has repeating key value : 0,5,0,,
Result has repeating key value : 0000000000000000000000000000,2008-10-21 16:48:08.38,0,6,$user_transaction
Error Querying: Arithmetic overflow occurred.
I verified Sybase parameters using the Manual's troubleshooting and installed de plugin carefully with all the grants. Would anyone had this problem before or know what it would be?
Thanks in advanceThanks for the reply. I had this question before and the link for that is
Adding New Targets to Grid Control
Thanks. -
Reg: GOING TO SELECTION SCREEN FROM ALV GRID.
Hi all,
Iam using an ALV grid display.
I have called the grid display every times when i select a check box in the grid display.
Then when i click on the back button the screen navigates to the previous ALV grid. My requirement is to go to the first selection screen.
For this I have coded in the Back button as Call selection--screen <screen no>.
When i do this, and after navigation to the selection-screen when i click on the back button on the selection screen its navigating back to the ALV grid.
But i need to exit to the program in this case.
Can anyone Help me on this issue?
Regards
NaveenYou have to use LEAVE TO SCREEN 0.
Regards
Eswar
Addition: Also see that you are releasing the grid with statement like CALL METHOD g_grid->free.
So the code should be something like:
CASE ok_code.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
CALL METHOD g_grid->free.
LEAVE TO SCREEN 0.
ENDCASE.
Edited by: Eswar Rao Boddeti on Feb 19, 2008 1:48 PM -
GOING TO SELECTION SCREEN FROM ALV GRID.
Hi all,
Iam using an ALV grid display.
I have called the grid display every times when i select a check box in the grid display.
Then when i click on the back button the screen navigates to the previous ALV grid. My requirement is to go to the first selection screen.
For this I have coded in the Back button as Call selection--screen <screen no>.
When i do this, and after navigation to the selection-screen when i click on the back button on the selection screen its navigating back to the ALV grid.
But i need to exit to the program in this case.
Can anyone Help me on this issue?
Regards
NaveenNaveen,
Write below code,
DATA ref1 TYPE REF TO cl_gui_alv_grid.
WHEN 'BACK'
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref1.
CALL METHOD ref1->check_changed_data.
CALL METHOD ref1->refresh_table_display.
LEAVE TO SCREEN 0.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Aug 8, 2008 4:24 PM -
PF status of Selection screen and ALV Grid
Hi,
I need to create a report where on clicking the<b> 'ENTER'</b> key on application toolbar on the <b>selection-screen</b> the processing logic should get executed ( instead of clicking execute pushbutton).
For this i need to capture the function code associated with ENTER key on selection screen. How can i find this?
Also , on clicking enter i have to display <b>an ALV grid</b> with the <b>SAVE</b> key activated on the toolbar.How can i activate SAVE key on application toolbar of ALV GRID. (<b>Selection-screen should not have save key</b> )
thanks,
vartikaHi
you can just copy the alv standard pf status into your alv.
goto se41.
enter "SAPLSLVC_FULLSCREEN"
then copy the standard pf status " STANDARD_FULLSCREEN" to your program "xyz".
in your prog, when you call the alv grid,
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = l_v_repid
i_callback_pf_status_set = 'SET_PF_STATUS' <----
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'ALV_TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
tHEN CPOY PASTE THIS CODE:
NOTE: No need to make a perform for this....
* FORM SET_PF_STATUS *
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS '/FIR/RRF2S0BG_ALV'.
"Copy of standard pf_status from
ENDFORM. "set_pf_status
Now can see the full tool bar enabled in your alv grid.
delete all the unwanted buttons from your programs pf status .
Hope that helps.
Cheers
Ravish Garg.
<i>
Reward if useful</i> -
Hi,
I provided one check in ALV grid as one field.If I select the check boxes for some rows and click on user command(created by me), I need to pass the selected rows only into another sub routine for further processing. How to achive this functionality?
thanks
kumarhi,
Did you try using the method Get_selected_row o this class????
before using plz set the sel_mode of layout as 'A', 'C' or 'D'....
Call this method as follows:
data: gi_itab type lvc_t_row.
call method <ref variable of cl_gui_alv_grid>->get_selected_row
importing
et_index_rows = gi_itab.
this table will have the indexes of the selected rows.
hope this solves your problem...
regards,
ags. -
ALV REPORT: read selected checkbox in alv grid and process the pushbutton
my requirement is to check some rows from alv grid and the press the pushbutton. Thereby following things should process:
select all checked rows into an itab and call the transaction code CJ01 for all
entries......
I am finding the problem that when I select the checkbox....the internal table doesnt recognize the boxes as checked ones......
thanks in advance...
Kartikey Singh,Data: ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data.
loop at t_output where Flag = 'X'.
if t_output-VKUEGRU is initial.
message e000 with text-110.
endif.
endloop.
Maybe you are looking for
-
IPod isn't recognized by Computers
This just started happening the day earlier. When I plugged in my iPod onto my computer, it was completely out of power. When it was plugged in, instead of the usual "Do not Disconnect" screen, with the stop symbol, it instead turned the main menu gr
-
5 error while checking job status
Hi, We are getting the following error when we are trying to check the status of the process chain through FM 'RSPC_API_CHAIN_GET_STATUS': 5 error while checking job status. The real scenario is we are using an abap screen with a button on it. when t
-
The FireWire 003 Daisy Chain Auto Eject
I'm not sure what to blame here. I was using Cubase with a Digidesign 003 interface. The 003 is daisy chained after a Seagate FW800 drive. When I quit Cubase (which switches back to the internal MBP soundcard), the Seagate drive dismounted with a "de
-
How to know the VKM3 released orders or deliveries in ABAP
Hi I want to know how can one know whether the given order or delivery is released through VKM3. Is their any indicator set in ABAP tables Regards Nikhil Jain
-
Non purchased music help!
I just got a new dell labtop and want to hook up my ipod to it. I downloaded itunes and was able to transfer my purchased music from my ipod to the computer but not my non purchased ones...how do i transfer the non purchased ones?