Set a combobox clear from selection

Hi all,
do anyone know how to set a combobox clear from selection (none of the value is selected) ?
pardon me for using wrong words.

Hi
Set the datasource value of the combo box to nothing ("").
If not using datasources, use this code at form startup.
oForm.DataSources.UserDataSources.Add("dsUID", [type],[size]);
oCombobox.Databind.SetBound(true, "", "dsUID");
Use this code to set value to nothing
oForm.DataSources.UserDataSources.Item("dsUID").ValueEx="";
Thanks

Similar Messages

  • Set PHTML ComboBox Selected Value in JavaScript?

    I've created a combobox as follows:
    <phtmlb:comboBox id                = "sdm_cnis"
      selection        = "<%= L_CIP_DETAILS_WA-GBSCIND %>"
       table             = "<%= l_cnis %>"
       readOnly       = "<%= l_display_mode %>"
       width             = "50px"
       nameOfKeyColumn   = "VALUE"
       nameOfValueColumn = "NAME"
       onClientSelect    = "javascript:sdm_toggle_required();return false;"
       behavior          = "DROPDOWNSELECT" />
    Based on the selected value of another dropdown combobox, I want to use JavaScript to select the value of this comboBox. For example, if the user changes the first comboBox, I want to automatically select the first option in this combobox. I really do not want to use dropdownListBoxes because they are not used anywhere else in our application. I also do not want to make a round trip to the server in order to resolve this issue as our uses will complain too much about that.
    Some other things I've learned/tried:
    I know I can get the selected value as follows:
    sapUrMapi_ComboBox_getSelectedKey('sdm_cnis');
    I have also tried to do the following, which sort of sets the value, but when you pull the list it appears as though the old selected value is still selected:
    window.document.getElementById('sdm_cnisKEY').value = cnis_key;
    window.document.getElementById('sdm_cnis').value = cnis_value;
    Any help is appreciated.
    Rick

    Managed to come up with a solution:
    window.document.getElementById('sdm_cnisKEY').value = cnis_key;
    window.document.getElementById('sdm_cnis').value = cnis_value;
    var o=sapUrMapi_ComboBox_getObject("sdm_cnis");
    o.txt.setAttribute("k",cnis_key);
    o.txt.setAttribute("ks",cnis_key);
    I'm not sure, but I would imagine that this solution is not supported by SAP and any patches or service pack upgrades could potentially break the code, so if you use it, be cautioned about this.
    I have tested it on our server, and it works for my current scenario. That said, if there is a better way to do this in JavaScript, I'd love to hear it. For now, I'll leave the question open and assign full points if someone can come up with something that I feel is better than this (i.e. a JavaScript solution that is supported by SAP).
    Rick

  • How can I restore my data from IBooks from IPad 2 to Ipad air. When I was set up, I forget to select restore backup. Now I have backup from iPad 2. I don't have any Mac PC.

    How can I restore my data from IBooks  and other program from IPad 2 to Ipad air. When I was set up, I forget to select restore backup. Now I have backup from iPad 2. I don't have any Mac PC..

    Restore from iCloud Backup (if you have backed up to iCloud)
    1. Settings>General>Reset>Erase all content and settings
    2. Tap Erase
    3. You'll see Apple logo and progress bar
    4. Hello
    5. Slide to set up
    6. Set language
    7. Set country
    8. Choose Wi-Fi network; enter Wi-Fi password
    9. (a) Use Location Service (b) Don't Use Location Service
    10. Select option
    11. (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    12. Selected Restore from iCloud Backup
    13. Enter password for iCloud
    14. Agree to Terms and Conditions
    15. Setup Apple ID
    16. Select backup
    17. Restoring from iCloud
    18. Hello
    19. Restore Completed. Your iPad was restored successfully. There are just a few more steps to follow and then you're done!
    20. Continue
    21. Finish setting iCloud enter Password
    22. Updating iCloud settings
    23. Create a Passcode
    24. Welcome to iPad
    25. Get Started
    26. Restoring Apps and Media
    27. Enter Apple ID and Password
    28. Notice: Restore Incomplete, some items could not be downloaded from the Store. If they are on your computer, you can restore them by syncing with iTune
    29. Connect iPad to iTune to sync with computer
    30. Sync Music, Videos and Album Artwork

  • How to set an Application Item from PL/SQL

    I am attempting to set an Application Item
    After login to my app, I want to retrieve a row from my SETTINGS table and populate some Application Items with the settings information so that I can
    display some of that settings information on every page.
    Just to start, I created one Application Item named F106_YEAR
    I then created a Shared Components Application Process which executes on New Session: After Authentication
    I created this process as an Anynomous PL/SQL block.
    declare
    aucyr varchar(4);
    begin
    select year into auctyr
    from settings;
    :F106_YEAR := aucyr;
    end;
    I've tried a couple of other Syntax tricks attempting to reference the Application Item F106_YEAR from within PL/SQL (like V('F106_YEAR') but nothing seems to be working.
    I'm sure that I am missing something simple. Can someone tell me how to set an Application Item from PL/SQL?
    Thanks in advance.

    I'm still doing something wrong because this is not working for me.
    I've tried both of the following versions as an Application Process set to run on New Session after Authentication:
    declare
    auction_year varchar(4);
    begin
    select year into auction_year
    from PBUUC.SETTINGS where rownum < 2;
    :F106_AUCTION_YEAR:=auction_year;
    end;
    and I also tried:
    declare
    auction_year varchar(4);
    begin
    select year into auction_year
    from PBUUC.SETTINGS where rownum < 2;
    APEX_UTIL.SET_SESSION_STATE (p_name, p_value);
    end;
    F106_YEAR is a global Item (shared components).
    The select statement works just fine in SQL*PLUS so I know that it is correct.
    If I run the debugger and log into the application, here is the output. Shouldn't I see my Application Process get called if it is set to run on New Session after Validation?
    My Application process is named RETRIEVE_AUCTION_SETTINGS
    0.01: A C C E P T: Request="P101_PASSWORD"
    0.01: Metadata: Fetch application definition and shortcuts
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -04:00
    0.01: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.01: Fetch session state from database
    0.02: ...Check session 695371898690095 owner
    0.02: ...Check for session expiration:
    0.02: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.02: Session: Fetch session header information
    0.02: ...Metadata: Fetch page attributes for application 106, page 101
    0.03: ...Validate item page affinity.
    0.03: ...Validate hidden_protected items.
    0.03: ...Check authorization security schemes
    0.03: Session State: Save form items and p_arg_values
    0.03: ...Session State: Save "P101_USERNAME" - saving same value: "jps"
    0.03: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.03: Branch point: BEFORE_COMPUTATION
    0.03: Computation point: AFTER_SUBMIT
    0.03: Tabs: Perform Branching for Tab Requests
    0.03: Branch point: BEFORE_VALIDATION
    0.03: Perform validations:
    0.03: Branch point: BEFORE_PROCESSING
    0.03: Processing point: AFTER_SUBMIT
    0.03: ...Process "Set Username Cookie": PLSQL (AFTER_SUBMIT) begin owa_util.mime_header('text/html', FALSE); owa_cookie.send( name=>'LOGIN_USERNAME_COOKIE', value=>lower(:P101_USERNAME)); exception when others then null; end;
    0.04: ...Process "Login": PLSQL (AFTER_SUBMIT) wwv_flow_custom_auth_std.login( P_UNAME => :P101_USERNAME, P_PASSWORD => :P101_PASSWORD, P_SESSION_ID => v('APP_SESSION'), P_FLOW_PAGE => :APP_ID||':1' );
    0.06: ...Process "Clear Page(s) Cache": CLEAR_CACHE_FOR_PAGES (AFTER_SUBMIT) 101
    0.06: Nulling cache for application "106" page: 101
    0.00:
    0.00: S H O W: application="106" page="1" workspace="" request="" session="695371898690095"
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -04:00
    0.01: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.01: Application 106, Authentication: CUSTOM2, Page Template: 2904114531488186
    0.01: ...Session ID 695371898690095 can be used
    0.01: ...Application session: 695371898690095, user=JPS
    0.01: ...Determine if user "JPS" workspace "1040027630222986" can develop application "106" in workspace "1040027630222986"
    0.01: ...Check for session expiration:
    0.01: Session: Fetch session header information
    0.01: ...Metadata: Fetch page attributes for application 106, page 1
    0.01: Fetch session state from database
    0.02: Branch point: BEFORE_HEADER
    0.02: Fetch application meta data
    0.02: Computation point: BEFORE_HEADER
    0.02: Processing point: BEFORE_HEADER
    0.03: Show page template header
    0.03: Computation point: AFTER_HEADER
    0.03: Processing point: AFTER_HEADER     
    0.04: Computation point: BEFORE_BOX_BODY
    0.04: Processing point: BEFORE_BOX_BODY
    0.04: Region: Auction_Title F106_AUCTION_YEAR

  • Process open items: how to set defaults for the additional selections

    Hi FI experts,
    Can anyone tell me if it is possible to set defaults for the additional selections in the processing of open items.
    I am using transaction F-04 (or F-06 or F-07) to post with clearing.
    When processing the open items I can use additional selection parameters. In my case I need to use the document type.  I would like to save this selection as a default but this doesn't seem to be possible.
    1. it is not possible to save a variant for the processing of open items
    2. I can not create a variant transaction (with trx. SHD0) for F-0x since this is only possible for dialog transactions
    Do you see another way to store defaults for the additional selections in open item processing?
    Thanks a lot.
    Dimitri

    Hi,
    When you create a transaction variant from FB05, then also you will not able to default the value for additional selections variable.  Hence SHD0 is not going to help.
    As said above, either you can change the additional selection screen parameters, but here again you can't default the value.  You can only reduce the number of entries on the screen.
    Else you can create a custom transaction code by copying the standard.  Even SAP recommends to create custom codes from standard tcode for clearing purposes depending on requirements. 
    Please check this link:
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/41/37b8e7455b11d182b40000e829fbfe/frameset.htm
    In the above link, in navigation choose clearing -- Specifications for processing open items
    If it is a custom transaction then you can default document number.
    Regards,
    Ravi

  • How to clear all selection screen parameters before calling transaction?

    Hi Experts
       I have a ABAP report that displays data using ALV.
      When I double click a cell it calls transaction MB51. Before calling the transaction I need to set some parameters of the selection screen  of the transaction.
      My code is like below:
      <UL>
       <LI>FREE MEMORY ID 'MAT'. <I>"material</I>
       <LI> FREE MEMORY ID 'WRK'. <I>"plant</I>
       <LI> FREE MEMORY ID 'CHA'. <I>"batch</I>
       <LI><I>* Get the selected ALV row data</I>
       <LI>READ TABLE i_recon INDEX p_selfield-tabindex INTO x_recon.
       <LI><I>*   If link MB51 is clicked then open tcode MB51</I>
       <LI> IF p_selfield-sel_tab_field+8(4) = 'MB51'.
       <LI><I>*   Pass material, plant to the corresponding tcode</I>
       <LI>       SET PARAMETER ID 'MAT' FIELD x_recon-matnr.
       <LI>       SET PARAMETER ID 'WRK' FIELD p_plant.
        <LI>      CALL TRANSACTION 'MB51' AND SKIP FIRST SCREEN.
    </UL>
    The problem is:
    <UL> <LI> 1. First, I run the given transaction before running the report in a separate session with some set of values in the selection screen. For example: plant = AB01, Material = 990001 and Batch = 10001.</LI>
    </UL>
    <UL>
            <LI> 2. Then in another session I run my report. In the report ALV I have selected a record where plant = AB01, Material = 990001 but Batch is blank. But it opens the transaction with plant = AB01, Material = 990001 and Batch = 10001.
    Even though in my ALV record the batch is blank yet it uses the batch value from the memory. That is, the batch value that was given in the transaction earlier. Why it is not getting cleared? I have also used FREE MEMORY ID code in the beginning. But still it is not clearing the values in the memory.
    </UL>
    <UL>
            <LI>What shall I do to clear all the selection screen parameters before calling the transaction?</LI>
    </UL>
    <UL>
            <LI>
    Thanks
    Gopal
    </LI>
    </UL>
    Edited by: gopalkrishna baliga on Aug 11, 2010 10:29 AM

    Its because sap memory is globally shared.
    Do it like this.
    READ TABLE i_recon INDEX p_selfield-tabindex INTO x_recon.
    IF p_selfield-sel_tab_field+8(4) = 'MB51'.
    perform bdc_dynpro      using 'RM07DOCS' '1000'.
    perform bdc_field       using 'BDC_OKCODE'   '=ONLI'.
    perform bdc_field       using 'MATNR-LOW'  x_recon-matnr.
    perform bdc_field       using 'WERKS-LOW'  p_plant.
    perform bdc_field       using 'CHARG-LOW'  p_batch.
    perform bdc_field       using 'DATABASE'  'X'.
    call transaction 'MB51' with i_bdcdata mode 'E'.
    endif.
    form bdc_dynpro using program dynpro.
      clear la_bdcdata.
      la_bdcdata-program  = program.
      la_bdcdata-dynpro   = dynpro.
      la_bdcdata-dynbegin = 'X'.
      append la_bdcdata to i_bdcdata.
    endform.
    form bdc_field using fnam fval.
        clear la_bdcdata.
        la_bdcdata-fnam = fnam.
        la_bdcdata-fval = fval.
        append la_bdcdata to i_bdcdata.
    endform.

  • Clearing of selections screen

    Hi!
    I wanted to asked how to clear a first screen of selections screen ( contains Parameters ans select options )  from another scrren ?
    I created an ALV report. The first screen of the report is a selections screen that contains select options and Parameters. The Alv was created by Object oriented method (not by the function 'reuse_alv_*' ) in
    a second screen. I want from the second screen on certain circumstances to leave the alv screen and to set the first screen ( that contains select options and Parameters ), however when i call the first screen i want to clear all select options and parameters, and my question is how to clear all select options and parameters before i leave to the first screen ?
    thanks
    moshe

    Hi Moshe
    Just I said in my answer you can't do a CLEAR statament in that point of your code, because the system manages the return of old data in selection screen.
    The system do what importing old data from ABAP MEMORY in the event INITIALIZATION, so or you clear the ABAP MEMORY or you clear the selection-screen in the event AT SELECTION-SCREEN OUTPUT.
    You can try this:
    IF g_it_d_data[] IS INITIAL.
    CALL FUNCTION 'POPUP_FOR_INTERACTION'
    EXPORTING
    headline = text-011 " 'Information'
    text1 = text-010
    ticon = 'I' " 'No data was found for
    " the selection criteria.'
    button_1 = 'OK'.
    here i need to clear parameters and selects option
    before leaving to screen 0
    FREE MEMORY.
    LEAVE TO SCREEN 0.
    ENDIF.
    or you place FREE MEMORY statament in INITIALIZATION.
    INITIALIZATION.
    FREE MEMORY.
    You can try to use CLEAR and REFRESH statament in AT SELECTION-SCREEN OUTPUT.
    AT SELECTION-SCREEN OUTPUT.
    Only first time
    CHECK FL_FIRST = SPACE.
    FL_FIRST = 'X'.
    REFRESH <SELECT-OPTION>.
    CLEAR <PARAMETERS>.
    Max

  • How to set BDCDATA table for a SELECT-OPTIONS object?

    Dear experts,
    I have a transaction with PARAMETERS and SELECT-OPTIONS objects. This transaction will be called by another program by using CALL TRANSACTION 'mytransaction' USING mybdcdata statement. Below is some of the called transaction's source code:
    DATA:
      date TYPE sflight-fldate.
    PARAMETERS:
      p_carid TYPE sflight-carrid,
      p_conid TYPE sflight-connid.
    SELECT-OPTIONS:
      so_date FOR date.
    This is what I wrote in the calling program to define the values of the called transaction PARAMETERS fields:
    DATA:
      wa_bdcdata TYPE bdcdata,
      it_bdcdata TYPE TABLE OF bdcdata.
    wa_bdcdata-program = 'MYPROGRAM'.
    wa_bdcdata-dynpro = '1000'.
    wa_bdcdata-dynbegin = 'X'.
    APPEND wa_bdcdata TO it_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'P_CARID'.
    wa_bdcdata-fval = 'AA'.
    APPEND wa_bdcdata TO it_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'P_CONID'.
    wa_bdcdata-fval = '017'.
    APPEND wa_bdcdata TO it_bdcdata.
    CALL TRANSACTION 'MYTRANSACTION' USING it_bdcdata.
    Unfortunately, I don't know how to set the values for the SELECT-OPTIONS screen fields. How to do this?
    I've Googled this and tried several guesses but none was found or successful. Thanks in advance.
    Regards,
    Haris

    Hi ,
      Better go for  SUBMIT report   instead of CALL transaction  ...
      find the name  of  report being called  on that transaction which you will be calling  . Use that report name in SUBMIT 
    Just take help from  below code .
    Before using do please read  by pressing f1 on SUBMIT  syntax .
    data:seltab     type table of rsparams,
             seltab_wa  like line of seltab.
        move: 'LANGU'  to seltab_wa-selname,
              'S'      to seltab_wa-kind,
              'I'      to seltab_wa-sign,
              'BT'     to seltab_wa-option,
              'D'      to seltab_wa-low,
              'I'      to seltab_wa-high.
        append seltab_wa to seltab.
        clear seltab_wa.
        move: 'E'      to seltab_wa-sign,
              'EQ'     to seltab_wa-option,
              'F'      to seltab_wa-low,
              space    to seltab_wa-high.
        append seltab_wa to seltab.
        clear seltab_wa.
        move: 'AUFNR' to seltab_wa-selname,
              p_aufnr to seltab_wa-low.
        append seltab_wa to seltab.
        clear seltab_wa.
        submit rkaep000  using selection-set 'VARIANT1'
                          with aufnr = p_aufnr
                          with selection-table seltab
                          exporting list to memory
                          and return .
    regards
    Deepak.

  • Combobox populate from HTTPService query

    I got this working with static XML files, but now its not
    working with HTTPService! I'm having problems getting a ComboBox to
    fill up with dynamic data from an SQL query which spits back XML
    data. I am basically filling one ComboBox based on the selection
    from another ComboBox. On startup, I call this method:
    public function loadSystems(serv:HTTPService, s:String) :
    void {
    var params:Object = {};
    params[s] = s;
    serv.send(params);
    To fill in the first ComboBox, which is defined as:
    <mx:ComboBox minWidth="130" maxWidth="130" id="mainSys"
    dataProvider="{sysOps.lastResult.system.data}"
    change="fillComboBox(mainSys, subSys, 'subsystem', subOps,
    sysIDs)" rowCount="10" />
    It fills up fine, but the fillComboBox method (below) comes
    up with a null result and fails
    // fill destination combobox based on selection from src
    combobox
    public function fillComboBox(src:ComboBox, dest:ComboBox,
    arg:String,
    serv:HTTPService, idArray:ArrayCollection) : void {
    var ind:int = src.selectedIndex;
    // choose ID from the ID array with the selecetedIndex
    var select:String = idArray.getItemAt(ind) as String;
    var params:Object = {};
    params[select] = select;
    params[arg] = arg;
    serv.send(params);
    dest.dataProvider = serv.lastResult.system.data; //
    serv.lastResult is null
    I know the server side is getting valid arguments in params
    and is spitting out valid XML so the problem is on the Flex side.
    Any ideas or help would be greatly appreciated. Thanks!

    Although caching is a common problem, that is not the cause
    of your problem. In Flex, all HTTPService calls are asynchronous,
    which means you cannot call the service and set the result in the
    same function like you are doing in your fillComboBox method. You
    need to add an event listener and get the result in a different
    method. However, in your function you are also passing the
    destination which complicates things. Instead of passing the
    destination, you could try passing a function that will assign the
    result to the component you want dynamically:
    change="fillComboBox(mainSys, setSubSys, 'subsystem', subOps,
    sysIDs)"
    public function fillComboBox(src:ComboBox,
    resultFunction:Function, arg:String, serv:HTTPService,
    idArray:ArrayCollection) : void
    serv.addEventListener(ResultEvent.RESULT,resultFunction);
    private function setSubSys(evt:ResultEvent):void {
    subSys.dataProvider = evt.result.system.data;
    In general, it makes debugging much easier if you avoid
    binding HTTPService results directly to components and instead use
    a listener function where you can examine the result data for any
    problems.
    Vygo

  • Icons(images in Combobox) read from folder in project

    Hi everyone,
    I'm trying to populate these icons (images) from the img folder under my project. Most of these icons are in .png format and I want to populate them into the ComboBox which i have. On top of that, when the user selects one of the icons from the ComboBox, I need to show the icon on the ComboBox which now I'm only able to show the label that is being tagged to it. I saw the IconComboBox.as example but I can't apply them to my current design.
    Is there a way to achieve it?
    My codes for the CheckBoxes and ComboBoxes:
    <mx:Panel id="layerPanel" backgroundColor="#ffffff" height="220" width="220"
      title="Layer Control Manager" showEffect="WipeRight" hideEffect="WipeLeft"
      horizontalScrollPolicy="off" verticalScrollPolicy="off">
      <mx:VBox height="140" width="400" horizontalScrollPolicy="off">
       <mx:List id="layerList" itemClick="layerList_changeHandler(event)"
       alternatingItemColors="[#EEEEEE, white]" selectable="true"
       dataProvider="{lstDataProvider}" labelField="name" height="190" verticalScrollPolicy="off">
       <mx:itemRenderer>
        <mx:Component>
         <mx:HBox>
          <mx:CheckBox id="chkBox" change="layerCheckBox_onChange(event);">
          <mx:Script>
          <![CDATA[
          import mx.controls.Alert;
          import mx.events.FlexEvent;
          override public function set data(value:Object):void
           super.data = value;
           if(value != null)
            chkBox.selected = value.isSelected;
            if(!chkBox.selected)
             comboBox.selectedIndex = -1;
             comboBox.prompt = "Please Select";        
             comboBox.enabled = false;
          private function layerCheckBox_onChange(evt:Event):void
           data.isSelected = !data.isSelected;
           if(data.isSelected)
            comboBox.enabled = true;
           else
            comboBox.enabled = false;
           if(data.isSelected && comboBox.selectedIndex > -1)
            this.dispatchEvent(new Event("addImageToApplication", true));
          ]]>
          </mx:Script>
          </mx:CheckBox>
          <mx:Label text="{data.label}" />
          <mx:ComboBox id="comboBox" enabled="false" width="100%" change="onComboBoxChange(event)" dataProvider="{outerDocument.comboBoxArray}" prompt="Please Select">
           <mx:Script>
            <![CDATA[
             import mx.controls.ComboBox;
             private function onComboBoxChange(evt:Event):void
              var myCombo:ComboBox = evt.currentTarget as ComboBox;
              //if(data.label == myCombo.selectedItem.label)
               outerDocument.comboImageUrl = myCombo.selectedItem.src;
               if(data.isSelected)
                this.dispatchEvent(new Event("addImageToApplication", true));
            ]]>
            </mx:Script>
           <mx:itemRenderer>
            <mx:Component>
             <mx:HBox horizontalScrollPolicy="off">
              <mx:Image source="{data.src}" width="20" height="20" maintainAspectRatio="false" />
              <mx:Label text="{data.label}" />
             </mx:HBox>
            </mx:Component>
           </mx:itemRenderer>
          </mx:ComboBox>
         </mx:HBox>
        </mx:Component>
       </mx:itemRenderer>
       </mx:List>
      </mx:VBox>
    <mx:VBox top="165" left="30">
      <mx:Button label="Reset List" width="160" id="resetBut" click="resetList()"/>
    </mx:VBox>
    </mx:Panel>

    http://blogs.adobe.com/aharui/2007/04/icons_in_combobox.html
    This didn't work for you?
    - Jason

  • Clearing TextFlow selection

    How can I forcibly clear all selections and caret cursors from a TextFlow?  There are no methods in SelectionManager that accomplish this.  SelectionManager.selectRange() selects a range - but how do I unselect EVERYTHING?
    I need to force a TextFlow (ie. associated Containers) NOT to show any selections or caret cursors.  I only want one TextFlow to appear to have keyboard focus.
    I have an application with more than one TextFlow on the screen.  Everything works fine when I test the application in the browser (apart from a small problem setting focus initially - that doesn't happen in AIR), but when I build it as an AIR application I get multiple flashing carets or selections on the screen.  One for each TextFlow.

    selectRange(-1,-1) clears the selection.
    Richard

  • Automatic "Clear my Selections" (script provided)

    Hi everyone,
    I didn't find anything useful on the Internet apart from creating a "Clear my Selections" button (not so friendly for the user): using jQuery I've been able to create a small script that enables you to automatically clear the selections of a dashboard if you're coming from a dashboard that is not itself (otherwise it'll refresh continously). Here you can find the script:
    <script src="yourserver\jquery-1.4.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
         $(document).ready(function() {     
              var r = document.referrer;
              if(r != "http://yourserver/analytics/saw.dll?Dashboard")
                   return PersonalizationEditor.removeDefaultSelection(false);
    </script>
    Just add it in a Text dashboard object and remember to use the "HTML content" flag!
    Hope this helps someone who had similar issues.
    Regards,
    Alberto
    Edited by: Alberto Vaghi on 29-giu-2010 8.32
    Edited by: Alberto Vaghi on 29-giu-2010 8.32

    ok, below is the script i am using in Textbox Dashboard object on my dashboard:
    <html>
    <head>
    <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function);
    function()
         var r = document.referrer;
         if(r != "http://hs3piwm29:9704/analytics/saw.dll?Dashboard")
              return PersonalizationEditor.removeDefaultSelection(false);
    </script>
    </head>
    </html>
    Suppose i have three Tabs(say : A, B and C). In A Tab I am having dropdown prompt having two values. So what i want is that whenever i visit Tab A from any of the Tab X,Y Zee. That prompt get clear automatic and set default value. It should not show the previous selected value. hope this scenario helps you to understand my problem.
    It will be good for me if you send me ur email address. We can have a conversation over there. if possible you can give me a call at +91-9213626363 or +91-9560926363 my name is Mohammad Rafi Ansari or tell me your no i will call you.
    Thanks & Regards
    Mohammad Rafi Ansari

  • I am unable to synch music from selected playlists in my iTunes library onto my new iPod Classic, despite meticulously following the User Guide.

    I just purchased an iPod Classic, and after making sure I had the latest ver. of iTunes on my Intel MacMini, printed out the User Guide and carefully began learning how to operate the iPod. My first step was to ensure I had manual control (vs. auto synch) because I want only selected songs and playlists on the iPod, not my whole iTunes Library.
    On pg. 24 of the Guide is the topic "Synching music from selected playlists onto iPod Classic." Just what I wanted. OK, I selected iPod "in the source list" (aside: Shouldn't it be "in the device list?" I dispair of imprecision). This brought up the iPod Summary page, showing I had selected Open iTunes when connected and Manually manage music and videos. Next I clicked on the Music tab.
    This presented me with Synch Music next to an empty check box. Below it, and entirely grayed out was:
    Entire music library (showing a checked box)
    Selected Playlists, artists, albums and genres (next to an unchecked box).
    There's also a third grayed out item: Include music videos that is checked.
    When I selected Synch Music, I got the message: "Are you sure you want to removed existing mlusic, movies and TV shows from the iPod and synch with this iTunes LIbrary?   I selected Cancel because:
    1. The grayed option Entire Music Library is checked, not mly preferred option of Selected playlists, artists, albums and genres. .
    2. I can't find anywhere in the User Guide how to "Select the Playlists" I want to synch to my iPod. At present all I have in iTunes is my list of playlists in the left hand side bar.
    OK, my first thought was the checked box in the iPod's Summary window: Manually manage music and videos. So I went there and unchecked it, which immediately brought up an alert  to the effect "Are you sure you want to automatically synch your entire iTunes library, etc. etc...? I quickly cancelled. Thus, I seem to be in a Catch-22 situation. 
    So the questions are:
    How do I resolve the Synch Music issue so I am assured only selected playlists will be sent to my iPod?
    How do I create a list of playlists in my iTunes library to be transferred to my iPod?
    How do I manually move a playlist in my iTunes library to my iPod's lists of playlists?
    Any help much appreciated. Thanks to all.
    John in the Pacific Northwest

    For the immediately problem, you can shut down the computer and disconnect the iPod.
    There may be a process (program) running on your computer in the background that continuously monitors mounted volumes for things like maintenance, data corruption, and malware.  The iPod's storage is a mounted volume.  If you know of any such program, such as an "anti-virus" utility, and it has settings that allow you to exclude certain volumes, you can set it to ignore the iPod "disk" when connected.
    Also, if you are using automatic syncing (not the manual method) to load the iPod, and you have Enable disk use turned ON, turn it OFF.  With Enable disk use turned OFF, iTunes only mounts the iPods disk when syncing, then immediately unmounts the disk.  Thus, other processes you have running on your PC (not iTunes) will have less of a chance to make the disk "in use" and cause this problem.  You won't even have to eject the iPod before disconnecting.

  • Setting current values in Multiple Select List in SQL Query based Report

    Hi,
    I have a report based on a sql query that contains a multiple select list. Unfortunately I cannot get the multiple select list to display the current values (p_value) correctly. I have created a page item, :p311_current_versions, that is set using a pre-header process and it returns a value with a colon delimited format e.g. '10.1.2.1.0:10.1.2.2.0'. Then this item is used in the sql query to set the current value (p_value) of the apex_item.select_list_from_query function. However when the table is displayed, instead of having two entries, 10.1.2.1.0 and 10.1.2.2.0 selected, it has an extra entry '10.1.2.1.0:10.1.2.2.0' selected.
    Here is my code:
    select distinct a.product, a.version from (
    select distinct
    apex_item.display_and_save(2,product)||apex_item.hidden(1,env_product_id) PRODUCT,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(3,decode(product, 'HTTP Server' , :p311_current_versions, version), 'SELECT distinct version d, version r FROM ebs_tech_stack where
    product ='''||PRODUCT||'''',
    decode(PRODUCT, 'HTTP Server' ,'multiple="multiple" style="width:170px"','style="width:170px"'),
    'NO') as version
    from ebs_environment_tech_stack
    where environment_id = :p311_umgebung_id) a order by a.product
    If anyone can help me figure out how to set the current values correctly I'd be really grateful!!
    Thanks in advance,
    Jean

    Jean,
    I don't think this is possible using the apex_item package. The select_list_from_query function accepts only a single value for the second parameter.
    Scott

  • I just purchased the airport Express to use in hotels while traveling to create a wireless network from the hotels wired dsl.  A friend said to set up the network from home prior to traveling.  How do I set this up?  Thanks.

    I just purchased the airport Express to use in hotels while traveling to create a wireless network from the hotels wired dsl.  A friend said to set up the network from home prior to traveling.  How do I set this up?  Thanks.

    In addition to RyanJC's comments, the 802.11n AirPort Express Base Station (AXn) can store up to five different http://docs.info.apple.com/article.html?artnum=108081 configuration profiles. You will need to use the AirPort Utility to create & save these profiles.
    To create a new profile:
    Open AirPort Utility, select your AX from the list, and then, click "Manual Setup."
    From the AirPort Utility menu, select "Base Station," and then "Manage Profiles."
    Click "+" to create a new profile; give it a name, and then, click OK.
    Set options, such as network name, passwords, Internet connection method, etc.
    When done setting the options, click Update.
    To switch profiles:
    Open the AirPort Utility, select your AX from the list, and then, click "Manual Setup."
    From the AirPort Utility menu, select "Base Station," and then "Manage Profiles."
    Click on the desired profile, and then, click OK to apply the new profile and restart the AX.
    Just remember to switch to the desired configuration profile before removing power from the AX.

Maybe you are looking for