Creating Graphics Component in Forte with GUI's

I have created a JFrame with 2 JPanels in it that are placed side by side. However, I want to access these JPanels with Graphics...but I have no idea how to do that within Forte...I am using a Mouse Click on an Evaluate button to trigger the event...in normal java programming, from what I have seen, people create the JPanel class extends, etc. and then they put a paint() method within it...but in the Forte environment, I have no idea how to access either panel because Forte duzznt init it as a class but as just a component...I tried using Canvas instead of JPanel but that got me no where...can what I want be done within Forte or must I do this by my own editing, etc? thank you....jerry blimbaum panama city, fl

I managed to get it work at the end...
First, the components directory was at this location:
C:\Users\<username>\AppData\Local\Adobe\Flash CS5\en_US\Configuration\Components
Then, to make a component out of a MovieClip, right click on the MovieClip in the library and select "Component Definition" and check the checkbox "Display in Components Panel". What I did then was to right click on the MovieClip and selected export swc file, and saved it in the directory above. This exported only one Component, which was fine for me. Probably it would be possible to do something similar to save a library of components as a .fla or .scw or so, but I don't know the details.

Similar Messages

  • Create graphic in MS-Excel with DOI

    Hi all,
    I'm begining using Desktop Office Interface (DOI).
    It's possible to create graphics with in the document because of DOI?
    Thanks
    enzo

    checking ABAP code sample generating graphs on excel using ole.
    (Note: this is not my code, i got it somewhere from sdn/internet and dont remember the source)
    report y_excel_chart
           no standard page heading.
    include ole2incl .
    data: gs_excel type ole2_object ,
    gs_wbooklist type ole2_object ,
    gs_application type ole2_object ,
    gs_wbook type ole2_object ,
    gs_activesheet type ole2_object ,
    gs_sheets type ole2_object ,
    gs_newsheet type ole2_object ,
    gs_cell1 type ole2_object ,
    gs_cell2 type ole2_object ,
    gs_cells type ole2_object ,
    gs_range type ole2_object ,
    gs_font type ole2_object ,
    gs_interior type ole2_object ,
    gs_columns type ole2_object ,
    gs_charts type ole2_object ,
    gs_chart type ole2_object ,
    gs_charttitle type ole2_object ,
    gs_charttitlechar type ole2_object ,
    gs_chartobjects type ole2_object .
    data gv_sheet_name(20) type c .
    data gv_outer_index like sy-index .
    data gv_intex(2) type c .
    data gv_line_cntr type i . "line counter
    data gv_linno type i . "line number
    data gv_colno type i . "column number
    data gv_value type i . "data
    parameters: p_sheets type i .
    start-of-selection .
      do p_sheets times .
    *--Forming sheet name
        gv_intex = sy-index .
        gv_outer_index = sy-index .
        concatenate 'Excel Sheet #' gv_intex into gv_sheet_name .
    *--For the first loop, Excel is initiated and one new sheet is added
        if sy-index = 1 .
          create object gs_excel 'EXCEL.APPLICATION' .
          set property of gs_excel 'Visible' = 1 .
          get property of gs_excel 'Workbooks' = gs_wbooklist .
          get property of gs_wbooklist 'Application' = gs_application .
          set property of gs_application 'SheetsInNewWorkbook' = 1 .
          call method of gs_wbooklist 'Add' = gs_wbook .
          get property of gs_application 'ActiveSheet' = gs_activesheet .
          set property of gs_activesheet 'Name' = gv_sheet_name .
    *--For the rest of loops, other sheets are added
        else .
          get property of gs_wbook 'Sheets' = gs_sheets .
          call method of gs_sheets 'Add' = gs_newsheet .
          set property of gs_newsheet 'Name' = gv_sheet_name .
        endif .
        gv_line_cntr = 1 . "line counter
    *--Title
    *--Selecting cell area to be merged.
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = 1
            #2 = 1.
        call method of gs_excel 'Cells' = gs_cell2
          exporting
            #1 = 1
            #2 = 4.
        call method of gs_excel 'Range' = gs_cells
          exporting
            #1 = gs_cell1
            #2 = gs_cell2.
        call method of gs_cells 'Select' .
    *--Merging
        call method of gs_cells 'Merge' .
    *--Setting title data
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = gv_line_cntr
            #2 = 1.
        set property of gs_cell1 'Value' = 'KISHAN' .
    *--Formatting the title
        get property of gs_cell1 'Font' = gs_font .
        set property of gs_font 'Underline' = 2 .
        set property of gs_font 'Bold' = 1 .
        set property of gs_cell1 'HorizontalAlignment' = -4108 .
        get property of gs_cell1 'Interior' = gs_interior .
        set property of gs_interior 'ColorIndex' = 15 .
        set property of gs_interior 'Pattern' = -4124 .
        set property of gs_interior 'PatternColorIndex' = -4105 .
        gv_line_cntr = gv_line_cntr + 1 .
    *--Writing some additional data for the title
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = gv_line_cntr
            #2 = 1.
        set property of gs_cell1 'Value' = 'Sheet No' .
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = gv_line_cntr
            #2 = 5.
        set property of gs_cell1 'Value' = ':' .
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = gv_line_cntr
            #2 = 6.
        set property of gs_cell1 'Value' = gv_intex .
    *--Formatting the area of additional data 1
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = 1
            #2 = 1.
        call method of gs_excel 'Cells' = gs_cell2
          exporting
            #1 = gv_line_cntr
            #2 = 5.
        call method of gs_excel 'Range' = gs_cells
          exporting
            #1 = gs_cell1
            #2 = gs_cell2.
        call method of gs_cells 'Select' .
        get property of gs_cells 'Font' = gs_font .
        set property of gs_font 'Bold' = 1 .
    *--Formatting the area of additional data 2
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = 1
            #2 = 5.
        call method of gs_excel 'Cells' = gs_cell2
          exporting
            #1 = gv_line_cntr
            #2 = 5.
        call method of gs_excel 'Range' = gs_cells
          exporting
            #1 = gs_cell1
            #2 = gs_cell2.
        call method of gs_cells 'Select' .
        get property of gs_cells 'Columns' = gs_columns .
        call method of gs_columns 'AutoFit' .
    *--Bordering title data area
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = 1
            #2 = 1.
        call method of gs_excel 'Cells' = gs_cell2
          exporting
            #1 = gv_line_cntr
            #2 = 6.
        call method of gs_excel 'Range' = gs_cells
          exporting
            #1 = gs_cell1
            #2 = gs_cell2.
        call method of gs_cells 'Select' .
        call method of gs_cells 'BorderAround'
          exporting
            #1 = 1 "continuous line
            #2 = 4. "thick
    *--Putting axis labels
        gv_colno = 2 .
        gv_line_cntr = gv_line_cntr + 5 .
        gv_linno = gv_line_cntr - 1 .
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = gv_linno
            #2 = 1.
        set property of gs_cell1 'Value' = 'X' .
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = gv_line_cntr
            #2 = 1.
        set property of gs_cell1 'Value' = 'Y' .
    *--Generating some data
        do 3 times .
          gv_value = gv_outer_index * sy-index * 10 .
          call method of gs_excel 'Cells' = gs_cell1
            exporting
              #1 = gv_linno
              #2 = gv_colno.
          set property of gs_cell1 'Value' = sy-index .
          call method of gs_excel 'Cells' = gs_cell1
            exporting
              #1 = gv_line_cntr
              #2 = gv_colno.
          set property of gs_cell1 'Value' = gv_value .
          gv_colno = gv_colno + 1 .
        enddo .
    *--Source data area
        gv_colno = gv_colno - 1 .
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = gv_linno
            #2 = 1.
        call method of gs_excel 'Cells' = gs_cell2
          exporting
            #1 = gv_line_cntr
            #2 = gv_colno.
        call method of gs_excel 'Range' = gs_cells
          exporting
            #1 = gs_cell1
            #2 = gs_cell2.
        call method of gs_cells 'Select' .
        get property of gs_application 'Charts' = gs_charts .
        call method of gs_charts 'Add' = gs_chart .
        call method of gs_chart 'Activate' .
        set property of gs_chart 'ChartType' = '51' . "Vertical bar graph
        call method of gs_chart 'SetSourceData'
          exporting
            #1 = gs_cells
            #2 = 1.
        set property of gs_chart 'HasTitle' = 1 .
        get property of gs_chart 'ChartTitle' = gs_charttitle .
        get property of gs_charttitle 'Characters' = gs_charttitlechar .
        set property of gs_charttitlechar 'Text' = 'Sample Graph' .
    *--Locate the chart onto the current worksheet
    *--Activate current sheet
        call method of gs_excel 'WorkSheets' = gs_activesheet
          exporting
            #1 = gv_sheet_name.
        call method of gs_activesheet 'Activate' .
        call method of gs_chart 'Location'
          exporting
            #1 = 2
            #2 = gv_sheet_name.
    *--Reposition the chart on the worksheet (cut&paste)
        call method of gs_activesheet 'ChartObjects' = gs_chartobjects .
        call method of gs_chartobjects 'Select' .
        call method of gs_chartobjects 'Cut' .
    *--Select new area
        gv_line_cntr = gv_line_cntr + 2 .
        call method of gs_excel 'Cells' = gs_cell1
          exporting
            #1 = gv_line_cntr
            #2 = 1.
        call method of gs_excel 'Cells' = gs_cell2
          exporting
            #1 = gv_line_cntr
            #2 = 1.
        call method of gs_excel 'Range' = gs_cells
          exporting
            #1 = gs_cell1
            #2 = gs_cell2.
        call method of gs_cells 'Select' .
        call method of gs_activesheet 'Paste' .
      enddo.
    *--Deallocating memory
      free: gs_excel, gs_wbooklist, gs_application, gs_wbook,
      gs_activesheet,gs_sheets, gs_newsheet, gs_cell1,
      gs_cell2, gs_cells, gs_range, gs_font, gs_interior,
      gs_columns, gs_charts, gs_chart, gs_charttitle .

  • How to create database and table with GUI?

    How to create database and table with GUI?
    for linux can do that?
    or have only way to create table by use sql*plus.
    everyone please help me.
    thanks

    go to www.orasoft.org
    here is a gui tool.
    null

  • Forte with JSP?

    hi all
    i'm using FORTE 4.0 to work with java, and i'd like to use it also with JSP, but i have a little problem... jsp page's graphical design....
    so i thought it's impossible to use it as a stand alone jsp editor, don't you?
    please, send me your opinion
    thanx
    sandro

    You can try to create a HTML layout using any GUI editor, like dreamweaver, frontpage, etc. Then paste the html code on Forte's source editor. Insert/modify codes where necessary. It helps a lot for those with little knowledge of HTML. Hope that helps.

  • Console error with GUI , return code -17

    Hi All,
    I have just finished the Installation of SAP IDES 4.7. Installation was sucessful, after that I Installed GUI 640. But when we are starting the Console it is starting without any error which also shows WP table details in run mode. When we logon to gui, console becomes "Yellow" and dispatch process stop with a return code -17.
    Please help.
    Thanks
    Jagat.

    Hi Kaushal,
    Thanks for ur reply. Actually when we started the installation process, and GUI, we have not provide the loopback adapter in the Primary DNS, but Loopback Adapter was properly configured with IP.
    Later on we realised and added the 127.0.0.1 in the Primary DNS. But its still not working. 
    The Log which u have asked for is attached.
    trc file: "dev_w0", trc level: 1, release: "620"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, M

    B Sat Mar 04 10:18:27 2000
    B  create_con (con_name=R/3)
    B  Loading DB library 'C:\usr\sap\TEK\SYS\exe\run\dboraslib.dll' ...
    B  Library 'C:\usr\sap\TEK\SYS\exe\run\dboraslib.dll' loaded
    B  Version of 'C:\usr\sap\TEK\SYS\exe\run\dboraslib.dll' is "620.02", patchlevel (0.112)
    B  New connection 0 created
    M  systemid   560 (PC with Windows NT)
    M  relno      6200
    M  patchlevel 0
    M  patchno    251
    M  intno      20020600
    M  pid        2792

    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 2792) [dpxxdisp.c   1016]
    I  MtxInit: -2 0 0

    X Sat Mar 04 10:18:29 2000
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 0 initializing ....
    X  Using implementation std
    M  <EsNT> Memory Reset enabled as NT default
    X  ES initialized.
    M  calling db_connect ...
    C  Got ORACLE_HOME=D:\oracle\ora81 from environment

    C Sat Mar 04 10:18:30 2000
    C  Client NLS settings: AMERICAN_AMERICA.WE8DEC
    C  Logon as OPS$-user to get SAPTEK's password
    C  Connecting as /@TEK on connection 0 ...
    C  Attaching to DB Server TEK (con_hdl=0,svchp=06A497E8,svrhp=06A495F4)

    C Sat Mar 04 10:19:07 2000
    C  Starting user session (con_hdl=0,svchp=06A497E8,srvhp=06A495F4,usrhp=06A913AC)
    C  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
    [dboci.c      3718]
    C  *** ERROR => CONNECT failed with sql error '1017'
    [dboci.c      9536]
    C  Try to connect with default password
    C  Connecting as SAPTEK/<pwd>@TEK on connection 0 ...
    C  Starting user session (con_hdl=0,svchp=06A497E8,srvhp=06A495F4,usrhp=06A913AC)
    C  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
    [dboci.c      3718]
    C  *** ERROR => CONNECT failed with sql error '1017'
    [dboci.c      9536]
    B  ***LOG BY2=> sql error 1017   performing CON [dbsh#2 @ 962] [dbsh    0962 ]
    B  ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dbsh#2 @ 962] [dbsh    0962 ]
    B  ***LOG BY2=> sql error 1017   performing CON [dblink#1 @ 419] [dblink  0419 ]
    B  ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dblink#1 @ 419] [dblink  0419 ]
    M  ***LOG R19=> tskh_init, db_connect ( DB-Connect 000256) [thxxhead.c   1098]
    M  in_ThErrHandle: 1
    M  *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   8277]

    M  Info for wp 0

    M    stat = 4
    M    reqtype = 1
    M    act_reqtype = -1
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = -1
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    rfc_req = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server sapsrv_TEK_00 on host sapsrv (wp 0)
    M  *  ERROR       tskh_init: db_connect
    M  *
    M  *  TIME        Sat Mar 04 10:19:07 2000
    M  *  RELEASE     620
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        8408
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >SAP-Trace buffer write< for event BEFORE_DUMP
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   672]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  235]
    M  Entering ThSetStatError
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 2792) [dpnttool.c   345]

  • Regarding Pages charts, when I try to 'build' a 3D chart all I get is little dots but not graphics.  No problems with 2D charts though. Guess my question is "Help?"

    Regarding Pages charts, when I try to 'build' a 3D chart all I get is little dots but not graphics.  No problems with 2D charts though. Guess my question is "Help?"

    Sorry for the delay getting back to this.
    Thanks to Fruhulda and Peter for their comments regarding the refusal of Pages to let me make 3D charts. 
    In answer to the questions put to  me in this regard :
    1. Pages version : Pages '09  v.4.1 (923)
    2. Mac O/S :          v.10.6.8 
    3. 3D chart :          Can't find a 'name', but upright bars with rounded corners ???
    4. Moved apps :    Not that I'm aware of!  All should be as installed off the disc.
    5. A note :              I have been able to create these in the past - related to a SW update? 
                          and ... can create these charts perfectly in Keynote (go figure).
    Thanks to all.
    CM

  • Error while creating UI component.

    Hi all,
    In Mobile perspective I am able to create service component but when I create Mobile ui component I am getting the below error.
    Software Component does not support selected Development Component Type. Required DCs are located in an SC that is not visible from the selected SC .
    Please help me in resolving this.
    Thanks and regards,
    Rajesh.A

    Hi Rajesh
    Please follow this thread
    Re: mobile plugins for NWDS 7.1
    Go to development infrastructure perspective and check if required dc's are there in XOCA.
    If all the plugins are there and if you stll face the problem try this..
    In the plugins folder go to com.sap.tc.mobile.wdlite.ide folder
    Open the plugin.xml file inside it with a notepad or text editor.
    Some where near the end of file you can see something like this:
    <DCDependency at-build-time="true" id=tc/mobilecfs/core/wrapper name="tc/mobile/cfs.core.wrapper".........>
    Just delete this line. It wont cause any side effects.
    Now restart NWDS and everything will be fine.
    Regards
    Vidyadhar
    Edited by: Vidyadhar N on May 4, 2009 6:30 AM

  • Creating a .jpg image from with in the J2ME app

    Hi,
    I want to send a document to the printer over bluetooth to print.
    For that I searched on net, but couldn't find any APIs supported by J2ME to print it. I also found a link http://www.hcilab.org/documents/tutorials/Brother/ where I found that I can send the data by creating an image and then writing data (text or image ) in to it, and then sending that image to print.
    Image img = Image.createImage(816, 40);
    Graphics g = img.getGraphics();
    g.setColor(0, 0, 0);
    g.setFont(Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD,Font.SIZE_LARGE));
    g.drawString("Printing test from "
                             + System.getProperty("microedition.platform") + " on "
                             + new Date(), 10, 10, 0);
    driver.print(img, btAddr);This code is working fine on this printer.
    I am using HP 460cb printer, and I tried the same thing, but am not getting any results. Can any one of you tell me what mistake am I making.
                    Image blankImage = Image.createImage(SpotBilling.MAX_IMG_WIDTH, SpotBilling.MAX_IMG_HEIGHT);
                    Graphics g = blankImage.getGraphics();
                    g.setColor(0,0,0);
                    g.setFont(Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_SMALL));
                    g.drawString("Printing test on Wednesday - 18th Jan, 2006", 10, 50, Graphics.TOP|Graphics.LEFT);
                    g.drawImage(imgTest, 60, 150, Graphics.HCENTER | Graphics.VCENTER);
                    int width = blankImage.getWidth();
                    int height = blankImage.getHeight();
                    int y = 0;
                    os.write(CMD_UNIVERSAL_EXIT);
                    for(int i = 1; i<=height; i++){
                             blankImage.getRGB(temp, 0, width, 0, y, width, 1);
                             byte[] pixels = new byte[width];
                             for (int x = 0; x < temp.length; x++) {
                                  pixels[x] = (byte) ((((temp[x] & 0x00FF0000) >> 16)
                                       + ((temp[x] & 0x0000FF00) >> 8) + (temp[x] & 0x000000FF)) / 3);
                             // Transfer Raster Graphics
                             os.write(TRANSFER_RASTER_DATA);
                             byte[] len = numToDecimal(pixels.length);
                             os.write(len);
                             os.write(DATA);
                             os.write(pixels);
                             y++;
                        }I have another query, if I can not do this. Is there any way I can create a .jpg image from with in the J2ME application.
    I have some text and an image that I get by invoking camera from the code and then capturing a picture. I need to combine them both, and then send it to the printer.
    If there is any way, I can convert this blankImage mentioned above (containing both text and Image), please provide me the solution.
    Any document or any source code is appreciated.
    regards,
    Ashish

    I have succeeded in creating a mutable image that contains text and image (.png), through
                         Image img;
                         img = Image.createImage(50, 60);
         protected void paint(Graphics g){
              g.drawImage(img, getWidth()/2, getHeight()/2, Graphics.HCENTER | Graphics.VCENTER);
              Graphics graph = img.getGraphics();
              graph.setColor(0, 0, 0);
              graph.setFont(Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD,
                             Font.SIZE_LARGE));
              graph.drawString("Printing test from "
                                       + System.getProperty("microedition.platform") + " on ", 10, 10, 0);
              graph.drawImage(image, img.getWidth()/2, img.getHeight()/2,Graphics.HCENTER|Graphics.VCENTER);
              graph.fillArc(0,0,10,10,0, 360);
         }Now I want to create a .jpg image of this img image(Mutable image).
    What I am doing is that,
    1. I am converting this image in to int array, using getRGB() method.
    2. Then I am converting int array in to byte array.
    3. And then I am opening a file(extension is .jpg)
    4. Then I am sending this byte array in to the file which is .jpg
    The .jpg file is getting created, but the data in it is very absurd, like yyyyyyyyyyyyyyyyyyyyyyyy.
    Please help me in this matter.
    Regards,
    Ashish

  • How to create an dynamic internal table with the structure of a ddic table

    Hi all,
    I want to fill ddic-tables (which I already created) in my abap dictionary with data out of CSV-files (which are located on the CRM-Server).  The ddic tables have different amount of fields.
    I started with creating a table which contains the name of the tables and the path to the matching CSV-file.
    At the beginning I'm filling an internal table with part of this data (the name of the ddic-tables) - after that I am looping at this internal table.
    LOOP AT lt_struc ASSIGNING <lfs_struc>.
         LOOP AT lv_itab1 INTO lv_wa1 WHERE ztab_name = <lfs_struc>.
         lv_feld = lv_wa1-zdat_name.
        ENDLOOP.
        CONCATENATE 'C:\-tmp\Exportierte Tabellen\' lv_feld INTO lv_pfad.
        Do.
        OPEN DATASET lv_pfad FOR INPUT IN TEXT MODE ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.
        READ DATASET lv_pfad INTO lv_rec.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
        enddo.
        REPLACE ALL OCCURRENCES OF '"' IN lv_rec WITH ''.
        SPLIT lv_rec AT ';' INTO TABLE lt_str_values.
        INSERT into (<lfs_struc>) values lr_str_value.
        CLOSE DATASET lv_pfad.
    endloop.
    This is not the whole code, but it's working until
    SPLIT lv_rec AT ';' INTO TABLE lt_str_values.
    I want to split all the data of lv_rec into an internal table which has the structure of the current ddic-table, but I didn't find out how to do give the internal table the structure of the ddic-table. In the code I used an internal tyble type string but I should be the structure of the matching tabel.
    If I try to create an internal table by using a fiel symbol, I am told, that the data types are not matching.
    Has anyone an idea?

    Hi Mayari,
    though you were successfull with
    METHOD cl_alv_table_create=>create_dynamic_table
    I must warn you not to use it. The reason is that the number of tables created is limited, the method uses GENERATE SUBROUTINE statement and this triggers an unwanted database commit.
    If you know the DDIC structure, it is (starting with ECC6.0) much easier:
    field-symbols:
      <table> type standard table.
    data:
      lr_data type ref to data.
    Create data lr_data type table of (<DDIC structure>).
    assign lr_data->* to <table>.
    The split code can be simplified gaining speed loosing complexity not loosing functionality.
    field-symbols:<fs_s> type any.
    field-symbols:<fs_t> type any.
    SPLIT lv_rec AT ';' INTO table it_string.
    loop at it_string assigning <fs_s>.
      assign component sy-tabix of wa_string to <fs_t>.
    if sy-subrc = 0.
      <fs_t> = <fs_s>.
    endif.
    at last.
      append <fs_itwa3> to <ft_itab3>.
    endat.
    endloop.
    Though it may work as Keshav.T suggested, there is no need to do that way.     
    Regards,
    Clemens

  • Cannot create ActiveX component

    So, I've looked all over for an answer for this one and so far, everything I've seen offered as fixes do not work.
    Exception Details: System.Exception: Cannot create ActiveX component.
    Source Error:
    Line 39:
    Line 40:             ' Create Acrobat Application object
    Line 41:             PDFApp = CreateObject("AcroExch.App")
    I have a webserver on which is installed the latest version of Acrobat Standard.
    Here is my code:
    Imports System.Data
    Imports System.Data.SqlClient
    Imports System.Web.Configuration
    Imports System.Data.OleDb
    Imports System.Security
    Imports System.Security.Principal
    Partial Class CodeTest
        Inherits System.Web.UI.Page
        Dim LOGON32_LOGON_INTERACTIVE As Integer = 2
        Dim LOGON32_PROVIDER_DEFAULT As Integer = 0
        Dim impersonationContext As WindowsImpersonationContext
        Declare Function LogonUserA Lib "advapi32.dll" (ByVal lpszUsername As String, _
                                ByVal lpszDomain As String, _
                                ByVal lpszPassword As String, _
                                ByVal dwLogonType As Integer, _
                                ByVal dwLogonProvider As Integer, _
                                ByRef phToken As IntPtr) As Integer
        Declare Auto Function DuplicateToken Lib "advapi32.dll" ( _
                                ByVal ExistingTokenHandle As IntPtr, _
                                ByVal ImpersonationLevel As Integer, _
                                ByRef DuplicateTokenHandle As IntPtr) As Integer
        Declare Auto Function RevertToSelf Lib "advapi32.dll" () As Long
        Declare Auto Function CloseHandle Lib "kernel32.dll" (ByVal handle As IntPtr) As Long
        Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal fullPathTIF As String)
            Dim PDFApp As Acrobat.AcroApp
            Dim PDDoc As Acrobat.CAcroPDDoc
            Dim AVDoc As Acrobat.CAcroAVDoc
            Dim JSObj As Object
            If impersonateValidUser("XXXXXXX", "", "XXXXXXXXXX") Then
                ' Create Acrobat Application object
                PDFApp = CreateObject("AcroExch.App")
                ' Create Acrobat Document object
                PDDoc = CreateObject("AcroExch.PDDoc")
                ' Open PDF file
                PDDoc.Open(fullPathPDF)
                ' Create AV doc from PDDoc object
                AVDoc = PDDoc.OpenAVDoc("TempPDF")
                ' Hide Acrobat application so everything is done in silentmode()
                PDFApp.Hide()
                ' Create Javascript bridge object
                JSObj = PDDoc.GetJSObject()
                ' Attempt to save PDF to TIF image file.
                ' SaveAs method syntax .SaveAs( strFilePath, cConvID )
                ' For TIFF output the correct cConvid is
                ' cCovid MUST BE ALL LOWERCASE.
                JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
                PDDoc.Close()
                PDFApp.CloseAllDocs()
                ' Clean up
                System.Runtime.InteropServices.Marshal.ReleaseComObject(JSObj)
                JSObj = Nothing
                System.Runtime.InteropServices.Marshal.ReleaseComObject(PDFApp)
                PDFApp = Nothing
                System.Runtime.InteropServices.Marshal.ReleaseComObject(PDDoc)
                PDDoc = Nothing
                System.Runtime.InteropServices.Marshal.ReleaseComObject(AVDoc)
                AVDoc = Nothing
                undoImpersonation()
            Else
                lblStatus.Text = "Unable to impersonate"
                Exit Sub
            End If
        End Sub
        Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
            savePDFtoTIF("D:\DoH\998.110803030832.pdf", "D:\DoH\Project\000.tif")
        End Sub
        Private Function impersonateValidUser(ByVal userName As String, _
    ByVal domain As String, ByVal password As String) As Boolean
            Dim tempWindowsIdentity As WindowsIdentity
            Dim token As IntPtr = IntPtr.Zero
            Dim tokenDuplicate As IntPtr = IntPtr.Zero
            impersonateValidUser = False
            If RevertToSelf() Then
                If LogonUserA(userName, domain, password, LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, token) <> 0 Then
                    If DuplicateToken(token, 2, tokenDuplicate) <> 0 Then
                        tempWindowsIdentity = New WindowsIdentity(tokenDuplicate)
                        impersonationContext = tempWindowsIdentity.Impersonate()
                        If Not impersonationContext Is Nothing Then
                            impersonateValidUser = True
                        End If
                    End If
                End If
            End If
            If Not tokenDuplicate.Equals(IntPtr.Zero) Then
                CloseHandle(tokenDuplicate)
            End If
            If Not token.Equals(IntPtr.Zero) Then
                CloseHandle(token)
            End If
        End Function
        Private Sub undoImpersonation()
            impersonationContext.Undo()
        End Sub
    End Class
    The impersonation works, as I use the same code on another page where I am manipulating file system objects through that account, with this code. Also, the code without the impersonation, works on my local machine perfectly.
    Any ideas on what to do would be greatly appreciated.
    Justice

    Look, I got dragged into a project that was late from the start, but is a big contract for the printing company that I work for that uses a lot of Adobe products internally for what they do.
    In good faith, I tried to purchase something that would work. I was in a rush and didn't read the entire EULA as I was installing it. Obviously, I wasn't trying to screw the system or I wouldn't have been here, posting about it. I also do not need an education about what is true or false on the internet. I need a solution now that is going to meet the customers needs based on what is provided here. Rather simple, and don't reallly have the time for an entire formalized consultation as to our "business needs", since this is really all we need it for and time is of the essence.
    If the best Adobe can do is publicly slap customers around on forums and throw vague answers out to follow up on, then I guess it's time to seek out other solutions for our business needs.

  • Help to create a component model using Calculator Web Service :(

    Hello All,
    Im working on EP6 SP9 and have a Calculator Web Service.
    I want to create a component which should contain following UI elements:
    1. <i>InputField</i> - to enter 1st number
    2. <i>InputField</i> - to enter 2nd number.
    3. <i>TextView</i> - To show the result
    The calculator web service consists of 4 basic methods like addition, subtraction, division & multiplication.
    I want to know whether how can I provide seperate buttons to each of the above mentioned functions 'coz when I add the web service while creating a component using SAP Web Dynpro (<i>using SAP NEtweaver Developer Studio 2.0.9</i>) - Model Creation step, I get an option to select only one method (and that is add).
    Its not working......
    I am following the steps as mentioned in help pages on Web Dynpro, section "Web Dynpro & Web Services" and example on WebServiceEmail.
    Please help.......
    I have to show this in a presentation on coming Friday.
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu R Hunjan
    <i></i>

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • How to create Using Formatted Text Field with multiple Sliders?

    Hi i found the Java Sun tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html very useful, and it tells how to create one Formatted Text Field with a Slider - however i need to create Formatted Text Field for multiple Sliders in one GUI, how do i do this?
    my code now is as follows, and the way it is now is scroll first slider is okay but scrolling second slider also changes value of text field of first slider! homework due tomorrow, please kindly help!
    // constructor
    label1 = new JLabel( "Individuals" );
    scroller1 = new JSlider( SwingConstants.HORIZONTAL,     0, 100, 10 );
    scroller1.setMajorTickSpacing( 10 );
    scroller1.setMinorTickSpacing( 1 );
    scroller1.setPaintTicks( true );
    scroller1.setPaintLabels( true );
    scroller1.addChangeListener(this);
    java.text.NumberFormat numberFormat = java.text.NumberFormat.getIntegerInstance();
    NumberFormatter formatter = new NumberFormatter(numberFormat);
            formatter.setMinimum(new Integer(0));
            formatter.setMaximum(new Integer(100));
    textField1 = new JFormattedTextField(formatter);
    textField1.setValue(new Integer(10)); //FPS_INIT
    textField1.setColumns(1); //get some space
    textField1.addPropertyChangeListener(this);
    //React when the user presses Enter.
    textField1.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),  "check");
            textField1.getActionMap().put("check", new AbstractAction() {
                public void actionPerformed(ActionEvent e) {
                    if (!textField1.isEditValid()) { //The text is invalid.
                        Toolkit.getDefaultToolkit().beep();
                        textField1.selectAll();
                    } else try {                    //The text is valid,
                        textField1.commitEdit();     //so use it.
                    } catch (java.text.ParseException exc) { }
    label2 = new JLabel( "Precision" );
    scroller2 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 8 );
    scroller2.setMajorTickSpacing( 10 );
    scroller2.setMinorTickSpacing( 1 );
    scroller2.setPaintTicks( true );
    scroller2.setPaintLabels( true );
    scroller2.addChangeListener(this);
    textField2 = new JFormattedTextField(formatter);
    textField2.setValue(new Integer(10)); //FPS_INIT
    textField2.setColumns(1); //get some space
    textField2.addPropertyChangeListener(this);
    //React when the user presses Enter.
    textField2.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),  "check");
            textField2.getActionMap().put("check", new AbstractAction() {
                public void actionPerformed(ActionEvent e) {
                    if (!textField2.isEditValid()) { //The text is invalid.
                        Toolkit.getDefaultToolkit().beep();
                        textField2.selectAll();
                    } else try {                    //The text is valid,
                        textField2.commitEdit();     //so use it.
                    } catch (java.text.ParseException exc) { }
    // State Changed
         public void stateChanged(ChangeEvent e) {
             JSlider source = (JSlider)e.getSource();
             int fps = (int)source.getValue();
             if (!source.getValueIsAdjusting()) { //done adjusting
                  if(source==scroller1)   {
                       System.out.println("source ==scoller1\n");
                       textField1.setValue(new Integer(fps)); //update ftf value
                  else if(source==scroller2)     {
                       System.out.println("source ==scoller2\n");
                       textField2.setValue(new Integer(fps)); //update ftf value
             } else { //value is adjusting; just set the text
                 if(source==scroller1)     textField1.setText(String.valueOf(fps));
                 else if(source==scroller2)     textField2.setText(String.valueOf(fps));
    // Property Change
        public void propertyChange(PropertyChangeEvent e) {
            if ("value".equals(e.getPropertyName())) {
                Number value = (Number)e.getNewValue();
                if (scroller1 != null && value != null) {
                    scroller1.setValue(value.intValue());
                 else if (scroller2 != null && value != null) {
                    scroller2.setValue(value.intValue());
        // ACTION PERFORMED
        public void actionPerformed(ActionEvent event) {
        if (!textField1.isEditValid()) { //The text is invalid.
            Toolkit.getDefaultToolkit().beep();
            textField1.selectAll();
        } else try {                    //The text is valid,
            textField1.commitEdit();     //so use it.
        } catch (java.text.ParseException exc) { }
             if (!textField2.isEditValid()) { //The text is invalid.
            Toolkit.getDefaultToolkit().beep();
            textField2.selectAll();
        } else try {                    //The text is valid,
            textField2.commitEdit();     //so use it.
        } catch (java.text.ParseException exc) { }
    ...

    if :p3_note_id is null
    then
    insert into notes (project_id, note, notes_month, notes_year) So, p3_note_id is NULL.
    Another option is that you have a trigger on table NOTES that generates a new note_id even for an update.

  • Can I create a website like Twitter with Creative Cloud?

    Can I create a website like Twitter with Creative Cloud?

    Start with jQuery Calculation plugin.   Tweak values as required.
    http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • How to use annotation with GUI in swing

    hi,
    i am new to annotation. I know how to use this with classes, methods and java elements. I am developing a tool in applet to post comment on my notepad, but unable to find that how to use this with GUI of swing. I have gone through most of forums and tutorials but got no idea. Anyone could give me little idea.
    Thanks

    >
    i need to use the applet mousedown function in swing..>There is no such class as 'applet' in the JRE, Swing has an upper case 1st letter, functions in Java are generally referred to as methods, and there is no 'mousedown' method in the JRE.
    OTOH a Swing JApplet inherits the mouseDown method from Component, and it was deprecated in Java 1.1. The documentation (JavaDocs) provides instructions on what to use instead.
    >
    is there any way to use it or any other alternative is available for this?
    if can provide me a sample code.>If can provide me cash. Short of that, you might actually need to do some research/coding of your own.
    As an aside. What does any of this have to do with Java 2D?

  • Need help in finding open source for creating Login component

    hi
    Pls any one help me out in finding some good open source for creating login component for my application
    i have heard about josso but i am not able to find how to use it if anyone can help in setting up josso i wil be very thankful to that person and also if anyone can help me finding some other open source i will be very grateful ,,
    Pls help its very urgent and i am running short of time

    DECODE(l.attribute_category, 'Coverage Template Header', l.attribute3) Penalty_Bonus,
    DECODE(l.attribute_category, 'Coverage Break', l.attribute1) Mon_Break_Start,
    DECODE(l.attribute_category, 'Transaction Type', l.attribute1) Split_Covering,Uh oh, the dreaded entity attibute value, or generic, data model.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:10678084117056
    I am afraid slow performance is a built in feature of this database design, not much you can do in queries.
    You could possibly create the views as materialized views and query those instead.
    Quote from the linked article
    But, how does it perform? Miserably, terribly, horribly. A simple "select
    first_name, last_name from person" query is transformed into a 3-table join with
    aggregates and all. Further, if the attributes are "NULLABLE" - that is, there
    might not be a row in OBJECT_ATTRIBUTES for some attributes, you may have to
    outer join instead of just joining which in some cases can remove more optimal
    query plans from consideration.
    Writing queries might look pretty straightforward, but it's impossible to do in
    a performant fashion.

Maybe you are looking for