Create columns at runtime

Is it possible to create columns in RTF template dynamically depending on what fields there are in dataset?
for example incoming data can be name, address, country and in other cases name, address, country, postalcode, age, height ...
if I could somehow iterate through available field names and create columns accordingly...

thanks, but I looked through those before posting my question.
I could not figure out how to apply it for field names. As I understand those examples are for displaying data as columns, not
field names as columns(and then populating rows accordingly). I just know that dataset will contain 3 known fields plus unknown
number of other misc fields that vary in naming on each report.

Similar Messages

  • Is it possible to create a column in  runtime?

    Hi,
    I created a application that connect with Access database. I just wonder is it possible for user to create a column in runtime, because the application need this kind of interaction.
    Many thanks,
    Ann

    Here's code to do that
         static void addColumn(Connection dbConn, String cname)
              Statement ins;
              String sql = "ALTER TABLE TestTable ADD "+cname+" CHAR(20)";
              try
                   ins = dbConn.createStatement();
                   ins.executeUpdate(sql);
                   ins.close();
              catch (SQLException se){fail(se);}
         }The rest of my TestODBC example can be found at
    http://forum.java.sun.com/thread.jsp?forum=31&thread=453376

  • How can I create a Forms9i Runtime for client distribution

    Currently we have an application developed in Forms 5.0.6.8.0 our Database has been upgraded to 9i DB. The application is working fine with this combination but we want to upgrade Forms in order to get Oracle Support. We just get the Developer Suite 9i package and we're trying to test our application with this software.
    How can I create the client runtime for Forms 9i?
    My application will work with Win 95 and 98?
    Thanks.

    Oracle9i Forms is web-only. Forms 6i is the last release of Forms to have client/server and character mode.
    You can test Forms from the Builder by installing iDS. To deploy Forms using iAS follow the documentation. It's all there in the deployment guide.
    iAS and Forms doco can be found on OTN.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • How to create columns in Pages 5.2.2

    Please help me create columns in Pages

    Hi Picas -
    Thanks for that tip - I was having similar problem.  In my mind and thinking, I should be able to make the column split first, then add the text I want in each one.  Is there away to do this without creating a table?   I am trying to keep track of information (similar to cause and effect), and as you think of one thing for column A, I have a reply for column B.    It is not a critical issue by any means; it would help my workflow, though, tremendously.
    Thanks!

  • How to create column header text while downloading file

    How can we create column header text while downloading file using function GUI_DOWNLOAD(in SAP Release 4.6c) because there is no FIELDNAMES parameter in
    4.6c version.

    Hii,
      Check this sample code. I have called GUI_DOWNLOAD twice. Onetime to download header of table and next time data of table
    REPORT  z_file_download.
    DATA: w_name(90) TYPE c.
    DATA:
      BEGIN OF fs_flight,
        carrid   LIKE sflight-carrid,
        connid   LIKE sflight-connid,
        fldate   LIKE sflight-fldate,
        price    LIKE sflight-price,
        currency LIKE sflight-currency,
      END OF fs_flight.
    DATA:
      BEGIN OF fs_head,
        carrid(10) TYPE c,
        connid(10) TYPE c,
        fldate(10) TYPE c,
        price(10) TYPE c,
        curr(10) TYPE c,
      END OF fs_head.
    DATA:
      t_head LIKE
       TABLE OF
             fs_head.
    DATA:
      t_flight LIKE
         TABLE OF
               fs_flight.
    fs_head-carrid = 'CARRID'.
    fs_head-connid = 'CONNID'.
    fs_head-fldate = 'FLDATE'.
    fs_head-price  = 'PRICE'.
    fs_head-curr   = 'CURRENCY'.
    APPEND fs_head TO t_head.
    SELECT-OPTIONS:
      s_carrid FOR fs_flight-carrid.
    START-OF-SELECTION.
      SELECT carrid
             connid
             fldate
             price
             currency
        FROM sflight
        INTO TABLE t_flight
       WHERE carrid IN s_carrid.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                  =
        filename                      = 'D:\flight.xls'
       FILETYPE                      = 'ASC'
    *   APPEND                        = ' '
        WRITE_FIELD_SEPARATOR         = 'X'
    *   HEADER                        = '00'
    *   TRUNC_TRAILING_BLANKS         = ' '
    *   WRITE_LF                      = 'X'
    *   COL_SELECT                    = ' '
    *   COL_SELECT_MASK               = ' '
    *   DAT_MODE                      = ' '
    *   CONFIRM_OVERWRITE             = ' '
    *   NO_AUTH_CHECK                 = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   WRITE_BOM                     = ' '
    * IMPORTING
    *   FILELENGTH                    =
      tables
        data_tab                      = t_head
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22
    IF sy-subrc NE 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'D:\flight.xls'
          filetype                = 'ASC'
          append                  = 'X'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t_flight
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc EQ 0.
        MESSAGE 'Download successful' TYPE 'I'.
      ENDIF.
      IF sy-subrc NE 0.
    *  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    Abhijeet

  • How to create variables at runtime

    Hi,
    I need to know how can i create variables at runtime.
    or is their anything like array that we create in 'C' if yes . how can i define its size at runtime.
    Thanks,
    Dev.

    In forms, either record groups or pl/sql tables of records give similar functionality to an array. You have full programatic control of either but with completely different syntax. Record groups integrate well with certain forms built-ins and features (eg LOVs and Tree items). PL/sql tables integrate well with other pl/sql such as stored procedures. Unlike an array, a pl/sql table may be SPARSE (index numbers need not be sequential), and UNBOUNDED (no need to declare the number of rows).

  • In a document library Show time in seconds also for a created column

    HI
    i created a sitecollection with DocumentCenter Template and created documentlibrary,
    after i upload documents i want to see created column should display seconds with created time 
    how it is possible to show seconds also  with time.
    adil

    Create a Calculated column and display it instead of the Created column.
    If it's for display purposes, then the easiest way is to convert the date into any format / pattern you like:
       =TEXT(Created,"MM/DD/YYYY hh:mm:ss AM/PM")
    If you want the column to be sortable by the user, list the year first and leave off the "AM/PM" and display using 24 hours:
       =TEXT(Created,"YYYY/MM/DD hh:mm:ss")
    You could also display the "Created with seconds" column and sort the view on the original Created column.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • Created column not showing in the Document Library View for a Custom Content Type based on Document

    We have a custom content type based of Document Content Type. The OOTB "Created" column does not show up in the view as well as in the Site Settings -> Columns.
    But it shows up in the Display Form and Edit Form of the Item at the bottom "Created at " by " " and "Modified by" at by ""
    Would anyone know how to make this column appear as part of the view ?
    thanks,
    Harsh

    Hi,
    They should by default be possible to add to a view. The only reason they would disappear from the UI if someone has changed the attribute of the Field to hidden = true. You can verify that with PowerShell and if so you can use PowerShell to revert the setting
    to false.
    $w = Get-SPWeb http://dev13$f = $w.Fields.GetFieldByInternalName("Created")$f.Hidden$f.Hidden = $false$f.Update()

  • Inserting sequence value in a created column already table having some rows

    i have a table emp whish has already having rows in that table
    now i added one more column to that table with alter command and also i created sequence
    now i want to insert the value in that newly created column with sequencename.nextval??????

    insert into employees values (employees_seq.nextval);
    commit;
    Here employees_seq is the name of the sequence.
    Regards
    Asif Kabir
    17 (17 unresolved)
    -- Mark your answer as correct/helpful
    Edited by: asifkabirdba on Dec 22, 2009 3:39 PM

  • Change 'Created' column/field value

    I have a business requirement of changing the date of 'created' column/field of selected
    document/s in a document library(it has to be changed to current system date). This has to be done by adding a custom button to the ribbon and providing authorization to the button. Please let me know if this is possible?

    Hi,
    Please refer to the following article.
    http://www.learningsharepoint.com/2011/06/13/using-javascript-js-file-in-commandaction-of-custom-ribbon-button-sharepoint-2010/
    In the above article, command action is JavaScript function. For example.
    <CommandUIHandler
    Command=”AboutButtonCommand”
    CommandAction=”javascript:ChangeDate();“/>
    Create a script file and refer to your command action.
    //Referencing the Script
    <CustomAction
    Id=”AboutFilesButton.Script”
    Location=”ScriptLink”
    ScriptSrc =”/_layouts/RibbonScripts/ChangeDate.js”/>
    You can add the following function to the "ChangeDate.js" file.
    function ChangeDate()
    var ctx = new SP.ClientContext.get_current();
    var list = ctx.get_web().get_lists().getByTitle("CM");
    var items = SP.ListOperation.Selection.getSelectedItems(ctx);
    var item = list.getItemById(items[0].id);
    item.set_item("Created", "2/13/2015"); //change the date
    item.update();
    ctx.executeQueryAsync(
    function () {alert("Created date changed") },
    function () {alert ("Error")}
    Hope this works for you.
    Please don't forget to mark it as answered, if your problem resolved or helpful.

  • "create columns with a where clause" in BMM

    Hi All,
    I have a question about OBI EE Meta data layer.
    We have OBIEE sitting on a Data Warehouse with a star schema.
    Our Fact table holds the following fields...
    EmployeeID
    CompanyID
    Measure ID
    Measure Name
    MEASURE
    This is what we have in the physical layer, BMM layer and the presentation layer but I want to be able to "create columns with a where clause"
    So my fact table in the presentation layer would look like this
    Amount Sold
    Unit Cost
    Company Amount
    I thought I could just create a logical column with
    Amount Sold = Measure
    where Measure Name = "Amount Sold"
    But I can't seem to find any to do that.
    Any ideas?
    Thanks

    Or you simply map your measure in the Logical Table source as something like :
    CASE WHEN MEASURE_NAME = 'Amount Sold' THEN MEASURE ELSE 0 END.
    You need to decide if you want the where clause adding in the Logical table source (be careful you will need a seperate LTS for each measure, this will mean more than one SQL being fired when you have more than one measure in the report).
    Or you go with this case method on each measure, be able to have all the measures mapped in 1 LTS, include all those in the report and they will be retrieved by one SQL block.

  • Can we change width of the column at runtime

    I have a report with columns assigned runtime, can we change width of the colimn runtime?
    for example Query: select &lp_1, &lp_2 from emp &LP_Where
    if i assign lp_1 empno size 10 and empname size 50. Vertical and horizantal elasticty is not going work for me. Any suggestions please..
    Lalitha

    Doubt there is the dynamic you are seeking.
    But you may put a few overlapped columns (diff. length of course) and display/hide by passing parameters.

  • Create Column in SQL Server

    Hi all,
         I am having below table.
    create table Student_Register
    Name varchar(30),
    FatherName varchar(35),
    Address1 varchar(100),
    Address2 varchar(100),
    Place varchar(75),
    Pincode int,
    SchoolName varchar(100),
    StandardStudy varchar(15)
    I am creating after trigger on the above table and inserting into the below table.
    create table StudentDetails
    Name varchar(30),
    FatherName varchar(35),
    Address1 varchar(100),
    Address2 varchar(100),
    Place varchar(75),
    Pincode int,
    SchoolName varchar(100),
    StandardStudy varchar(15)
    I need to create one computed column in studentdetails as StudentID with StandardStudy+Replicate(0,3)+lastvalue+1
    5th student id
    50001
    50002
     12th student like
    120001
    120002
    120003
    how to implement above logic pls ?
    Thanks
    Selvaons
    Thanks - SelvaKumarSubramaniam.Please MARK AS ANSWER, if my answer is useful to U.

    see
    http://www.sqlteam.com/article/custom-auto-generated-sequences-with-sql-server
    You can make it computed column based on UDF
    make UDF as below
    CREATE FUNCTION GenerateStudID
    @StdStudy varchar(15)
    RETURNS int
    AS
    BEGIN
    DECLARE @StudID int
    SELECT @StudID = @StdStudy * 10000 + COALESCE((SELECT MAX(StudentID) FROM StudentDetails WHERE StandardStudy =@StdStudy),0) + 1
    RETURN (@StudID)
    END
    then create column as
    ALTER TABLE StudentDetails ADD StudentID AS dbo.GenerateStudID(StandardStudy)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • ABAP webdynpro :Creating column in alv report

    I have generated a dynamic alv report when ever unwanted columns appear i deleted column using IF_SALV_WD_COLUMN_SETTINGS~DELETE_COLUMN.
    some times I want to create columns in alv .
    how to do that ?code sample will be much usefull.

    Hi,
    the same interface you used to delete has the create_column method.
    IF_SALV_WD_COLUMN_SETTINGS~CREATE_COLUMN( id = 'id of the column' ).
    " create the cell_editor.
    data:
    lr_text type ref to cl_salv_wd_uie_text_view.
    create object lr_text.
    lr_text->set_text_fieldname( ls_fields-fieldname ).
    lr_column->set_cell_editor( lr_text ).

  • Create column from exsisting

    Hi Gurus,
    how to create column from exsisting column i.e
    table1-col1 and col2 wants to create from col1(copy
    thanks

    Assume that u have a table named dummy and the column name is c1.
    Execute the below commands in the same order:
    1) create table dummy1 as select c1,c1 as c2 from dummy;
    2) drop table dummy;
    3) Rename dummy1 to dummy;

Maybe you are looking for

  • No SAP Systems in Database Assistant

    Hi, I am trying to connect to an SAP R/3 System out of Crystal Reports 2008. I have installed the Integration Kit for SAP and can connect to my SAP BW systems. However I would like to directly connect to an ERP, R/3 system. But when I select "SAP Inf

  • Class Loader Time in VisualGC 3.0-Display

    Hello, I�m monitoring my application with visualgc 3.0 under jdk1.5_09. I�m wondering why the Class Loader Time-Panel always shows activity even the amount of loaded classes remains nearly constant. What is shown is this panel??? Does the classloader

  • Code Inspector Issue - "MODIFY - without TRANSPORTING was found in line "

    Hi all I am new to abap and my transports are unable to move further because of code inspector error  "MODIFY - without TRANSPORTING was found in line ". Help me resolve the issue. For example LOOP AT i_user_add.     i_user_add-mandt = sy-mandt.    

  • Cross Fading in flash?

    Can anyone tell me how to cross fade images in flash? I am trying to blend the images on about a 1/4 second cross fade?

  • Mixer or audio interface?

    Hi I want to record ono garageband but can't do i just through line in. i want to get either a 2-input usb interface for £30 or a 5 input (behringer 502, for £50) mixer which i could connect through line in. For a start, would both of these work? Wou