Pre-selected button

I need to know how to make my a button pre-selected. When the
user comes to the screen, I'd like it to show up just like it does
in the rollover state. Is there a way to do this? I already tried
using the my_btn.selected property, but that does't do it (didn't
think it would).
Similar issue: I have three buttons in a movieclip, and I'd
like them to be the only items the user can choose from and
navigate to, I haven't figured that one out yet either. If anyone
knows how to do that, please tell me, I'd like to be able to tell
which items have the "focus" similar to the getFocus() method used
for text fields, is there anything like that for movieclips

If you want to hide a radio button from a group, you have to use individual IWDRadioButton elements instead of IWDRadioButtonGroupBy{Index, Key}.
Armin

Similar Messages

  • How to set a default pre-select for radio buttons?

    Hi
    I have some text form fields that I've set up to display some paired variables stored in a .txt file.  When the swf loads, the form fields are populated with the text.
    I've also set it up so that if you change the text and hit a submit button, the .txt file gets updated.
    I'm now tryng to set it up so that I can store radio button selections in the .txt file too.
    I've started doing it a certain way, but am wondering if there is a more straightforward way of doing ?
    Here's what I've done...
    I've set up the butttons to spit out "on" or "off" depending on the selection, and apply that to the variable that gets stored.
    Now, in the same way I loaded the variables into the text form fields when the swf is refreshed, I want to load the on/off variable, and then somehow apply it to the radio buttons so that one of them is pre-selected.
    So my questions are a) how do I take that loaded variable, and use an if statement to make it pre-select the button, and b) is there a simpler way to pre-select a button based on an external variable?
    Thanks
    Shaun

    Nevermind guys - I did it using the 'rb_on.selected' command on the "on" radio button if the .txt file variable was "on", else the "off" radio button is selected.
    Thanks for taking a look though!
    Shaun

  • Need button so be pre-selected

    I need to know how to make my a button pre-selected. When the
    user comes to the screen, I'd like it to show up just like it does
    in the rollover state. Is there a way to do this? I already tried
    using the my_btn.selected property, but that does't do it (didn't
    think it would).
    Similar issue: I have three buttons in a movieclip, and I'd
    like them to be the only items the user can choose from and
    navigate to, I haven't figured that one out yet either. If anyone
    knows how to do that, please tell me, I'd like to be able to tell
    which items have the "focus" similar to the getFocus() method used
    for text fields, is there anything like that for movieclips

    Solved.
    My final code:
    data: lv_tree_size TYPE i,
                ls_layout_item TYPE lvc_s_laci,
                lt_layout_item TYPE lvc_t_laci,
                lv_ind TYPE LVC_INDEX.
          CLEAR ls_layout_item.
          ls_layout_item-fieldname = 'SEL'.
          ls_layout_item-class = cl_gui_column_tree=>item_class_checkbox.
          ls_layout_item-editable = 'X'.
          ls_layout_item-u_class = 'X'.
          ls_layout_item-u_editable = 'X'.
          ls_layout_item-u_chosen = 'X'.
          ls_layout_item-chosen = 'X'.
          append ls_layout_item to lt_layout_item.
    call method g_tree9001->set_table_for_first_display
          EXPORTING
            i_save              = 'A'
            is_variant          = ls_variant
          CHANGING
            it_sort             = gt_sort9001
            it_outtab           = gt_tree9001
            it_fieldcatalog     = gt_treefcat9001.
    DESCRIBE TABLE gt_tree9001 LINES lv_tree_size.
    DO lv_tree_size TIMES.
            CALL METHOD G_TREE9001->CHANGE_LAYOUT
              EXPORTING
                I_OUTTAB_INDEX = sy-index
                IT_ITEM_LAYOUT = lt_layout_item                .
    ENDDO.
    The main trick is in u_class, u_editable, u_chosen. These params say that layout should be changed. Only this way it will work.
    And some helpful links:
    ALV tree get selected checkbox
    Checkbox ALV Tree CL_GUI_ALV_TREE
    ALV TREE-Checkbox
    CL_GUI_ALV_TREE and Checkboxes
    Report BCALV_TREE_ITEMLAYOUT is also very helpful.

  • RadioButtonGroups in WDJ: hiding 1st button but leaving it pre-selected

    In an ABAP General thread, Narendran confirmed the fact that you can't hide the first radiobutton in a regular ABAP screen radiobuttongroup but leave it pre-selected.
    In other words, if you have buttons:
    RB0 RB1 RB2 RB3 RB4
    you can't hide RB0 and leave it preselected. Once you make RB0 invisible, either in the painter or in a "loop at screen" in your code, SAP will pre-select RB1.
    So I'm asking WDJ developers to think about this and if it is also the case in WDJ, then change the WDJ code so that you can hide the first button of a group but leave it pre-selected.
    Apparently, GUI/XT allows you to pull this trick off.
    (Note: this was also posted in the WDA forum for the WDA developers.)

    If you want to hide a radio button from a group, you have to use individual IWDRadioButton elements instead of IWDRadioButtonGroupBy{Index, Key}.
    Armin

  • Prompt's customized LOV is not pre-selected when webi report is refreshed

    BO XI R 2 SP 1
    DB: Oracle10g
    Hi - I have customized LOV in every dimension and it's value is '*All'....it appears at the top of LOV values in the prompt list.
    When I open the report, it shows the *All is already selected; but when I refresh this report using 'Refresh Data'; everythings comes up fine but *All no longer shows up as pre-selected value.
    Is there a way to handle this situation? Please let me know if you need more explanation.
    Note that when I hit the save button; report comes back with all '*All' pre-selected in all prompts.

    I don't know how to access the document you mentioned...
    anyway, to display All as customized value; edit the dimension's SQL and add
    UNION
    SELECT 'All' FROM DUAL (for oracle)
    SELECT 'All' FROM anytablename (for SQL Server)
    select the checkbox not to generate SQL and then click Run...click Display and then you should be able to see All as one of your custom value.

  • Adding scene selection button

    How do I add a button that links to the scene selection on the disc menu?

    When you add Scene Markers to your Timeline, PrE will automatically add the link from a Scene Selection Button (from either the Main Menu, or a Scene Selection Menu, depending on the chosen Template) automatically, and will even create any necessary Scene Selection Menus, to accommodate the number of Scene Markers that you have.
    In PrE, such linking is done automatically, and requires not input from the user, beyond the creation of those Scene Markers, and the choice of Menu Template.
    In many other authoring programs, and especially full-featured programs, like Adobe Encore, those links ARE done manually.
    Good luck, and hope that helps,
    Hunt

  • Pre-selected Content Profile Checkin

    Hello,
      I was reading this post:
    Using Content Server Profiles in WebCenter
    I'm in a similar situation configuring my space. I find impossible to pre-select a content profile from Upload button, and in the linked post they talked of some component that could work. Is any updates about it? I couldn't answer there, the post is closed.
    Thank you in advance.

    Are you able to checkin content with that profile in UCM interface? I think the mandatory metadata fields still needs to get filled even though you try to hide them through your profile. They might appear hidden but you will not be able to checkin the document, so you have to default it to predefined values.
    Alternative is to tap the event "validate standard" in a custom component filter and then do necessary changes to the databinder. So is it CIS issue at all?
    These are my thoughts.
    Regards,
    Ansuman Roy

  • How to pre-select in netui:select

    I am new to workshop. I need to use netui:select for a list box with multiple selection. I want to pre-select the listbox with several entries. I am wondering how to do this?

    Cindy,
    You can set multiple default values on a select tag by binding the
    defaultValue attribute to a String[] or anything else (collection, etc)
    that can be turned into an Iterator.
    For example, here is how I modified Workshop's Sample Application
    (specifically the "select multiple" example)
    <netui:form action="submit">
    <netui:select multiple="true" dataSource="{actionForm.selections}"
    size="5" defaultValue="{pageInput.defaultValues}">
    <netui:selectOption value="red" />
    <netui:selectOption value="blue" />
    <netui:selectOption value="green" />
    <netui:selectOption value="yellow" />
    <netui:selectOption value="orange" />
    </netui:select>
    <netui:button type="submit" value="Submit"/>
    </netui:form>
    here is the code from the controller showing the page flow variable
    defaultValues being passed to the page as a page input in fhe Forward
    contstructor.
    private String[] defaultValues = {"green", "yellow"};
    * @jpf:action
    * @jpf:forward name="success" path="index.jsp"
    protected Forward begin()
    return new Forward("success", "defaultValues", defaultValues);
    - john
    "Cindy" <[email protected]> wrote in message
    news:407170f4$[email protected]..
    I am new to workshop. I need to use netui:select for a list box withmultiple selection. I want to pre-select the listbox with several entries.
    I am wondering how to do this?

  • HP Smart Web Printing Select Button does not appear

    Just started to use Smart Web Printing. The Select Button as shown in the help file does not appear on the screen. Instead, a small box "x Select area to remove" shows within the area to print.
    Printer: HP Photosmart C6380
    System: Windows Vista SP2 Home Premium
    Browser: Internet Explorer v9
    [email protected]

    Hi,
    The HP Smart Web Printing software is not compatible with Internet Explorer 9, you should unisntall it and upgrade to its replacement app HP Smart Print which compatible with your web browser:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02994297&tmp_track_link=ot_faqs/top_issues/en_u...
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How can I just display the selected value of a listbox in a report without the reverse display and selection buttons?

    I am using a table which contains a text field with a lookup. I want to use the selected value of this field in a form which is acting as a selection form. No editing of the field's value is permitted. How do I just display the value of the field (which
    is considered a listbox on the form) without the reverse display and the up and down selection buttons. 
    I can provide an illustration of the condition I am trying to overcome, but this system doesn't accept it.
    Thank you for any suggestions or clarification you can provide.
    Marj Weir

    Thank you.  I'll try that approach. 
    I found, after much experimentation, on a similar problem involving a multiselect lookup field,  that if I make the field invisible, and add a  textbox that displays the fieldname plus .column(0), it displays all the selected entries. 
    E.g.: staff.Column(0)
    Staff is the field containing the last names of selected staff members. 
    staff.Value only shows the first name in the lookup list whether it is checked or not, so this is useless.
    staff.column(0), however, (inexplicably) shows all the selected names, e.g. Jones, Smith, Wiggins.
    Marj Weir
     

  • How to Pre-Select a View for ALV dashboard at runtime

    Hello Experts,
    The requirement is to pre-select 1 view initially (out of several configured) for 'All' users and disable the 'View-selection' dropdown function in a standard ALV dashboard. So whenever the dashboard loads, a particular view has to be set automatically for all users.
    I need your help for the first part, which is to always pre-set a 'View' in a standard dashboard.
    I tried to implement the suggestion provided in the following thread:
    How to apply ALV view at runtime
    However I couldn't make this work in my case. I created a Post-Exit of a method in Comp Ctlr of dashboard (Initialize method) - where I receive the refrence 'IWCI_SALV_WD_TABLE'. Then calling the method 'GET_CONFIG_DATA' with action 'if_salv_wd_table=>set', I try to set the view, but it has no effect.
    Thanks a lot for your help,
    Abir

    Hi abir,
    Use this and alv1 is my alv component name
        DATA LO_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
        LO_CMP_USAGE =   WD_THIS->WD_CPUSE_ALV1( ).
        IF LO_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
          LO_CMP_USAGE->CREATE_COMPONENT( ).
        ENDIF.
        DATA LO_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
        LO_INTERFACECONTROLLER =   WD_THIS->WD_CPIFC_ALV1( ).
    LS_PARAM_IN TYPE IF_SALV_WD_TABLE=>S_TYPE_PARAM_CONFIG_IN.
    ls_param_in-default = "your view name " ( view is of type wdr_pers_variant)
        DATA LO_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
        LO_VALUE = LO_INTERFACECONTROLLER->GET_CONFIG_DATA( ls_param_in )
    Regards
    Srinivas
    Edited by: sanasrinivas on Dec 30, 2011 7:15 AM

  • I have an older iPod that no longer shows up in iTunes or appears to be charging.  When I press the Menu and Select buttons, the Apple logo appears and then an icon of a battery with an exclamation point.  Is it dead for good?

    I have an older iPod that no longer shows up in iTunes or appears to be charging.  When I press the Menu and Select buttons, the Apple logo appears and then an icon of a battery with an exclamation point.  Is it dead for good?

    If it is otherwise working, you can change the battery.  If you want to do it yourself, you can buy the part on eBay and other online sources.  Just make sure you know the type of iPod you have so that you get the right part.
    http://support.apple.com/kb/HT1353
    There are online guides, including the ones on this web site
    http://www.ifixit.com/Device/iPod
    (Note:  Most replacement batteries come with plastic/nylon tools seen in the guides.)
    You can also have a repair business do the work.
    If it is just the battery, if you do a Reset (using the Menu and Select buttons) while it is connect to your computer, I think it should still be recognized by iTunes.

  • IPod nano 3rd gen. Apple logo remains on screen and iTunes doesn't recognise it's plugged in, I can't even turn it off. I've tried to get to disc menu but when I hold the 'menu and select button' it reboots it doesn't recognise the select and play button

    iPod nano 3rd gen. Apple logo remains on screen and iTunes doesn't recognise it's plugged in, I can't even turn it off. I've tried to get to disc menu but when I hold the 'menu and select button' it reboots and then doesn't recognise the select and play button to show the tick. I'm helpless.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                 
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Select Button beside custom metadata field on Check In Form

    Hi
    In Oracle Content Server 10gR3, is there a way to add a "Select" button to User Alias Applet for a new Meta data field on New Check In Form? I tried creating a component but I don't see a select button being shown up. The button does shows up if it's a standard metadata fields but not for the custom one. Here is the component code. Any idea what I am doing wrong and how to fix it.
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>
    CustomMetaData htmlIncludeOrString
    </title>
    </head>
    <body>
    <@dynamichtml std_meta_fields@>
    <textarea name="xClbraAliasList" rows=3 cols=40 wrap=virtual></textarea>
    <input type="button" value="Select..."
    onClick="popupSelectAlias(document.Checkin);">
    <script language="JavaScript">          
         var aliasForm;
         function popupSelectAlias(frm)
              var selUser = document.selectAliasApplet;
              aliasForm = frm;
              selUser.createFrame();
         function setAliasString(val)
              if (val.length == 0)
                   return;
              var str = aliasForm.xClbraAliasList.value;
              str.trim;
              if (str.length > 0)
                   str += ",";
              str += val;
              aliasForm.xClbraAliasList.value=str;
         </script>
         <applet name="selectUserApplet"
        code=com.intranetsol.utilities.SelectUserApplet.class
          codebase="/idc/common/"
         archive=suapplet.zip
        id=selectUser
        width=0
        height=0
         MAYSCRIPT>
              <param name=CGI-URL value="/idc/idcplg">
              <param name=JsDisplaySeparator value=",">
              <param name=IsPaged value="1">
              <param name=IsUserList value="1">
              <param name=JsFunction value="setUserString">
    </applet>
    <applet name="selectAliasApplet"
        code=com.intranetsol.utilities.SelectUserApplet.class
          codebase="/idc/common/"
         archive=suapplet.zip
        id=selectAlias
        width=0
        height=0
         MAYSCRIPT>
              <param name=CGI-URL value="/idc/idcplg">
              <param name=JsDisplaySeparator value=",">
              <param name=IsPaged value="1">
              <param name=IsAliasList value="1">
              <param name=JsFunction value="setAliasString">
    </applet>
    <@end@>
    </body></html>
    Then I tried using the same code as above but instead used the built-in dDocType to show a "Select" button. This works but the button obviously shows besides dDocType but when I try for custom metadata as shown above it doesn't. Here is the sample code for dDocType:<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>
    CustomMetaData3 htmlIncludeOrString
    </title>
    </head>
    <body>
    <@dynamichtml std_doc_page_definitions@>
    <$include super.std_doc_page_definitions$>
    <$include custom_modify_comments_definitions$>
    <@end@>
    <@dynamichtml custom_modify_comments_definitions@>
    <$if isCheckin$>
    <$xComments:isHidden = 1$>
    <$xComments = "some preset and hidden comments"$>
    <$elseif isUpdate$>
    <$xComments:isInfoOnly = 1$>
    <$endif$>
    <@end@>
    <@dynamichtml compute_std_field_includes@>
    <$include super.compute_std_field_includes$>
    <$if fieldName like "dDocType"$>
    <$if isCheckin or isUpdate$>
    <$fieldEntryInclude = "custom_doc_type_popup_field_entry"$>
    <$endif$>
    <$endif$>
    <@end@>
    <@dynamichtml custom_doc_type_popup_field_entry@>
    <input type="text" name="dDocType" value="<$fieldValue$>">
    <input type="button" value="Select..."
    onClick="popupSelectAlias(document.Checkin);">
    <script language="JavaScript">          
         var aliasForm;
         function popupSelectAlias(frm)
              var selUser = document.selectAliasApplet;
              aliasForm = frm;
              selUser.createFrame();     
         function setAliasString(val)
              if (val.length == 0)
                   return;
              var str = aliasForm.xClbraAliasList.value;
              str.trim;
              if (str.length > 0)
                   str += ",";
              str += val;
              aliasForm.xClbraAliasList.value=str;
         </script>
    <applet name="selectAliasApplet"
    code=com.intranetsol.utilities.SelectUserApplet.class
         codebase="/idc/common/"
         archive=suapplet.zip
    id=selectAlias
    width=0
    height=0
         MAYSCRIPT>
              <param name=CGI-URL value="/idc/idcplg">
              <param name=JsDisplaySeparator value=",">
              <param name=IsPaged value="1">
              <param name=IsAliasList value="1">
              <param name=JsFunction value="setAliasString">
    </applet>
    <@end@>
    </body>
    </html>
    Can someone please let me know what is in my above code that I am missing that is preventing the button not being shown in-front of the custom metadata field.
    Any help would be greatly appreciated.
    Thanks
    Edited by: guest0012 on Aug 29, 2009 4:24 PM

    Interesting!
    You'll need a component. You already mentioned you had a custom metadata field. You will also need to add a counter to the counters table for your component. During a check in you will need to fetch the next value from the counters table, increment the counter and store the new number back in the table. The year portion of the id is easy, get the current year and grab the last two characters. Then, put this all togther to get the data for your metadata field.
    The big question now is where in the check in process will you do all this? You will need something called filters probably. Maybe addFiles, maybe validateStandard, there are several that this could work with.
    Check out the how-to-components:
    http://www.oracle.com/technology/products/content-management/ucm/samples/index.html
    -Jason
    http://www.corecontentonly.com

  • Scene selection buttons don't work in preview

    I edited my movie in iMovie, provided chapter markers that work in iMovie.  "Shared" the completed project to iDVD, which created scene selection buttons for all of the chapter markers and for the beginning.
    Now that I have dropped loops onto the buttons, none of them works.  Instead of starting the movie at the appropriate marker, they just display the loop that was dropped onto them.
    I do not know if the buttons worked before I dropped loop files onto them.
    How do I get the buttons to associate with the chapter markers? 

    Have you tried publishing to a server?  Sometimes the javascript or flash being run requires your project to be running from a server.  You can not rely on the preview mode to execute scripts which is fustrating because if you are attempting a java window close command it definately won't work when clients try it on their local machine... And still has a good chance of not working when published on a server

Maybe you are looking for

  • Consulta formatada - Pedido de compra puxar preço de contrato guarda-chuva.

         Amigos consultores, Queria criar uma consulta formatada onde, ao inserir um item no pedido de compras (POR1), o preço puxasse automaticamente do Contrato guarda-chuva (OAT1, OOAT) existente para aquele item. É possível??

  • IMac failures

    I have tried unsuccessfully to find an email address for Apple, where I can give critical feedback about my iMac experience and expect to have some response.  The only feedback channels make it clear there will be no response and I fear it disappears

  • How to get correct number of hours from a total calculated hours

    Hi all I'm trying to calculate the number of actual hours. so the hours look like this A: 1hr 30min B: 1hr 40min if i add those up i get C: 2hr 70min (ie 1.30+1.40=2.70) however, I want to actually display the actual hours which is 3hr 10min I had th

  • How do I get the brush thumbnail to show in CS5 please?

    I have tried everything and no one can help me. I don't have the extended version, I have upgraded to PS5 from PS4 with a download but according to tutorials I have seen there should be a mini paint brush in a box that moves along with the pen to sho

  • Problem printing date on the form

    Hello friends , I am doing form for the HR . Is there any special formatting needed to print the date on the form . I am doing this . &t_payment-paydate& in the main window of the form . t_payment is the table and paydate the date of payment . But in