New auto fill pjc

Hi
I found this java code on the web to create a pjc for autofilling a combo box. It uses most of the regular features of the normal oracle combo box(for example it gets populated like normal), but it adds the autofill feature which is pretty cool. My problem is, for some reason I cannot get the value that I typed in the combo box. If I drill down with my mouse and select a value it works like normal. Its just when i'm typing. Is there any code (set_custom_property or get_custom_property) that can be added so I can capture the values I typed in? It doesn't seam to accept any of those functions.
any help would be greatly appreciated.
thanks
package smartbox;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import oracle.ewt.lwAWT.lwText.LWTextField;
import oracle.forms.ui.VComboBox;
public class mycombo extends VComboBox
//private String[] m_origItems;
private char m_keyChar = 0;
private final String CLASSNAME = this.getDefaultName();
* Constructor for the mycombo PJC
public mycombo() {
super();
try {
jbInit();
catch (Exception e) {
e.printStackTrace();
void predict(KeyEvent e)
// get the textfield component of ComboBox
LWTextField tf = this.getLWTextField();
// list search flag
boolean found = false;
// found/selected index
int selected = 0;
// replace currently selected characters with acharacter that user has just typed
tf.replaceRange(String.valueOf(m_keyChar),tf.getSelectionStart(),tf.getSelectionEnd());
String currval = tf.getText();
// get array of list items
String[] origItems = this.getItems();
// compare current text in the textfield to the list items,
// find the first occurrence of an item that starts with what userhas typed
for (int i = 0; i < origItems.length; i++)
//if (m_origItems.toUpperCase().startsWith(currval.toUpperCase())) {
found = origItems[i].toUpperCase().startsWith(currval.toUpperCase());
if (found) {selected = i; break;}
if (found)
this.select(selected);
tf.select(currval.length(),100);
e.consume();
private void jbInit() throws Exception {
// Hook into the keyboard
addKeyListener(new KeyPressAdapter());
* Private class to intercept the keyboard actions and store the keystrokes away.
class KeyPressAdapter extends KeyAdapter
public void keyPressed(KeyEvent e)
* KeyTyped is where we do the work
http://www.sandidresources.com - Sandid Resources LLC Powered by Mambo Generated: 20 March, 2008, 23:36
public void keyTyped(KeyEvent e)
// we are only interested in keystrokes that result in a Unicode character;
// other keystrokes will go default route
int id = e.getID();
if (id == KeyEvent.KEY_TYPED) {
if (e.getKeyChar() != KeyEvent.VK_BACK_SPACE &&
e.getKeyChar() != KeyEvent.VK_ENTER &&
e.getKeyChar() != KeyEvent.VK_TAB) {
m_keyChar = e.getKeyChar();
predict(e);
* Utility function to print out a debug message to the Java Console.
* @param msg string to display, this will be prefixed with the classname of the PJC
* @webmethod
public void log(String msg)
System.out.println(CLASSNAME + ": " + msg);

Hi Marc
First of all: Yes it is possible. It depends on how this ticket is created.
If a ticket is created via a bridge there is a built in automatism. Each ticket has 3 sets of fields where address data can be stored:
 - Caller
 - Contactperson
 - CallerHelpDesk
If you you do not provide a LastName and if you provide a ShortName and/or a PIN the system tries to find a user with this data and fills the address fields with the data of this user.
If more than one user can be found the system uses the first it could find. So be careful when creating and maintaining users.
If you create a ticket via an online interface (SD2 or Portal) you can configure a DetailButton in the mentioned Calldetail for address fields where you directly can search in the user table.

Similar Messages

  • Auto Fill Shipping Address from Billing Address on a New Form in SharePoint 2013

    I have a new form on SharePoint that has a few fields:
    Billing Address 1 (Single Line of Text)
    Billing Address 2 (Single Line of Text)
    Billing Address City (Single Line of Text)
    Billing Address State (Drop Down Menu)
    Billing Address Zip (Single Line of Text)
    Shipping Address is the Same (Yes/No Check Box)
    Shipping Address 1 (Single Line of Text)
    Shipping Address 2 (Single Line of Text)
    Shipping Address City (Single Line of Text)
    Shipping Address State (Drop Down Menu)
    Shipping Address Zip (Single Line of Text)
    The object is that a user would fill in the Billing Address Fields, then click the "Shipping Address is the Same" check box and the Shipping Address Fields would auto fill with the Billing Address Fields.
    I've tried using a CEWP and editing the form file in SharePoint Designer 2013. I just don't know how to make this Dynamic auto fill work! Any help is greatly appreciated!!!!

    Use a custom web part
    Design the form controls and in "Shipping Address is the Same" check box check event or button click,
    copy the same data into a label form contains the same fields but in form of labels instead of textbox and dropdownlist.
    try this solution and let me know.
    Ahmed Said Moussa SharePoint Consultant

  • I am new to Firefox; how do I set up for auto fill for the various forms that need the same info time and time again; thanks.

    I am new to Firefox; how do I set up for auto fill for the various forms that need the same info time and time again; thanks.

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    *Deselect: [ ] "Always use private browsing mode"
    *Select : [X] "Remember search and form history"
    See also:
    *https://support.mozilla.org/kb/Form+autocomplete
    <i>[locking thread due to the age]</i>
    If you have further questions then please start a new thread.
    *[[/questions/new start a new thread]]

  • I upgraded an lost all my links and tools -- no auto fill, no direct tab to google email news etc.

    I no longer have an icon for auto fill, email, news -- I have to put a search in the web browser window to get to my gmail account (terribly frustrating and time consuming) or a search to get to google news. And I have to fill all forms again and again.

    what a pain! However, the solution is to simply install the Add-On "Autofill Forms". I'm not certain why Mozilla didn't automatically install the add-on as most of us rely on this feature. It's definitely not a good enough reason to uninstall and reinstall an earlier version and this version has some neat features
    provided by www.techEccentric.com.au

  • Privacy Browsing on, web history auto-fills into new tab URL field

    Even with Privacy Browsing on, when I go to open a new tab and then start typing in the URL field of the new tab, it tries to auto-fill or offer up a list of previously visited websited, ones only visited with the Privacy Browsing on.
    How do I clear those and prevent them from appearing?
    Thanks

    Hi, Peter.
    Well, again, the issue was reported with Chrome, so I'd use that to test. (IE might 'fill' the form in a way that ADF can detect it, whereas Chrome may fill the form in a way that ADF doens't sense it.) With Chrome, (using an address as the example), you'd go to the street address field, and Chrome would display a drop-down list of saved addresses. (You can set up the addresses in the settings page that I described above.) Once you pick from one of the addresses, it would fill in ALL of the address fields (e.g. street address, city, state, zip) for you. It is these other 'auto-filled' fields that ADF doesn't sense have anything in them.
    I'll see if I can put together a simple ADF project and instructions for how to reproduce using Chrome....
    Thanks,
    Karl

  • I have LastPass running on a desktop PC. I just bought a new Laptop, Win 7, I can open the Vault on the laptop, but it will not auto fill the site logins Firefox is running on both computers.both

    I have LastPass running on a desktop PC. I just bought a new Laptop, Win 7, I can open the Vault on the laptop, but it will not auto fill the site logins Firefox is running on both computers

    Hi,
    Please try this: Firefox '''Tools''' ('''Alt''' + '''T''') > '''Add-ons''' > '''Extensions''' (on the left), click '''Options''' for LastPass > '''General''', enable '''Automatically Fill Login Information'''. If a site has more than one entries, you can set the preferred login in the vault by right-clicking the preferred entry > '''Edit''' and enable '''AutoLogin'''.
    [https://lastpass.com/support.php LastPass support]

  • Auto-Fill is gone, how do I get it back?

    With the new version of Firefox I cannot find the Auto-Fill tab. I used it many times a day when filling out forms and I need it back!! It saved a lot of time filling out my name and address for me. How do I get it back onto my toolbar?

    Gone?
    Did you turn it on in Settings?
    Did you tap Contacts?  Select a Contact?  Scroll down to the Facetime button?
    There have never been an icon on the homescreen for Facetime on iphones

  • How do I auto fill a date field for an Adobe form?

    Hi. I am new to Acrobat. I would like to have Acrobat auto fill today's date in a date field when I open an acrobat form. I check the forum help and it indicated that I associate this javascript text to the field:
    var f = this.getField("Today"); if (f.valueAsString=="") f.value = util.printd("mm/dd/yyyy", new Date());
    However, when I try it out, nothing happens.
    Any clue as to what I am doing wrong?
    - Michael

    Hi M. Krebs,
    Is there a text field in the PDF labeled "Today" and set as a date field? And does the Date Options format set for the field match what is in the JavaScript (mm/dd/yyyy)?
    Best,
    Sara

  • Auto fill addresses in SMS texts - where did it go?

    I just had to swap out my iPhone4 (1st one only one month old had hardware problems) everything with the new phone seems fine, but I just noticed when texting that I can't type the first few letters of a person's name and it automatically shows all the close options. I have to manually type in the ENTIRE address or hit the plus sign and go to my contacts. This is a real pain - and it's taking too much time.
    I can't find any setting to get the auto fill in SMS back. Auto fill on email is fine. Any suggestions?
    Many thanks!
    Bob

    Bob Linscott wrote:
    I just had to swap out my iPhone4 (1st one only one month old had hardware problems) everything with the new phone seems fine, but I just noticed when texting that I can't type the first few letters of a person's name and it automatically shows all the close options. I have to manually type in the ENTIRE address or hit the plus sign and go to my contacts. This is a real pain - and it's taking too much time.
    I can't find any setting to get the auto fill in SMS back. Auto fill on email is fine. Any suggestions?
    Many thanks!
    Bob
    I hate to aks the obvious, but are you sure you have any contacts? There's no Setting to make certain that the auto-fill is on for SMS, so the only thing that makes sense is an empty Contacts.

  • Yahoo e-mail will not allow me to add contacts and will not auto fill e-mail addresses, and now I'm having trouble downloading Adobe documents from my bank. All of these problems can be solved by using Internet Explorer, but I prefer Firefox.

    I get an error message when trying to add new contacts and it is suggested I try back later, also when sending an e-mail the address I wish to send an e-mail to will no longer auto-fill. This has been a problem for sometime, maybe a month. The last problem I had was trying to download my March bank statement, in Adobe. If I switch to Internet Explorer I can accomplish these tasks. I am using Yahoo on both Firefox and Internet Explorer.

    Check the Ethernet connection to the AirPort Express. Make sure that the Ethernet connection from the Comcast modem is connected to the WAN port on the back of the AirPort Express. The WAN port is the one with the circle of dots shown over the port.
    It sounds like you are connected to the Ethernet LAN port.

  • Need help with Safari auto fill.

    Auto fill problems.
    1. It's spotty in its application. On some pages it works fine and fills in all fields with one click. On others it says "can't complete form", but then as I begin typing each field, it gives me fill in options. Why can't it just fill them in from the start?
    2. My name and phone number fields have bad values that it tries to fill in. I keep entering the right stuff on new forms, but it never seems to "learn" them. How can I find and remove or overwrite the bad values, without deleting all the other fields it has learned properly (do not want total reset)? I think it is getting the last name first version of my name from address book where I have that option set, but I don't want that in my web fill ins.
    3. Is there a master auto fill template somewhere with field names and values I can edit? Or does it collect this for every different URL I ever fill in, and so there is no way to set values I want used in all web pages?

    HI,
    From your Safari menu bar click Safari / Preferences then select the Autofill tab. Click the Edit button next to *Other Forms*. Remove all.
    And under the Autofill tab, make sure: *User names and passwords* and *Using info from my Address Book card* are both selected.
    If you have problems logging into a site...
    Quit Safari (Command + Q) Now open Keychain Access (Applications/Utilities) Select Passwords on the left. Delete any keychains for sites you have problems logging into.
    Now relaunch Safari. Login to a site with your user name and password as you normally would, then click Yes when prompted. That will create a new keychain for you.
    Keychain Access stores your passwords securely.
    Or does it collect this for every different URL I ever fill in,
    Correct. But only if you have *user names and passwords* and *Using info from my Address Book card* selected in Safari / Preferences - Autofill.
    Another suggestion when having problems using a website, is to delete the cookies. Go to Safari / Preferences / Security. Click *Show Cookies*. Delete the url's for that site then relaunch Safari.
    Carolyn

  • Why does my Safari Auto-Fill only work part of the time?

    First of all, why isn't there a link on the Apple website to provide Feedback?  Secondly, I'd love to know why my Safari Auto-Fill only works some of the time, like when entering Sweepstakes information.  I realize some websites don't allow Auto-Fill, but on the ones that do, I can't get the second window to open up when I click "Auto-Fill".

    Safari 6.1.1 and yes all web forms are checked under Preferences Auto-Fill.  I am daily entering sweepstakes for the HGTV dream home, and even though the initial bubble shows up "Auto-Fill your contact information" shows up, when I click on it, the second bubble that lets you confirm the info doesn't always open.  I tried it just now in a separate tab, and it opened; then I came back here to write some of the message.  Then I went back to try again and it won't open.  It drives me crazy.  I keep trying with each new data field and sometimes the second bubble will open further down the page.

  • Safari auto-fill problem

    Hi all.. Since the second last firmware update of my Touch 2nd gen, Safari normally auto-fills website's login forms (thus settings should be okay) except for.. wlan login forms! Therefore, every time I have to manually write down username and password in order to gain network access.. I don't know whether it is a known issue or even a strange "wanted" feature..in any case, there's a way to overcome this annoying problem? Thank you in advance.
    Message was edited by: warriozzo

    I have asked a similar question several times before, and I have the answers varied from the typical I do not have that problem to its a security feature incorporated in Safari.
    I tend to think it is a new feature added ito safari n the last several months (via an update).
    The bottom line is I am NO longer able to stay logged into various websites if I quit safari, even though the websites have the feature available that should allow a user to stay logged in for 2 weeks.
    The only way I can now stay logged in for an extended period of time is to NEVER quit Safari.
    That is not an option for me.
    rjj

  • Auto fill passwords is no go

    I know this has been discussed a billion times but I can't get in any answers by reading the old posts. Since I'm brand new to Mac this "key chain" deal is just about the most dumbest thing I have ever seen (can you tell I'm ******) lol
    I have been a PC user for years. I could type one password in Norton Identy Safe and the computer automatically  logged in to pay my bills, forums, and online banking, everything....not with a Mac!!???
    I use strong passwords in which they are difficult to type much less remember.
    I have brand new MBP 13" with Lion 10.7.4 and have tried keychains, auto fill is "on", etc....
    I manually build keychains and they will not work.
    It was doing good at first by asking would I like to remember passwords, username, but it quit. I mean it actually autofilled there for a short period of time but "poof" its gone now. Everything is still there in keychains...just not working.
    Help would be greatly appreciated!
    thanks

    I've got the same problem. Migration Assistant moved everything else over okay, but for some reason Safari can't connect to all the usernames and passwords that are stored in the Keychain. iChat could and NetNewsWire could... but the AutoFill stuff just isn't working. And I'm looking at all of them in Keychain Access right now!
    Ack!
    MacBook Pro   Mac OS X (10.4.5)   2.0 GHz

  • Safari Auto Fill Issue - Same domain with multiple logins

    Hello Group,
    I am working with Safari's Auto Fill feature for user names and passwords on website pages that I log into and it is not doing what I would like it to do. For some reason I am unable to save more than one login per domain and is not seeing the entire url path. If save my user name and password for say this url path of ************* it will save the user name and password but when you look in safari->preferences->autofill, its only showing the top level of the domain and not the entire path.
    And if there is a different page on the site located at a completely different url path such as *********** that I need to log into and I try to save a user name and password for this different url path, it asks me if i want to update the current user name and password, and I don't want to do that, I want to save a new different user name and password for this second login screen.
    Is there anyway to get this to see the entire url and remember separate logins for each different page on the same domain? Thanks.
    Doug
    <Edited by Host, URL's removed>

    To the moderator. Thank you for approving my post, but how am I suppose to show what I am talking about if you go and remove the url examples I put in my post? The links were not bad, spam or etc, they were just examples paths I made up.
    Doug

Maybe you are looking for