Cursor Comes Into Text Field then open a window with Values.

hi,
i have to create a form with some items.there are two text field item :p1_item_group and :p1_item_name.
i want to design these form like telly Form .eg in a telly form like if we want to enter state in text field and cursor come on State text field then open a window with all state name in right side and user select state from these window and state come in to text field.
So i want to this type of action on p1_item_group when cursor come in to this item p1_item_group then quickly open a window with all item group name.
MY table is
CREATE TABLE "ITEM_GROUP_DETAILS"
(     "S_NO" NUMBER,
     "ITEM_GROUP" VARCHAR2(500),
     CONSTRAINT "ITEM_GROUP_DETAILS_CON" PRIMARY KEY ("S_NO") ENABLE
insert into ITEM_GROUP_DETAILS values(1,'A');
insert into ITEM_GROUP_DETAILS values(2,'B');
insert into ITEM_GROUP_DETAILS values(3,'C');
insert into ITEM_GROUP_DETAILS values(4,'D');
I want When Cursor Comes in to p1_item_group text Field Then Open a window with
A
B
C
D
Item Group List.
How can i do this.
Thanks
MANOJ KAUSHIK

hi manoj,
you can write onFocus event on your textbox from which you want to call a pop up window
write a javascript function and call it onFocus event of textbox. In that function call a new popup page using window.open function.
on that page you will have a values as you mentioned eg A,B,D etc.
then user will select value from there and textbox will get that value.
regards,
Chetan

Similar Messages

  • Difference between Two Date Should come into Text Item

    Dear All,
    i want to get difference between two date into text Item :P36_C in On Change java script.
    i have two Date Item :P36_A and :P36_B .i have extract these date value from table then difference comes into Text Field :P36_C.
    Now i want if i change Date into Item :P36_A or Item :P36_B then Defference between two date Should Come into Item :P36_C .
    So i have use Java Script Code to do this
    <script>
      function diffdat(){
        function getVal(item){
       if($x(item).value != "")
         return parseFloat($x(item).value);
       else
         return 0;
        $x('P36_C').value =
    getval((TO_DATE('P36_B', 'DD-MON-YYYY'))-
    getval(TO_DATE('P36_A', 'DD-MON-YYYY')))+1;
    </script>
    i have put this into Item HTML Form Element Attributes 
    onChange="javascript:diffdat();"it's not woring .
    How to work that Code with dates.
    Thanks

    You can always create your own difference function based on your own criteria. You can modify this to suit your needs.
    CREATE OR REPLACE FUNCTION CALC_OFFICE_DAYS(date1 DATE, date2 DATE)
    RETURN NUMBER
    IS
    v_begin_date DATE := date1;
    v_end_date DATE := date2;
    v_office_start_time VARCHAR2(10) := '09:30 AM';
    v_office_end_time VARCHAR2(10) := '06:30 PM';
    v_comp_begin_time DATE;
    v_comp_end_time DATE;
    v_days PLS_INTEGER := 0;
    v_hrs NUMBER := 0;
    v_ttltm NUMBER;
    BEGIN
    select trunc(v_end_date) - trunc(v_begin_date)
    into v_days
    from dual;
    select to_date(to_char(sysdate,'DD-MM-YYYY')||' '||to_char(v_begin_date,'HH24:MI'),'DD-MM-YYYY HH24:MI')
    into v_comp_begin_time
    from dual;
    select to_date(to_char(sysdate,'DD-MM-YYYY')||' '||to_char(v_end_date,'HH24:MI'),'DD-MM-YYYY HH24:MI')
    into v_comp_end_time
    from dual;
    select (v_comp_end_time - v_comp_begin_time)/24 into v_hrs from dual;
    IF v_hrs > 4 then
    v_ttltm := v_days + .5;
    ELSE
    v_ttltm := v_days;
    END IF;
    return v_ttltm;
    END;
    As has been noted, this question is best posted on the PL/SQL forum.

  • Yoga 13 MSIE10 can't type into text fields

    New machine Feb 2013 used exclusively in laptop mode. Has been great overall but right out of the box I could not type text into any form fields using Internet Explorer 10. What an intro to Windows 8! Discovered I can type text in notepad, then copy and paste it into fields but cannot enter it directly. This was happening with the factory installed software so if it's a third party app conflict it's one that's original equipment. Thankfully Chrome works fine, but sometimes I need to use MSIE and am quickly reminded why I can't.
    Google and Lenovo forums are mum on this subject. Some suggestions pointed to SFC /scannow, which came up with a litany of things it couldn't fix. Enhanced protected mode in MSIE also did not help. Didn't appear possible to reinstall MSIE (where's the DOJ when you need them?) What's next?  Thank you all for your assistance.

    hi dserdu,
    Welcome to the Forums.
    Are you having this issue on the desktop version of I.E. or the Metro version?
      - if the issue only happens on the metro IE, try to open the Desktop I.E. > press ALT+T > choose Internet options. On the Internet Options, go to the Programs Tab, set I.E. to Always and check the box "Open Internet Explorer tiles on the desktop"
    - Link to picture
    Alternatively, if the issue is compatibility between the website and the I.E. versions, you can run I.E. 10 in compatibility mode or on a lower version (i.e. I.E. 9, I.E. 8., ...etc.). To do this:
    1. Open the Desktop I.E. and press F12
    2. On the developer tools, choose Browser Mode IE 10 and choose an I.E. version (i.e. IE 9)
     - Link to picture
    3. When dnoe, press F12 again and observe if you can now type into text fields.
    Let me know your findings
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How to put cursor in a text field

    hi,
    I have a text field in my jsf page.By default I want to put the cursor into this text field.when a letter is entered into this text field,the data table below this text field must change depending upon the value entered into the text field.After this change also,the cursor must be in the same text field.
    how it is possible.
    when I entered any letter in this field,there is a call to the server.the cursor must be in that textfield after the call.

    Use DOM+JS.
    With element.focus() you can set the focus on the desired element.
    With the 'onkeypress' attribute you can execute some piece of Javascript on every key press, for example submitting the form or doing an AJAX request.

  • How to copy paste a table structure from word document into Text Field [field format Rich Text]

    In our current implementation we have a Blank page with Text Field [field format Rich Text] on generated PDF Document.
    Once the PDF document is generated, user can copy paste content form any word/rtf document to into the Text Field.
    Pasted content retains all text formatting [Bold, Italic, Underline, Indentation] except the Table format. Text Field is removing table metadata from the content and converting it into plant text.
    Is there anyway to copy paste table structure as it is from word document into Text Field?

    Hi,
    I don't think you can! While you can paste formatted text into the rich text field, the table metadata means nothing to the textfield.
    Niall

  • Positioning cursor in editable text-field

    It is almost impossible to position the cursor in a text-field. Even though I have very thin finger it takes me more than two tries to position the cursor. Would be nice if on a future PlayBook-update the behaviour of text-selection and cursor-positioning would be improved. Works much better on Android-devices (okey, they often have a scrollball) and iPhone.
    Check out my apps in the BlackBerry World
    Visit my developer blogs /dev/alopix and /home/alopix
    BBM Channel: C0047B612

    i dont have that issue with my fat fingers anymore with some practice. are you lightly touching or mashing while you select? i found mashing to make it less accurate. remember it is the first part that touches that makes the selection and not the top of your finger or thumb.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • I am creating a request for proposal form and I need to add a commission structure field.  I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

      I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

    It sounds like what you are trying to do is edit the choices in a likert field to something other than the default radio button. This is not something that you can do in Formscentral at this time.
    Andrew

  • With Panorama/TabCandy, when you have some "App Tabs" isolated into a group then open a normal tabs included into antoher group. Clicking on an "App Tab" makes the normal tabs disappear.

    With Panorama/TabCandy, when you have some "App Tabs" isolated into a group then open a normal tabs included into antoher group. Clicking on an "App Tab" on the navigation bar makes the normal tabs disappear from this bar.

    Panorama/TabCandy is in an early stage of development and has many open bug reports. One area that is being discussed is how App Tabs should be integrated into TabCandy, not surprisingly there are varying opinions.

  • When does a selection in a text field in a Finder window lose focus?

    Hello,
    this problem has emerged on account of an Applescript file that needs to access a text selection (portion of a filename highlighted) in an open Finder window.
    The bare minimum code to demonstrate the problem is this:
    *tell application "System Events"*
    * *tell process "Finder"*
    * *set selText to value of attribute "AXSelectedText" of text field 1*
    * *end tell*
    *end tell*
    other variants also exist, using "keystroke" but that does not work either. I am not asking help with Applescript here, it is here only to give a sense of the problem.
    My conclusion thus far is that the selection lose focus before the script process can access it. In the best case I get the full filename by using "attribute" and copy of the alias onto the clipboard by using "keystroke".
    So my problem is this:
    It seems that the focus stays alive when one clicks on a menubar item, any click on any other item on the desktop, including windows of irrelevant applications, changes the focus from the selection within the text field corresponding to a filename, to the filename itself.
    And my question is this:
    Is there a changeable setting within the OS that has to do with how long the focus stays alive on a selection within a text field corresponding to a filename? If yes, how do I change it?
    Thanks

    baltwo wrote:
    Thanks for clarifying. Never heard it called a text field, just a label. So, exactly what are you trying to accomplish? Is it that you want AS to select the file, highlight its label so you can edit/change it with some other text? If so, have you checked out the Finder scripts installed on the machine, especially the Finder script *Add to Finder Names*?
    UI Element Inspector calls the activated/editable filename a text field.
    Actually I want to modify one of the stock Finder scripts. I want to be able to select part of the file name in the active text field of the Finder window, then activate the script, *have the script pick up the selection* as a text string then use it internally.
    The bolded step is the one in question.
    Every attempt fails on the fact that the focus is lost from the "text field" and it reverts to the label for the filename, if I may use this distinction, (or to "FinderItem" in the parlance of UIEI) as soon as another process begins, it seems. So when the script becomes active, but before any of the commands is executed, the selection disappears.
    My guess is that it is not some absolute necessity but a setting that perhaps can be changed somehow.

  • Hi, I want to open dialog window with ADF Faces

    Hi, I want to open dialog window with ADF Faces when commandButton pressed, but the window opended at same window, not opened new window.
    my command button is follow,
    <af:commandButton text="Ücret Girişi"
    binding="#{backing_rezervasyonlar.rez_iptal}"
    id="rez_iptal"
    action="dialog:ucret"
    windowHeight="200"
    windowWidth="300"/>
    I am waiting your help....

    Remove the partialSubmit attribute from the declaration of your command button. Therefore, the code you posted should be:
    <af:commandButton text="Ücret Girişi"
    binding="#{backing_rezervasyonlar.rez_iptal}"
    id="rez_iptal"
    action="dialog:ucret"
    useWindow="true"
    windowHeight="200"
    windowWidth="300"/> NOT:
    <af:commandButton text="Ücret Girişi"
    binding="#{backing_rezervasyonlar.rez_iptal}"
    id="rez_iptal"
    action="dialog:ucret"
    partialSubmit="true"
    useWindow="true"
    windowHeight="200"
    windowWidth="300"/> --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can not open new windows with the update

    i used to be able to open multiple windows with different url and i now i can not...

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Whenever I start Firefox it opens 10 windows with blank tabs

    Every time I start up firefox it opens 1 window with the open tab from my previous session and 9 more windows with blank tabs.

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/sessionstore.js
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    Deleting sessionstore.js will cause App Tabs and Tab Groups and all open tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • How to open new window with required size when clicking on image in a table

    Hi,
    There is an image column in advanced table. i want to open new window with required parameters(size, toolbar, status bar,etc..) and with that transaction context.
    can any one help plzzzzzzzz?
    Thanks
    Raju

    You can also use OAF js function to open modal pop up:
    openWindow(self, '<url>','longTipWin', {width:900, height:400}, true); return false;
    --Mukul                                                                                                                                                                                                                                                                                                                                   

  • HT2486 Is there a way to open two windows with address book on my computer?

    Is there a way to open two windows with address book on my computer?

    Photoshop only has one Color Palette.  If you could script something  like a Color Palette with  two sets of active sliders the script would be in control till you dismissed its sliders dialog.  You would not be able to do anything but adjust the script's sliders in Photoshop while the script dialog window is being displayed.  Photoshop Scripting does not have real palette dialog type support.
    I do not know what is possible with Photoshop extensions using HTML 5 Panels.....

  • I am receiving a lot of pop-up ads on website pages. It has only recently started happening. They open new windows with ads for online gambling, online dating and other things. They are annoying and I want them shut off. Please help me

    I have recently started seeing millions of pop-up ads on website pages. It is not something that normally happens. They open new windows with ads for online gambling, online dating among other things. I am growing sick and tired of these ads, and have tried multiple things. I have uninstalled and reinstalled software, I have blocked pop-up ads and unenabled Java script. I have tried everything I could find, but nothing has worked. I have even downloaded AdBlock and Clean Genius. Nothing has even remotely changed this annoying trait. I hope this can be a quick fix I can perform and not something that will have to be done by a tech-hand. Please, if you know anything about this issue, let me know how to fix it.
    Thanks.

    Unfortunately, you have installed malware by clicking on a pop up ad.
    Removal instructions here >>  The Safe Mac » Adware Removal Guide
    Uninstall CleanGenius >  Mac App uninstaller: How to uninstall the Macintosh applications with CleanGenius uninstaller on Mac OS X?
    Third party maintenance utilities are not necessary on a Mac and can actually do more harm than good and cannot remove malware > Mac App uninstaller: How to uninstall the Macintosh applications with CleanGenius uninstaller on Mac OS X?

Maybe you are looking for

  • Avi frame by frame, it doesn't play

    Hi, i'm on Mac Os X 10.7.1, with QuickTime Player X 10.1 and Perian 1.2.3. When i start an avi file with the Quick Look it plays normally, but with QuickTime Player every time i play, it goes forward 1 frame than it stops. Any idea?

  • Connecting Apple TV to Livebox network

    I'm trying to connect Apple TV to and Orange Livebox wireless router. It sees the router , I enter the WEP key but it can't log onto the network. I'd really appreciate any tips on getting this sorted.

  • I am trying to remove skype. It will not leave, sa...

    I am trying to remove "skype" from my HP pavilion desk top and it won't leave saying, "close all CHROME windows." I did. Even restarted pc, same thing. HELP

  • Open pdf files from the internet

    It takes forever to open a pdf file from the internet. How do I set acrobat to allow faster opening of pdf files from a website?

  • Remove gap in report theme 23

    Hello, I have report in apex and one column is percentage status bar ... Some rows have background color above fore color ...(maybe one milimeter) http://img850.imageshack.us/img850/381/unledxmt.png I use new 23 theme with apex 4.1... Anyone know how