How to dynamically add column

Hi folks,
Plz tell me if u know how can i add column dynamically
in oracle content management SDK webstarterapp.I am stucked here for quite sometimes.plz tell me ASAP.
Regards
Prasenjit

Take a look at:
http://download-east.oracle.com/docs/html/B12187_02/toc.htm
You should use OMBALTER TABLE command.
Regards,
Marcos

Similar Messages

  • How to dynamically set column name in Answers

    Hi.
    How to dynamically set column name in Answers, for example I want to put presentation variable in column header. Is this possible?
    Regards,
    Goran Ocko
    http://108obiee.blogspot.com/

    May be a rude way .. but it works.
    Add narrative view and use Java script to change the column headings based on the variables.
    <script language="javascript" type="text/javascript">
    var a = document.getElementById('idResultsTableParent');
    var rows= a.getElementsByTagName('tr');
    rows[1].cells[1].innerText ="@{Presentation Variable}";
    </script>
    Editing the same post to remove irrelevant information.
    - Girish

  • Dynamic add column to datatable

    Hi ,
    How can I add columns to datatable dynamically ? I don't know how many columns will be selected.
    Actually I don't know how to do it in the jsp file. There is columns tag in it. Is there any tag like 'for' ?
    Thanks in advance.
    Wilson

    thanks for that but still cannot figure out what is wrong with my code (I'm really getting crazy !). I can see the titles of the columns but I cannot see any data. Any ideas ?
                   <h:dataTable styleClass="dataTable" id="tablecsv"
                        binding="#{mainPage.dataTable}" rendered="#{mainPage.completed}"
                        value="#{mainPage.resultsModel}" var="varresultsModel" />
        public UIData getDataTable()
            FacesContext context = FacesContext.getCurrentInstance();
            String[] cols = getTheTable();
            List children = dataTable.getChildren();
            children.clear();
            dataTable.setVar("vartableRow");
            for (int i = 0; i < cols.length; i++)
                UIColumn col = new UIColumn();
                col.setId("column" + i); //?
                UIOutput out  = new UIOutput(); //?
                out.setId(cols[i] + i); //?
    /*           children.add(col);
                HtmlOutputText header = new HtmlOutputText();
                String label = "" + cols;
    header.setValue(label);
    col.setHeader(header);
    HtmlOutputText data = new HtmlOutputText();
    col.getChildren().add(data);
    data.setValueBinding("value", context.getApplication().createValueBinding("#{" + (i +1) + "}"));
    HtmlOutputText header = new HtmlOutputText();
    String label = "" + cols[i];
    header.setValue(label);
    col.setHeader(header);
    ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{result." + cols[i] + "}");
    out.setValueBinding("value", vb);
    col.getChildren().add(out);
    dataTable.getChildren().add(col);
    this.completed = true;
    return this.dataTable;
    public ArrayList getResultsModel()
                   this.resultsModel = new ArrayList();
                   for (int n = 0; n < getTheTable().size() - 1; n++)
                   this.resultsModel.add(new Integer(n));
    return this.resultsModel;

  • How to Dynamically add Search Criteria in Advance Search Region.

    Hi All,
    I want to understand how can we add Search Criteria dynamically in the Advance Search Region.
    The Requirement is to add 4 additional search criteria for an org_id in a multi org structure. For other business those fields should not be visible.
    I did try this with the form personalization but could not Show/hide the additional search criteria programatically for the business as we can only see 4 search criteria at the time of page load and other criteria comes in the drop down list to add which can not be show/hide after page load.
    I thought of a solution to add search criterias dynamically for my org through extending controller.
    I found the OAAdvanceSearchBean (advance search Region in controller) object for my Advance Search but could you tell me how can I add the Criteria Row in that Advance Search (createWebBean function) and then add the item in criteria Row dynamically.
    Also please tell me how we can increase the showed criteria from default 4 to more, setDisplayedCriteriaCount(int) is not allowed and it is not working also.
    Thanks.
    Regards,
    Ashish Bansal

    Hi,
    As Lars said The "Search Option Set" and the "Search Component Set" offer you quite some flexibility.
    You can configure both of these component to customize your search.
    Once you did it, you can create a new basic search iview and set these components.
    On the other hand, you also customize the layout use to show result of search.
    Dont'f forget that you need to configure Trex and create an index.
    For instance, I configured the search criteria, the system only asked me some metadatas (created by us,whose value are dependents). Each time that you upload a document you set these attributes.
    Then when you want to search, appear a screen with these values
    Country :
    City:
    search field:
    Patricio.

  • How do I add column headings to an output file?

    Hi,
    I have an internal table that is created in my program and I send that table out as a data file attachment on an email.
    I have a request to include column heading on the data file going out. 
    Does anyone have any ideas as to how I can include a heading line as the first line of the output file?
    I'm an ABAP newbie and I don't know the best way to accomplish this?
    Thanks for your help!
    Andy

    Hi,
    While Building the attachement just add the field description refer following code
    Append header line to download data
      CONCATENATE 'Company Code'(004)
                  'State'(007)
                  'Store'(010)
                  'Tax Type'(013)
                  'Purchase'(015)
                  'Tax Rate'(017)
                  'Gross Tax Due'(021)
                  'Discount'(023)
                  'Net Tax Due'(025)
                  INTO ls_download-data
                  SEPARATED BY lc_tab.
      APPEND ls_download TO gt_download.
      CLEAR : ls_download.
    LOOP AT gt_error_log INTO ls_error_log.
        CONCATENATE ls_error_log-bukrs
                    ls_error_log-budat
                    ls_error_log-monat
                    ls_error_log-gjahr
                    ls_error_log-xblnr
                    ls_error_log-bschl
                    ls_error_log-waers
                    ls_error_log-hkont
                    ls_error_log-wrbtr
                    ls_error_log-prctr
                    ls_error_log-kostl
                    ls_error_log-message
                    INTO ls_attach-line SEPARATED BY lc_tab.
        CONCATENATE lc_cret ls_attach-line  INTO ls_attach-line.
      Append Error log data to attachment Table
        APPEND ls_attach TO lt_objbin.
      ENDLOOP.
    Call the function module to convert the data into Hex
      CALL FUNCTION 'SO_RAW_TO_RTF'
        TABLES
          objcont_old = lt_objbin
          objcont_new = lt_objbin.
    Append converted hex data to attachment table
      LOOP AT lt_objbin INTO lv_line.
        ls_conv = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' endian = 'B').
      Call lmethod to add the data to the output buffer sequentially.
        CALL METHOD ls_conv->write( data = lv_line ).
        lv_buffer = ls_conv->get_buffer( ).
        MOVE lv_buffer TO lv_hexa.
        MOVE lv_hexa TO ls_hex-line.
      Append converted hex data to attachment table
        APPEND ls_hex TO gt_attach.
      ENDLOOP.
    Regards,
    Prashant

  • Dynamic add column in Bex report

    Hi all,
             we have input parameter is month wise. For example if i have input 12.2011 - 03.2012
    Output:
    12.2011--01.2012--02.2012-----04.2012
       50kg -
    70--90--
    54
    Like above dynamically have to change column based on month input parameter. Please guide me how to design bex query.
    Thanks
    Saravanan

    hi,
    restrict calmonth with variable type manual input, and put this calmonth in columns on top of amount or quantity. It will give you your desired output.
    hope this helps,
    regards,
    ray
    Edited by: ray100 on Mar 9, 2012 2:54 PM

  • How do I add columns to document in pages?

    I am trying to figure out how to add a section of columns to my document - whenever I try, the whole documents turns into columns.  Please help!

    Hi Tammy,
    Pages has the ability to isolate portions of the document for the purpose of changing the layout. Insert > Layout Break above the region where you want to change the numbers of columns, and again below that region. Then when you make your changes between the Layout Breaks the change won't spread to the rest of the section. You can also isolate the format by inserting a Section Break. The only difference is that a Layout Break operates within a Section.
    Jerry

  • How do I add columns individually in a 2D array?

    hi! i am reading out a CCD chip and generating 2D .txt files of the data. Howeverm I need to add up all the values from column 1,and write that value to a new file (starting a new column in a new .txt file). then i must add all of the val's from col. 2, and append that result to the new file etc etc until all the columns are added, and the results written to that new .txt file,which is then saved- How do I do the addition :-S
    Cheers!
    John

    john-
    you said you already have the 2D data in a text file, i guess some comma delimeted spreadsheet compatible file? labview has a "Read From Spreadsheet File" vi, and it should import your data right into a 2D labview array. then to sum up the columns, first you probably want to transpose that array, then wire it to a single FOR loop, enabling indexing.
    the value that gets passed inside will be a 1D array that is a slice of the 2D array. wire that to a "Sum 1D Array" vi from the math menu, then wire the output to the other edge of the FOR loop, and make sure indexing is enabled. then wire that output to a "Write To Spreadsheet File" using the 1D array input. it should process very fast, and you just have to wire up some stuff like the file path and deli
    meters and stuff. did that explain it well enough?
    micah

  • How to dynamically add Nodes to JTree?

    How to add nodes to a Jtree by getting the information into a specific file
    For example, in JList:
    DefaultListModel workgroups;
    workgroups = new DefaultListModel();
    List<String> workgroupsList = new ArrayList<String>();
    workgroupsList = ParserUtils.getWorkgroupList(ParserUtils.getConfigPath() + "\\.workgroup.properties");
    if (!workgroupsList.isEmpty()){
         for (String workgroup : workgroupsList){
              workgroups.addElement(workgroup.toString().trim());
    workgroupList = new JList(workgroups); //adds the list workgroupsThe output of this will be a JList displaying the list of workgroups per line. The list could be found in a file name "workgroup.properties"
    Question is, is it possible to adapt this same method in JTree. The information per line will serve as one node in the tree. For example, I have 3 workgroups in the list, there will also be 3 nodes to be found in the tree.
    Any suggestions?
    THanks.

    There's a huge JTree example in the Swing tutorial. It's a bit of a beast to use.

  • How to dynamically update columns in a where clause to a SQL query in OSB?

    Hi Gurus,
    I have a requirement where in we need to dynamically update a where clause to a SQL query in OSB(11.1.1.6.0).
    For example:
    If the JCA sql string is "select * from emp where emp_id = 100 and emp_status ='Permanent'" now i want to change this where clause and the new query has to be like "select * from emp where emp_name like 'S%' and emp_dept like 'IT' ". basically we need to change the where clause dynamically.
    We can also use "fn-bea:execute-sql()" in a xquery but I don't want to use this function as creates a new connection.
    I have done some home work and found out --> as per the DOC "http://docs.oracle.com/cd/E23943_01/dev.1111/e15866/jca.htm#OSBDV943" section: "25.5.2 JCA Transport Configuration for Proxy and Business Services", when a business service is created by using JCA, we can see Interaction Spec Properties under JCA Transport Tab. This will have a property "SqlString' and we can over ride it. But I am unable to figure out how to over ride the value. I have tried by using Transport Headers activity but no luck. Please guide me how to achieve this?
    Thanks in advance
    Surya

    I solved my problem.
    In my header renderer, I simply added a line to set the text to the object value "label.setText( (String) value );" (where label is an instance of a JLabel.
    Thank you to who took some time to think about it.
    Marc

  • How to dynamically add new line series to the line chart in flex?

    i need to add line series dynamically..and each line  series should have a different data provider...

    A chart can have only 1 dataProvider which in my case is an ArrayCollection.
    The chart will update every time the dataProvider changes if you use binding.
    So you have to write a function that periodically populates the ArrayCollection with data from the server and the chart will update automatically.
    'Using line charts' tutorial from Adobe: http://livedocs.adobe.com/flex/3/html/charts_types_08.html#243339

  • How to dynamically add/remove a button from the ribbon based on some condition? (Ribbon XML)

    Hi,
    I have a ribbon (done using ribbon XML) with menu options. I need to remove few buttons from the menu dynamically based on some condition. Also, I want to change the label of another button. How to achieve this programmatically? (C#)
    Thanks in advance.
    Thanks Prasad

    Hello Prasad,
    Use callbacks for populating Ribbon controls such as menu, dropDown, gallery and etc. Then you can use the
    Invalidate or
    InvalidateControl methods of the
    IRibbonUI interface to get your callbacks invoked when required. Thus, you will be able to delete the required item(s).
    You will find the following articles in MSDN helpful:
    Chapter 11: Creating Dynamic Ribbon Customizations (1 of 2)
    Chapter 11: Creating Dynamic Ribbon Customizations (2 of 2)
    To change the label of your controls at runtime you need to use the getLabel callback and call the Invalidate or InvalidateControl methods of the IRibbonUI interface. The following series of articles describe the Fluent UI in depth:
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

  • How to dynamically add field name in where clause of select query in web dynpro?

    Hello,
    Can any body tell me how i can use select query with dynamic wheere condition.
    i have a requirement like there are multiple input fields  and i want to select data from two database
    and condition may vary .

    Hi
    In the where clause you need to write like
    WHERE NAME LIKE 'DE%'
    Regards
    Sudheer

  • How to dynamicly add a component to a panel

    when I click a button, I want to add a component to a panel, how can I do ?
    I try to do this:
    public void actionPerformed(ActionEvent e)
    contentPane.add(label,"north");
    contentPane.repaint;
    but there is no effect. Could u help me?

    Could you tell me why the repaint method doesn't work?repaint() does some low level validation and its more often suits for refreshing JList,TextFields etc etc...
    JPanel is somehow a more weighted component compared to JLabel,JTextFields etc,etc and hence it needs some heavy refreshing and these heavy refreshing can be obtained by doLayout() and validate() and some times both.
    when I add a component into another component, how can I get the new performace of the updated component?Is there a universal way? Pls put ur question more clearly.

  • How to dynamically add new components in a panel when a button is clicked

    Hi,
    I am building a gui which is used to create a new database schema, the panel now contains 6 entries and if i want to include more fields i press add more field button, how to write the event handler for the button which adds more fields. please help
    thank you.
    Edited by: rahul_ram on Sep 30, 2009 10:59 PM
    Edited by: rahul_ram on Sep 30, 2009 11:02 PM

    To get better help sooner, post a [_SSCCE_|http://mindprod.com/jgloss/sscce.html] that clearly demonstrates your problem.
    Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the {code} tags that appear.
    db

Maybe you are looking for

  • Remove password from PDF with Reader 9.0?

    Hi, We would like to know if a user opens a protected PDF (with 128/256 bits encryption) in Acrobat Reader 9.0, can the user save a copy of the protected PDF and the new PDF is no longer password protected. That means I would like to check if the rea

  • PI 7.0 - SMICM - Host Name - Conflict with other places

    Hi Friends, We have host name conflict in SMICM and in other places. For example, in SMICM it shows the host name 'A' for HTTP protocol and it is green, where as in other places like in RZ10 (Profiles in ABAP), Exchange Profiles (Connection Parameter

  • My iMac screen is black

    When I turn on my iMac it starts fine but when it comes to showing the display screen all I get is a black screen.  I have run several troubleshooting tests and trials and nothing is helping. My iMac is from 2008 and has a 24" screen. Can anyone help

  • House Bank and Account IDs

    Hi Gurus, Please tell me the uses of House banks and Account IDs? How many Account Ids can be in one House Bank and is it compulsory that we should have equal no of Bank GL Accounts and Account ID in House Bank? Please revert asat. Thank You

  • Share custom PDF settings

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/pro/using/WSb2f1a50375cd48d3-1f36d19412ada208ceb-7fff. html