Clear Selection in a Gallery

I am using a rectangle to highlight selection of a row within a gallery by setting its visible property. How do I use a button ouside the gallery to clear any selection within the gallery?
Thanks,
Jatin
Jatin

1/ Add new rectangle into your Gallery and set Fill property to
RGBA(0, 0, 0, 0)
Note: this rectangle must be on top of your items in that gallery and must cover whole area
2/ In OnSelect behaviour of that
new rectangle add code
    UpdateContext({ClearSel: false})
3/ Go to your old rectangle in that gallery and set Visible property to
   If(ClearSel=false && ThisItem!IsSelected, true, false)
4/ Go to your button outside of gallery and add this into OnSelect behaviour
   UpdateContext({ClearSel: true})
Note: This option makes it only look that there is nothing selected. As far as I know completely deselecting gallery is not possible in this version of siena.

Similar Messages

  • 'Clear Paragraph Style' and 'Clear Selection Style'

    In an old archived topic, someone wrote:
    quote:
    In DWMX, you could select text in the design view and in the
    "HTML Styles" window (which no longer exists in MX 2004) all you
    had to do was click "Clear Selection Style" and all HTML formatting
    (paragraph tags, font faces, colours, bold, italics etc) would be
    removed. This was marvellous for reformatting <font> tag
    based text with CSS. MX 2004 claims to be a CSS machine, but it
    seems to lack this very important feature which helps to re-inforce
    the use of CSS over font tags.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=189&threadid=714513&arc tab=arc
    I absolutely agree, and none of the alternative methods
    people suggested in that thread matched this lost feature for speed
    and ease of use.
    I've not seen a replacement for these commands in Dreamweaver
    8 either (although I've often wished for one). Does anyone know of
    a hidden feature that exists in version 8 for removing all the HTML
    formatting in one fell swoop?

    I count 4 steps.
    1. Copy the entire line
    2. Paste into notepad
    3. Copy the entire line
    4. Paste into DW
    That does it nicely no matter how much presentational markup
    there is.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Kals" <[email protected]> wrote in message
    news:[email protected]...
    >
    quote:
    I think what the O/P is wanting is a quick and easy method to
    remove
    > all of
    > those presentational tags.
    >
    > Thanks Gary ? spot on! I'll use the term 'presentational
    markup' rather
    > than
    > 'HTML styles' from now on. (Excuse my ignorance, but
    what's an 'OP'?
    > Should I
    > like being called such a thing? :)
    >
    >
    quote:
    Murray: ? but you just cannot create predefined "HTML STYLES"
    any
    > longer.
    > It's no great loss....
    >
    > Agreed! Okay, we've established that no one's lamenting
    the loss of 'HTML
    > styles' in the sense of a style sheet that stores HTML
    presentational
    > markup.
    >
    >
    quote:
    And if "HTML STYLES" were not used in the first place, then
    even having
    > that feature available now wouldn't help OP, if your
    interpretation is
    > correct.
    >
    > Perhaps you are misinterpreting what those commands did.
    'Clear Paragraph
    > Style' was the equivalent of applying a predefined 'HTML
    style' with no
    > presentational markup ? making it as far as I know, the
    quickest, easiest
    > way
    > to strip all presentational markup out of your HTML
    (irrespective of
    > whether
    > the markup originated through the use of 'HTML styles').
    This could have
    > very
    > easily been replaced by a stand-alone command.
    >
    >
    quote:
    There are certainly quick and easy ways to remove many of
    them.
    > Okay then, here's the test. How many steps does it take
    you to clean up
    > the
    > following paragraph?
    >
    > <p align="center"><font size="+1" face="Times
    New Roman, Times, serif">The
    > quick
    brown fox
    jumps over the
    <font
    > color="#FF0000">lazy</font>
    dog</font></p>
    >
    > I count 10 steps if you select the entire paragraph and
    use nothing but
    > the
    > Properties panel and/or Text menu. Perhaps you can beat
    my attempt. If I
    > use
    > the 'Clean Up HTML' command, it takes me about 20
    seconds to check for and
    > type
    > in all the individual tags I want removed, then I still
    have to manually
    > fix
    > the alignment. Do you know of a quicker, easier way?
    >

  • Iphoto gives message "no images were selected" when hit print button.  Yet the the images are clearly selected in the print window.  I've printed hundreds of images without a problem before.  Iphoto 6.0.6, MAC 10.5.8

    Iphoto gives message "no images were selected" when hit print button.  Yet the the images are clearly selected in the print window.  I've printed hundreds of images without a problem before.  Iphoto 6.0.6, MAC 10.5.8, Suggestions?

    I have recently started having this problem in PSE8. The Adobe workaround
    did work, but I don't fancy having to re register each time I use it.
    What I have discovered is that it's nothing to do with the image metadata as it occurs before any image is opened.
    It SEEMS to only occur if you use file/open with to open an image in the editor - IE start PSE with that command.
    If you close elements down, and start it using programs/PSE/Elements (or your desktop shortcut) - the panorama feature magically works.
    Each time I've opened the editor 'automatically' using image/open with, it seems to create the problem.
    Hope this helps

  • Select option in gallery

    Hi everyone! My name is Pablo, and I live in Argentina.
    I own a Nokia 5800 XM, and i have a (good?) idea. When you are browsing your photos in the gallery, and you are in portrait mode, you can see three touch buttons at the bottom of the screen. The middle one, is the "check item button". I think that it should be useful to change this button to the "select item" button. If you want to selec a big quantity of photos using the "options-> check/unchek->check" is a painfull task to do.
    Please consider this, for a coming software update.
    What do you think guys?
    Regards to everyone, and sorry about my poor english!!!

    pablo4225 wrote:
    Hi everyone! My name is Pablo, and I live in Argentina.
    I own a Nokia 5800 XM, and i have a (good?) idea. When you are browsing your photos in the gallery, and you are in portrait mode, you can see three touch buttons at the bottom of the screen. The middle one, is the "check item button". I think that it should be useful to change this button to the "select item" button. If you want to selec a big quantity of photos using the "options-> check/unchek->check" is a painfull task to do.
    Please consider this, for a coming software update.
    What do you think guys?
    Regards to everyone, and sorry about my poor english!!!
    In fact the middle icon (similar to a Pencil) is for Editing..But Yes, Along with the Photo Gallery, wherever there is Mark/Unmark Option in the sub menu there should be a Mark Selected option too along with Mark /Mark all..

  • Clearing Select-Options in selection screen

    Hello,
    im having trouble clearing the select options in a selection screen.
    i dont really know why, but if i run the program, and add REFRESH TABLE_RANGE[] (which was declared as a select-options) , it does clear the table in the debug, but shows it again on the screen.
    i've tried CLEAR too, but it didnt really help.
    is there a know solution?
    thanks.

    Hi,
    There are two things associated with select-option one is header and other table
    Try
    CLEAR: TABLE_RANGE[] .
    CLEAR TABLE_RANGE.
    And are you sure your select-option name is TABLE_RANGE as I think only 8 character are allowed to name the selection screen field.
    Regards,
    Atish

  • Clearing Selection Screen (urgent)

    I have 4 radio buttons in my selection screen. First is selected by default. Now when 2nd will be selected, the contains of the screen fields will be cleared. I have tried with At selection screen output.
    Where the condition is
    if Rd2 = 'X".
    p1 = ' '.
    endif.
    but every time when the 2nd radio button is selected and entering data into screen fields, after  pressing enter all the screen gets cleared.
    Tell me some other options.........

    hi,
    try like this
    PARAMETERS:rad1 RADIOBUTTON GROUP rad1 USER-COMMAND rad,
               rad2 RADIOBUTTON GROUP rad1,
               rad3 RADIOBUTTON GROUP rad1,
               rad4 RADIOBUTTON GROUP rad1.
    PARAMETERS: mat LIKE mara-matnr DEFAULT '101'.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF rad2 = 'X'.
          IF screen-name = 'MAT'.
            screen-input = '1'.
            CLEAR mat.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    reward if usefull...

  • Clear Selection-Screen Fields

    Hello all,
    How to clear the fields content from a selection-screen when  the user returns from report to sel.screen?
    I try in PBO for selection screen to clear all the fields, works fine but with one exception, when it is pressed Enter,
    all the fields contents are empty.
    Thank you 
    Bogdan

    Hi Bogdan,
    i think you can achieve this with a flag and export/import to SAP-memory:
    AT SELECTION-SCREEN OUTPUT.
      IMPORT back FROM MEMORY ID 'back'.
      IF back = 'X'.
    *clear/refresh your sel-opt/param.
        refresh gjahr.
        CLEAR : gjahr , amount.
        CLEAR back.
        FREE MEMORY ID 'back'.
      ENDIF.
    START-OF-SELECTION.
    *end of your program
      back = 'X'.
      EXPORT back TO MEMORY ID 'back'.
    Andreas

  • Clear selection screen

    hi friends,
    i have created one report i have four parameter fields in my selection screen there are two ways to give inputs. one is selection screen another one is input from upload file.
    when i chose inputs from file at time my selection screen fileds is clear.
    i chose input file using at selection screen on request.
    how to do this?

    Hi,
    chek the code .may be useful to u.
    PARAMETERS : p_lpn TYPE filename-pathintern
                 DEFAULT c_lpn OBLIGATORY ,          "Logical Path Name
                 p_aserv RADIOBUTTON GROUP grp
                 USER-COMMAND app,                   "Application server
                 p_afile1 TYPE filename-fileextern , "Application File
                                                     "Name for contracts
                 p_afile2 TYPE filename-fileextern , "Application
                                                     "FileName for
                                                     "Long text
                 p_aerfl1 TYPE filename-fileextern , "Error File
                                                     "forcontracts
                 p_aerfl2 TYPE filename-fileextern , "Error File
                                                     "for Longtext
                 p_pserv RADIOBUTTON GROUP grp,     "Presentation Server
                 p_pfile1 TYPE rlgrap-filename ,    "Presentation File
                                                    "Name forcontracts
                 p_pfile2 TYPE rlgrap-filename ,    "Presentation File
                                                    "Name for long
                                                    "texts
                 p_errfl1 TYPE rlgrap-filename ,
                                                    "Error File for
                                                    "contracts
                 p_errfl2 TYPE rlgrap-filename .    "Err File Long text
    IF p_pserv IS  INITIAL.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'P_PFILE1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_PFILE2'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_ERRFL1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_ERRFL2'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'P_AFILE1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_AFILE2'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_AERFL1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_AERFL2'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ENDIF.
    Reward if helpful.
    Regards,
    Nagaraj

  • Clear selection on FocusLost of Jtable.

    Hi
    I have a jtable in which some columns are editable and some are non-editable. I want to clear the selections in jtbale when focus is lost from jtable.
    But i cannot write the code table.clearSelection() in the focusLost() method of JTable since it will not be invoked when another component is clicked using mouse, when the table editing is started.
    When another component is clicked when the table is in edit mode, the focusLost() of Jtable will not be invoked, but the focusLost() of that editor component will be triggered. So that table.clearSelection() will not work in this case.
    Can anybody suggest a solution to this problem ? I have already added putClienProperty("terminateEditOnFocusLost", Boolean.TRUE) to stop cell editing when focus is lost. Is there any methods like table.putClientProperty("clearSelectionOnFocusLost", Boolean.TRUE); ?? Do i need to add focus listener to each editor components ? Please hep.
    with thanks & regards
    Anoop

    You can listen for all focus change events using the following code:
    KeyboardFocusManager.getCurrentKeyboardFocusManager()
         .addPropertyChangeListener("focusOwner", new PropertyChangeListener()
         public void propertyChange(PropertyChangeEvent e)
              if (e.getNewValue() == null) return;
              Component c = (Component)e.getNewValue();
              System.out.println();
              System.out.println(c.getClass());
              System.out.println(c.getParent().getClass());
    });When your table gains focus you can set a boolean variable to indicate this. When another component gains focus (whose parent isn't the table), then you clear the table selection and reset the boolean variable.

  • Selected item in a JList - Clear selection after mouse click

    Hello:
    I'm developing a Java GUI application which uses some JLists. I've seen that, when an item of the JList is selected and you click the mouse another time in the same selected item, the selection does not "disappear". Now, the only way I know to do this is tho press Control + click in the selected item.
    I would like that, when I click to the selected item of a list, the selection disappears.
    How can I solve that?
    Lots of thanks for your help.

    add a MouseListener to the list
    in mouseReleased (note: Released), get the selected index
    compare to previous selection - if the same, list.clearSelection()
    if you clear the selection, you'll need to reset the 'previous selection' variable

  • How to unselect/clear selection of selected  item in selectOneListBox?

    I have a page with a selectOneListBox, and I can't find a way to unselect the selected item. When a downstream page navigates back, the list box always shows with the previously selected value. I've tried tweaking the selectOneListBox value attribute to null when it is not a post back, a la:
    <af:selectOneListbox
        value="#{adfFacesContext.postback ? bindings.APLEntityTypedescription.inputValue : null}"Which didn't work, the list was completely empty. I also tried setting the value to null in the backing bean binding for the component:
        public void setFromType(CoreSelectOneListbox fromType) {
            this.fromType = fromType;
            if (!ADFUtils.isPostback()) {
                fromType.setValue(null);
        }And similarly for the getter:
        public CoreSelectOneListbox getFromType() {
            if (fromType != null && !ADFUtils.isPostback()) {
                fromType.setValue(null);
            return fromType;
        }None of this works, every time the page loads from a "back" navigation, the list box still shows the prior selection. But if I navigate to a completely different page and then come back, it is no longer selected.
    So either I need some way to reset the selectOneListBox to have nothing selected, or completely clear the page assuming this is what happens when I navigate to an unrelated page and then come back. FWIW, the downstream page navigates back with a static navigation rule in faces-config.xml so I'm not sure why/how it remembers the prior selection state.
    Any help/insight is appreciated, Clark

    And this is how you do it in ADF (on the backing bean's getter for the selectOneListbox):
        public CoreSelectOneListbox getFromType() {
            if (!ADFUtils.isPostback()) {
                JSFUtils.setExpressionValue("#{bindings.APLEntityTypedescription.inputValue}", null);    
            return fromType;
        }Where the binding string matches that of the selectOneListbox's value attribute:
                  <af:selectOneListbox value="#{bindings.APLEntityTypedescription.inputValue}"
                                       ... >

  • Clear Selection

    Hi,
    Anyone know how to clear or "deselect" the current selected
    item from a tilelist filled with an array collection ???
    Thanks
    Rich

    Set the selectedIndex to -1:
    public function deselect():void {
    tileList.selectedIndex = -1;
    Vygo

  • ABAP WD, Clear select options

    Hi all,
    I have 2 select options in my web dynpro and I want to clean the value of the second select options
    when the first select options is selected.
    I have tried it using:
    (m_handler: type ref IF_WD_SELECT_OPTIONS)
    DATA:
         i_it_range_table TYPE REF TO data.
         i_it_range_table = wd_this->m_handler->create_range_table( i_typename = 'select_option_2' ).
         CALL METHOD wd_this->m_handler->set_range_table_of_sel_field
           EXPORTING
             i_id           = 'select_option_2'
             it_range_table = i_it_range_table.
    or:
      CALL METHOD wd_this->m_handler->upd_selection_field
        EXPORTING
          i_id                      = 'select_option_2'
          it_result                 = i_it_range_table.
    But the value appears.
    How do i solve this?
    Thanks.

    Hi Sascha.
    I had tried with this method and the value appeared, but i have used again and I have seen my problem.
    The problem was select option was modified in method WDDOMODIFYVIEW. I'm going to repair it.
    Thanks a lot.

  • Clear selection in adf-table??

    Dear forum
    how can I unselect the tableselectone component from adf-table using backing code, or implementing a function in the view object implementation.
    Thanks for all!

    ok.. i get the answer the code is:
    this.getTable1().getSelectionState().clear();
    =)
    Thanks for all.

  • Clear selection screen fields on using value help on another field

    Hi Experts,
    I have 3 fields -  reason1, reason2, reason3.
    Now i want to clear fields reason2 and reason 3 when i use value help for reason1.
    How do i go about it.
    Thanks & Regards
    Gaurav Kumar Raghav

    Hi,
    You use the function module 'DYNP_VALUES_UPDATE', here is a code extract showing its use..
    *&      Form  f4_laufd
    form f4_laufd .
      data: ls_laufk type ilaufk,
            lt_laufk type table of ilaufk.
      ls_laufk-laufk = space.
      ls_laufk-sign  = 'I'.
      append ls_laufk to lt_laufk.
      call function 'F4_ZAHLLAUF'
        exporting
          f1typ = 'D'
          f2nme = 'F110V-LAUFI'
        importing
          laufd = p_laufd
          laufi = p_laufi
        tables
          laufk = lt_laufk.
      perform set_selection using 'P_LAUFI' p_laufi.
    endform.                                                    " f4_laufd
    *&      Form  set_selection
    form set_selection  using    value(i_field)
                                 i_value.
      data: ls_dynpfld type dynpread,
            lt_dynpfld type table of dynpread.
      ls_dynpfld-fieldname  = i_field.
      ls_dynpfld-fieldvalue = i_value.
      append ls_dynpfld to lt_dynpfld.
      call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname     = sy-repid
          dynumb     = sy-dynnr
        tables
          dynpfields = lt_dynpfld.
    endform.                    " set_selection
    Darren

Maybe you are looking for