Importing data to a text field - what am I doing wrong?

I was pulling my hair out over this for half the weekend

My ultimate goal is to read a date stored in a text file and display it in a text on my PDF page field.

However, I'm currently stuck at the point simply import the pure text (without reformatting the date format, I want in the end).

The text in my text file is simply a list of dates (I want to print the first in the list). Read about the function importTextdata, I added a header line with the name of text field - then the content of my text file looks like this:

LastSyncDate

12:17:53.54 10/09/2012

14:23:45.32 10/04/2012

23/07/2012 12:46:35.51

Never

I understand that the importTextData command is a privileged function, so I wrote a script from folder level to read the text file and store the text in a variable, which is then assigned to the text box.

I then called the confidence function to the Document Script of the page level:

Script folder level:

LastSyncCalc3 = app.trustedFunction (function()

{

app.beginPriv ();

var LastSync3 = importTextData ("/ C/sync/bin/LastSyncTest.txt", 0);

this.getField("LastSyncDate").value = Lastsync3;

app.endPriv ();

}

);

Script level document:

LastSyncCalc3();

Execution of this displays the following errors in the console:

importTextData is not defined

4:document - level: SyncDate

ReferenceError: importTextData is not defined

4:document - level: SyncDate

Thinking that I had misplaced orders, I changed the folder level script and the script level document as follows:

Script folder level:

LastSyncCalc3 = app.trustedFunction (function()

{

app.beginPriv ();

var LastSync3 = importTextData ("/ C/sync/bin/LastSyncTest.txt", 0);

app.endPriv ();

}

);

Script level document:

this.getField("LastSyncDate").value = Lastsync3;

Execution of this displays the following errors in the console:

Lastsync3 is not defined

1:document - level: SyncDate

ReferenceError: Lastsync3 is not defined

1:document - level: SyncDate

Where am I going wrong please?

Instead:

Script folder level:

LastSyncCalc3 = app.trustedFunction (function()

{

app.beginPriv ();

var LastSync3 = importTextData ("/ C/sync/bin/LastSyncTest.txt", 0);

this.getField("LastSyncDate").value = Lastsync3;

app.endPriv ();

}

);

Script level document:

LastSyncCalc3();

Use this:

Script folder level:

LastSyncCalc3 = app.trustedFunction (function (doc)

{

app.beginPriv ();

var LastSync3 = doc.importTextData ("/ C/sync/bin/LastSyncTest.txt", 0);

doc.getField("LastSyncDate").value = Lastsync3;

app.endPriv ();

}

);

Script level document:

LastSyncCalc3 (this);

Tags: Acrobat

Similar Questions

  • A few days, I bought a mac mini which I transferred the data and programs with time machine: programs have been updated except for iMovie, and now it seems that I have to pay for the update: possible? What I am doing wrong?

    A few days ago, I bought a mac mini and I transferred all my data and programs with time machine: all programs have been updated but iMovie (7.1.4)... However, it seems that, to update to the latest version, I have to pay to download on Appstore: is it possible? what I am doing wrong?

    If it were a new mac mini, you need already installed 10.1 iMovie.  Otherwise, but you already have iMovie 9 registered version to your Apple ID, you can upgrade to version 10 for free, but if (as it appears) is an earlier version then you have to buy version 10.

    Geoff.

  • The attached VI works when I run it initially to create the XML file, but by pressing once the XML file is created, it is not up-to-date. What I am doing wrong?

    The attached VI works when I run it initially to create the XML file, but when I change the data and run once the XML file is created, it is not updated with new data. What I am doing wrong?

    Thank you.

    It sounds like the logic that has been written in VI

    Internal decision of true / false:

    (file exists: false) write in the file XML, unflatten for display

    (file exists: true) read the XML file, unflatten for display

    At no time when the file exists (true case) is the XML file updated...

  • I can't select the text button in MS Paint. What I am doing wrong?

    I try to ad text to a photo and the button text in MS Paint is garyed out and won't let me select it. What I am doing wrong?

    Maybe the info will be useful...

    The text in the tool palette button to you referring
    the left side of the screen or one of... Display / text toolbar?

    In Vista... Zoom must be set to 100% to make the live button text.

    View / Zoom / Custom / 100%

    If you left click the 'A' in the palette tools and click left/drag
    a box in the position where you want the text... the bar of text tools
    should become alive.

    FWIW... the free Picasa software has better options for adding
    text of photos.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Picasa
    http://Picasa.Google.com/
    (for Windows XP/Vista/7)

    After you download and install Picasa...
    Open the program and double left click
    an image to open the editing functions.

    To add text to the front of the photo...
    choose... Simple retouching / text button...

    "Retouching" features: crop, add text, editing
    http://Picasa.Google.com/support/bin/answer.py?answer=93403

  • I imported a SVG in muse.  She builds and presents in preview.  However, once published, the graphics are shown as a broken link.  What I am doing wrong?

    I imported a SVG in muse.  She builds and presents in preview.  However, once published, the graphics are shown as a broken link.  What I am doing wrong?

    When you save your SVG chart, be sure to check the option to embed images. Otherwise, images will appear in the SVG as a link to a separate file and link-outs when you download the SVG.

  • Can someone tell me what I'm doing wrong when you create a native extension for iPad? (Very detailed)

    My company is developing a game for iPhone and iPad using Flash cs5.5 and Air3.0

    The customer requires that certain features be supported - these things as GameCenter, rating, etc... which none are currently supported by flash for the iOS.

    However, they provide us with a bunch of xCode example files on how they want things to work.

    My idea was to bridge the gap in functionality by creating a native extension using the xcode source that was given to me, giving me the required functionality.

    But first, I need to truly CREATE a native extension, even just a base echo/hello everyone... I followed all the steps of various guides and tutorials and I have managed to create an ipa and put it on my iPad 2 to test, but when the program starts, nothing happens, I find myself with a black screen. When I comment on the lines of code that initialize the extension, it fires just fine.

    (and Yes, I even tried to put things in try blocks where there was a mistake - no luck)

    So I hope that someone can read through the process of what I do below and point out what I am doing wrong, or what Miss me.

    What I use:

    Mini Mac running OS x 10.7.2 - this is used to run xCode 4.1 build 4B 110

    PC - Windows 7 home 64 bit - running Flash CS5.5 (version 11.5.1.3469) with the 3.0 SDK inside AIR. I also have the sdk 3.0 air in a separate file for the command-line running. (This is my primary development platform)

    The PC has flash builder installed, but I've never really used it, and I don't know how to use it... everything that has been built to date has been done using Flash CS5.5

    So, here's what I did.

    The first thing we do is to create a library static .a on mac.

    I open xcode and create a new project.

    • Select iOS framework and library, then select "Cocoa touch static library.
    • Give it a name, in this case "EchoExtension" and put it in a folder.
    • I then delete the file EchoExtension.h as all the samples I've seen so far do not use.
    • I then add 'FlashRuntimeExtension.h' to the project of the AIR3.0 sdk frameworks folder on my PC
    • I remove everything in my folder ".m", and then, next to several different examples and tutorials, type the following code:

    //

    EchoExtension.m

    EchoExtension

    //

    #include "FlashRuntimeExtensions.h".

    Echo FREObject (FREContext ctx, void * funcData, uint32_t argc, {FREObject argv)

    return argv [0];

    }

    //----------- Extention intializer and finalizer ----------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------ -

    A native context instance is created

    void ContextInitializer (void * extData, const uint8_t * ctxType, FREContext ctx, uint32_t * numFunctionsToTest, const FRENamedFunction * functionsToSet) {}

    Configure the number of functions in this extention

    for ease of reference, set the number of function that will use this extension.

    int FunctionCount = 1;

    set the number of function pointer reference that will use this extention.

    * numFunctionsToTest = FunctionCount;

    create an array to store all the functions that we will use.

    FRENamedFunction * func = (FRENamedFunction *) malloc (sizeof (FRENamedFunction) * FunctionCount);

    create a table for each function entry

    Func [0] .name = (const uint8_t *) "echo"; the name of the function

    Func [0] .functionData = NULL;                    the data type

    Func [0] .function = & echo;             the reference to the real function

    Save the array to a pointer.

    * functionsToSet = func;

    }

    A native context instance is deleted

    void ContextFinalizer (FREContext ctx) {}

    return;

    }

    Initialization of each extension function

    void ExtInitializer (void * extDataToSet, ctxInitializerToSet FREContextInitializer *, FREContextFinalizer * ctxFinalizerToSet) {}

    * extDataToSet = NULL;

    * ctxInitializerToSet = & ContextInitializer;

    * ctxFinalizerToSet = & ContextFinalizer;

    }

    Called when the extension is unloaded

    void ExtFinalizer (void * extData) {}

    return;

    }

    • I'll then 'product', 'building' and it creates libEchoExtension.a
    • I'm copying this .to file on my PC.

    I am now finished with this abandoned mac of God (* shudder *)
    Back on my PC, I create a folder for my test project. For all the intentions a purposes, we will call this "D:\src\EchoExtension" then I create 2 folders, one called "lib" and one called "app". Lib, it's where I'm going to create the actionscript source for my extension.

    • In my lib folder, I create a new fla in flash cs5.5, called "EchoExtension.fla".
    • I create my lib folder, the following:
      • com\extensions\EchoExtension\EchoExtension.as
      • a folder named 'Build' in which I place my libEchoExtension.a file.
    • I have in my EchoExtension.as file, place the following code:

    package com.extensions.EchoExtension

    {

    import flash.events.EventDispatcher;

    import flash.events.IEventDispatcher;

    import flash.external.ExtensionContext;

    SerializableAttribute public class EchoExtension extends EventDispatcher

    {

    protected var _extensionContext:ExtensionContext;

    /**

    * Constructor.

    */

    public void EchoExtension()

    {

    Super();

    Initialize the extension.

    _extensionContext = ExtensionContext.createExtensionContext ("com.extensions.EchoExtension", "main");

    }

    public void echo(Prompt:String):String

    {

    Return _extensionContext.call ("echo") as String;

    }

    }

    }

    • In my main fla, on the first layer of the time line, I put just the following code to make sure that did get file included when I publish the swc.

    import com.extensions.EchoExtension.EchoExtension;

    var ext:EchoExtension = new EchoExtension();

    Stop();

    • I then opened upwards from my fla publication settings, disable the swf - which I don't need, and check the swc and ensure it generates in my generation folder.  «. "/ Build/EchoExtension.swc.
    • I also updated the player Air 3.0 (which I can do because I managed integrated AIR 3.0 along side my AIR 2.6 and can build both without any problem)
    • I then publish the swc. So far so good. No problems.
    • I then made a copy of the CFC and rename it to EchoExtension.swc.zip, how I extracted the library.swf file and place it in the folder of my generation.
    • I then create extension.xml in case of generation that contains the following code:

    " < extension xmlns =" http://ns.Adobe.com/air/extension/2.5 ">

    com.extensions.EchoExtension < id > < /ID >

    < versionNumber > 1 < / versionNumber >

    <>platforms

    < platform name 'iPhone-ARMS' = >

    < applicationDeployment >

    < nativeLibrary > libEchoExtension.a < / nativeLibrary >

    < initializer > ExtInitializer < / initializer >

    < finalizer > ExtFinalizer < / finalizer >

    < / applicationDeployment >

    < / platform >

    < / platforms >

    < / extension >

    • Now, at this point, I'm a little suspicious, because I build for the iPad2... the platform is iPhone... I thought that may be a problem and at some point I have tested the same build on the iPhone4 and had the same results. I also tested using the name of the platform of the iPad-ARM and got the same results... So I don't think that's the problem, but I'm not sure.
    • Now, to make things easier, I created a batch file called "buildane.bat" in my file generation. That's what I use to create my .ane file and it contains the following command line:

    D:\SDKs\AirSDK30\bin\adt-Paquet - target ane EchoExtension.ane extension.xml - CFC EchoExtension.swc - iPhone-ARM library.swf libEchoExtension.a platform

    • I then open a command prompt and run buildane.bat and Ottoman. My donkey is created. My generation file now has the following files in it:
        • buildane.bat
        • EchoExtension.ane
        • EchoExtension.swc
        • EchoExtension.swc.zip
        • extension. XML
        • libEchoExtension.a
        • Library.swf

    Now that I have my swc, donkey and it's time to create my sample application that will be used to test my new extension.

    • I go back to my D:\src\EchoExtension folder and go to the folder app ealier, I created.
    • I then create a new flash project called EchoExtensionTester.fla
    • I open the action script settings, paths to library and add the CFC I created in my D:\src\EchoExtension\lib\build file to my project.
    • On my stage, I create a field called text txtInput, a field of dynamic text named txtEcho, and a couple of buttons called btnClear, btnRuntime and btnEcho
    • I open the first layer of the timeline, and place the following code:

    imports of base.

    import flash.desktop.NativeApplication;

    import flash.events.MouseEvent;

    import flash.text.TextField;

    import the extension of our swc.

    import com.extensions.EchoExtension.EchoExtension;

    the value of our input text to the need the softkeyboard field

    txtInput.needsSoftKeyboard = true;

    Add event handlers to our buttons.

    btnEcho.addEventListener (MouseEvent.CLICK, btnEcho_Click);

    btnClear.addEventListener (MouseEvent.CLICK, btnClear_Click);

    btnRunTime.addEventListener (MouseEvent.CLICK, btnRunTime_Click);

    create our variable expansion.

    var ext:EchoExtension;

    Try

    {

    initialize our extension of echo.

    Ext = new EchoExtension();

    } catch (error) {}

    txtEcho.text = 'Error when trying to create new EchoExtension:\n\n' + e;

    }

    Stop();

    Delete the text echo field

    function btnClear_Click(e:MouseEvent):void

    {

    txtEcho.text = "";

    }

    just to test, put the latest version of the air runtime in our text field, so we can make sure we run air 3.0

    function btnRunTime_Click(e:MouseEvent):void

    {

    txtEcho.text += "\nRuntime version =" + NativeApplication.nativeApplication.runtimeVersion; ".

    }

    call the extension, passing all that is in the text input field and get back and place it in our text echo field

    function btnEcho_Click(e:MouseEvent):void

    {

    txtEcho.text += "\n";

    Try

    {

    txtEcho.text += ext.echo (txtInput.text);

    } catch (error) {}

    txtEcho.text += "\nError call ext.echo:"+ e;»

    }

    }

    • I save the project, Open Air for the parameters of the iOS, then perform the following settings: (Yes, I know... I'll have to use adt to perform the build, but I need to first create the swf file)
      • File: EchoExtensionTester.ipa
      • AppName: EchoExtensionTester
      • Version 1.0
      • Landscape
      • Full screen on
      • Auto orientation is disabled
      • GPU rendering
      • device: iPad and iPhone
      • RES: high
      • Deployment: I use my certificate and profile provisionging that I use for my main project (that works) and defined for the test of the device.
    • I close the window and save again... but before I publish, I opened newly created "EchoExtensionTester - app.xml" which is located in my app folder.
    • I add the extensions <>< extensionID > com.extensions.EchoExtension < / extensionID > < / extensions > to the XML in the file so now it looks like this:

    <? XML version = "1.0" encoding = "UTF-8" standalone = 'no '? >

    " < application xmlns =" http://ns.Adobe.com/air/application/3.0 ">

    <>Extensions

    < extensionID > com.extensions.EchoExtension < / extensionID >

    < / extensions >

    < id > EchoExtensionTester < /ID >

    < versionNumber > 1.0 < / versionNumber >

    < file_name > EchoExtensionTester < / name of the file >

    < description / >

    <!-to locate the description, use the following format for the description element. < description > < text XML: lang = "fr" > App English description goes here < / text > < text XML: lang = "fr" > French App description goes here < / text > < XML text: lang = "ja" > Japanese App description goes here < / text > < / description >->

    < name > EchoExtensionTester < / name >

    <!-to locate the name, use the following format for the name element. < name > < text XML: lang = "fr" > insert here the name App English < / text > < text XML: lang = "fr" > insert here the French App name < / text > < XML text: lang = "ja" > insert here the Japanese App name < / text > < / name >->

    < copyright / >

    < initialWindow >

    < content > EchoExtensionTester.swf < / content >

    standard < systemChrome > < / systemChrome >

    < clear > false < / transparent >

    < visible > true < / visible >

    true < fullscreen > < / full screen >

    landscape of < aspectRatio > < / aspectRatio >

    GPU < renderMode > < / renderMode >

    < maximizable > true < / maximizable >

    < minimizable > true < / minimizable >

    < resizable > true < / resizable >

    < autoOrients > false < / autoOrients >

    < / initialWindow >

    < icon / >

    < customUpdateUI > false < / customUpdateUI >

    < allowBrowserInvocation > false < / allowBrowserInvocation >

    < iPhone >

    < InfoAdditions >

    <! [CDATA [< key > UIDeviceFamily < / key > < table > < String > 1 < / string > < string > 2 < / string > < / array >]] >

    < / InfoAdditions >

    < requestedDisplayResolution > top < / requestedDisplayResolution >

    < / iPhone >

    < / application >

    • I save the changes to the xml file and return to Flash. I then publish.
    • The swf file is created as it should be, but then I get the error message:

    Error creating files.

    A native implementation extension 'com.extensions.EchoExtension' required by the application is not found for the target platform.

    • Now, while it is a pain in the rear, I again, this was going to happen because in my reading tutorials and samples, they have all said that you use adt to build the ipa... but that is fine... all I wanted anyway, was the swf, which I now have in my app folder.
    • I close flash because I no longer need and I create a new batch file: (Note: I have change the name of the cert, profile and password for this post)

    CLS

    "D:\SDKs\AirSDK30\bin\adt" - package - target the ipa-ad-hoc - stores pkcs12 - keystore "D:\src\mycert.p12" - storepass MYPASSWORD-putting into service-profile "D:\src\myprovfile.mobileprovision" "EchoExtensionTester.ipa" "EchoExtensionTester - app.xml" "EchoExtensionTester.swf" - extdir... / lib/Build

    Set dummy = p

    ECHO done

    • I then open a command window in my app folder and run build.bat.
    • I wait about 2 minutes...
    • ...
    • ...
    • YAY! My ipa file was created without error reported so far... Time to copy this bad boy to the iPad and see what happens.
    • I opened iTunes, drag "EchoExtensionTester.ipa" to the applications, then synchronize my device...
    • ...
    • YAY! iTunes installed ipa on the device... and there is a white icon bright and shiney for Echo Extension tester...
    • I open the app... and...
    • nothing.
    • I'm waiting for
    • still nothing.
    • I go to the bathroom.
    • I'll be back... still nothing... just a black screen.
    • I press the home button on the iPad, the app minimized, I restore it... nothing... black screen.

    management of human resources. Time to do some trial and error to see if I can figure out what the distribution.

    • As a test, I opened my fla and I comment out the following lines:
      • Ext = new EchoExtension();
      • txtEcho.text += ext.echo (txtInput.text);
    • I then rebuild the swf... get the same error (don't care)... I then rebuild the ipa using the batch file... and reinstall it on the device when it is made.
    • Exactly the same thing...
    • I opened the xml file... and remove the < extensionID > com.extensions.EchoExtension < / extensionID > line, save and re - run the batch file again... Wait for the ipa ends, then run it on the device.
    • I start the program on the iPad and it starts perfectly... with the exception of the commented line of code actually create and call the extension, everything works as it should. The runtime on the device reports as 3.0.0.4080
    • A test, I opened the .fla save and uncomment the 2 lines, I commented out above... keep the xml file extensionID, I re - publish the ipa... of course, this time, it actually creates the flash API, because the id of the extension is not in the xml file.
    • I put the file API with the extension in place on the ipad code... The fire and make the txtInput text and press the button of the echo. I get the following error:
      • Error calling ext.echo: TypeError: Error #1009
    • I suspect it's because I failed to include the extension in the descriptor... but when I build it with the extensionid in the xml file, I just get a black screen. I'm 99% sure that the context of the extension in the ext object is null (because that's what happens when I run Flash debug without extension lines in the xml)

    And here I am stuck.

    Can someone tell me what I am doing wrong or what I forgot to do?

    Thank you.

    Hi can check you if the CFC of the native extension is linked as external?

    Next image can help locate and change the link type of CFC.

    The issue that many people face here (i.e. extension works fast/interpreter mode and only when they are packed in standard mode) occurs only when the SWC of the NE is not linked externally.

    I hope this helps.

    Kind regards

    Mathyas blabla

    IOS of the AIR

  • The short films that I do in Windows Movie Maker fail to run after about 1 minute, regardless of the format, I save in (WMV or AVI) any ideas why or what I am doing wrong?

    The short films that I do in Windows Movie Maker fail to run after about 1 minute, regardless of the format, I save in (WMV or AVI) any ideas why or what I am doing wrong?

    I'm just looking to add the opening titles to the pieces of film of aprox 3 Germans, but everytime I try and save files for uploading to Youtube, then fail shortly after a minute. The sound and picture freeze while the counter continues until the end of the file.

    am driven crazy by this so any advice would be welcome...

    Hello

    My friend John Papa - MVP - is the expert on Windows Movie Maker.

    PapaJohn.org
    http://Papajohn.org/

    PapaJohn - online tutorials
    http://www.Papajohn.org/mm2-online-tutorials.html

    Windows Movie Maker Tutorials - see the menu on the left and others on the main screen.
    http://www.windowsmoviemakers.NET/tutorials/

    Windows Live Movie Maker Forums are good sources of information:

    Windows Live Movie Maker that works on Vista and Windows 7, see the link under Windows Live Essentials.
    http://windowslivehelp.com/

    Windows Live - Movie Maker Portal - official support Site - see also the Forums of the right part of the page
    http://windowslivehelp.com/product.aspx?ProductID=5

    ====================

    These might help:

    Getting started with Windows Movie Maker

    Import video, photos and audio on Windows Movie Maker

    Import video from a videotape

    Get a movie in Windows Movie Maker

    Make a movie quickly in Windows Movie Maker (AutoMovie)

    Publish a movie in Windows Movie Maker

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Call my Subvi? what I am doing wrong

    Hello people

    I'm trying to create a simple program to read data from 3 channels, I created a main VI for the GUI and a Subvi allow the user to choose what channels he would like to make a link to the lights on the front panel.

    I did something that s look like what I joined, but I have the following problems:

    Sometimes and not all the time when I opened the main VI, I find the Subvi opening automatically without pressing the call button, in this case, I find already pressed the OK button and I can't close the Subvi, it happens all the time if I joined the vi one program exe.

    If the Subvi has been called, if try to close it with the close 'x' windows key all freeze in primary vi.

    I also tried adding other similar loops with two subvis to settings for other digital channels, and the same thing happens with them.

    what I am doing wrong.

    Thanks in advance

    There is an event for the Connect button that runs when you press it. It will be connected, but only if the Boolean value in the shift register is true, i.e. If you have configured channel settings once. If you tap on connect just after the start of the program, it does not connect.

    If you want a different behavior, you can leave out the Boolean value completely and initialize the shift register for example with default string parameters. I have fieldpoint, so I can't do right now.

  • Help! I did a movie with pictures on Movie Maker, played very well. Now, it's just to show Xs red in the photos of some, but not all. What I am doing wrong?

    I did a movie with pictures on Movie Maker and played very well.  Now, it's just to show Xs red in the photos of some, but not all.  What I am doing wrong?

    When you save your project, and then rename, move or delete a photo next time you open your project, you will see a red X where the photo was. Just a click with the right button on the X and select Remove then import your photo again under the new name or location and click on save project on the file menu.

    In the menu task under finished film click Save to my computer tracking instructions and your project will be saved as a movie.

  • I created a 'film' in Windows Movie Maker with audio. I'm now trying to burn on a DVD in windows DVD creation, but the program will change the order of my photos. What I am doing wrong?

    I took pictures of a Picasa folder and created a "slideshow" with audio in Windows Movie Maker. It's over, but when I try and save it to a dvd using windows DVD create, change the order of my photos are randomly. Am I missing a setting? What I am doing wrong?

    It may be interesting to try to publish (Save) project in the. Film WMV
    format in a folder on your hard drive. Then import them. WMV file in
    Creating Windows DVD.

    Windows Vista - publish a movie in Windows Movie Maker
    http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-Maker

    Movie Maker Vista - Edition
    http://www.Papajohn.org/Vista-publishing.html

  • Overview of application icon - what am I doing wrong?

    I have read the kbase article and examined for messages but when even did not quite understand how flipping properly application icons.  I found the kbase article got halfway there and it seems to work, but not as I know reading the article.  I don't know that I'm doing something wrong.  I use Eclipse with v4.5 with a 8330 Simulator to test.

    Here's what I do now:
    Once completed the main application, I created a second application without code.  It is defined as another point of entry to my main application, has done started TICKING Autorun feature and has a png set in the project properties for the application icon.  It is also to pass the text "mistletoe" as an arg for the hand of my main application Sub in the properties of the application.

    In my main application, I have configured to be a system module in the properties of the application (don't think it was mentioned in the kbase article but if not then an icon shows the main application and the app of reversal) and added a similar to the following code in the Sub main.  According to the kbase article the bitmap/homescreen lines should be in another statement, but I moved it because of the problem I'm having (explained below).

    Public Shared Sub main (String [] args) {}
    Icon bitmap = Bitmap.getBitmapResource ("rollover.png");
    HomeScreen.setRolloverIcon (icon);

    If (args! = null & args.length > 0 & args [0] .equals ("gui")) {}
    new PhoneBookApplication () .enterEventDispatcher ();
    }
    }

    The problem

    As I said, it works, but according to the debugger 'mistletoe' text is passed to the Sub main of main application on AutoPlay and when the application is opened manually (shouldn't be my reading of the article) which means that the 2 lines of flipping that should be in the else statement were never executed.  Placing them out of the if it works correctly (even if the FI is not necessary at this stage because the condition is always true).  I'm surprised that the application attempts to start the application during automatic execution of the bearing another entry has no or a mistake or to launch the application but it has no the debugger indicates he's going through these lines of code (watch).  Can someone tell me what I am doing wrong?  I know it works, but I'd rather do it properly.

    Thank you

    Tim

    The problem seems to have been the line:

    HomeScreen.setRolloverIcon (icon);

    If I use the method call to an index, it works perfectly:

    HomeScreen.setRolloverIcon(icon,1);

    My first try at the top was obviously incorrect, but this correction and with the changes in the second post everything seems to work perfectly.  I don't know why it does not work without the index because this is what is shown in the samples.  A problem introduced in 4.5?

  • get the ora-01830, but cannot say what I'm doing wrong

    Hi, Oracle 11g R2.

    Could someone help me understand what I'm doing wrong in following select clause? I'm trying to convert the difference in seconds to hh.

    ISN.snapshot_ts and iobd.bd_handshake_ts are TIMESTAMP (6) WITH ZONE SCHEDULE

    Select to_date ((to_date (to_char (isn. )))) snapshot_ts , 'HH24:MI:SS DD/MM/YYYY'), ' MM/DD/YYYY HH24:MI:SS')

    - to_date (to_char (iobd. )) bd_handshake_ts , 'MM/DD/YYYY HH24:MI:SS'), 'MM/DD/YYYY HH24:MI:SS'))*60*60*24, 'sssss')

    Hello

    Back-and-forth conversion as

    TO_DATE (to_char)

    are almost never necessary in Oracle.  There are a lot of built-in functions and features that make everything you need more simply.

    If you subtract one TIMESTAMP on the other, the result is an INTERVAL DAY TO SECOND.

    If you view an INTERVAL DAY TO SECOND, it is formatted as

    + 00:01:10.879000 000000000

    which is what you want.  In fact, it's what you want and then some others, which can be a problem for you.  If you are certain that the difference will be less than 24 hours, you can display the number of days in the beginning, and you're neither to display fractions of a second at the end.  In this case, you can convert the INTERVAL DAY TO SECOND string and then use SUBSTR (or similar) to get exactly the parts you want.

    Try something like:

    SELECT isn.snapshot_ts - iobd.bd.handshake_ts AS diff

    ...

    If this isn't what you want (or close enough) then after a small example of data (CREATE TABLE and INSERT statements) and the accurate results you want from these sample data.

    Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?

  • I just joined. I chose convert PDFS into a word document. I downloaded it. but I can't change it yet. What I am doing wrong? Some PDF cannot be converted?

    I just joined. I chose convert PDFS into a word document. I downloaded it. but I can't change it yet. What I am doing wrong? Some PDF cannot be converted?

    Hi karenb60536875,

    There are some PDF types (such as those that are protected by password) that cannot be converted. But when this is the case, you will get a message during conversion and the conversion stops. It looks like not this is the case for you.

    What happens when you open the Word document converted to Word? You see an enable editing button in the upper part of the document? If so, please click on that. If you are still unable to select text in the Word document, try triple click to select.

    For reference, I will say that the quality of the conversion depends on the quality of the PDF file (see Will Adobe ExportPDF convert text and shape... |) Adobe Community). Thus, there may be cases where a PDF prepared by a third party application (a non Adobe application), may not be written to spec, and that can affect the accuracy of the conversion.

    Best,
    Sara

  • I bought a Nikon D7100. Lightroom does not recognize the Nef Raw files what I am doing wrong?

    I bought a Nikon D7100. Lightroom does not recognize the Nef Raw files what I am doing wrong?

    Thank you for your response. I solved the problem by simply importing the

    images using windows rather than the Nikon transfer.

    In a message dated 09/03/2015 20:00:49 Hawaiian Standard Time,

    [email protected] wrote:

    I bought a Nikon D7100. Lightroom does not recognize Nef Raw files

    what I am doing wrong?

    created by BKKDon (https://forums.adobe.com/people/BKKDon) in Photoshop

    Lightroom - see the discussion complete

    (https://forums.adobe.com/message/7270711#7270711)

  • I try to add the Youtube widget, but I get a plugin saying blocked black box. I even tried to incorporate both YouTube and it does the same thing. But when I drag the widget Vimeo more, it connects properly. What I am doing wrong and

    I try to add the Youtube widget, but I get a plugin saying blocked black box. I even tried to incorporate both YouTube and it does the same thing. But when I drag the widget Vimeo more, it connects properly. What I am doing wrong and how can I solve this problem?

    Make sure that the web browser you are using and its Flash plug-in is up-to-date. Google Chrome has its own plug-in Flash, it updates on its own. Firefox, IE and others have separate plug-ins.

Maybe you are looking for