Deselecting a selection
How can I completed remove a selection after making one?
Thanks.
StanWelks-
I am not sure if you mean you want to deselect a selection, or clear a selection.
Either way, we have a tutorial that covers both of these areas in the Getting Started pod in this forum (on the top right hand side).
Please post back if you have any further questions,
Janelle
Similar Messages
-
How to deselect a select table column?
Hi!
I've implemented a table with selectable columns.
This is working fine, but I'm not clear how to deselect the selected table column with code.
How to do so?
Thanks for any hints!
PeterHi Peter,
Try this code
DATA lo_el_element TYPE REF TO if_wd_context_element.
* Make row selected
lo_el_element->set_selected( abap_true ).
* Make row De-selected
lo_el_element->clear_selection( ).
Hope you get the hint.
Regards
Nawal Kishor Mittal -
ADD to a selection without deselecting existing selections?
I've searched for a while and I haven't found anything about this...I can't fathom that I'm the only one who's ever wanted to know this, but oh well...
1.) You've got a large clustered group of 100 small shapes, and you've selected the 2/3 of them on the left.
2.) Drag a selection over the 2/3 on the right (with 1/3 overlap in the middle)
3.) You have now selected the previously unselected shapes, but you've also deselected the 1/3 in the middle that you already had selected before.
Is there a way to simply ADD to a selection without deselecting any overlap?
(I am not looking for alternate solutions, I know I can select things individually/etc)As I said in the last line of the original post, I'm not looking for alternative solutions. I am very much aware that you can select things individually.
So I'm assuming the answer to this question is "no"?
It would be pretty helpful if you could do something like this in Illustrator, just as you can with AutoCad/Vectorworks/Rhino, and essentially every other vector graphics program.
I realize from my example it doesn't seem like that big of a deal, but it can be really annoying in some particular instances. I won't contrive an example, you'll just have to take my word for it. It would be nice if they could add a Ctrl+Shift (or something) function that would do this in CS6. -
How to deselect the selected row when we come back again?
Hi all,
I have one screen(100),which contains records.User can select any one record and click 'Details' button.Then it will take to screen 110.When I am coming back to screen 110 again.The previously selected row is again in selected mode only.Now if I am selecting another row and click the 'Detail' button.I am getting the error saying that 'Please select one record'.In debugging mode also I checked using the FM get_current_cell but nothing is getting selected surprisingly.
Even I used CALL METHOD grid->refresh_table_display in the PBO of screen 100.
Below is the code I used in PBO of screen 100
ODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'PF100'.
SET TITLEBAR 'TITLE'.
DATA: G_CONSISTENCY_CHECK TYPE CHAR1.
DATA: G_EXCLUDE TYPE UI_FUNCTIONS.
IF container100 IS INITIAL.
*ex_FUNCTIONS-
*-- Check execution mode (foreground/background)
IF cl_gui_alv_grid=>offline( ) IS INITIAL.
CREATE OBJECT CONTAINER100
EXPORTING CONTAINER_NAME = 'CONTAINER100'.
CREATE OBJECT GRID
EXPORTING I_PARENT = CONTAINER100.
CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_BYPASSING_BUFFER = 'X'
I_BUFFER_ACTIVE = ''
I_CONSISTENCY_CHECK = G_CONSISTENCY_CHECK
IT_TOOLBAR_EXCLUDING = G_EXCLUDE
IT_TOOLBAR_EXCLUDING = IT_TOOLBAR
I_STRUCTURE_NAME =
IS_VARIANT = gs_layout
I_SAVE = 'A'
I_DEFAULT = 'X'
IS_LAYOUT = X_LAYOUT
IS_PRINT =
IT_SPECIAL_GROUPS =
IT_TOOLBAR_EXCLUDING = IT_TOOLBAR
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO =
CHANGING
IT_OUTTAB = IT_YAPOHDR_MAIN[]
IT_FIELDCATALOG = IT_FIELDCAT[].
IT_SORT =
IT_FILTER =
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
others = 4.
ENDIF.
*--Register enter key for data changed event
CALL METHOD grid->set_ready_for_input
EXPORTING i_ready_for_input = 0.
create object event_receiver.
Register the 'hotspot' event handler method dynamically...
set handler event_receiver->handle_hotspot_click for grid.
Register the User Command event handler method dynamically...
set handler event_receiver->handle_user_command for grid.
Register the User Command event handler method dynamically...
set handler event_receiver->handle_data_changed for grid.
else.
CALL METHOD grid->refresh_table_display.
endif.
ENDMODULE. " STATUS_0100 OUTPUT
The below is the code I used in PAI of screen 110.
MODULE USER_COMMAND_0110 INPUT.
DATA : LT_DETAILS_MAIN LIKE YAPOPLN_ITM OCCURS 0 WITH HEADER LINE,
LV_POP TYPE C,
APPROVE.
CASE SY-UCOMM.
WHEN 'BACK'.
CALL METHOD grid->REFRESH_TABLE_DISPLAY.
CALL METHOD grid->GET_FRONTEND_FIELDCATALOG.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
ENDMODULE. " USER_COMMAND_0110 INPUT
Please Let me know if there is any solution.
Thanks,
BalajiHello Balaji
The sample report <b>ZUS_SDN_TWO_ALV_GRIDS_7</b> shows basically what I meant in my previous answer. There is no row mark available on the first ALV list. Instead of bothering the user to push a button he or she can simply double-click on the ALV lists and sees the details of a customer.
As you can see there is absolutely no need to free any object instances or rebuild grid controls.
Final remark: based on the function module you mention I assume you are still using fm-based ALV lists. Do not use them. OO-based ALV lists are much easier to develop, to maintain and to enhance.
*& Report ZUS_SDN_TWO_ALV_GRIDS_7
*& Description: Display two ALV lists either in single screen or
*& two screens
*& Screen '0100' contains no elements.
*& ok_code -> assigned to GD_OKCODE
*& Flow logic:
* PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
* PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0100.
REPORT zus_sdn_two_alv_grids_7.
TYPE-POOLS: abap.
DATA:
gd_repid TYPE syst-repid,
gd_okcode TYPE ui_func,
go_docking TYPE REF TO cl_gui_docking_container,
go_docking2 TYPE REF TO cl_gui_docking_container,
go_splitter TYPE REF TO cl_gui_splitter_container,
go_cell_top TYPE REF TO cl_gui_container,
go_cell_bottom TYPE REF TO cl_gui_container,
go_grid1 TYPE REF TO cl_gui_alv_grid,
go_grid2 TYPE REF TO cl_gui_alv_grid,
gs_layout TYPE lvc_s_layo.
DATA:
gs_knb1 TYPE knb1,
gt_knb1 TYPE STANDARD TABLE OF knb1,
gt_knvv TYPE STANDARD TABLE OF knvv.
* CLASS lcl_eventhandler DEFINITION
CLASS lcl_eventhandler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:
handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING
e_row
e_column
es_row_no
sender.
ENDCLASS. "lcl_eventhandler DEFINITION
* CLASS lcl_eventhandler IMPLEMENTATION
CLASS lcl_eventhandler IMPLEMENTATION.
METHOD handle_double_click.
* define local data
DATA:
ls_knb1 TYPE knb1.
CHECK ( sender = go_grid1 ).
READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row-index.
CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
CALL METHOD go_grid1->set_current_cell_via_id
EXPORTING
* IS_ROW_ID =
* IS_COLUMN_ID =
is_row_no = es_row_no.
* Triggers PAI of the dynpro with the specified ok-code
** CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ). " not on 4.6c
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = 'DETAIL'
* IMPORTING
* RC =
ENDMETHOD. "handle_double_click
ENDCLASS. "lcl_eventhandler IMPLEMENTATION
PARAMETERS:
p_single RADIOBUTTON GROUP radi, " single screen
p_double RADIOBUTTON GROUP radi. " two screens
START-OF-SELECTION.
SELECT * FROM knb1 INTO TABLE gt_knb1
WHERE bukrs = '1000'.
" Add dummy customer without any master sales data
CLEAR: gs_knb1.
gs_knb1-kunnr = 'DUMMY'.
gs_knb1-bukrs = '1000'.
INSERT gs_knb1 INTO gt_knb1 INDEX 1.
* Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF ( p_single = abap_true ).
PERFORM create_splitter_container.
ELSE.
* Create 2nd docking container
CREATE OBJECT go_docking2
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
IF ( p_single = abap_true ).
* Create ALV grids
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_cell_top
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT go_grid2
EXPORTING
i_parent = go_cell_bottom
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
* Create ALV grids
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_docking
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT go_grid2
EXPORTING
i_parent = go_docking2
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
* Set event handler
SET HANDLER: lcl_eventhandler=>handle_double_click FOR go_grid1.
* Display data
gs_layout-grid_title = 'Customers'.
CALL METHOD go_grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'KNB1'
is_layout = gs_layout
CHANGING
it_outtab = gt_knb1
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
gs_layout-grid_title = 'Customers Details (Sales Areas)'.
CALL METHOD go_grid2->set_table_for_first_display
EXPORTING
i_structure_name = 'KNVV'
is_layout = gs_layout
CHANGING
it_outtab = gt_knvv " empty !!!
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Link the docking container to the target dynpro(s)
gd_repid = syst-repid.
IF ( p_single = abap_true ).
CALL METHOD go_docking->link
EXPORTING
repid = gd_repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
CALL METHOD go_docking->link
EXPORTING
repid = gd_repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD go_docking2->link
EXPORTING
repid = gd_repid
dynnr = '0200'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
* NOTE: dynpro does not contain any elements
CALL SCREEN '0100'.
* Flow logic of dynpro (does not contain any dynpro elements):
*PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
*PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0100.
" NOTE: screen '0200' uses same flow logic as '0100'
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'. " contains push button "DETAIL"
* SET TITLEBAR 'xxx'.
* Refresh display of detail ALV list
CALL METHOD go_grid2->refresh_table_display
* EXPORTING
* IS_STABLE =
* I_SOFT_REFRESH =
EXCEPTIONS
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE gd_okcode.
WHEN 'BACK' OR
'EXIT' OR
'CANC'.
IF ( syst-dynnr = '0100' ).
SET SCREEN 0. LEAVE SCREEN.
ELSE.
SET SCREEN 100.
ENDIF.
* User has pushed button "Display Details"
WHEN 'DETAIL'.
PERFORM entry_show_details.
IF ( p_single = abap_true ).
ELSE.
SET SCREEN 200.
ENDIF.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form ENTRY_SHOW_DETAILS
* text
* --> p1 text
* <-- p2 text
FORM entry_show_details .
* define local data
DATA:
ld_row TYPE i,
ls_knb1 TYPE knb1.
CALL METHOD go_grid1->get_current_cell
IMPORTING
e_row = ld_row.
READ TABLE gt_knb1 INTO ls_knb1 INDEX ld_row.
CHECK ( syst-subrc = 0 ).
SELECT * FROM knvv INTO TABLE gt_knvv
WHERE kunnr = ls_knb1-kunnr.
ENDFORM. " ENTRY_SHOW_DETAILS
*& Form CREATE_SPLITTER_CONTAINER
* text
* --> p1 text
* <-- p2 text
FORM create_splitter_container .
* Create splitter container
CREATE OBJECT go_splitter
EXPORTING
parent = go_docking
rows = 2
columns = 1
* NO_AUTODEF_PROGID_DYNNR =
* NAME =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Get cell container
CALL METHOD go_splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = go_cell_top.
CALL METHOD go_splitter->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = go_cell_bottom.
ENDFORM. " CREATE_SPLITTER_CONTAINER
Regards
Uwe -
MIRO Deselect and select Multiple line items
Hi All,
At the time of miro we are taking the reference of PO. In PO we have 1200 lines related to Custom duty, additional custom duty, ecess, clearing and forwarding charges and freight.
we want to do the MIRO for custom duty, additional duty and freight only, for these we have 600 line items. we need to select these lines one by one. this is time taking job.
can any body tell me that how we can select these line at once.
Regards allHi,
You can make use of Planned Delivery cost in the PO Refernce Tab. This will cover all other costs other than you basic material or service cost.
Regards,
amit -
AA6 - Move To Beginning/Ending Of A Selection And Deselect
Hello...
In AA3- you could make a selection, then click at the beginning/ending of the selection. It would deselect the selection and move the play head to that position.
In AA5.5 you had to use the left/right arrows to do the same task.
In AA6, neither work. If you left/right arrow, the play head moves but it moves down/up the timeline (not to the beginning/ending) and it doesn't deselect. Ctrl+left/right arrow does move the play head to the appropriate places (as well as other places) but it doesn't deselect.
Is there a way to do this with AA6?
I used it a lot when doing track breaks for cd (home, shift+click at 5:00, f8, right arrow, shift+click at 10:00, f8, etc...). I also used it where I wanted to have only 0.5 seconds of extra silence at the beginning/ending of some audio (click at the beginning of the audio, drag backwards 0.5 seconds, left arrow, shift+home, delete).
JJSince you're doing this for CD, I think I have a method that would be faster for you.
1. Home, Shift+M (This sets the playhead to the start and places a CD Track Marker at the playhead).
2. Click where you want this track to end and the next to start and again press Shift+M.
3. Continue placing single point CD Track Markers at each location where you want the last track to end and the new one to start (including adding one to the very end).
4. When all markers have been added, open the Markers Panel and select all the markers.
5. Press the icon in the Markers Panel for "Merge selected markers".
Now if you want to burn the CD, just go to "File > Export > Burn Audio to CD..." and we will burn a CD with track markers where you hae defined them.
--Ron -
Unselect/Deselect a row selection in a scorecard
I searched around and couldn't find an answer that will work for my scenario. I have a dashboard that has several levels of combo box filtering to get to the set of data a user wants. Once there, there are two scorecard tables at the bottom of the page where they have a combo box drop down for each to select dimensions to view. From these tables, they can select a row to further filter the data based on their selection. What I'd like is a way to reset just the selection(s) from one or both of the scorecards without changing the selections made in the other combo boxes to get to the dataset. I have a reset button in there which completely clears out all selections which is great, except that won't solve this issue. Ideally I want the users to click on the same selected row again to "deselect" that selection and have it revert back to it's original state but that doesn't seem to be an option. Any ideas? Points awarded for helping solve this!
Hi Christopher,
You can have a Push button with label named "Deselect" next to the combo box with Source linked to a blank cell and destination linked to the destination cell of the combo box. So after a particular selection , if you want to reset that combo box alone, just click on the push button which will clear the data in the destination cell of the combo box. You can have this format as the primary idea and make use in your dashboard and enhnace it accordingly.
Hope it helps!
Thanks,
Arun Uday -
Deselecting Rectangular Marquee Selection in CS5
When using the Rectangular Marquee Tool, why can I no longer deselect my selection by simply clicking outside the selection? I've been doing it this way since Photoshop 1.0, but now it seems that I have to either use the Deselect command or switch to the Lasso in order to accomplish this extremely simple task. For me personally, this is a real pain in the you-know-what. Is there a way to change this behavior?
It turns out that when you select the rectangular marquee tool, several tiny icons appear in the left corner of the Toolbar. The first one is for "new selection", which causes the selection rectangle to behave normally. The next icon ("add to selection") causes the behavior I complained about. I must have unintentionally selected this option. Problem solved. Thanks!
-
Converting a path to selection deselects the path group in the paths palette.
Hi, does anyone know how I can stop this from happening. It did not do it in any other versions of PS I have used including CS6. Before when I selected one path in a group of paths, and then hit convert to selection the rest of the paths in the group would remain visible and the group/slot would remain highlighted in the paths palette. Now when I select a path and convert it to a selection it deselects the whole group in the paths palette so they are not visible anymore. When you have many paths in a group and you want to contiually deselect and select paths in the same group and convert to selection and then deselect to convert another path in the group to a selection to then have to reselect the group on the paths palette each time you wish to do this is a serious pain and waste of valuable time. I cannot recollect their being a setting that would disable or enable this feature. Can anyone help?
Hi Lemorris,
There is another discussion here regarding this issue. I'm hoping that an engineer will be able to answer our questions. So far it has been 15 days since this initial request for help was posted and no one from Adobe seems to care about the fact that we are having serious issues with the new path behaviours. Sadly these new behaviours are a possible game changer for me as they are adding quite a significant amount of time to my working processes. I'm still within my 30 day cancellation period for Adobe CC and if I do not get a satisfactory reply from someone at Adobe who can at least relieve my conscerns and tell me that this is a known bug and will be rectified at some point I will be cancelling my subscription. I have a genuine concern about the software and not one single person from Adobe has deemed my issue as worthy of reply. To me that is a disgraceful customer service. -
Deselecting text in a text area as well as a input label?
Hi there,
Scenario - I have some text selected in a text area
component. I get a callback from another program (external
interface included) to remove the selection. How do i deselect the
selected text and retain the text without selection? I have read on
the .selected, .editable, .setSelected etc, but Im not getting it.
This same prob exists with a normal text input type, it doesnt
deselect there too.
Can you please help me out? Is there something Im missing
from the help doc?
In short - How do we deselect text programatically in AS
2.0?Hi Ned,
The null param didnot work as expected, the selection goes
and then again returns when I leave the mouse button. I tried
adding a invisible botton obj outside the stage and then I gave
it's instance to the param, this worked. Now this is hidden so I
cannot see the tab effect on the stage since the button is outside.
Thanks a lot for the answer Ned. -
Deselect after moving will delete content!
Hello!
I have a huge problem with the selection tool and I need to know how to fix it because it totally destroys my workflow. (Photoshop CS6)
If I move content of a selection and deselect a part, it will delete the part I deselected. How can I turn that off?
I want photoshop just to deselect my selection without deleting anything so I can keep moving the rest of my selected contend.
Greetings Legolars
Edit:
How to reproduce the error:
1. Select a part in your picture
2. Use the Move-Tool and move the selected content
3. Switch back to Selection tool and now start to deselect parts of the selection
3.1. This will delete the deselected are, which I don't want to happen!Hello,
sadly that's not what I want. I describe what I'm doing.
I did some sprites. For the complete animation I want to move some pixels and adjust those.
Therefore I select the whole Layer. I move it so the first row of pixels fit with the next frame. Then I want to substract the first row so I can keep moving the the rest.
While I try to substract the selection. It won't just substract but delete all pixels inside!
I don't get it why it suddenly is removing the picture inside?! Photoshop never did that before!
Someone exatcly has the same problems as me:
http://forums.adobe.com/message/4377148
What I don't get. After moving I switch back to the selection tool which means the "transformation" should be done by that time. -
Hi all,
Please give me the solutions to the following in selection screen:
1. In selection-screen there is one select-options and one parameter.
Now,if the select-opotions range is given 30 to 40 then, the parameter should be populated with 'A'.
If the select -options is given the value 50, then the value should be 'P'.
If the select-optons is given the value 65,then the value should be 'X'.
if the select-options is given the value 87, then the value should be 'N'.
2) In the selection - screeen there is one check box and select-options.
By default the check-box will be deselected and select-options will be defaulted with system date.
Now, when the checkbox is selected the select-options should be empty.
And again, when the checkbox is deselected then again the select-optons should be populated with system date.
Please let me know solutions to the above asap.
All points will be awarded.
Thanking you in advance.
Regards,
A.SrinivasHi Srinu,
Try below code. I have used matnr in select-options. Change it according to your data element.
TABLES: mara.
SELECT-OPTIONS: s_matnr FOR mara-matnr.
PARAMETERS: p_c TYPE c.
PARAMETERS: p_chk AS CHECKBOX USER-COMMAND chk.
SELECT-OPTIONS: s_date FOR sy-datum DEFAULT sy-datum.
AT SELECTION-SCREEN.
IF p_chk = 'X'.
CLEAR s_date[].
ELSE.
s_date-low = sy-datum.
APPEND s_date.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
IF s_date[] IS NOT INITIAL.
p_chk = ''.
ENDIF.
LOOP AT s_matnr.
IF s_matnr-low = '000000000000000030' AND s_matnr-high = '000000000000000040'.
p_c = 'A'.
exit.
ENDIF.
CASE s_matnr-low.
WHEN '000000000000000050'.
p_c = 'P'.
WHEN '000000000000000065'.
p_c = 'X'.
WHEN '000000000000000087'.
p_c = 'N'.
ENDCASE.
ENDLOOP. -
Is there a way to get the selection order for selectedProperties?
app.project.activeItem.selectedLayers seems to be ordered by the selection order, but app.project.activeItem.selectedProperties (at least in Shape Layers) seems to be ordered by the stacking order. Is there a way to get the selection order for selectedProperties?
Thank you!Hi,
i had tried to investigate this a while back and it's really hard to figure out.
The array seems to be reorganized using various rules:
At layer level : preserve the user layer selection order,
Children of indexed groups : propertyIndex ordering,
Children of named groups : some internal ordering.
The following is may be more detail than necessary, and given that it is based on observation, not official docs, it is not so reliable, but well, it might still be of interest !!
Say you have 2 selected properties A, and B, and call [COMMON PARENT] their "greatest common ancestor", that is:
A = [COMMON PARENT].property(a1).... property(aA);
B = [COMMON PARENT].property(b1).... ...property(bB);
with a1 != b1. Then:
if [COMMON PARENT] = A (ie if A is an ancestor of B), then A comes first.
For instance: if you select comp.layer(1).mask(1).maskPath, there are 2 selected properties, the mask group and its maskPath: the first is the group and the second the path (the parent comes first).
if [COMMON PARENT] is the containing composition, ie A is a property inside comp.layer(a1), and B a property inside comp.layer(b1), then A and B are ordered according to the layers selection order.
This can have some strange side effects. For instance:
deselect everything
select comp.layer(2) (and nothing else)
select comp.layer(1).transform.position
select comp.layer(2).transform.position
===> comp.selectedProperties = [comp.layer(2).transform.position, comp.layer(1).transform.position] even though the first entry was effectively selected after the second...
if [COMMON PARENT] is an indexed group, A and B are ordered by propertyIndex
For instance:
if you select comp.layer(1).mask(2), then comp.layer(1).mask(1), mask(1) appears before mask(2)
if [COMMON PARENT] is a named group, ... no clue (internal ordering).
For instance, at propertyDepth 1, it seems that Time Remapping < Effects < Masks < Material Options < Transform, etc, independantly of the selection order, and this is also not the propertyIndex ordering.
At higher depth, in CS5 the ordering seems to be the propertyIndex ordering, but it is no longer true in CC.
For instance, selected Position (index 2), Scale (index 6) and Opacity (index 11) in various order on the same layer.
in CS5 : selectedProperties = [Position, Scale, Opacity]; // propertyIndex ordering, always
in CC : selectedProperties = [Scale, Position, Opacity]; // always the same ordering, but not the propertyIndex one
So the ordering is a lexicographic ordering (Compare the ancestor of depth 0. If no difference, compare the ancestor of depth 1. If no diff, compare the ancestor at depth 2. And so forth).
But at each step, the comparaison depends on the type of the ancestor, and when the type is named group, the ordering is internal so we can't know.
Practically the most important thing is that selected properties seem to be reorganized by "containing layer" (the layer selection is preserved),
and then in each layer selected properties are "grouped by same parent": you can't have a mask related property, then an effect related property, then another mask related property:
all masks related properties appears together, all effect related properties appear together, etc.
If several effects are selected, effect(1) and all its properties appear first (if selected), then effect(2) and all its properties would appear second etc
and so forth
Xavier. -
Regarding radiobutton selection
Hi,
I am having radiobutton group with yes and no values.I selected one option.How to refresh(deselect) the selected option.IWDRadioButtonGroupByKey: set selected key to NULL
IWDRadioButtonGroupByIndex: set node's lead selection to IWDNode.NO_SELECTION
Armin -
I am trying to print a color test chart and it requires ColorSync not be selected. When I get into the print menu and select Color it is locked on ColorSync and greyed out. I can't find a way to select Vendor Control. Any ideas?
Hello Shravan,
reason for hte dump is LR_ALV is not initialised. but for deselecting the selected element you can write the following code
data lo_nd type REF TO if_wd_context_node.
data lv_old_index type i.
data lv_new_index type i.
lv_new_index = r_param->index.
lv_old_index = r_param->old_index.
IF lv_old_index = lv_new_index.
lo_nd = wd_context->get_child_node( 'ALV_TABLE' ). "ALV_TABLE is the name of hte context node that is passed to the ALV component
lo_nd->set_lead_selection_index( if_wd_context_node=>no_selection ).
ENDIF.
BR, Saravanan
Maybe you are looking for
-
Unable to change info for items in my library
I just upgraded to iTunes 11.0.0.163. Whenever I try to edit an item in my library, I'm unable to make any changes. If I select a single item, all fields in the 'Get Info' window are disabled except for Start and Stop Time on the Options tab. If I
-
Safari 5.1.2 Tab Close Button on Different Sides in Windows
I'm not sure if this is unique to my computer(s), but I've noticed that the tab close button is on different sides in the Mac & Windows versions of Safari. On my Mac, the close button is on the Left-Hand side with the tab text centered on the tab. On
-
HD tv show won't load onto iPhone4s?
i downloaded an HD tv show from the iTunes store to my iMac, and was trying to transfer an episode to my iPhone 4s. I received an error message that this phone cannot play the video. Is this correct? I transferred the show to my iPad 3 without any is
-
Flash Player and Browser Communication
According to this article: http://blog.dannypatterson.com/?p=133 Compressed data (gzip files) being sent from the server are unzipped by the browser before being passed to Flash Player - therefore there is no need to write separate action script clas
-
Invalid Column Name on select from materialized view?
Hey all, I have created this materialized view for my java to select from. For some reason when I try to select from it, I get invalid column name. Here is my mat view statement in its simplest form: create materialized view mv_pgridtcevcluster_prope