Cannot set focus when reset data using datasets

Hi All,
When I click reset form button. I would like to reset data then focus to the first field. I can clear information I provided but setFocus to the first name field is not working. Please help.
I use datasets to reset data. 
Here is my coding:
event: click
xfa.datasets.data.loadXML("<form1/>", true, true);
  xfa.host.setFocus("xfa.form1.contactInformation.firstname")
Thanks,
Cindy

I tested the clear button. But it is not set Focus to the first field. It is not successful.

Similar Messages

  • Error message when importing data using Import and export wizard

    Getting below error message when importing data using IMPORT and EXPORT WIZARD
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    <dir>
    <dir>
    Messages
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'.
    Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".
    (SQL Server Import and Export Wizard)
    Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Destination - Buyer_.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination
    - Buyer_First_Qtr.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - Buyer" (28) failed with error code 0xC0209029 while processing input "Destination Input" (41). The
    identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information
    about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
    (SQL Server Import and Export Wizard)
    </dir>
    </dir>
    Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - Buyer_First_Qtr returned error code 0xC02020C4.  The component returned a failure code when the pipeline engine called PrimeOutput().
    The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Smash126

    Hi Smash126,
    Based on the error message” Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting
    autogrowth on for existing files in the filegroup”, we can know that the issue is caused by the there is no sufficient disk space in filegroup 'PRIMARY' for the ‘REPORTING’ database.
    To fix this issue, we can add additional files to the filegroup by add a new file to the PRIMARY filegroup on Files page, or setting Autogrowth on for existing files in the filegroup to increase the necessary space.
    The following document about Add Data or Log Files to a Database is for your reference:
    http://msdn.microsoft.com/en-us/library/ms189253.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Can anyone list problems/errors when uploading data using BDC's and BAPI's?

    Can anyone list the problems/errors when uploading data using BDC's and BAPI's?

    Hi,
    If you are actually creating a BDC to load data pls be more specific.
    Data format incorrect. Tab delimited/ etc
    Dates in wrong formats
    Currency incorrect formats
    Missing screens
    Wrong transaction code
    File not found,
    Missing Mandatory fields,
    Screen resoultion.
    You should always use refresh for your Bdcdata table.
    Loop at internal table.
    refresh Bdcdata.
    regards,
    sowjanya.

  • Where to put data processing routine when acquiring data using DAQmx

    I have a program that is aquiring data using the DAQmx Acquire N Samples mechanism with automatic reset and a data handler callback routine. DAQmx acquires N samples (usually 1024) from the board, calls the handler to do something with it, and then resets to get the next batch of data. The program acquires a number of lines of data, say 512 lines of N points each, with one callback call per line. Triggering is done by a hardware trigger at the start of each line of data. So far so good.
    The issue is that the time that it can spend in the callback is limited, or else the callback is not finished when the next batch of data is ready to be transferd from the DAQmx buffers and processed. There is a substantial amount of analysis to be done after the entire frame has been acquired, and it ends up taking far longer than the time between lines; so where to put the processing? The data acquisition is started from a control callback callback that exits back to the idle loop after it starts the data acquisition process, so there is no code waiting to execute, to return to, when the data acquisition is finished.
    I could try to put the data analysis routine into an idle-time routine and trigger it with a semaphore, or I could put it into a timer control callback with, say, a 10 millisecond repetition rate and poll a flag, setting the flag when all of the data has been acquired. Any suggestions would be appreciated.

    I would recommend using Thread Safe Queues. Your acquisition callback can place items in the TSQ and then you can process the data in a separate thread. TSQs are nice because they allow you to install a callback function to run for certain events. Most importantly, you can install a callback for the Items in Queue or Queue Size Changed event which will run the callback if a certain number of items are in the queue. This lets you take advantage of multithreading in a simple and safe way using a standard Producer/Consumer architecture. However, you may still run into problems with this architecture if your acquisition thread is running much faster than the consumer thread. You could eventually overflow the queue. In that case, your only options are to either get a faster system, slow down the acquisition or do the data handling post process.
    National Instruments
    Product Support Engineer

  • Setting focus to a JTextArea using tab

    Hi,
    I have a JPanel with a lot of controls on it. When I press tab I want to
    move focus to the next focusable component. This works fine for
    JTextFields, but when the next component is a JTextArea in a
    JScrollPane then I have to press tab 3 times to set the focus to the
    JTextArea. After pressing the tab key once I think the focus is set to
    the scrollBars of the JTextArea because when I press the up and down
    arrows the textarea is scrolled.
    How can I stop the JScrollPane from getting the focus?
    I have tried to set focusable to false on the scrollPane:
    scrollPanel.setFocusable(false);
    and the scrollBars of the scrollPane:
    scrollPanel.getHorizontalScrollBar().setFocusable(false);
    scrollPanel.getVerticalScrollBar().setFocusable(false);
    But it dosen�t work. Is this a completely wrong way of doing it?
    Please help!
    I use jdk 1.4.1
    :-)Lisa

    Not sure what your problem is. The default behaviour is for focus to go directly to the JTextArea.
    import java.awt.*;
    import javax.swing.*;
    public class Test1 extends JFrame
         public Test1()
              getContentPane().add( new JTextField("focus is here"), BorderLayout.NORTH );
              getContentPane().add( new JButton("Button1") );
              getContentPane().add( new JScrollPane( new JTextArea(5, 30) ), BorderLayout.SOUTH );
         public static void main(String[] args)
              Test1 frame = new Test1();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setVisible(true);
    }

  • Error when importing data using DTW template

    Dear All gurus/experts,
    I have a problem when importing data into SBO system using DTW. The error message is "sort error, pls check the prepared data and delimeter. I use SBO 2004 SP 00 PL 41. I don't understand to cope with this problem, I have no idea anymore. I appreciate your answer. TIA
    Rgds,

    Tks for your reply. I have seen it and the error message relates to delimeter. I have tried to correct the error by recreate the file and save as tab delimeted. Right now I am trying to import the files.
    Rgds,

  • Principals set empty when wlclient.jar used instead of weblogic.jar

    Hi,
    I have a swing client that makes use of JAAS for security.
    When I use weblogic.jar in classpath the client works perfectly. But if I use wlclient.jar in classpath the LoginContext.login() is working fine, loginContext.getSubject() is working fine, but subject.getPrincipals() is returning a empty set. I will be using this principals to display different screens for different principals. Does any one what the solution is?
    Thanks in advance
    Danny

    With the thin client jars there is no current programmatic way that a client could ever retrieve the principals.
    Thin client uses IIOP internally and so this is currently not possible

  • Adobe SDK steals focus when user is using another application

    Hi,
    I’m relatively new to using the Adobe Acrobat SDK, and I’ve encountered a problem that I can’t seem to solve.  It is probably related to the various Focus-loosing problems in this forum, although I haven't seen an exact duplicate issue, so I'm submitting this one
    We are using Adobe Acrobat Pro Ver 9 and the Adobe Acrobat SDK 9.1.
    We have an application that produces quite a few documents, mostly AutoCAD DWG files and Excel XLS files.  We just wrote a module to take all the documents we’ve created and convert them into PDFs and then into a single PDF Binder, using the Adobe SDK.  Our application is a Microsoft Visual C++ application using Visual Studio 2005.
    We basically took the SDK sample code from the ReadCADFileVC sample, put it into a loop, and tweaked the dialog to make it look the way we wanted.
    In general, this has actually worked great for us.  However, we have encountered a serious problem.  If the user selects a large number of DWG or XLS files to convert, the conversion of course takes some time.  So while it is running, the Users will usually do something else, like write an email, or write a document, or other things where they type on the keyboard.  The problem is, the Acrobat SDK code periodically temporarily steals the focus from the other application the User is working in, and the typed in characters appear to get redirected to the spawned instance of AutoCAD or Excel that the Acrobat SDK created, and this causes the whole process of conversion to simply freeze!!  It also annoys the user when their typed in characters simply do not appear in their email or document.  It appears that the typed in characters get sent to AutoCAD (or Excel), and those applications stop and wait for more input from the user.  In tests with just Acrobat Pro, Excel usually puts up a "Save As.." dialog, whereas AutoCAD interprets the characters as commands for its Command Line, so it just waits for more input from the user.
    As noted above, we’ve also verified that this problem occurs when you simply run Acrobat Pro Ver 9 and use it to convert a DWG file.  If you have an email or Word doc open, then start the conversion, then go back to the email or Word Doc and start typing, eventually Acrobat Pro steals the focus and the typed in input gets redirected to AutoCAD, which causes the conversion process to fail.
    We’ve tried a lot of different things in code, like calling CAcroApp->Hide(), or making it invisible, etc., but nothing has helped!!
    We need help fixing this, since we can’t ship the product with it acting like this!!!
    I have code anyone can look at, but it's rather long to add to this message, and the forum does not appear to allow attacment of files, so if anyone answering this needs the code, I can email it.
    Thanks!

    Thanks for the quick reply!
    However, since Acrobat Pro has this problem, and the sample code ReadCADFileVC has this problem,  it does not seem correct to say this is "as designed".  It's a major problem!  Just using Acrobat Pro, the process gets aborted when the user is typing in some other program!  This cannot be deemed acceptable by Adobe?!
    This problem makes using Acrobat Pro, ReadCADFileVC, and the code in our application based on ReadCADFileVC very problematic for our users.  The must be some way to get Windows to prevent this from happening.  I've seen too many other posts on this forum and others about this and realted problems to think that Adobe is going to tell us this is "as designed".

  • Error when extracting data using DB Connect from an Oracle database

    Hi All,
    We are on BI 3.5 and loading data from a non-SAP (Oracle 10g) database using DB Connect.
    I received the following error messages when trying to perform "Check DataSource" using the DB Connect setup in RSA1.
    Event with errors RSDL_META_UPLOAD in DataSource
    Message no. R8287
    Warning Messages;
    Message no. RSDL053
    Field name ReceiptID contains non-alpha-numeric characters
    Field name ActivityDate contains non-alpha-numeric characters
    Field name ReceiptDate contains non-alpha-numeric characters
    Field name ReceiptLineNumber must have between 000001 and 000016 digits
    etc...
    Views are created under the owner's user name. I have checked with DB personnel and they confirm that all the authorization and security access privileges have been correctly granted to the views.
    We are also able to extract the data by running a sql query statement from the views using SQL Plus
    Currently we also have a similar extraction process set up with an Oracle 9 database, which extracts the information without any issues.
    Thanks,
    Anthony

    Hi Mr Loh.
    I know that this thread has over a year ago but i was looking for something similar for over 2 weeks ago and i ialways found this thread...I want to share my experience even that maybe you already found the same solution or something similar (i saw that you check your own post as answered):
    I made a similar connection from BI 7 SP 18, but in my case was to a Microsoft SQL database 2005. When i "check the datasource" i receive like almost 150 warnings and 1 error and all the warnings and errors are the same ones as you describe above. What i did is create a custom view in the MSSQL database and convert all the column names to uppercase and the column names i limited to 16 characters at most. after doing that all the warnings and the error described disappear and i can view the database content when you made click in the "view content table" button.
    I hope that this will help somebody and best regards
    Martin Olmos

  • Logon failed error when pushing data from dataset

    Hi,
    I am trying to embed a Crystal report in an ASP.NET 2005 web page, but every time I run the page I get the following error:
    Logon failed. Details: crdb_adoplus : Object reference not set to an instance of an object. Error in File C:\DOCUME1\PB_IT_AN\ASPNET\LOCALS1\Temp\DIPSummary {DC347D6B-44F8-441F-8940-4A16ACB54E76}.rpt: Unable to connect: incorrect log on parameters.
    I have set up the report using a simple xsd schema in my project which corresponds to the data being extracted from the database (SQL Server 2000) elsewhere within the project.  This is being populated into a datatable (dtPCDipSummary) which is then put in a dataset and used as the data source for the report.  My code is as follows:
                    DSDipSummary.Tables.Add(dtPCDipSummary);
                    oRpt.Load(Server.MapPath("DIPSummary.rpt"));
                    oRpt.SetDataSource(DSDipSummary);
                    crvDIPSummary.ReportSource = oRpt;
                    crvDIPSummary.DataBind();
    I don't understand what the report is trying to log on to, as the only thing it points to is the schema definition within the project - no reference to an external database.
    I have scanned through numerous references to the same error on the internet and tried everything I thought might help but without success.
    Please can someone point me in the right direction to get a solution to this?

    I deleted the report completely and rebuilt it from scratch, and also added names for the data table and data set generated within the project and finally, success!
    Jason, thanks so much for your help which got me moving on this again.

  • Cannot set admin after reset of ix2-dl

    Hello,
    I have used the reset button on the back of my ix2-dl (latest firmware). When I connect to the web interface it asks me to authorize overwriting the data. I agree and am taken to a screen asking me to name my nas and agree to terms and conditions. Once I name and agree it asks me to setup an administrator account. I fill in the form and it returns an error "storage must be available before I can use this feature". The system then loops. I've tried resetting it again only to have the same issue. What can I do here?

    Hello jamavibu
    The ix2-dl was running a 4.1.x firmware version correct?
    What was the reason for the initial pin-hole reset?  
    Were the initial internal hard disks changed out for another drive(s)?
    You may want to try booting the unit without the hard disks, then reset the unit after it fully boots and the web ui lists the "device not ready..." message.  After the reset completes, please power down the unit and insert at least one hard disk then boot up again and attempt the setup.
    You might need to clean the disks in preperation for the above option in case the issue you are experiencing is due to a glitch in the portion of the firmware loaded to the hard disk on setup.
    LenovoEMC Contact Information is region specific. Please select the correct link then access the Contact Us at the top right:
    US and Canada: https://lenovo-na-en.custhelp.com/
    Latin America and Mexico: https://lenovo-la-es.custhelp.com/
    EU: https://lenovo-eu-en.custhelp.com/
    India/Asia Pacific: https://lenovo-ap-en.custhelp.com/
    http://support.lenovoemc.com/

  • Java Character set error while loding data using iSetup

    Hi,
    I am getting the following error while migrating settup data from R12 (12.1.2) Instance to another R12 (12.1.2) Instance, Both the Database has same DB character set (AL32UTF8)
    we are getting this error while migrating any setup data
    Actual error is
    Downloading the extract from central instance
    Successfully copied the Extract
    Time taken to download Extract and write as zip file = 0 seconds
    Validating Primary Extract...
    Source Java Charset: AL32UTF8
    Target Java Charset: UTF-8
    Target Java Charset does not match with Source Java Charset
    java.lang.Exception: Target Java Charset does not match with Source Java Charset
         at oracle.apps.az.r12.common.cpserver.PreValidator.validate(PreValidator.java:191)
         at oracle.apps.az.r12.loader.cpserver.APILoader.callAPIs(APILoader.java:119)
         at oracle.apps.az.r12.loader.cpserver.LoaderContextImpl.load(LoaderContextImpl.java:66)
         at oracle.apps.az.r12.loader.cpserver.LoaderCp.runProgram(LoaderCp.java:65)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Error while loading apis
    java.lang.NullPointerException
         at oracle.apps.az.r12.loader.cpserver.APILoader.callAPIs(APILoader.java:158)
         at oracle.apps.az.r12.loader.cpserver.LoaderContextImpl.load(LoaderContextImpl.java:66)
         at oracle.apps.az.r12.loader.cpserver.LoaderCp.runProgram(LoaderCp.java:65)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Please help in identifying and resolving the issue
    Sachin

    The Source and Target DB character set is same
    Output from the query
    ------------- Source --------------
    SQL> select value from nls_database_parameters where parameter='NLS_CHARACTERSET';
    VALUE
    AL32UTF8
    And target Instance
    -------------- Target----------------------
    SQL> select value from nls_database_parameters where parameter='NLS_CHARACTERSET';
    VALUE
    AL32UTF8
    The Error is about Source and Target JAVA Character set
    I will check the Prevalidator xml from How to use iSetup and update the note
    Thanks
    Sachin

  • Error when loading data using transformation

    Hi,
    I load a text file into an application using Transformation file. The load failed with error "Enforced *DESTINATION cannot be empty". What does this error mean?
    Thanks

    Hi Liana,
    Do you have default logic turned on?
    When you validate and process the transformation file, select the file that you want to load at the first prompt.
    Do you get the same error?
    Thanks,
    John

  • Losing keyboard focus  when resetting

    I have Player object which is focusable and works fine. However when I try to reset the object with following code:
         public void reset(){
              t.stop();
              remove(player);
              player = new Player(50,60);
              add(player);
              x=50;y=60;
              t.start();
              System.out.println("reset");
         }I lose the focus on player. Everything else works fine but player isn't getting any keyevents after the reset.

    Ok here's sscce
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    class resetTest extends JPanel{
    Player player = new Player();
         public static void main(String[] args){
              JFrame f = new JFrame("resetTest");
              f.add(new resetTest());
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.pack();
              f.setVisible(true);
         public resetTest(){
              add(player);
         public Dimension getPreferredSize(){
              return new Dimension(200,200);
         public void reset(){
              remove(player);
              player = new Player();
              add(player);
              System.out.println("reset");
         class Player extends JPanel implements KeyListener{
              public Player(){
                   this.setBorder(BorderFactory.createLineBorder(Color.black));
                   this.setFocusable(true);
                   this.addKeyListener(this);
              public void keyPressed(KeyEvent e){
                   System.out.println(e.getKeyCode());
                   if(e.getKeyCode() == 10){ ((resetTest)getParent()).reset();}
              public void keyReleased(KeyEvent e){}
              public void keyTyped(KeyEvent e){}
    }If you run this you'll notice that it notices key presses fine, but when you reset it with enter key it stops working.

  • Cannot set child's birth date while creating Apple ID for iOS 8 family sharing

    Just upgraded my iPhone 4S to iOS 8 and am in the process of setting up Family Sharing. I want to create an Apple ID for my 13-year old. For some reason iOS doesn't let me enter the birthday properly. It keeps rolling back to 18 September 2001 (exactly 13 years ago today). My kid's birthday is several months earlier.
    iOS does let me choose any later date, e.g. in November 2001 or 2011. But as soon as I choose a date earlier than 18 September 2001, iOS rolls back to 18 Sep 2001.
    Since children under 13 are not eligible, it seems that only children that are EXACTLY 13 years old today (happy birthday!) can get an Apple ID.
    Must be a bug, right?

    If they are 13 they would obtain a normal Apple ID (13 is the age cutoff historically for an Apple ID). They should create one normally and then you can associate it with your account. I don't know if purchase control will work with that.

Maybe you are looking for

  • 11g Search Index is returning duplicate entries

    We are building up our 11g environments in preparation for migrating over from 10g. In one of our env's (UAT), we have an issue where, if we do a search on a Metadata field or Full Text value, the search engine is returning duplicate results - i.e. e

  • How to lookup the INFOCUBE?

    Hi, How to look up records in Infocube in the Start or Endroutine ? In DSO there ist a active table, i could SELECT * from /BIC/XXXXXXX Where...... but in Infocube there are a Fact table and some dimension tables.

  • Why does iMessage open when I"m chatting in google?

    Why does the login to iMessage window open up when I'm chatting through gmail?

  • Safari crashes all the time and flash cannot be updated. virus or what?

    hi guys! my safari keeps closing suddenly all the time. it's not "quit unexpectedly" with report kind of crash. it prompts no report whatsoever. when I relaunch it, it always opens in the same condition it left, with all the same tabs. and also it sa

  • HP iPrint Photo 3.0 won't connect with HP LaserJet P1102W

    The app I'm having problems with is the HP iPrint Photo 3.0 app. It can't find my LaserJet P1102W. I spoke with someone at HP who told me that it wasn't supported by this app but then I read otherwise in a previous posting. If it is supported, are th