Catch kTransformPageItemsCmdBoss command

Hello everyone.
Can't get how to sign on command handling:
I've object,
CMyShape: public CGraphicFrameShape
Then, when I select it on the Drawing, and set the scaling percentage to 200%, the bounding box is scaled twice bigger. But I also need to scale by objects to 200%.
How to sign on scaling command?
I have debug version of InDesign. I added my plug-in, attached with visual studio to InDesign process, turned on all the commands in Diagnostics. Then tried to scale my object.
Thats what i got:
Turning command trace on
kTransformPageItemsCmdBoss Diagnostics::ProcessCommand()
IID_ICOMMAND, kTransformPageItemsCmdImpl
IID_IDYNAMICUPDATE, kDynamicUpdateImpl
IID_ITRANSFORMCMDDATA, kTransformCmdDataImpl
IID_IBOUNDSDATA, kBoundsDataImpl
IID_IBOUNDSCHECKER, kTransformCmdBoundsCheckerImpl
IID_IMOVERELATIVECMDDATA, kMoveRelativeCmdDataImpl
IID_IROTATEITEMCMDDATA, kRotateItemCmdDataImpl
IID_ISCALEITEMCMDDATA, kScaleItemCmdDataImpl
IID_ISKEWITEMCMDDATA, kSkewItemCmdDataImpl
Item List
uid 0xc2 ClassID Unknown3rdPartyPrefix + 25 (0xe9419)
kRedefineScalingCmdBoss Diagnostics::ProcessCommand()
IID_ICOMMAND, kRedefineScalingCmdImpl
IID_IUIDDATA, kUIDDataImpl
IID_ISCALEOBJECTCMDDATA, kScaleObjectCmdDataImpl
Item List
uid 0xc2 ClassID Unknown3rdPartyPrefix + 25 (0xe9419)
kGfxApplyAttrOverrideCmdBoss Diagnostics::ProcessCommand()
IID_ICOMMAND, kGfxApplyAttributeOverrideCmdImpl
IID_IPMUNKNOWNDATA, kPMUnknownDataImpl
IID_ICLASSIDLISTDATA, kClassIDListDataImpl
IID_IAPPLYATTRIBUTE_CMDDATA, kApplyAttributeCmdDataImpl
Item List
uid 0xc2 ClassID Unknown3rdPartyPrefix + 25 (0xe9419)
kTransformPageItemsCmdBoss Diagnostics::ProcessCommand()
IID_ICOMMAND, kTransformPageItemsCmdImpl
IID_IDYNAMICUPDATE, kDynamicUpdateImpl
IID_ITRANSFORMCMDDATA, kTransformCmdDataImpl
IID_IBOUNDSDATA, kBoundsDataImpl
IID_IBOUNDSCHECKER, kTransformCmdBoundsCheckerImpl
IID_IMOVERELATIVECMDDATA, kMoveRelativeCmdDataImpl
IID_IROTATEITEMCMDDATA, kRotateItemCmdDataImpl
IID_ISCALEITEMCMDDATA, kScaleItemCmdDataImpl
IID_ISKEWITEMCMDDATA, kSkewItemCmdDataImpl
Item List
uid 0xc2 ClassID Unknown3rdPartyPrefix + 25 (0xe9419)
kSetBoundingBoxCmdBoss Diagnostics::ProcessCommand()
IID_IWHENTORECALCCJKGRID, kWhenToRecalcCJKGridImpl
IID_ICOMMAND, kSetBoundingBoxCmdImpl
IID_ISETBOUNDINGBOXCMDDATA, kSetBoundingBoxCmdDataImpl
IID_IDYNAMICUPDATE, kDynamicUpdateImpl
IID_IBOUNDSDATA, kBoundsDataImpl
IID_IBOUNDSCHECKER, kSetBoundingBoxCheckerImpl
IID_IBOOLDATA, kBoolDataImpl
Item List
uid 0xc2 ClassID Unknown3rdPartyPrefix + 25 (0xe9419)
kTransformAgainSentinelCmdBoss Diagnostics::ProcessCommand()
IID_ICOMMAND, kTransformAgainSentinelCmdImpl
Item List is empty
Then I enabled Spying on kTransformPageItemsCmdBoss command.
That's what I got in output:
Begin cmd no. 0 'kTransformPageItemsCmdBoss' (class id 0x2c44)
>> Direct Change: SetDirty (id: 194)
>> Direct Change: SetDirty (id: 194)
Begin cmd no. 1 'kRedefineScalingCmdBoss' (class id 0x2c45)
Begin cmd no. 2 'kGfxApplyAttrOverrideCmdBoss' (class id 0x6e3f)
## Begin Sequence
## End Sequence
End cmd 'kGfxApplyAttrOverrideCmdBoss' (class id 0x6e3f)
Begin cmd no. 3 'kTransformPageItemsCmdBoss' (class id 0x2c44)
End cmd 'kTransformPageItemsCmdBoss' (class id 0x2c44)
Begin cmd no. 4 'kSetBoundingBoxCmdBoss' (class id 0x2c26)
End cmd 'kSetBoundingBoxCmdBoss' (class id 0x2c26)
End cmd 'kRedefineScalingCmdBoss' (class id 0x2c45)
// Root Command is Done
End cmd 'kTransformPageItemsCmdBoss' (class id 0x2c44)
Read SDK a lot, but still CAN'T GET how to sign on scaling command?
Which interface i need to realize and where to pass it, in order to get my handler involved?

Could you clarify, how to realize that document observer.
I've tried to implement observer as it is found in
(CS3 SDK)\source\sdksamples\customdatalink, but not realizing responder - the objectd has not been created and constructor has not been called.
Could you be so kind to clarify how exactly I should realize my observer and how should I interact with it in order to get the command, described earlier. May be with some samples.

Similar Messages

  • Catch scaling command in CS2

    Hello everyone.
    I've faced problem in InDesign CS2.
    The way to catch scaling command through observer, which is valid for CS3, doesn't work on CS2.
    I need to catch kScaleChangedMessage in CS2, but through protocol IID_ITRANSFORM_DOCUMENT this message doesn't come.
    Which protocol I need to use is CS2 in order to catch this message?

    try this: http://forums.adobe.com/thread/375776?tstart=0

  • OS command before msg processing: In sender FTP

    hi all,
               i have a file-to-file scenario.Now i have to pick the latest file from FTP folder based on timestamp.All the files are named in yyyymmdd format .I came to know that i can run an OS command before message processing to delete the old files and keep the latest file in the folder.
    But i do know know how to write the script for this particular requirement.Can anybody please help me out with the code???
    regards,
    Nisheeta

    HI,
    If you want to delete filenames from Adapter use the following sample code:
    File adapter OS Command: D://server_dir//subdir//myCMDfile.bat %F
    Batch file:
    del %1 new_filename_with_path
    OR
    Please see the below links
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    OS Command on FTP
    OS command line script - Need help
    FTP - Run OS Command before file processing
    Hope this solves your problem.
    Regards
    Chilla..

  • Unable to run a Batch File Operating System Command

    Using XI 3.0, I am unable to run a Batch File Operating System Command After Message Processing.
    My Batch file:
    gpg -se -r BOA3RSKY --armor --passphrase-fd 0 %1 < C:\Progra~1\GNU\GnuPG\gpgin
    My Command Line (ID scenario)
    exec "cmd.exe /c C:\Progra~1\GNU\GnuPG\boagpg.bat %F"
    If I execute
    exec "cmd.exe /c type C:\Progra~1\GNU\GnuPG\boagpg.bat >xis.txt"
    It displays the contents of boagpg.bat file in xis.txt.
    I just don't understand why when I run the batch file, I would expect an %F.asc encrypted file in the same directory as the %F unencrypted file.
    Any ideas?
    or will I need Basis to create commands that will allow me to run GPG from XI Command Line?

    Check this links if its helpful
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/c7423347dc488097ab705f7185c88f/frameset.htm
    /people/sap.user72/blog/2004/01/30/command-line-help-utility
    Check this thread a similar problem
    Process Integration (PI) & SOA Middleware
    Note 841704 - XI File & JDBC Adapter: Operating system command
    http://service.sap.com/sap/support/notes/841704
    Try to see the below links
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    OS Command on FTP
    OS command line script - Need help
    FTP - Run OS Command before file processing
    Note: reward points if solution found helpfull
    Regards
    Chandrakanth.k

  • Webutil and DDE problem

    Hello,
    We are running into a problem web-enabling a client-server Forms application. We are using WebUtil for HOST and OLE calls and sending files between client and app-server and it all works really marvelous. But we noticed that the DDE package is not available in WebUtil. Unfortunately for us, we are using DDE calls to interact with MS Word (for example merging template letters with address-data) and MS Excel (filling out template sheets with data).
    Can you tell me if DDE will be available in future releases of WebUtil? And, if not, is it (generally) possible to rewrite the DDE-calls to OLE-calls using WebUtil's CLIENT_OLE functions? And what DDE-functionality maps to the corresponding OLE-functionality?
    Or, if it's not possible to rewrite DDE to OLE, what are the alternatives? Removing the interaction between web-forms and MS Office is NOT an option ;-)
    Thanks in advance,
    H. Verschuren

    var shell=new ActiveXObject("WScript.shell")
    var command=null
    var key
    try {
    key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\11.0\\Word\\InstallRoot\\Path" /* Word 2003 */
    command= shell.RegRead(key);
    } catch (e) {
    try {
    key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\9.0\\Word\\InstallRoot\\Path" /* Word 2000 */
    command= shell.RegRead(key);
    } catch (e) {
    try {
    key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\8.0\\Word\\InstallRoot\\Path" /* Word 97 */
    command= shell.RegRead(key);
    } catch (e) {
    command="\"" + command + "\\Winword.exe\" ftp://10.100.x.x\\ftpshare\\macros.dot -mMyMacro"
    shell.run(command,1,false)
    I must learn to monitor threads after I have contributed.

  • XI File Adapter: Sender and the use of wildcards in the directory name

    Hi,
    Quick question for you XI guru's.  I have a requirement to <b>read</b> files from an ftp server that live in separate directories like:
    /dir1/subdir1/in/
    /dir1/subdir2/in/
    /dir1/subdir3/in/
    I want to setup the communication channel so that it does something like:
    /dir1/*/in
    Normally I would specify the other directories in the advanced tab however there could be potentially 1000's of subdir's so I want to use a wildcard.  Is it possible to do this with a directory name?
    I have read this link and it seems to only indicate using wildcards in the filename.
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm

    Hi,
    I think.. try as below
    It is better to use OS script to read the said three directories.
    bcz you know three directories. so you can use OS script file and that file can be configured in Ftp adapter.
    OS Command from FTP
    Please see the below links
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    OS Command on FTP
    OS command line script - Need help
    FTP - Run OS Command before file processing
    /people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi - Call UNIX Shell Script
    Chilla

  • Path of the folder in configuring file adapter

    hi i m doing a file to file scenario from one server to the other
    wat should be the path of the folder
    i tried with
    //172.27.34.250/sender
    for acessing sender folder in the C:
    but the file is not picked
    could u plz help me out of this

    HI,
    Clarify is it on your Xi server or remote server.
    as explained above if it is XI server , the use the folder name with shard path.
    else if it is remote server then use FTP instead of NFS.
    see the below links
    /people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii see for file to file.
    and see the below links for FTP related threads
    /people/sravya.talanki2/blog/2005/08/23/sender-xi-ftp-adapter-with-regular-path-expression-150-abap
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    OS Command on FTP
    OS command line script - Need help
    FTP - Run OS Command before file processing
    Regards
    Chilla

  • File to Idoc - File not picked up

    Hi experts,
                   In the file to idoc scenario when i post a file in the file server it is not picked up by the file adapter. But in the communication channel monotoring it reports <b>'Process finished sucessfully'</b>.
    Help me out in this issue.
    Regards
    Santhosh Kumar V

    HI Santhosh
    if you are using NW latest version.check in Communication channel monitoring
    otherwise in Adapter monitoring.
    Check u r Sender Communication channel working or not... in RWB->Component monitoring->Communication channel monitoring..
    in which color it is displaying u r Sender Communication channel?? If it is in RED color then u r sender cc is error one.
    Check the following:
    1. Name of the input file and the filename in communication channel should match.
    2. The communcation channel is activated
    3. The folder path is correct.
    4. The Processing mode is "Delete"
    5. XI server is up when u try the scenario
    6. The adapter has status green in RWB Adapter Monitoring
    7. Sender Agreement is properly configured
    As explained above
    See ,,
    --Check the FTP server details
    --Check the User.pwd and authorisations -- to read file,
    --Check the File name sapecified in sender CC, and check the file i spicked by CC or not in RWB channelmonitorservlet
    by http://host:port/mdt/channelmonitorservlet
    --Also see the below links
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    OS Command on FTP
    OS command line script - Need help
    FTP - Run OS Command before file processing
    /people/sravya.talanki2/blog/2005/08/23/sender-xi-ftp-adapter-with-regular-path-expression-150-abap - Sender XI FTP Adapter with Regular Path Expression – ABAP
    Cheers..
    Vasu
    <i>** Reward Points if found useful **</i>

  • Flash in Director issues

    I have about 12 swfs that I need to put into a Director shell
    and when I do the buttons on the swfs that link to other swfs work
    fine but the buttons in the swfs that link to the web don't work at
    all (neither do the quit buttons on the swfs). I know it's probably
    (hopefully anyway) something simple but my lil brain is fried from
    trying. Any help would be greatly appreciated. Thanks in
    advance.

    When you use getURL in Flash it's anticipated that there is a
    browser
    present hosting the swf so that it can react properly. In
    your case
    there isn't, so you need to have Director catch those
    commands.
    Drop a behavior on your Flash sprite and see what Flash is
    saying to
    you, and then decide how to react:
    on getURL me, tData
    put tData
    end

  • How to adjust column length in function REUSE_ALV_GRID_DISPLAY

    Hi,
    I am using this function REUSE_ALV_GRID_DISPLAY to display .Please tell how to adjust the column length in  this function, so that it is set to default field name size.
    thanks

    Hi anu,
    The column width can be adjusted by using the following method:
    -> define layout of the type.
                data: it_layout type slis_layout_alv.
    -> call the reuse alv... by using the is_layout field name with the above defined variable.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
        I_CALLBACK_PROGRAM                =  <program that calls reuse>
        I_CALLBACK_PF_STATUS_SET          = < form to set pf-status>
        I_CALLBACK_USER_COMMAND           = <form to catch user command>
        I_STRUCTURE_NAME                  = < structure to be passed>
        I_GRID_TITLE            = < any title to appear on top of the grid display>
        IS_LAYOUT                         = it_layout
        IT_FIELDCAT                       = IT_FIELDCAT[]
        IT_EVENTS                         =
        IT_EVENT_EXIT                     = I_EVENT_EXIT  < to capture exit event>
      I_SCREEN_START_COLUMN             = 0 <screen settings>
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
       TABLES
        T_OUTTAB                          = IT_INACT_OBJ
       EXCEPTIONS
        PROGRAM_ERROR                     = 1
        OTHERS                            = 2
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                 
    -> write a form to set the layout of the grid...
    *&      Form  build_layout
          text
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    Set layout field for row attributes(i.e. color)
      gd_layout-info_fieldname =      'LINE_COLOR'.
    gd_layout-totals_only        = 'X'.
    gd_layout-f2code            = 'DISP'.  "Sets fcode for double click or "click(press f2)
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text       = 'helllllo'.
    endform.                    " build_layout
    endform.   
    This will optimize the output of the grid display.
    Hope this helps!!!
    Revert if any queries!!!
    regards,
    Naveenan.

  • 865 - Remote works in HiFi but not w/ Media Center III. Girder??

    First of all, kudos to all of you for supporting each other in getting the MEGA to operate as intended. I have a couple questions maybe you can help me with:
    Does anyone know of a quick fix for re-associating the bundled remote with Media Center III? Mine worked initially, but when I loaded the drivers for the remote bundled with my MSI Personal Cinema FX-5200 card it stopped operating in Media Center III. The remote works in HiFi mode without a hitch, but not at all in PC mode.
    Also, can the Girder software be used to program other remotes controls, like the one that came with my Personal Cinema card (NVidia remote, USB interface)? It is a much better remote than the MSI remote and would be a great replacement. I looked in the plug-ins on the girder website an could not find any related to the Personal Cinema product.
    thanks for your help!!

    Akumaisme,
    I don't know about an independent karaoke function, but MSI has included a separate program for the radio part on the drivers disc: MSI Radio. Installing this program enables you to use the same functions of the radio in PC-mode as you can in Hifi-mode, without the need to install MCIII.
    As far as Girder is concerned, maybe this will explain things: Girder is used to "catch" the commands (button strokes) from your remote  receiver and (if neccessary) divert them to other programs. For this you need two things: a working pair of remote and receiver, and a Girder plugin that is written for the specific type of receiver.
    So should you choose to be able to use the MSI remote (which I believe is not the case) with other programs than MCIII, you need the Girder plugin written by Nathan  (see Sticky at the top of this forum).
    I think you want to use the second option: a different (third party) remote.  First of all, you most likely won't be able to use this remote with the built-in MEGA receiver.  You'll need the receiver of your Personal Cinema card. Then you'll have to take a look at the Girder site / forum whether there is a plugin available for this Personal Cinema card, good chance there is. After installation, you then only need to configure Girder with the proper plugin AND need to learn it to divert the button strokes of your Personal Cinema remote to the MCIII application.
    I hope you'll find this information useful.
    Greetz,
    JaDi.

  • SCEP 2012 System Center Monitoring Pack for Linux v4.5.10.1 Problem

    Hi Everyone!
    We are having a problem with OpsMgr 2012 R2 and the System Center Monitoring Pack for SCEP 2012 for Linux v4.5.10.1.  We have successfully deployed the Linux OpsMgr 2012 R2 agent to our test CentOS 6.5 VM as well as SCEP 2012 v4.5.10.1.  We have
    imported the System Center Monitoring Pack for SCEP 2012 for Linux management packs into OpsMgr 2012 R2 which is successfully discovering SCEP on our Linux VM, but when looking at the details for the monitor, it indicates that SCEP is "not found"
    as seen in the following screen shot...
    As seen in the following screen shots, everything else seems to be installed, configured, and working properly...
    Any assistance or guidance would be greatly appreciated!
    Regards,
    JJ

    Magnus_001 (big ups) and I were able to get discovery to stop failing on the Linux side of things, but the SCOM MP is still highly problematic.  Their pdf guides for SCEP implementation on Linux has a bunch of typos and errors -- for example, listing
    '/bin/sh' instead of '/bin/bash', and one of the lines (the one that includes "export LANG=C" won't run no matter what.  When we disassembled the SCOM MP, we found that there's an extraneous space at the end of the command, current thought is
    that that's causing a regex to fail within sudo.  All of their commands, from what I can tell, need to be specified as NOPASSWD within sudo; if you see errors about ssh-askpass with that you can confirm that there are likely typos in their guide sourced
    from the pdf.  We eventually allowed '/bin/bash' to get the programs to run since we couldn't get a regex match to catch their command (which should be in a script).  We are out of failures that we can discover with logging on the Linux side; it's
    likely to be an error within the MP at this point.
    When we look at the powershell script in the MP library, the "not found" error is the default state, set immediately after stdout is captured from the discovery script.  I'm guessing that there's some problem interaction between that script
    and the parsing thereof, as when we run the script locally as root we see the output that we'd expect. For all I know that's a line ending or locale problem.
    Troubleshooting on the linux end is problematic, as instead of distributing a script to check on the linux side (which makes the sudo part of things much easier), the script is hard-coded within the MP.  From what I understand it would need to be disassembled
    and recompiled to change.
    The snippet below may be of use to someone for use in their sudoers file, it will make the checks work on the linux side at least.  I wouldn't recommend this for anything beyond testing, as specifying that an account can run a full bash shell as root
    without a password is a terrible idea.
    #replace scomactionaccount with whatever your scom action account is called
    User_Alias SCOM = scomactionaccount
    Runas_Alias SCOM = root
    SCOM ALL = (SCOM) NOPASSWD: /opt/microsoft/scx/bin/scxlogfilereader -p
    SCOM ALL = (SCOM) NOPASSWD: /bin/bash

  • Explanation of run time error & its process of elimination

    what is the following runtime errors .When does it occur & how can we eliminates these-
    1. SYSTEM_NO_SHM_MEMORY
    2. RAISE_EXCEPTION
    3. UNCAUGHT_EXCEPTION
    With Regards
    Amit Singh

    Hi Amit,
    I am not sure about the run time error SYSTEM_NO_SHM_MEMORY, however the other two I know a little about.
    RAISE_EXCEPTION can be the cause of the run time dump UNCAUGHT_EXCEPTION. In ABAP program, you might have a function module or method which raises an exception using the command RAISE <exception>. Now if in your calling application you do not "handle" the exception, then the dump UNCAUGHT_EXCEPTION occurs.
    The solution to this is to always handle the SY-SUBRC after a function module call and also using the TRY - CATCH <exception> - ENTRY for catching and handling exceptions in classes in your program.
    Please use F1 on CATCH/TRY command for more on this.
    A dump shows you the reason for the dump in quite a bit of detail in "Error Analysis" section and also gives a solution.
    Check ST22.
    Regards,
    Aditya

  • Another j2me question

    I keep getting this error when running this small application...
    Running with storage root QwertyDevice
    Warning: To avoid potential deadlock, operations that may block, such as
    networking, should be performed in a different thread than the
    commandAction() handler.
    What does it mean, and what's a workaround?
    here's my code if it helps:
    *Created by Nyterox Technologies
    *Begin Journal
    *>June 29, 2003 ~ setup forms and create login with php interface
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    public class PayFast2 extends MIDlet implements CommandListener {
    // Define Components
    private Display display;
    String url = "http://www.simplewonder.com/devel/java/jphp.php?type=2";
    private Form form;
    private TextField u_id;
    private TextField p_id;
    private Command exit;
    private Command login;
    // End Components
    public PayFast2() {
    display = Display.getDisplay(this);
    exit = new Command("Exit", Command.EXIT, 1);
    login = new Command("Login", Command.SCREEN, 2);
    form = new Form("PayFast Login");
    u_id = new TextField("User", "", 30, TextField.ANY);
    p_id = new TextField("Password", "", 30, TextField.ANY | TextField.PASSWORD);
    form.addCommand(exit);
    form.addCommand(login);
    form.append(u_id);
    form.append(p_id);
    form.setCommandListener(this);
    public void startApp()
              display.setCurrent(form);
    public void pauseApp() {    }
    public void destroyApp(boolean unconditional) {   }
    public void commandAction(Command command, Displayable displayable)
              if(command == exit)
                   destroyApp(false);
                   notifyDestroyed();     
              else if(command == login)
                   HttpConnection connection = null;
         InputStream is = null;
         OutputStream os = null;
         StringBuffer stringBuffer = new StringBuffer();
         TextBox textBox = null;
         try
              connection = (HttpConnection)Connector.open(url);
              connection.setRequestMethod(HttpConnection.GET);
              connection.setRequestProperty("IF-Modified-Since","20 Jan 2001 16:19:14 GMT");
              connection.setRequestProperty("User-Agent","Profile/MIDP-2.0 Confirguration/CLDC-1.0");
              connection.setRequestProperty("Content-Language", "en-CA");
              connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
              os = connection.openOutputStream();
              is = connection.openDataInputStream();
              int ch;
              while ((ch = is.read()) != -1)
              stringBuffer.append((char) ch);
              textBox = new TextBox("Simple GET Test", stringBuffer.toString(), 1024, 0);
         catch(IOException error)
              Alert alert = new Alert("Error", "Cannot Connect", null, null);
              alert.setTimeout(Alert.FOREVER);
              alert.setType(AlertType.ERROR);
              display.setCurrent(alert);     
         finally
              if(is!= null)
              try
                   is.close();
              catch(Exception error)
              if(os != null)
              try
                   os.close();
              catch(Exception error)
              if(connection != null)
              try
                   connection.close();
              catch(Exception error)
    display.setCurrent(textBox);                    

    you... do know how to program in java, right?A. NOOOO :)
    Actually just learning (We are in the New To Java Technology Forum, right?). started like three days ago or something like that.
    'Preciate the sarcasm, though!
    Right, outside of the commandAction().
    But don't I have to use the commandAction() to catch the command. if so, then I catch the 'login' command and then what? put a function there to a new thread. or call a new thread between my brackets.
    This is what I'm confused on. If I have to use the command Action to catch the command but I can't use the commandAction, then I can't do anything with is.
    If I put my connection in a function and call it, then it's just like it being there still and that doesn't work.
    So, can a call a thread inside the commandAction(), would that work?
    And to put the connection part inside a thread, all i need to do is
    1. initiate a new thread?

  • Set up a printer on iPad

    Hi,
    On my home network I have a canon all-in-one printer connected to my iMac. I can print to this from my macbook pro. When on my iPad I select print, but don't know how to set up the iPad so that it sees the printer. How do I do that?
    Thanks,
    Eric

    There is airprint, but that isn't supported by your printer, so the only alternative is to get an application for your mac that "catches" print commands, wirelessly, from your iPad and sends it to an attached printer (to the mac).  One such program, very popular also, is Printopia.  There are others like Print Central, and I have both - I find Printopia works the best for me.

Maybe you are looking for

  • Email PDF from Mail Merge Problem

    Using a data source of email addresses from Excel 2003 and performing a mail merge in Word 2003 with the Mail Merge to Adobe PDF button, everything worked okay and the emails generated to the outbox in Outlook 2003 with the relevant PDFs attached.  H

  • IDVD is jerky and will not burn

    20 in. 2007 iMac 2.4 1.5 gig RAM 190 gig free on HD 10.5.5 iDVD '08 Right, now that's out the way, into my problem. Ever since downloading 10.5.5 iDVD has been very jerky when compiling the DVD (almost impossible to do). It is like I am trying to mul

  • Dynamic columns

    Hello, we have several possibilities to show dynamic rows (table, row repeater, multi pane), is there any possibility to achieve this for dynamic columns? I have a table with two columns: - TEXT - VALUE I want to show this table in ONE line, is there

  • How transfer custom OAF pages to Jdeveloper to Server

    Hi, i am facing the issue while opening the custom OAF pages from server which are developed by som other guy. Please let me know how to open those custom OAF pages in Jdeveloper from server . Regards , Maheswara Raju

  • Premiere CS3 Problem

    So I've made a video on my Polaroid i739 that I want to edit...But everytime I try, the video seems to be going way faster than the audio, and I can't slow it down because it repeats and stutters. It doesn't happen with any other device I use. How ca