'Read Ahead' functionality in JComboBox

Hi ,
Does any body know how to provide 'Read Ahead' functionality in JCombobox ?
Meaning, if my combo bo has four items say, Apple,Banana,Bag,Cat then
when I type 'B''A', 'Banana' should get selected. When I type 'G', 'Bag' should get selected.
This can be a very useful feature to the user. Can anyone please help me out for this ?
Thanks in advance

See StanislavL's reply in http://forum.java.sun.com/thread.jsp?forum=57&thread=369042&tstart=60&trange=15
--A                                                                                                                                                                                                                           

Similar Messages

  • Type ahead function in the implict list

    Dear Experts,
    I wonder if type ahead function can be added to search implicit list. I have looked for some info but it seems to me that it is not that simple. What I am looking for the same functionality as in the phone book. Any experiecence?
    Many thanks,
    seyyah

    Your best bet is to do it manually; draw the list yourself and intercept keypresses, interpreting them as required. You're right, it's not that simple!

  • Output Server & "Read Ahead" for record type indicator files

    I have a design requirement where I need to read to the end of the print file (record type indicator format) before I can complete the process of laying down the subforms. I need to lay down a subform on page one, but will not get the data element needed until the end of the file. It is a bill statement with line items listings. When run in a batch it can have single page and multi-page bills combined. I have heard of "read ahead" but don't seem to find any documentation on it. Can anyone verify this function and direct me where to find more information?
    Thanks, Philip

    One solution might be to add a preprocessing step before the merging. Use the transformation agent to extract the "data at the end", inserting it at the beginning. When jfmerge starts, the data is good as gold, and no jumping required. In my experience, Output Server isn't that good at jumping back and forth.
    Hope this helps,
    Vegard

  • Best practice for read-only functionality

    Hi,
    I'm part of the development team of a system with about 100 screens. The customer would like us to add some read-only functionality to the system, so that certain users are able to access the screens but not change any of the data on them. We already have policies in place on the database level that keeps read-only users from saving data, but it's not very user friendly to allow users to change data on a screen, only to tell them that they're not allowed to save those changes once they try to do so. It would clearly be better if all components are rendered as read-only components for read-only users, making them unable to make any data changes in the first place.
    User privileges in the system are controlled by roles defined and set in the system (not ADF roles or Weblogic roles). At any given time and place, it's possible to check whether the current user has a certain role. We already use this in a number of places to make it possible to control which user has access to which screens. In a few places we even control which functionality should be enabled for the current user within a screen, but mostly the access control is currently on the screen level. With read-only users getting access to all screens, it seems we will need lot of extra in-screen access control to keep these users from changing anything.
    But what's the best practice here? One way to go would be to add some logic to every single active component on every single screen, to determine whether it should be rendered as active or disabled/read-only. But that would require a lot of extra coding.
    So my question is: Is there a smarter way to do this? Maybe something done through skinning? Or something else?
    (I'm not sure how relevant this is for this sort of question, but we're currently using JDev 11.1.1.4.0, and expect to upgrade to 11.1.1.6.0 within the next 6 months)
    Best regards,
    Andreas

    Hi Guna, Puthanampatti and Don,
    Thanks a lot for your replies. I'm currently looking into implementing something along the lines of what Guna has suggested:
    Our application consists of a number of individual work spaces that are deployed as adflibs which have all been added to a "master application work space", and the master application is deployed as an .ear file. Most of the individual work spaces are for all the different functional areas of the application, with their own task flows, page fragments etc. The rest are work spaces with common functionality, like datamodel (entity definitions), utility methods, page templates, and framework extensions. In the latter, we have defined custom classes for all the base classes (somewhat similar to what Don describes, I believe).
    In our custom class for ViewRowImpl, I have added an isAttributeUpdateable method, and in our custom class for ApplicationModuleImpl I have added an isReadOnlyUser method. The isAttributeUpdateable method uses the isReadOnlyUser method to determine if the current user is a read-only user or not; if the user is a read-only user the isAttributeUpdateable method will return false, otherwise true. The isReadOnlyUser method in our base class is just a dummy method that always returns true. But in the ApplicationModuleImpl classes of our individual work spaces, i've written an override for isReadOnlyUser, giving the answer that is relevant for the work space in question (for instance, whether or not the current user has the role "User Administrator").
    That pretty much takes care of all input fields in tables and forms, which is a big step in the right direction. This still leaves some work to be done for components that are not directly linked to view object attributes (like buttons), but I guess that can't be helped. Also, there are a few of the work spaces that contain a number of pages that are related to different user privileges (as in: page 1 requires user privilege A, and page 2 requires user privilege B); in these cases I will have to do something different than just writing an override in the "local" ApplicationModuleImpl class.
    @Don: What you describe seems to be pretty close in functionality to what we already have, though your implementation is different from ours. You have used your custom base ApplicationModuleImpl class to keep read-only users from committing changes. We use Virtual Private Database and database policies to the same end: If a user without the required full-access role tries to commit data it will cause a database error, which we then handle in the application (so the user gets a message like "You don't have the required privileges to changes this data", rather than an ORA message). Unfortunately, our customers are not content with this. They want a solution where all input fields and most of the buttons etc. are disabled for read-only users, and that's why I'm looking into the best/smartest way to do this.
    @Puthanampatti: We already use something similar to what you're suggesting. The challenge I'm currently facing is how best to disable/enable components based on the current user's roles, not how to determine and store those roles.
    Best regards,
    Andreas

  • Read XML function - can't get it to work correctly to set metadata

    I've been working with the Read XML function in order to set metadata on assets with no avail. I'm using the following simple XML file in a Watcher folder with a poll watcher setup every 5 seconds, that then references a Read XML Response named "Update Asset Metadata" - to read the XML file and update the asset metadata. Nothing really happens even though the FCS Log file shows that the process is taking place to "update" the asset metadata. Any advice is appreciated. Thanks!
    FILE:
    <?xml version="1.0" encoding="UTF-8"?>
    <FinalCutServer>
    <request reqId="setMd" entityId="/asset/10">
    <params>
    <mdValue fieldName="Title" dataType="string">Text Info Change</mdValue>
    </params>
    </request>
    </FinalCutServer>

    I got the answer. You must type “*.xml” (that is, asterisk-dot-xml) in the Value field of Wildcard Include Filter for it to work correctly.

  • Using javascript to call a signed applet's read/write functions problem.

    Hi, I wan't to use javascript to call the read/write functions of my signed java applet.
    The applet can read/write fine, if its called from inside the applet, but when I make public functions to do the read/write and then call those functions from javascript, i get the old security exception.
    Has anyone done this before?
    Thanks

    From what I understand is that for example file IO can only be done if the current method
    has this privilege and the stack that called the current method had this privilege.
    Javascript doesn't have any privilege and calling methods that do file IO directly from
    javascript should not work, this bug was fixed in 1.4.2.
    The workarround AccessController.doPrivileged(new PrivilegedAction() { might allso be
    fixed in later versions since changing the privileges of currently executing code is
    someting that should not be possible when the currently executing code is called from
    "untrusted" (javascript) code.
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post

  • Reading SAP function modules using FromSAPIdentity pass

    Hi,
    We have SAP NW IDM 7.2 SP7 environment
    And I have been using FromSAPIdentity pass to read SAP function modules.
    A typical configuration will looks like below
    Above works like a charm and everything is as expected :-)
    Now i am trying to fetch data from another function module.
    Here the challenge is import parameter entry need to be provided with selection criteria say something like below for PARAMETER1
    SIGN=E
    OPTION=EQ
    LOW=<Value>
    HIGH=<Value>
    Does FromSAPIdentity pass accepts selection criteria input for "PARAMETERS" ?
    If yes, which format should i follow to provide those values ?
    Thanks
    Karthik

    Use DD03L table .
    Also use this FM.
    F4_DD_TABLE_FIELDS
    DD_GET_DD03P

  • How does the "Read TDMS" function work when reading part of a data file?

    Hi everyone,
    I have stored some rather large .lvm files that causing me a a big headache when trying to read/analyse the data.... As a work around I first convereted these files to .tdms.... Now the files are much smaller (50%) and can be load/plot within a couple of seconds rather than 10's of seconds.
    Specifically, the files include 7 channels of data that were sampled at 2kHz for about 8-9 mins..... So, each file contains about 700,000 data points or elements.... I am using a producer/consumer architechure to read/plot all the data, then using cursors to identify a data subset, which is send via a queue to the consumer where analysis occurs.... Given the size of the files, when subset is quite large I get "Out of Memory" errors and LabVIEW crashes.
    What I am thinking is that I can down-sample or decimate the data in the producer back to 1kHz (I need to ms resolution so I can see the spikes and can appropriately selected the subset) then index back into the original tdms file to send the undeciated data to the consumer.
    With the "Read TDMS" function, the help states:
    COUNT: Specifies the maximum number of data elements to read from the .tdms file for each channel. The default is –1.
    OFFSET: Specifies the number of data elements into the .tdms file at which the function begins analyzing the .tdms file. The default is 0.
    I am confused by the term "elements". Does this mean actual "data points" as in elements within the 2D array? Or bytes? I am hoping array elements... Would this then mean that given my 7 channels of data, each element value that is a multiple of 7 would index into a new line of data? I also assume this index is zero based... So with no offset, a count value of 0 would return all the data elements at time 0.0000s for all channels (regardless differences in the precision of each channel, unlike bytes), a value of 7 would return all the data elements at time 0.0005s, a value of 14 would return all the data elements at time 0.0010s, etc etc..
    Also, if anyone has any example code for indexing into a file using this method they could shareI would be very appreciative... I would assume a for loop could also be used to read the data subset into the consumer in smaller chunks to reduce the memory load?
    Many thanks,
    Jack

    You should have a different channel in the TDMS file.  So you are reading X elements from a channel starting at element Y.  Yes, those are elements in the array, not Bytes.  NI did a good job of making the API easy to use.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Regarding reading a function group

    Hi,
    I have a functionlaity like this:
       I have a selection screen whcih accepts the function group name...
       based on this i have to select all the function modules, includes, text elements if any, etc...in that
    group...
      is there any read statement to read the function group like READ REPORT & READ TEXTPOOL...
      or give me the logic how to get this functionality
      I got the tables TLBIT which gives the fucntion group..
      Is there any means to fetch the data from this table..
       hope u guys got my question..
    thanks..
    regards
      raghu

    Hi,
    if you have Function group with you then concatenate the SAPLZ to that in the beginning. and then use READ REPORT
    in side that you can get all the includes, now if you want FM's then take the include *****XX , read that include with read report then you can find the FM's in it.
    read textpool of SAPLZFUNCGROUP. you will textelements etc.
    Regards
    vijay

  • Implementation of type-ahead functionality in Endeca JSP Ref application

    Hi all,
    I am trying to implement the type-ahead functionality in Endeca jsp reference application which Oracle is shipping with it's products. The type-ahead functionality is not present by default. Can anyone help me to implement the same thing or provide sample code/strategy to achieve the desired results ?
    Basically typeahead functionality is present in Endeca Information's quick start's search box (EID) but not it JSP reference application .
    Waiting for the replies...
    Regards,
    Hoque

    Type-ahead functionality can mean different things and be implemented in different ways. It is usually based on what behavior your user-space would benefit from.
    In the commerce space, one popular use-case is to return Category matches based on what a user has started typing. Within Endeca, this boils down to doing a dimension search and having the Category dimension enabled for dimension search. If a user starts typing "cam", the type-ahead would then recommend:
    Category: Cameras
    You can match on multiple dimensions though, so long as they are enabled for dimension search. For example, if a user starts typing "ca", the type-ahead could return:
    Category: Cameras
    Brand: Canon
    Furthermore, this behavior can be extended by enabling Compound Dimension Search. Compound Dimension Search is enabled via a flag on the dgidx process and on your ENEQuery. It provides the following behavior. If a user searches for "canon cam", it would suggest:
    Category: Cameras + Brand: Canon
    Clicking on the type-ahead would return the intersection of Category = Cameras and Brand = Canon, eliminating a click if the user is after Canon brand Cameras.
    With regards to implementation, it basically boils down to an AJAX call to a service/URL that responds with dimension search results. Then populate an empty &lt;div&gt; with links.
    Other scenarios involve returning Product/Record matches instead of Dimension matches.
    Edited by: gose on Sep 11, 2012 8:31 AM

  • Adobe Reader Search function fails

    @@I'm using Adobe Reader Version 11.0.10 under Windows 7 64-Bit SP1 with all actual updates. When i try to search any word or Phrase of contained in the text of a specific PDF File, then the search Fails. It does not come up with the search item i have keyed in. I did not misspell the search item and it is definitely contained in the text, but the search function does not find it. i am absolutely surethat the search item is in text Format and it is contained in the PDF file, because i can Access and search it when i open this PDF file on an iPad for instance. there it works, but not in my Windows envioenment.
    I guess that this problem will not be completely new for you, because other users are discussing this Problem in the Internet as well.
    Can you help me with an answer and hopefully with a recommendation on how to overcome this Problem.
    thanks in advance and
    Kind regards
    Guenther
    p.s.:
    sorry, i am new on thjis platform... how  when aproximatrely does one get an answer here?

    Hello Pat,
    i followed your advise and have used the link contained in point 3 of
    your recommendations --- for reference see your response as appended
    below (https://cloud.acrobat.com/).
    So, in case i made no mistake (?), then you can access the PDF file we
    are talking about when you follow this link here:
    https://files.acrobat.com/a/preview/0f9d2ce4-b4b9-4223-8fd2-723441d7d2ab***
    This PDF file contains a description of an olympus camera. When you open
    this PDF file please go to page 6.
    Directly under the picture on top of the page (which shows a dark blue
    car driving from left to right) you can read the word "Mitziehmodus"
    (without parantheses). This german word is one of those search items
    which the PDF search function of my PDF reader installation does not
    find. There are many other words the search function does not find as
    well, but let us use this word (Mitziehmodus) as an example to
    demonstrate the malfunction as i experience it on my pc.
    Meanwhile i have installed a completely new windows-system 7 from
    scratch. The PDF reader (11.0.10) is currently the only installed
    software. I made this windows 7 installation only to assure that there
    is no other software eventually influencing the search function. But the
    search function fails again when searching for this word "Mitziehmodus".
    One remark still to your statements concerning accented characters.
    Character like ä, ö, ü or ß are quite normal characters in writing
    german language text. But these characters can not be found also! In
    general it does not make much sense to serach for a single character (at
    least in my understanding). Searching for ä or ö or ü results in finding
    something completely meaningless. But this behaviour shows additionally
    that there is something wrong with the search function as it ist
    implemented in Adobe Reader.
    In general i am convinced that this PDF file will be correct ,
    because i can search any search item and find correct search results
    when i access this file on my iPad regardless in what so ever combination.
    i hope that you can access the problem PDF file following the link i
    sent you above.
    And i would be happy wehen you could find thze reason for my search
    problems.
    thank you so far. i appreciate to heare from you soon.
    kind regards
    Günther
    Am 02.01.2015 um 03:03 schrieb Pat Willener:
    >
          Adobe Reader Search function fails
    created by Pat Willener <https://forums.adobe.com/people/pwillener> in
    /Adobe Reader/ - View the full discussion
    <https://forums.adobe.com/message/7058510#7058510>

  • Oracle Read-Ahead: not the same as look-ahead, yes?

    Hi,
    I've tried to understand the Oracle Read-Ahead systems, and I think I undersand how it works, though I'd like to assert that I am not mistaken.
    From what I've managed to understand in the Oracle documentation, the Oracle read-ahead mechanism is mostly used for sequential accesses of data blocks. For example, to perform operations like table scans.
    In such cases, Oracle will for example use a physical operation called scattered read.
    The scattered read, in turn, is configured in the ini.ORA by a parameter name something like db_multiblock_read_count. Having a multiblock read count of 60, will make the scattered read operation read 60 sequential data blocks from disk, starting with the data block that was requested in the operation.
    From what I've gathered, this is the basis of the Read-ahead mechanism. It is use mult block operations do read data instead of single bock operations.
    If what I've said so far is correct. There are two things that I'd like to know:
    1.
    Those 60 blocks read by the sctarred read. Do they go directly into the database buffer cache? Or are they loaded first in to a lower level cache, like a scattered read cache?
    Thus, if the table scan requested the page 1. And the scattered read operation fetched the database pages 1 to 60. I assume that only page 1 would be transfered to the buffer cache. Later on, when the table scan requested for page 2, the buffer cache would retrieve that page from the scattered read cache into the buffer cache. Or is this completly wrong? And when the scattered read gets pages 1 to 60. It automatically dumps those data pages into the buffer cache into random positions of the main buffer?
    2.
    With Oracle read-ahead, table scans and other such physical operations will always incur scattered read waits periodically. For example, every 60 pages the table scan incurs in another scattered read wait correct?
    3.
    Reading-ahead In oracle only anticipates the database page needs of a physical operator a specific point in time, yes? The following does not happen:
    While the table scan is currently on page 50, having another 10 more pages left in the database buffer, some background process decides that it is a good idea request another fetch for 50 more data pages. In such a way that the forground thread processing the table scan never has stop in read IO.
    This would be called looking-ahead, and it is not an Oracle feature, is it?
    Thank you for your insight.
    I've performed some tests where though the table size of a data transformations remain the same (1GB) but the time I take to process the source table into my output varies. The processing time for each record increased greatly from test to test. But I noticed that the wait time of the data transformation remained constant, though the cpu time increased greatly. THe increase in CPU time means that the Time Until Next Buffer fetch was reduced, which would give more time for the system to look-ahead. Eventally I could have made the CPU time so great, that if REad IO was being performed in anticipation it would be theortically possible for the READ wait time to be 0. Which I know is not going to happen. So I'd just to be certain of how the read-ahead works.
    My best regards.

    sono99 wrote:
    Hi,
    I've tried to understand the Oracle Read-Ahead systems, and I think I undersand how it works, though I'd like to assert that I am not mistaken.
    From what I've managed to understand in the Oracle documentation, the Oracle read-ahead mechanism is mostly used for sequential accesses of data blocks. For example, to perform operations like table scans.
    In such cases, Oracle will for example use a physical operation called scattered read.
    The scattered read, in turn, is configured in the ini.ORA by a parameter name something like db_multiblock_read_count. Having a multiblock read count of 60, will make the scattered read operation read 60 sequential data blocks from disk, starting with the data block that was requested in the operation.
    From what I've gathered, this is the basis of the Read-ahead mechanism. It is use mult block operations do read data instead of single bock operations.
    Am not sure if you meant reading multiple blocks at the same time or Read ahead cache features provided by some storage devices. But to me it seems you are talking about MBRC (Multiblock read count) and not about read ahead cache provided by storage vendors.
    If what I've said so far is correct. There are two things that I'd like to know:
    1.
    Those 60 blocks read by the sctarred read. Do they go directly into the database buffer cache? Or are they loaded first in to a lower level cache, like a scattered read cache?
    Thus, if the table scan requested the page 1. And the scattered read operation fetched the database pages 1 to 60. I assume that only page 1 would be transfered to the buffer cache. Later on, when the table scan requested for page 2, the buffer cache would retrieve that page from the scattered read cache into the buffer cache. Or is this completly wrong? And when the scattered read gets pages 1 to 60. It automatically dumps those data pages into the buffer cache into random positions of the main buffer?
    If my mbrc is 60, and none of the blocks are in buffer and table size is more than 60 blocks then entire 60 blocks would get transferred to buffer cache. There is nothing called scattered read cache in the architecture of Oracle.
    2.
    With Oracle read-ahead, table scans and other such physical operations will always incur scattered read waits periodically. For example, every 60 pages the table scan incurs in another scattered read wait correct?
    Yes db file scattered read wait event would mean that another physical IO has been initiated for fetching next blocks of records.
    3.
    Reading-ahead In oracle only anticipates the database page needs of a physical operator a specific point in time, yes? The following does not happen:
    While the table scan is currently on page 50, having another 10 more pages left in the database buffer, some background process decides that it is a good idea request another fetch for 50 more data pages. In such a way that the forground thread processing the table scan never has stop in read IO.
    This would be called looking-ahead, and it is not an Oracle feature, is it?
    Yes I do not think so it is an Oracle feature but some storage vendor provides it. It is also known as Read ahead.
    Thank you for your insight.
    I've performed some tests where though the table size of a data transformations remain the same (1GB) but the time I take to process the source table into my output varies. The processing time for each record increased greatly from test to test. But I noticed that the wait time of the data transformation remained constant, though the cpu time increased greatly. THe increase in CPU time means that the Time Until Next Buffer fetch was reduced, which would give more time for the system to look-ahead. Eventally I could have made the CPU time so great, that if REad IO was being performed in anticipation it would be theortically possible for the READ wait time to be 0. Which I know is not going to happen. So I'd just to be certain of how the read-ahead works.
    My best regards.I did not understood your last para.
    Regards
    Anurag

  • Read aloud function

    Hi,
    I am just wondering if someone could help me out and explain what i need to do in order to use the read alound function in adobe reader
    Thanks

    You need to go to the View menu, Read Out Load, and click on Activate Read Out Loud. Then go back to the same menu and select one of the Read options (current page only/entire document).

  • Read receipt function in iMessages and upgrades

    Hi guys, can the read receipt function in iMessages become disabled automatically after an upgrade and/or a backup - restore session? Some of my contacts told me they never changed their settings, and yet the read tag does not appear anymore beneath my sent messages.  
    (iPhone 5)

    No. Some things you can try.
    Read Receipts
    Read Receipts (2)

  • After shutting down Firefox 3.68, an error message reading "Incorrect Function" pops up.

    I upgraded to Firefox 3.68 about four days ago. After shutting down Firefox 3.68, an error message reading "Incorrect Function" pops up. I click "OK." Nothing seems to happen, either good or bad.
    I installed Comodo Internet Security a few days before I upgraded to Firefox 3.68.
    == This happened ==
    Every time Firefox opened
    == After I upgraded to Firefox 3.68.

    I am the original poster. The problem seems to have nothing to do with my upgrade to Firefox 3.6.8 but with a configuration change I made to System Mechanic after I switched to Comodo Internet Security.

Maybe you are looking for