Creating html table using FLEX

Hi
I am new to flex,can any one help me how to create a simple
html table using flex.
regards
pr@veen

"callpraveenin1973" <[email protected]>
wrote in message
news:goj5qq$hgm$[email protected]..
> Hi
> I am new to flex,can any one help me how to create a
simple html table
> using flex.
What would you use it for?

Similar Messages

  • How can i display collection of  records in HTML Table using DWR framework

    Dear All,
    Just i start using the Direct Web Remoting framework.I am worrying to get the list of records to display html table using this concept.I did the same like.
    index.js
    var cellFuncs = [
    function(data) { return data; },
    function(data) { return data.toUpperCase(); },
    function(data) { return "<input type='button' value='Test' onclick='alert(\"Hi\");'/>";  },
    function(data) { return count++; }
    function update() {
    var name = dwr.util.getValue("demoName");
    Demo.sayHello(name, function(data) {    dwr.util.setValue("demoReply", data);   } );
    var count = 1;
    dwr.util.addRows( "tabs",[ 'Africa', 'America', 'Asia', 'Australasia', 'Europe' ], cellFuncs);
    alert("hai");
    index.jsp
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <script type='text/javascript' src='dwr/engine.js'> </script>
    <script type='text/javascript' src='dwr/util.js'> </script>
    <script type='text/javascript' src='dwr/interface/Demo.js'> </script>
    <script type="text/javascript" src='index.js'> </script>
    </head>
    <body>
    <div id="tabContents">
    <div id="demoDiv">
    <p>
    Name:
    <input type="text" id="demoName" value="Joe"/>
    <input value="Send" type="button" onclick="update()"/>
    Reply: <span id="demoReply" style="background:#eeffdd; padding-left:4px; padding-right:4px;"></span>
         <table id="tabl1">
         <tbody id="tabs">
         <tr>
         <td>name</td>
         <td>name1</td>
         <td>name2</td>
         <td>name3sdf</td>
         </tr>
         <tbody>
         </table>
    </p>
    </div>
    </div>
    </body>
    </html>
    dwr.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://getahead.org/dwr/dwr20.dtd">
    <dwr>
    <allow>
    <!-- simpletext -->
    <create creator="new" javascript="Demo">
    <param name="class" value="org.getahead.dwrdemo.simpletext.Demo"/>
    </create>
    </allow>
    </dwr>
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app id="dwr">
    <display-name>DWR (Direct Web Remoting)</display-name>
    <description>A Simple Demo DWR</description>
    <servlet>
    <servlet-name>dwr-invoker</servlet-name>
    <display-name>DWR Servlet</display-name>
    <description>Direct Web Remoter Servlet</description>
    <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>activeReverseAjaxEnabled</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>initApplicationScopeCreatorsAtStartup</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>maxWaitAfterWrite</param-name>
    <param-value>500</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>dwr-invoker</servlet-name>
    <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    </web-app>
    Demo.java
    package org.getahead.dwrdemo.simpletext;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import org.directwebremoting.WebContext;
    import org.directwebremoting.WebContextFactory;
    public class Demo
    public String sayHello(String name)
    return "Hello, " + name;
    the sayHello() is printing the display.But the table rows not updating.But its object expected.So can you tell me where i need to change and how to add the pagination for the table like 10 by 10 records to display.
    Please help me.
    Saravanan

    Hi Brian,
    OAF supports the master-detail based design. You can very well implement your model. You can use 2 VO for your 2 objects and link them using a ViewLink. Check OAF Dev guide for more details.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to create a table using Text Layout Framework?

    How to create a table using Text Layout Framework? I meen real tables - like in HTML.

    Cell as indipendant TLF should work, I have created my table using same approach and works fine for me ... this is where it is
    http://apps.live-documents.com/docs/openWebDoc.do?docId=1480607
    Regards
    Raf

  • How to create multiple pages using flex application.

    Hi all,
    i am doing flex application which contains 5 different
    pages,
    to do this i have used viewstack component to navigate
    between the pages.
    this is working fine if all my pages are of same size. each
    page as different background image.
    but i have to create pages with different sizes.
    my first and second page are small and remaining pages are
    big.
    when i navigate to 3rd or 4th page, it is showing scrollbar
    inside swf.
    but i want scrollbar for browser window not inside my swf
    anyone please guide me how to create pages in flex
    application.
    i have one more doubt, if my page contains some html links ,
    how to open those links,
    is it posible to open the link in new window.
    please help me , i have no idea how to create web
    applications using flex
    Thanks in advance
    regards
    avanthika

    Hi inlineblue,
    Thanks for your reply,
    you asked about sample code,
    following is my sample code.
    In my Application mxml file, i am loading all custom
    components for each page.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*"
    horizontalAlign="center" verticalAlign="top"
    styleName="plain"
    backgroundColor="#FFFFFF"
    creationComplete="init()" width="780" height="594" >
    <mx:Script>
    <![CDATA[
    //navigating to next page
    public function showNextStep(newIndx:int):void{
    vs.selectedIndex=newIndx;
    //navigating to previous page
    public function showPreviousStep(newIndx):void{
    vs.selectedIndex=newIndx
    ]]>
    </mx:Script>
    <mx:ViewStack id="vs" paddingLeft="0" height="100%"
    width="100%" >
    <mx:Canvas id="s1" label="step1"
    backgroundImage="assets/Step1.jpg" >
    <!-- Step1.jpg image size is width=778, height=560 -->
    <mx:HBox paddingLeft="8" width="780" height="548">
    </mx:HBox>
    <mx:Button alpha="0" buttonMode="true" x="697" y="18"
    click="showNextStep(1)" width="72" height="24" />
    <mx:Button alpha="0" buttonMode="true" x="697" y="508"
    width="72" click="showNextStep(1)" height="24"/>
    </mx:Canvas>
    <step2 id="s2" label="Step2" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step3 id="s3" label="Step3" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step4 id="s4" label="Step4" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step5 id="s5" label="Step5" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    </mx:ViewStack>
    </mx:Application>
    // following is the page2 (step2) component code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step2.jpg" width="778" height="600"
    >
    <!-- Step2.jpg image size is width=778, height=600 -->
    <mx:HBox horizontalAlign="left" paddingLeft="5"
    height="511" width="768">
    </mx:HBox>
    <mx:Button alpha="0" buttonMode="true" x="648" y="6"
    click="this.parentApplication.showPreviousStep(0)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="711" y="6"
    click="this.parentApplication.showNextStep(2)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="651" y="529"
    width="58" click="this.parentApplication.showPreviousStep(0)"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="712" y="528"
    width="54" click="this.parentApplication.showNextStep(2)"
    height="24"/>
    </mx:Canvas>
    // following is the code for page3 (step3) component
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step3.jpg" >
    <!-- Step3.jpg image size is width=778, height=660 -->
    <mx:VBox width="763" height="668">
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="644" y="10"
    click="this.parentApplication.showPreviousStep(1)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="708" y="10"
    click="this.parentApplication.showNextStep(3)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" label="Back"
    x="625" y="590" width="58"
    click="this.parentApplication.showPreviousStep(1)" height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="694" y="590"
    width="68" click="this.parentApplication.showNextStep(3)"
    height="24"/>
    </mx:Canvas>
    // following is code for page4 (step 4),
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step4.jpg" >
    <!-- Step4.jpg image size is width=778, height=773 -->
    <mx:VBox width="762" height="792">
    <!-- User interface -->
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="644" y="15"
    click="this.parentApplication.showPreviousStep(2)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="708" y="16"
    click="this.parentApplication.showNextStep(4)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="644" y="710"
    width="58" click="this.parentApplication.showPreviousStep(2)"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="703" y="710"
    width="54" click="this.parentApplication.showNextStep(4)"
    height="24"/>
    </mx:Canvas>
    // Following is code for Page 5 (step 5 ) component.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step5.jpg" width="778"
    height="600">
    <!-- Step5.jpg image size is width=778, height=539-->
    <mx:VBox paddingLeft="170" paddingTop="170" width="778"
    height="522">
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="654" y="41"
    click="this.parentApplication.showPreviousStep(3)" width="72"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="654" y="486"
    width="72" click="this.parentApplication.showPreviousStep(3)"
    height="24"/>
    </mx:Canvas>
    I am getting vertical scrollbar for page3 and page4,
    please tell me how to avoid this, Is their any other method
    to do this.
    Following is the link for my above code
    http://www.emantras.com/flexdemo/sample.html
    in this application one more problem is also their,
    background image loads very slow, before it loads all the flex
    components will load. So when you open this please wait till
    background image loaded, to move to next and back pages.
    Thanks for your time and consideration.
    Regards
    Avanthika

  • How to create a table using subform if  lifecycle designer 7.1 not availabl

    hi,
    plis tell me how to create a table because i am using adobe lifecycle 6.1 and in the library
    there is no object for table..
    also tell me that if i have adobe lifecycle designer then which is better option and why?
    use table from library directly or create a table using subform...

    Hi Sweta,
    Create the interface attributes of type string and xtring type.
    Create node in the context of type graphics. bind the interface fields to the graphic node context element properties -
    Graphic content, field of xzstring type and mimetype to be string/any char data type of suitable length.
    In  layout drag and drop the image field and bind it to the graphic element.
    In yoour report programme-
    do the code as berlow to pass the graphic data -
    <i>CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    EXPORTING
    p_object = 'GRAPHICS'
    p_name = '<mime type graphic name>'
    p_id = 'BMAP'
    p_btype = 'BCOL' "BMON if monochrome
    RECEIVING
    p_bmp = w_binary
    EXCEPTIONS
    not_found = 1
    internal_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.</i>
    in the call <form function module>
    pass the inerface values for
    xstring (graphic field) to be w_binary (import parameter of the previous method)
    and mime type  to be 'image/bmp'.
    This would work.
    Hope fully you may be able to see a tutorial on this soon ;).
    - anto.

  • How to create a table using polish

    I am able to show all the database records in table form but i want to edit a particular cell of the table, how to do that. thanks in advance.

    Cell as indipendant TLF should work, I have created my table using same approach and works fine for me ... this is where it is
    http://apps.live-documents.com/docs/openWebDoc.do?docId=1480607
    Regards
    Raf

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

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

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

  • Create temporary Tables using SQL

    Hello,
    I'm wondering if SAP allows the creation of new Tables without SDK objects,
    I want to create temporary tables using SQL scripts an compile them when an specific addon is connected and erase them when the addon disconnects,
    Do you think this is allowed?.
    thanks,
    Gabriela

    You could always have a second DB to create your temp tables in.  This is the way I've done this, as well as created my own views and stored procedures in it.  No updating of the primary table necessary.  The way I named things was:
    Company_DB - Company Database
    Company_DB-Extern - My own stuff
    Then, in sap, you can just do [Company_DB-Extern]..Object to call it, or you do the same from withing your project.

  • Create physical table using select in repository

    Hi Gurus,
    Can we create Physical table in OBIEE 11.1.1.6 repository using stored procedure and select?
    How is the right syntax?
    Thank you so much
    JOE

    Hi,
    Yes. physical layer just select and put it like below
    for example,
    select field1, field2, . field_n
    from tables
    UNION
    select field1, field2, . field_n
    from tables;
    http://gerardnico.com/wiki/dat/obiee/opaque_view
    http://www.clearpeaks.com/blog/oracle-bi-ee-11gusing-select_physical-in-obiee-11g
    http://allaboutobiee.blogspot.com/2012/05/obiee-11g-deployundeploy-view-in.html
    Thanks
    Deva

  • Error in Creating DWH Tables using DAC

    Hi friends,
    While trying to create DWH tables from Tools>>ETL Mgmt>>Configure.
    At the end of creating DWH tables resulted in failure. When i checked with the log file "createwtables.log" it showed like below
    =====================================
    STD OUTPUT
    =====================================
    CREATING SIEBEL DATABASE OBJECTS
    C:\orahome\10gR3_1\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u DAC /p ******* /c OBIDB /G "SSE_ROLE" /f C:\orahome\10gR3_1\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b OBIEE_TOOLS /K OBIEE_TOOLS /X OBIEE_INDEX /W N
    Error while importing Siebel database schema.
    =====================================
    ERROR OUTPUT
    =====================================
    Siebel Enterprise Applications ODBC DDL Import Utility, Version 7.7 [18030] ENU
    Copyright (c) 2001 Siebel Systems, Inc.  All rights reserved.
    This software is the property of Siebel Systems, Inc., 2207 Bridgepointe Parkway,
    San Mateo, CA 94404.
    User agrees that any use of this software is governed by: (1) the applicable
    user limitations and other terms and conditions of the license agreement which
    has been entered into with Siebel Systems or its authorized distributors; and
    (2) the proprietary and restricted rights notices included in this software.
    WARNING: THIS COMPUTER PROGRAM IS PROTECTED BY U.S. AND INTERNATIONAL LAW.
    UNAUTHORIZED REPRODUCTION, DISTRIBUTION OR USE OF THIS PROGRAM, OR ANY PORTION
    OF IT, MAY RESULT IN SEVERE CIVIL AND CRIMINAL PENALTIES, AND WILL BE
    PROSECUTED TO THE MAXIMUM EXTENT POSSIBLE UNDER THE LAW.
    If you have received this software in error, please notify Siebel Systems
    immediately at (650) 295-5000.
    C:\orahome\10gR3_1\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u DAC /p ***** /c OBIDB /G SSE_ROLE /f C:\orahome\10gR3_1\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b OBIEE_TOOLS /K OBIEE_TOOLS /X OBIEE_INDEX /W N
    Connecting to the database...
    Unable to connect to the database...Im sure that database connectivity to the user in Up. These are the below details that i gave
    TableOwner: BIAPPS
    Pwd: BIAPPS
    ODBC Datasource: OBIDB
    Tablespace: OBIEE_TOOLS
    Indexspace: OBIEE_INDEXAll the above details, are seemed to be correct, but it is resulting in failure. What might be the problem.
    REgards,
    Saro

    Hi Andy,
    Like Svee, adviced in the below link
    https://forums.oracle.com/forums/thread.jspa?messageID=10520360
    I tried to search for my DSN entry in the odbc driver which is in system32 and systemWOW64. Hence i can find the entry in system32, but not in systemWOW64. So i tried to create my same DSN entry in the driver in systemWOW64 and after that i started to created DWH tables and now it is created successfully.
    Thanks
    Regards,
    Saro

  • I got problems in creating a table using java

    ok here's what i want to happen, i have a table named tblField that has 3 columns.
    These 3 columns are:
    1. field_ID
    2. field_Desc
    3. field_Fruit
    The table tblField returns 7 rows in which the values of field_Fruit are:
    1. apple
    2. banana
    3. orange
    4. watermelon
    5. pineapple
    6. mango
    7. lemon
    what i want to do is I want to create a new table named tblNewTable that will get the 7 values of field_Fruit and be the columns of the new table tblNewTable.
    So the result would be: I have this new table named tblNewTable and the column names are:
    1. apple
    2. banana
    3. orange
    4. watermelon
    5. pineapple
    6. mango
    7. lemon
    btw i already know how to create a table with hardcoded values.
    An example of create statement is shown below:
    CREATE TABLE [dbo].[tblNewTable] ({[Column Name] [char] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL)For the problem posted above, the first thing i should do is to get all the values of field_Fruit first and put them all in a vector. After that, i should use the create statement using the vector to return all the values of field_Fruit. I tried to do the code below but it doesnt wrk:
    int x = 0;
    CREATE TABLE [dbo].[tblNewTable] (while(x < vFieldFruitVector.size()){ {[Column Name] [char] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL x = x + 1;})vFieldFruitVector is the vector/values of field_Fruit.
    anyone who can help me solve my problem? thanks in advance! :)

    Unless you are using some special tag library or something, SQL is not, as far as I've ever seen, going to handle while loops within the statements. You want to create the table, then you have to create the CREATE statement string
    String c = "CREATE TABLE [dbo].[tblNewTable] (";
    for(int x = 0; x < vFieldFruitVector.size(); x++) {
       c += vFieldFruitVector.get(x) + " char 50 COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL";
    c += ")";
    int res = stmt.executeUpdate(c);

  • CREATE MULTIPLE TABLES USING BATCH FILE OR ANYOTHER MODE

    Dear Legends,
    I want to create Multiple table at a single stroke in oracle sql developer or sql*plus using any mode like batch file or sql files...
    I dont know the exact mode and how to create it please guide me..I want to learn more about this since am a DBA Beginner..
    Any kind of help would be appreciated more...Thanks in Advance
    Regards,
    Karthik..

    Hi Everyone,
    According to your suggestion I did everything and all works fine yesterday... But today the same script.bat file is not opening sqlplus...
    as soon as I double click the bat file it opens the prompt and it shows upto the copyright ..oracle all rights reserved. sql> prompt is not visible or upto that it strucks... please help me..
    My SCRIPT.BAT
    @echo off
    set ORACLE_SID=VESS
    set PATH=%oracle_home%\bin\
    sqlplus scott/tiger@VESS @test.sql
    echo "Disconnected"
    My test.sql
    select * from tab;
    Please help me...
    Regards,
    Karthik..

  • I am unable to create a table using procedure..

    Hi everyone,
    I have given CREATE ANY TABLE privilege to user A and wants to insert data into TAB1 in schema B using a procedure "INSERT INTO B.TAB1 AS SELECT * FROM A.TAB1" but it shows the message--
    PL/SQL: ORA-01031: insufficient privileges
    Which privilege user A need to do the above task.
    Thanks,
    Abhijeet

    SQL> create user a identified by a;
    SQL>create user b identified by b;
    SQL> grant connect,resource to a;
    Grant succeeded.
    SQL> grant connect,resource to b;
    Grant succeeded.
    SQL> grant create any table to a;
    Grant succeeded.
    SQL> conn a/a
    Connected.
    SQL> create table tab1 (id number);
    Table created.
    SQL> insert into tab1 values (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> conn b/b
    Connected.
    SQL> create table tab1 (id number);
    Table created.
    SQL> insert into b.tab1 select * from tab1;
    insert into b.tab1 select * from tab1
    ERROR at line 1:
    ORA-01031: insufficient privileges
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> grant insert any table to a;
    Grant succeeded.
    SQL> conn a/a
    Connected.
    SQL> insert into b.tab1 select * from tab1;
    1 row created.
    So you need to grant “*insert any table* “ privileges to a;
    regards
    Liakat hossain

  • How to create new table using pertioned table

    hi,
    i am using a partitioned table , now i want to craet a new table with same structure of my existing partitioned table.
    so can i use this syntax
    create table abc_new as
    select * from my_partitioned_table
    where 1=2;
    if i use this syntax would it make same structure of my existing partitioned table ?
    and
    when
    we use syntax like
    create table abc_new as
    select * from my_partitioned_table
    where 1=2;
    so would it make also indexing on new table to if old table exists ? if not so how can we create that indexing too at time of running this syntax ?
    reagrds

    No.
    Although the command would create a new table with the same column names and datatypes, it would NOT be a partitioned table. You must explicitly specify the PARTITION BY clause and Partition definitions when creating the table.
    Similarly, index definitions are not copied automatically. You must explicitly run the CREATE INDEX statements (which you can generate from the source using DBMS_METADATA.GET_DDL or using any other tools/utilities).
    (However, if you use Export-Import -- e.g. importing to another schema or to another database, it would create a partitoned table with the same name and with the same index definitions).
    Hemant K Chitale

  • How to create a table using a variable or flat file ?

    Hello All,
    I want to create a table in which column names and data type will be read from a flat file or a variable.
    How can i do this ? Any suggestations are appricaible.....
    Regards,
    Ashish

    How about using this code.
    Used Directory object EXT_DIR where the input file abc.txt is located with the below mentioned data
    TABLE SANJ_TEST
    SANJ_AB NUMBER(6)
    SANJ_BC VARCHAR2(100)
    Declare
    v_file utl_file.file_type;
    z varchar2(100);
    v_cnt number :=0;
    v_str Varchar2(1000) :='';
    v_tab varchar2(40);
    v_col varchar2(30);
    v_data_type varchar2(30);
    Begin
    v_file := utl_file.fopen('EXT_DIR','abc.txt','r');
    loop
    utl_file.get_line(v_file,z);
    if substr(z,1,5) = 'TABLE' then
    if v_cnt <> 0 Then
    v_str := v_str||')';
    execute immediate v_str;
    end if;
    v_cnt := 0;
    v_str := 'Create Table ';
    v_tab :=Ltrim(Rtrim(substr(z,7)));
    v_str := v_str||v_tab||'(';
    Else
    dbms_output.put_line('count in else start '||v_cnt);
    v_col := ltrim(rtrim(substr(z,1,30)));
    v_data_type := ltrim(rtrim(substr(z,31)));
    if v_cnt=0 then
    v_str := v_str||v_col||' '||v_data_type;
    else
    v_str := v_str||','||v_col||' '||v_data_type;
    end if;
    v_cnt := v_cnt+1;
    End if;
    End loop;
    utl_file.fclose(v_file);
    Exception
    When NO_DATA_FOUND then
    v_str := v_str||')';
    execute immediate v_str;
    dbms_output.put_line('In excep '||sqlerrm);
    utl_file.fclose(v_file);
    End;
    /

Maybe you are looking for

  • Accessing external timeline

    say im loading a swf into a movie clip. when than swf has reached the final frame, i want to tween it off stage. from my main timeline, how can i find out if the swf has reached the final frame?

  • Play one song then stop

    I'm trying to find a way for a 25 foot tall sculpture of Elvis standing in a jukebox to play one Elvis hit song randomly by being activated by a motion detector. Can the iPod Shuffle be activated to play just one song, then stop or turn off. Then be

  • How do I insert an image into the body of an e mail (not as attach)

    I wish to put a picture in the body of an e mail, not as an attach. How does this happen

  • Problem when converting from spool to XLS file

    Hey. I need to get table data from the spool and send it by mail in an xls file. so this is what i have done: I have used the FM 'RSPO_RETURN_ABAP_SPOOLJOB' to get the data table from the spool. then i am sending the data table in an xls file via the

  • HELP!!!!!!!! can't import my current MPEG-4 files from my pc into itunes

    I have been using Nokia music manager for my music files as I have used my N82 phone to store and listen to music. I have approx 50 CD's saved as MPEG-4 files within the nokia music manager and cannot get them to transfer to the itunes library. I rea