RE: Setting initial DropList selection

Gary writes...
>
Does anyone know how to set the initially displayed selection
of a DropList to something other than the first element of the
array. <DropList>.IndexValue is supposed to be settable
according to the documentation, but it doesn't seem to be so.Gary, try setting the <DropList>.IndexValue in your Display method AFTER
the "self.Open()" call. I reported this bug sometime ago, and I believe
it will be fixed in an up coming build of R3.
Steve McIntyre
MCI Systemhouse
Applied Technology Research
------------------------------------

Hi Gary !
If setting <DropList>.IndexValue doesn't work, I suppose you set it
before invoking the Self.Open() method of your UserWindow.
Try to set the IndexValue attribute of your DropList after invoking the
Self.Open() method. I think it will work.
Hope this helps !
- Manuel -
Manuel DEVEAUX
Fort&eacute; Developer
Mutuelle Pr&eacute;viade
Nancy, FRANCE
E-Mail : [email protected]
De : GARY DALE +44 (0)1473-222466[SMTP:[email protected]]
Date : mardi 13 mai 1997 15:40
A : [email protected]
Objet : Setting initial DropList selection
Does anyone know how to set the initially displayed selection of a DropList
to
something other than the first element of the array.
<DropList>.IndexValue is supposed to be settable according to the
documentation, but it doesn't seem to be so.
Gary Dale
Willis Corroon

Similar Messages

  • Setting initial DropList selection

    Does anyone know how to set the initially displayed selection of a DropList to
    something other than the first element of the array.
    <DropList>.IndexValue is supposed to be settable according to the
    documentation, but it doesn't seem to be so.
    Gary Dale
    Willis Corroon

    Hi Gary !
    If setting <DropList>.IndexValue doesn't work, I suppose you set it
    before invoking the Self.Open() method of your UserWindow.
    Try to set the IndexValue attribute of your DropList after invoking the
    Self.Open() method. I think it will work.
    Hope this helps !
    - Manuel -
    Manuel DEVEAUX
    Fort&eacute; Developer
    Mutuelle Pr&eacute;viade
    Nancy, FRANCE
    E-Mail : [email protected]
    De : GARY DALE +44 (0)1473-222466[SMTP:[email protected]]
    Date : mardi 13 mai 1997 15:40
    A : [email protected]
    Objet : Setting initial DropList selection
    Does anyone know how to set the initially displayed selection of a DropList
    to
    something other than the first element of the array.
    <DropList>.IndexValue is supposed to be settable according to the
    documentation, but it doesn't seem to be so.
    Gary Dale
    Willis Corroon

  • Setting initial UIPickerView selection without click on iPhone

    Is there a way to set the initial selection of a UIPickerView without generating the selection click? For example, I have a UIPickerView with 3 rows, and I want the 2nd row to be selected when the app starts. Right now, I'm calling this during initialization:
    picker selectRow:1 inComponent:0 animated:NO
    but it generates the same sound that plays when a user selects a row. The only way I've found so far to silently set the default selection relies on the undocumented method setSoundsEnabled.

    Hi Chris, and welcome to the Dev Forum!
    I've never read about any other solution besides setSoundsEnabled except for persuading the user to turn key clicks off in the Settings panel. But you reminded me of an idea I meant to try (atm all I have is a 1st gen touch and no ear phone plug).
    Try this if you haven't already: Create a UIPickerView in code, set only the dataSource, then select the rows you want. Then set the delegate and add the picker to a content view. If it still clicks prior to becomming visible, see if setting its hidden, alpha, or userInteractionEnabled properties has any effect. It doesn't make a lot of sense for an invisible picker to click, so I'm hoping some combination of circumstances will convince it that a click is inappropriate.
    If there's nothing in that idea, I'm afraid I can't help.
    \- Ray

  • How to set the parameter selection *optional* for each subreport?

    Hi,
    I am using Crystal Reprots 11.
    I create 10 subreports, and each subreport contains a Parameters Field.
    The 10 subreports are put in 10 footer sections in increasing order, i.e. subreport1, subreport2, subreport3, ..., subreport10.
    When I use "Print Preview" to take a look at the whole report, CR prompts a "Edit Values" window for selecting parameter values for all 10 subreports.
    For example, if I only select parameter values for subreport1 and click "OK", 9 error messages on the "Edit Values" window come out above the selection list box of every other subreports (i.e. subreport2 ~ subreport10) showing that: 'The value is not valid'.
    Sometimes, I just want to review some specific subreports but not all.
    How should I do to set the parameter selection optional (not mandatory) for each subreport?
    Thank you in adavance.
    Edited by: Holdup on Feb 17, 2012 3:44 PM

    Hi,
    Here's how you can make the prompts optional (Assuming you're using CR 2008 or higher):
    1) Go into each subreport
    2) You should see the parameter in the Field Explorer. Right-click the name and select Edit > Look for an option called 'Optional Prompt'. Set it to true
    3) If you have a record selection in the subreport, then you need to modify the selection formula to something like this:
    if not(hasvalue({?Parameter_Name})) then True else = {?Parameter_Name}
    Hope this helps!
    -Abhilash

  • How to programmatically set initial password when a user is created in OID

    We are using the odihragent synchronization process to automatically create users in OID when an employee record is created. We would like to set the initial password for the newly created user to their last name + the last 4 digits of their SSN.
    The odihragent process is successfully creating the user in OID and populates the last name and the last 4 digits of the SSN in OID. According to an open SR I have with Oracle, we cannot use the odihragent process to set the initial password because any time the employee record is updated, the synchronization process will reset the password to last name + SSN. They have recommended that we use a pl/sql plug-in to set the password using the WHEN_ADD plug-in procedure.
    I am new to using OID and plug-ins and the examples provided in the Developer's Guide are limited.
    I would like to know if anyone else is using plug-ins or another process to set initial passwords when a user is created? If you are using plug-ins would you be willing to share a code sample?

    I am surprised that I have not received any responses... Surely there are others who are experienced with programmatically setting passwords when new users are programmatically created. Does anyone have any pointers on how to best accomplish this?

  • How to add a dummy row in the result set of a SELECT statement.

    Hello Everyone -
    I have requirment to add a dummy row in the result set of a SELECT statement.
    For e.g. lets say there is a table Payment having following colums:
    Payment_id number
    status varchar2(10)
    amount number
    payment_date date
    so here is the data :-
    Payment_id Status Amount payment_date
    1 Applied 100 12/07/2008
    2 Reversed 200 01/ 06/2009
    3 Applied 300 01/ 07/2009
    Here is my SQL
    Select * form payment where payment_date >= 01/01/2009
    Output will be
    2 Reversed 200 01/ 06/2009
    3 Applied 300 01/ 07/2009
    My desired output is below
    2 Reversed 200 01/ 06/2009
    3 Applied 300 01/ 07/2009
    2 Reversed -200 01/ 06/2009 ------(Dummy Row)
    Thrid row here is the dummy row which I want to add when status is "Reversed"
    I would be very thankful for any kind of help in this regard ...
    Thanks,
    Gaurav

    Cartesion joining against a dummy table is a useful method of creating a dummy row:
    with my_tab as (select 1 cust_id, 1 Payment_id, 'Applied' Status, 100 Amount, to_date('12/07/2008', 'mm/dd/yyyy') payment_date from dual union all
                    select 1 cust_id, 2 Payment_id, 'Reversed' Status, 200 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 1 cust_id, 3 Payment_id, 'Applied' Status, 300 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 1 Payment_id, 'Applied' Status, 100 Amount, to_date('12/07/2008', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 2 Payment_id, 'Reversed' Status, 200 Amount, to_date('01/05/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 3 Payment_id, 'Applied' Status, 300 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 4 Payment_id, 'Reversed' Status, -400 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 5 Payment_id, 'Applied' Status, 500 Amount, to_date('01/07/2009', 'mm/dd/yyyy') payment_date from dual),
                    --- end of mimicking your table
          dummy as (select 'Reversed' col1, 1 rn from dual union all
                    select 'Reversed' col1, 2 rn from dual)
    select mt.cust_id,
           mt.payment_id,
           mt.status,
           decode(dummy.rn, 2, -1*mt.amount, mt.amount) amount,
           mt.payment_date
    from   my_tab mt,
           dummy
    where  mt.status = dummy.col1 (+)
    order by mt.cust_id, mt.payment_id, dummy.rn nulls first;
    CUST_ID     PAYMENT_ID     STATUS     AMOUNT     PAYMENT_DATE
    1     1     Applied     100     07/12/2008
    1     2     Reversed     200     06/01/2009
    1     2     Reversed     -200     06/01/2009
    1     3     Applied     300     06/01/2009
    2     1     Applied     100     07/12/2008
    2     2     Reversed     200     05/01/2009
    2     2     Reversed     -200     05/01/2009
    2     3     Applied     300     06/01/2009
    2     4     Reversed     -400     06/01/2009
    2     4     Reversed     400     06/01/2009
    2     5     Applied     500     07/01/2009Edited by: Boneist on 07-Jan-2009 23:10
    NB. You may have to mess around with the ordering if that's not come back in the order you wanted. You didn't mention what the rules were for any expected ordering though, so I've made up my own *{;-)
    Also, I added an identifier (cust_id) to differentiate between different sets of payments, since that's usually the case. Remove that if it's not applicable for your case.

  • How to use SET ID in select statement of SQ02

    Hi,
    I have a infoset, where for one of my Zfield, i have writen a select statement in order to get my ouput.
    if aufk-aufnr = 'XYZ'.
      select sum( FKBTR ) from fmifiit into zfmifiit
      where fikrs = aufk-kokrs
      and fipex IN capex
      and wrttp NE '51'.
    endif.
    For the above statement, i have created (with 10 single values, table name FMCI, field name FIPEX)  a SET id named CAPEX and used with IN operator.
    But when i generating the infoset i am getting error like below
    The IN operator with "CAPEX" is followed neither by an internal table nor by a value list
    I was using IN opeartor for set ids during validation / substitutions, where if i have to validate multiple single values.
    What to do here?
    Regards,
    Srinu

    [OPEN-SQL|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_GENERAL.htm] set of statement, [SELECT|http://help.sap.com/abapdocu_70/en/ABAPWHERE.htm] statement, [WHERE|http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP.htm] addition requires a selection table (type range, [WHERE - IN seltab |http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP_SELTAB.htm]) of parameter and not a set. We are in Abap here, not in a Customizing screen
    You have to convert the set to a selection table in an ABAP coding before using it in a SELECT statement.
    (Check FM like G_SET_TREE_IMPORT to import definition of set (values and intervals) and map them to a select-table, or ask a developper to perform it, look at G_SET_TREE_IMPORT -> select statement)
    Regards,
    Raymond

  • How to set the default selection to "Select All" in a Multi valued parameter in SSRS 2008?

    Hello Everyone,
    How to set the default selection  to "Select All" in a Multi valued parameter in SSRS 2008?
    Regards
    Gautam S
    Regards

    You need to specify "Default Values" in the report parameter property. Choose similar option used in the "Available Values" option, this will allow the parameter to check "Select All".
    Regards, RSingh

  • How to return the result set of multiple select statements as one result set?

    Hi All,
    I have multiple select statements in my stored procedure that I want to return as one result set 
    for instance 
    select id from tableA
    union 
    select name from table b 
    but union will not work because the result sets datatypes are not identical so how to go about this ?
    Thanks

    You have to CAST or CONVERT (or implicitly convert) the columns to the same datatype.  You must find a datatype that both columns can be converted to without error.  In your example I'm guessing id is an int and name is a varchar or nvarchar. 
    Since you didn't convert the datatypes, SQL will use its data precedence rules and attempt to convert name to an int.  If any row contains a row that has a value in name that cannot be converted to an int, you will get an error.  The solution is
    to force SQL to convert the int to varchar.  So you want something like
    select cast(id as varchar(12)) from tableA
    union
    select name from tableb
    If the datatypes are something other that int or varchar, you must find a compatable datatype and then convert one (or both) of the columns to that datatype.
    Tom

  • How can I get volume on my I6 to hear incoming calls . I went to setting , sounds, and selected a tone, but still no sound for incoming calls, texts, or other notifications.

    How can I get volume on my I6 to hear incoming calls . I went to setting , sounds, and selected a tone, but still no sound for incoming calls, texts, or other notifications.

    Hi rsample,
    Thank you for visiting Apple Support Communities.
    Your symptoms make it sound like the iPhone side switch is set to silent mode.
    iOS: Understanding sounds, ringtones, and alerts
    Set your device to silent mode
    iPhone: Toggle the Ring/Silent switch on the side of the device.
    Best Regards,
    Nubz

  • Query to set initial values

    Hi all,
    Is it possible to use queries to set initial values or change existing values?  For example, we are adding in a new sales employee that will be our sales rep for customers in a certain area.  Would it be possible to run a query that would set the Sales Employee field in the BP Master Data as this new sales rep if the customer is in that area?  If yes, what is the general process for using queries to set values in this manner (we have other things we would like to use this for as well, if its possible)?
    Thanks for the help

    Hi Todd,
    The best way to tackle this is probably to use a query to extract the business partners you wish to update and then use the Data Transfer Workbench to update the Business Partners in question.
    You could also add a Formatted Search to the Business Partner screen so all new Business Partners default to the correct Sales Person based upon territory/address or whatever criteria you like.
    Cheers,
    Sean

  • How to set the default selected option as NO_OPTION in a JoptionPane

    This is just an example program to create the same scenario in the project.When clicked on OK button, it will pop up a JOptionPane confirm dialog with YES-NO buttons.I want to set the default selected button as NO button. In the below program, the keyboard focus is set on NO button, but in the look and feel the selection is still YES button. Can anyone suggest a solution to make both the focus on NO button?
    public class Test extends JPanel implements ActionListener{
         Test() {
              JButton btn = new JButton("OK");
              this.add(btn);
              btn.addActionListener(this);
         public void actionPerformed(ActionEvent e) {
              Object[] o = {"Yes", "No"};
              JOptionPane p = new JOptionPane("Are u sure?",JOptionPane.QUESTION_MESSAGE,JOptionPane.YES_OPTION,null,o,null);
              //p.setWantsInput(false);
              p.setInitialSelectionValue(o[1]);
              try {
                   UIManager.setLookAndFeel(new MetalLookAndFeel());
              } catch (UnsupportedLookAndFeelException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              //p.setFocusCycleRoot(false);
              p.setInitialValue(o[1]);
         //p.getRootPane().getDefaultButton().requestFocusInWindow();
              UIManager.put("Button.defaultButtonFollowsFocus", Boolean.FALSE);
              p.createDialog(this, "").setVisible(true);
              if(p.getValue() == o[0]) {
                   System.out.println("yes");
              }else if(p.getValue() == o[1]) {
                   System.out.println("no");
              //p.setWantsInput(true);
              //p.showConfirmDialog(this, "Are u sure?");
              //p.setInitialSelectionValue(new Integer(JOptionPane.NO_OPTION));
         public static void main(String[] args) {
              Test t = new Test();
              JFrame f = new JFrame();
              f.getContentPane().add(t);
              f.pack();
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.setSize(500, 500);
              f.setVisible(true);
         }

    not sure what you're trying to do, but try this
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Test extends JPanel implements ActionListener
      Test()
        JButton btn = new JButton("OK");
        this.add(btn);
        btn.addActionListener(this);
      public void actionPerformed(ActionEvent e)
        Object[] o = {"Yes", "No"};
        int value = JOptionPane.showOptionDialog(null,"Are u sure?","",-1,-1,null,o,o[1]);
        if(value == 0) System.out.println("yes");
        else if(value == 1) System.out.println("no");
      public static void main(String[] args)
        UIManager.put("Button.defaultButtonFollowsFocus", Boolean.TRUE);
        Test t = new Test();
        JFrame f = new JFrame();
        f.getContentPane().add(t);
        f.pack();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setSize(500, 500);
        f.setVisible(true);
    }

  • Getting message : The result set for this selection was empty on sm20

    Hi,
       I assigned below parameters in rz10 :
    rsau/user_selection                                 1
    rsau/max_diskspace/per_day                  1950M
    rsau/max_diskspace/per_file                 650M
    rsau/enable                                               1
       I activated security audit profile in sm19 also.But when iam going to sm20 for analysis of security audit log iam not getting report iam getting this message  :     The result set for this selection was empty.
    Gudie me for the same.
    Thanku

    Hi,
    The result set for this selection was empty.
    I think your configuration is OK except one thing...
    Check in SM19, if you have selected "Filter Active" check box in "Filter 1 and Filter 2" screen and Also "Audit Classess".
    Even though security audit is enabled in SM19, without selecting filter it will not log the events and give you the above message.
    Regards.
    Rajesh Narkhede

  • How to use SELECTION-SET with FREE-SELECTIONS?

    Hi,
    how to use SELECTION-SET with FREE-SELECTIONS?
    Regards,
    Vinay.

    Check http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm

  • WD- SALV- Setting initial View dynamically

    Hi everyone,
    I'd like to have 2 different ALV initial views, depending on certain conditions in my program (two buttons, each of them calling the same ALV, but with different initial View)
    I'm settung at runtime the config_key when I initialize the ALV component, as Regina Breuer explained in the following forum
    Re: WDA ALV initial view
    After I run the program and I click on one of the buttons it works fine. But the initial view doesn't change even if I click on the other button, although in debugging mode I can see that the correct configuration key is being set.
    For any suggestions I woud be very pleased!
    Best Regards,
    Christian

    Hi Baldari,
    Please check this also..
    WD -SALV- setting initial view
    Cheers,
    Kris.

Maybe you are looking for

  • Iphone update 2.0 sync issue due to lack of permissions

    I found this posting in the ipod section. After countless hours on the phone with appple tech support and a 2 hour visit to the "genius bar" (the "genius" suggested I should go ask the geek squad for help!)this fixed my problem!!! Apparently, there a

  • Retrieval of the column name in Java Mapping

    Hi All I am presently working on JAVA mapping which retrives the data construct the xml I want to dynamically generate the xml tag name (table column names of the Table) is there any way to do it Thanks Jayaraman

  • Streaming a movie from Flixster & using Bluetooth speakers, my wi-fi connection keeps dropping

    When streaming a movie from Flixster and using Bluetooth speakers, my wi-fi connection keeps dropping, like every 2 seconds! Anyone have any suggestions on how to rectify this issue?  In fact, I don't even have to be streaming the movie. When I was i

  • Sync'ing Files Between Computers

    I've just invested in a MacBook Pro to go along with my iMac in my daily workflow. I have one folder where I save all my work files (graphic designer). What I'm trying to do is find a way where I can have a copy of this folder on each Mac, and it wil

  • Service support not working of webcam

    i am purchase a laptop envy 6 a weak before but its webcam not working.hp phone support not working properly.when i use phone support they did not pickup the call..please solve my problem as soon as possible.