Dynamic parameter with 'type-ahead' capability

Hi,
How do I create a dynamic parameter that will return a drop down list of over 11,000 records in alphabetic order that I can then select the value I want by starting to type in the value.  For example, in a list of cities of the world I want to select 'London' so I type in an 'L' and the list moves to the first city starting with an 'L', I then type an 'o' and the list goes to 'Lo' etc.
At the moment only 30 values appear in the drop-down list and I can only enter the first letter.
I want to use this value as the parent for a cascading parameter.
Thanks, Colin

The dynamic parameter does not have the functionality to 'type-ahead' and go to specific values in the list in that manner. The most you can do is go to values that start with a specific letter and scroll through them. This behavior is occurring by design.
By default, Crystal Reports will only return the first 1000 unique values for a dynamic parameter. This can be changed through a registry entry.
For information on changing the values retrieved for the dynamic parameter, you can refer to the following Business Objects Note.
- Go to this link
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
- Search for the Note: 1218588
When using a dynamic parameter, the limit will be a combination of all the values return at each level to reach the total number of records returned. Also the more records that you return to the dynamic parameter, the longer it will take to retrieve the data from the database.

Similar Messages

  • JComboBox with type-ahead capabilities?

    Hi, guys:
    I have a JComboBox with a list of string items. Since the list is very long (with several hundred of items), I would like to implement someting like
    the following so that use does not have to scroll down the list to search for an item: when user types the starting letter of an item, it should locate the first item starting with this letter. IE address bar has this kind of type-ahead capability
    I am wondering how I can do the similar thing using Swing JComboBox?
    regards,

    Thanks for your sample, it works.
    Here is the "old code" I am talking about. I slightly modified it and add a main method. It looks fine, but it just does not work. I really have no clue why this one just does not work:
    import java.awt.event.KeyListener;
    import java.util.Vector;
    import javax.swing.ComboBoxModel;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class SelectableComboBox
        extends JComboBox
        protected boolean required;
        protected JLabel fieldLabel;
        public SelectableComboBox()
            super();
        public SelectableComboBox( final boolean required )
            super();
            this.required = required;
        public SelectableComboBox( final ComboBoxModel model )
            super( model );
        public SelectableComboBox( final Object[] objects )
            super( objects );
        public SelectableComboBox( final Vector v )
            super( v );
        public void setEnabled( final boolean b )
            super.setEnabled( b );
            if( this.fieldLabel != null )
                this.fieldLabel.setEnabled( b );
        public JLabel getLabel()
            return this.fieldLabel;
        public void setLabel( final JLabel l )
            this.fieldLabel = l;
        public JLabel createLabel( final String s )
            this.fieldLabel = new JLabel( s );
            return this.fieldLabel;
        public boolean isEquals( final String s )
            if( this.fieldLabel != null && this.fieldLabel.getText() != null
                    && s != null )
                return s.equals( this.fieldLabel.getText() );
            return false;
        public String toString()
            if( this.fieldLabel != null && this.fieldLabel.getText() != null
                    && this.fieldLabel.getText().length() > 0 )
                return this.fieldLabel.getText();
            return super.toString();
        public void setRequired( final boolean req )
            this.required = req;
        public boolean isRequired()
            return this.required;
        public JTextField getTextField()
            int total = getComponentCount();
            JTextField field = null;
            for( int i = 0; i < total; i++ )
                if( getComponent( i ) instanceof JTextField )
                    field = (JTextField) getComponent( i );
                    break;
            return field;
        public JButton getButton()
            int total = getComponentCount();
            JButton button = null;
            for( int i = 0; i < total; i++ )
                if( getComponent( i ) instanceof JButton )
                    button = (JButton) getComponent( i );
                    break;
            return button;
        public void addKeyListener( final KeyListener l )
            JTextField field = getTextField();
            if( field != null )
                field.addKeyListener( l );
        public void removeKeyListener( final KeyListener l )
            JTextField field = getTextField();
            if( field != null )
                field.removeKeyListener( l );
        public static void main( final String[] args )
            JFrame fr = new JFrame();
            fr.setSize(150,75);
              fr.setLocation(400,300);
              fr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel jp = new JPanel();
              SelectableComboBox cb = new SelectableComboBox();
            cb.addItem( "Abc" );
            cb.addItem( "cbs" );
            cb.addItem( "nbc" );
            cb.addItem( "fox" );
            cb.addItem( "wb" );
            cb.addItem( "ycc" );
              jp.add(cb);
              fr.getContentPane().add(jp);
            fr.pack();
            fr.setVisible( true );
    }Appreciate your help.

  • Dynamic Actions with Multiple Actions Capability

    Dynamic Actions with Multiple Actions Capability
    How can I get Dynamic Actions to work on Actions that are stored solely on IT0302 due to the multiple relationship to a previous Action that is stored on both IT0302 and IT0000?
    When multiple actions on a given day are executed, the dynamic action from the first action entered is executed twice - when it should only execute the first time with the second actions dynamic action triggering the second time.
    Thanks

    When there are multiple actions with the same effective date the wrong dynamic action is triggered.  For example, if I have an Expat Return To Home action followed by an Internal Move action with the same effective date the below events occur:
    1.  IT0001 is updated due to Expat Return to Home - triggering the Dynamic Action off of IT0000 which is Expat Return to Home (Correct)
                -  Action is stored on IT0000 and IT0302
    2.  IT0001 is updated due to Internal Move - triggering the Dynamic Action off of IT0000 which is Expat Return to Home (Incorrect - background processing creates data not needed)
                -  Action is stored only on IT0302
    Question:
    How can we leverage Multiple Actions with the same effective date while continuing to use Dynamic Actions?

  • Dynamic parameter with unlinked table

    Post Author: martinh
    CA Forum: Data Connectivity and SQL
    Hello,
    I have 2 tables in my database. One table (table A) is for selecting the data (all kind of fields)
    The other table (table B) is only to be used to have a parameter selection (table with name, value records). These tables have no link with eachother.
    I need to have 8 parameter fields and each parameter field must pick a value from table B.
    In my recordselection (on table A) I have tests to select records depending on parameters.
    I have this working using 8 static parameters, but I have a list of 16 values.
    So that means that for each of the 8 parameters I must enter those 16 values (and also in formula-fields I have make tests; total 8x16 lines of coding)
    Therefore I wanted to use a table with the 16 values and link the 8 parameters to table B.
    The problem is that CR says that there are 2 startpoints and also I see that the data is selected several times.
    So how can I use table B only for the parameters without the need of linking this table B to table A, because there is no way to link this.
    Hope anyone can help, because I didn't fond any documentation talking about this situation.
    I'm using CR XI and CR 2008
    Thanks for your reply!
    Martin

    The dynamic parameter does not have the functionality to 'type-ahead' and go to specific values in the list in that manner. The most you can do is go to values that start with a specific letter and scroll through them. This behavior is occurring by design.
    By default, Crystal Reports will only return the first 1000 unique values for a dynamic parameter. This can be changed through a registry entry.
    For information on changing the values retrieved for the dynamic parameter, you can refer to the following Business Objects Note.
    - Go to this link
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    - Search for the Note: 1218588
    When using a dynamic parameter, the limit will be a combination of all the values return at each level to reach the total number of records returned. Also the more records that you return to the dynamic parameter, the longer it will take to retrieve the data from the database.

  • Dynamic parameter with an IMPORT statement

    Hello experts. I hope you can help me with this issue:
    I have a report performing an EXPORT statement into a Buffer:
      EXPORT I_USER    FROM P_USER
                    I_NAME    FROM P_NAME
                    I_SURNAME FROM P_SURNAM
               TO DATA BUFFER V_XPARVALUES.
    Then it calls the first FM where a type I program is created by using INSERT REPORT... This dynamic-generate INCLUDE has the explicits declaration for variables: I_USER, I_NAME, I_SURNAME.
    Afeter the dynamic Include generation, it calls a second FM, wich has the reference to the dynamic Include created before with the data declaration. The only thing remain is to IMPORT all the data from the buffer V_XPARVALUES:
    The following code lines are within a LOOP. wa_param-paramname has the name of the variable (I_USER, I_NAME I_SURNAME).
        ASSIGN (wa_param-paramname) TO
          FROM DATA BUFFER v_xparvalues.
    but what I need to achieve is dynamic parameters in the IMPORT statement.
    Had anybody came across this problem?
    I hope I have been clear with the explanation.
    Regards,
    Andrés Sarcevic.

    IMPORT/EXPORT scope didn't work out. Instead, I used CALL TRANSFORMATION and XML approach, besides some ABAP creativity.

  • How to add a dynamic parameter with VB 6?

    I'm building a simply application that will open crystal 11 reports and add a single parameter. I've been able to get this working however I don't know how to set the parameter as dynamic and add to the list of values?

    Hi Jason,
    Please search Forums before posting a question. There are others doing the same whcih include samples on how to. Here's one of them: Loading a prompt list dynamically on an ASP.NET page in Crystal 11
    I assume you are using the RDC ( craxdrt.dll ). The RDC has been deprecated since version 9 meaning there have been no updated or new fucntionality added to it. Since Cascading Parameters were introduced in CR 11 the RDC has no API available and nor does the .NET components. Check the posting above for more info.
    Also the RDC is not supported in .NET so you should upgrade CR and move to .NET Suite.
    Thank you
    Don

  • Read parameter with type ref to

    Hi,
    I am implementing BADI "HRPAYFR_N4DS_CUST". In this, in one of the method there is a parameter (importing) "IO_N4DS_DAQ" type ref to "IF_HRPAYFR_N4DS_DAQ".
    Can you please let me know how to read PROCESS_EMPLOYEE-IO_EMPL -> CONSTRUCTOR-IV_PERNR value.
    Thanks,
    Satish

    Hi Sathish,
    In BADI  implementation try to get the PERNR like
    LV_PERNR = IO_N4DS_DAQ->MO_EMPL->MV_PERNR.

  • Problem with type ahead, maybe known as keyboard buffer or keyboard buffering

    Hi, I'm new to Lightroom and am halfway through Martin Evening's excellent book, but there's a problem I have which I can't find an answer to anywhere so far.
    I work on an older PC that has three screens.  My problem is if I have LR on one screen and type into an application in another screen, or rather think I'm typing into the other application but actually the LR screen is still active, then LR basically goes nuts as it attempts to carry out what is in effect a random series of keyboard shortcuts.  I have to wait for LR to finish jumping about and then so a long series of undo's and hope that one of the shortcuts wasn't a delete.
    It's occurred to me within LR when I've been typing into the keywords box and predded Enter twice by mistake to confirm an auto complete suggestion by LR and so subsequently exited the keywords box causing LR to interpret all my following keyword letters as commands.
    Is there any way to change this? To my mind there shouldn't be any need for LR to read from the keyboard buffer at all.  Is there any way to turn off keyboard shortcuts either all of them or selectively?

    Biganon,
    If you are willing to experiment, you could try the following simple xorg.conf:
    Section "Device"
    Identifier "Configured Video Device"
    Driver "nvidia"
    EndSection
    Section "Screen"
    Identifier "Default Screen"
    Device "Configured Video Device"
    DefaultDepth 24
    EndSection
    This minimal xorg.conf is only needed because xorg must be told to use the nvidia drivers.
    It should figure everything else by itself.
    For the Keyboard and mouse handling, install xf86-input-evdev, if not already there.
    Start hal from the daemons Line in /etc/rc.conf:
    DAEMONS=(syslog-ng network netfs !dbus hal ....
    For the Keyboard layout, copy the file:
    /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi
    to
    /etc/hal/fdi/policy/10-keymap.fdi
    and edit this copy as follows:
    <merge key="input.xkb.layout" type="string">ch</merge>
    <merge key="input.xkb.variant" type="string">fr</merge>
    I don't particularly appreciate this fdi thing, but, from experience, letting a particular
    Desktop/Window Manager manage the keyboard layout is even worse.
    Further info at:
    http://wiki.archlinux.org/index.php/Xor … otplugging
    Needless to say, if you try this, backup your original xorg.conf.
    Mektub

  • (Cont)Passing dynamic parameter with the URL while submitting the form

    Hi all,
    My question is based on this link --> http://forums.adobe.com/message/4942572#4942572
    May you kindly refer to the link above for reference.
    My question is suppose the client side have a html page with a url, when the user click on the link, how the adobe livecycle directly receive the link that clicked from the user? is it possible to do that? Please advise.
    Thanks a lot.

    please help....

  • Can I modify the data type of a dynamic parameter?

    I am using CR2008 against an Oracle 11 db and have a report with dynamic parameters.
    One of the report sources is a custom view that selects all of the possible 'pay ending dates' where one of the fields from this view is used as the source for the dynamic parameter.
    The view performs a TRUNC on the date field in an effort to eliminate the TIME component.
    The problem is that the parameter definintion defaults to DATE/TIME (vs. just DATE). I'm wondering if there is any way to modify the data type of the parameter to be DATE only.
    I've searched several forumns but have not found anything.
    One solution I can think of is to have the custom view format the date field as a VARCHAR (sans the time component) which I assume would force the dynamic parameter data type to string, and then have the report perform a todate function on the value when applying the criteria.
    Anyone else have an idea? Just seems like CR should allow the developer to specify the data type- especially b/w Date and Date/Time, rather than make an assumption.
    Thank you in advance-
    emaher

    emaher,
    Here's what you can do:
    Leave the existing date column as it is in the view...
    Just add another column to the view that casts the the date as a VarChar data type and formats the date as you would like it to be.
    So now you'll have 2 date columns in the view... 1 that's still a date and another that a character string.
    Now for your parameter, use the date version as the parameter value and the text version as the parameter description.
    Be sure to set the "Prompt with description only" is set to true.
    This way the user sees the LoV in the desired format but there's not need to wrangle it back into a date for data selection.
    HTH,
    Jason

  • Type-ahead like in address book?

    I'm developing a simple app that displays a list, on selection the item details are displayed. Since the list is very long, I'm looking for type-ahead capability like the address book has (e.g. on 6310i). Is this possible with MIDP?
    Thanks,
    Andi

    I did something along those lines for my own list control.
    the best idea i had was that i didn't try to guess what letter the user meant to get, but rather worked off the numeric sequence. I matched all possible combinations of letters from the number keys hit so far.
    Turned out this worked really well, you could get down to a few hits out of 2-300 within 3 or 4 keypresses.
    screenshots at:
    http://homepages.paradise.net.nz/section8/

  • IMPORT from database with dynamic parameter list

    Hi Gurus,
    Iu2019m having problems during import from a cluster table.
    I wanu2019t to do an import with a dynamic parameter list, but I cannot get it to work.
    Sample code ********
    DATA: BEGIN OF st_key,
    report LIKE rsvar-report,
    variant LIKE rsvar-variant,
    END OF st_key.
    DATA dirtab1 LIKE cdir OCCURS 10 WITH HEADER LINE.
    DATA dirtab2 LIKE cdir OCCURS 10 WITH HEADER LINE.
    st_key-report = 'ZPRG'.
    st_key-variant = 'VAR1'.
    IMPORT DIRECTORY INTO dirtab1 FROM DATABASE vari(vb) ID st_key.
    IMPORT DIRECTORY INTO dirtab2 FROM DATABASE vari(va) ID st_key.
    DATA: tmp_var(100)   TYPE c.
    This works - P_BWTAR is a parameter from the selection screen registred in VARI
    I'm getting the content of the field in tmp_var
    IMPORT p_bwtar TO tmp_var FROM DATABASE vari(va) ID st_key.
    This does not work - the parameter P_BWTAR is in the dirtab2-name
    I'm not getting the content
    LOOP AT dirtab2.
        IMPORT dirtab2-name FROM DATABASE vari(va) ID st_key.
      ENDIF.
    ENDLOOP.
    I have tried the syntax IMPORT (dirtab2-name) ........
    but this fails the syntax check.
    Please - if you have any suggestions  :o)
    Best Regards,
    Vibeke

    Dear Vibeke,
    Could you please explain us how you solved the problem because you have the same issue ?
    thanks a lot
    KR
    véronique

  • HasValue with dynamic parameter

    Hi. Here is my hasValue syntax:
    (if HasValue ({?Manager - f-name})then {rm_cname.type-code} = "icm" and {rm_cname.f-name} = {?Manager - f-name} and
    {rm_cname.l-name} = {?Manager - l-name})
    It works when I select the two cascading values, but if I leave f-name blank, it fails. Also, the dynamic list for f-name stops in mid-J's....A to J is broken into 3 subgroups, but then it stops at Jay with lots of folks after that not showing.
    Can anyone help?
    Thanks!!
    Robin

    Thanks to my responders, I will look into the reg entry to control the max number for the dynamic parameter, although reg hacks burn me...too many report users in our envirnoment.
    Here is the final code that worked:
    (not HasValue({?Manager - l-name}) OR {rm_cname.l-name} = {?Manager - l-name}) and
    (not HasValue({?Manager - f-name}) OR {rm_cname.f-name} = {?Manager - f-name})
    With the parameter set as Optional, of course.
    Hope this helps anyone else having problems with this.
    Thanks again.
    Robin

  • Cannot assign an empty string to a parameter with JDBC type VARCHAR

    Hi,
    I am seeing the aforementioned error in the logs. I am guessing its happening whenever I am starting an agent instance in PCo. Can somebody explain whats going on?
    Regards,
    Chanti.
    Heres the complete detail from logs -
    Log Record Details   
    Message: Unable to retreive path for , com.sap.sql.log.OpenSQLException: Failed to set the parameter 1 of the statement >>SELECT ID, PARENTID, FULLPATH, CREATED, CREATEDBY, MODIFIED, MODIFIEDBY, REMOTEPATH, CHECKEDOUTBY FROM XMII_PATHS WHERE FULLPATH =  ?  <<: Cannot assign an empty string to a parameter with JDBC type >>VARCHAR<<.
    Date: 2010-03-12
    Time: 11:32:37:435
    Category: com.sap.xmii.system.FileManager
    Location: com.sap.xmii.system.FileManager
    Application: sap.com/xappsxmiiear

    Sounds like a UI browsing bug (when no path is selected from a catalog tree folder browser) - I would suggest logging a support ticket so that it can be addressed.

  • Db Adapter: problems by calling a procedure with type as parameter

    Hi,
    We using a db adapter in a bpel process.
    In that dapter we call a procedure with types as in and out parameter
    package.procedure(p_in IN in_t, p_rsult OUT result_t).
    When we calling the procedure, we don't call the procedure directly.
    We call that procedure in a schema who have the execute rigths for the package and the types.
    When we run the process we get the error message
    unable to convert the xsd element p_in whose user defined type is in_t
    cause: java.sql.SQLException: ora-01436 connect by loop in user data
    I am not shore if I draw the right conclusions.
    Is it rigth that bpel have a problem by using types as parameter when using two schematas? Isn't it a bug.
    For every help I was thankful.
    Thanks in advanced.
    Michael

    Hi,
    thanks for the hint. I have implemented a wrapper package and it's working well.
    Only one crux. The parameter of the called procedure are data types and not simple types.
    CREATE OR REPLACE TYPE pesa_db_return_t AS OBJECT
    (SUCCESS_MSG varchar2(255)
    ,FAULT_SQLCODE varchar2(255)
    ,FAULT_SQLMSG varchar2(255)
    Wrapper package...
    IS
    PROCEDURE prc_writeReOinDB (p_AuftragRechnungOnline IN pesa_data.pesa_tivu_reo_t
    ,p_result OUT pesa_data.pesa_db_return_t)
    IS
    BEGIN
    pkg_pesa_reo.prc_writeReOinDB (p_AuftragRechnungOnline => p_AuftragRechnungOnline
    ,p_result => p_result
    END prc_writeReOinDB;
    END pkg_pesa_wrapper;
    So I have to declare the parameter with the schema user in front of.
    Now, we have deployed thes sources on a second enviroment and get following error:
    <2008-04-22 15:01:25,749> <ERROR> <eweber.collaxa.cube.engine.dispatch> <BaseScheduledWorker::process> Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.instance.CallbackDeliveryMessage"; the exception is: Type class not found.
    Cannot find class for type "org.apache.xerces.dom.ElementNSImpl". Please check that the class is located in the classpath.
    You have a hint for me what I have to do?
    Thanks in advanced,
    Michael

Maybe you are looking for

  • Can i drag a clip from the desktop directly into the timeline without importing it

    its seems so easy now maybe I've been blind to this option before on 10.1.1 simply dragging  from the desktop or its source a clip to the story/ timeline itself not having to use   file> import media which is a lot of steps IMHO i notice when i do it

  • IDoc Acknowledgement Issue in SAP PI 7.3

    We have configured IDoc to IDoc scenario between two ECC system using IDOC_AAE adapter. When we run the RBDSTATE program to trigger ALEAUD IDoc it is getting failed in SM58 in ECC system. But when we configure a separate scenario to transfer ALEAUD I

  • I can't use my iPhone 5 in China

    Dear Sir or Madam, As I bought my iPhone 5 in the USA from Sprint, full price with tax, unlocked ,it was excepted to be a global phone. But now I come across with some problems in China using local carrier, everything is working properly except sendi

  • How can I make a backup of all my Emails?

    I have to make a backup of my Emails and files etc. (DDS) in Mozilla Thunderbird in connection with moving my Email from an old account to a new account. Can anyone please advise how to do this?

  • What tran do u use daily at ur job work  how do u identifies in r3

    Hello Experts Could u provide me the answers for the following questions. I would be appreciate for ur reply 2)     how do u identifies that a job is not running say hr 1:10min data load from r/3 to bw 3)     what tran do u use daily at ur job work