Can we create items dynamically in forms 6i??

Dear All,
Is it possible to create items,i.e. Text items,display items etc. dynamically?
Suppose I select Table name EMP,then it must get all columns from database and place it on form.Now I change table name from EMP to DEPT,now it should get all columns for dept table and place it on same form removing all EMP table colums.I should not have to call another form,i.e. it should be strictly done through single form.
Thanks in advance

You can make a form with 10 or more items (depends on the maximum number of the columns you have) and place them in a non base table block. Then you populate the block with a cursor and if you press a button you can populate the same block with another cursor making visible only the columns you need.
Hope it helps you,
Fabrizio

Similar Messages

  • Can we create items dynamically or at run time?

    Hello expert,
    can we create some item dynamically at some button click?
    Thanks
    yash

    yash_08031983 wrote:
    Hello expert,
    can we create some item dynamically at some button click?Hello, yash
    You can not create items at run time. But you can manage them at run time by setting Visible property programatically.
    Hope this helps..
    Hamid

  • Can I create a dynamic cursor in a program unit on oracle form....

    Hello folks,
    can I create a dynamic cursor on client side ( in a program unit on the oracle form), is it possible, I Know how to create it on server side using Ref cursor, but on client side i got this message (can't be created on client side or something like that).... please if someone can help

    > select count(*) from t_comsis
    <p>But when you put that select string into a varchar2 variable, it won't compile. Which makes it hard to create anything "dynamic".
    <p>In Forms, you can create and populate a record group dynamically, which is ok as long as your select will not retrieve too many (more than several hundred) rows.
    <p>Or, your other option is to use the Forms Exec_SQL dynamic sql package.

  • Can I create a dynamic number of inputs during runtime?

    Can I create a dynamic number of inputs during runtime?
    Oracle 11g
    Application Express 4.0.2.00.06
    Here is my problem:
    We have a table that holds metadata about files (hardcopy or softcopy files).
    We expect we may need more columns in the table at some point and don't want to modify the table or the application.
    So in order to do this I would like to create:
    A table called TBL_FILE with the columns:
    TBL_FILE_ID               NUMBER                (This will be the primary key)
    TBL_FILE_NAME          VARCHAR2(1000) (This will be the name of the file)
    A second table will be called TBL_FILE_META with the columns:
    TBL_META_ID               NUMBER               (This will be the primary key)
    TBL_FILE_ID               NUMBER                (This will be the forign key to the file table)
    TBL_META_COLUMN     VARCHAR2(30)     (This is what the column name would be if it existed in TBL_FILE)
    TBL_META_VALUE          VARCHAR2(1000) (This is the value that record and the 'would be' column)
    So a person can have as much meta data on the file with out having to add columns to the table.
    The problem is how can I allow users to add as much data as they like with out having to re develop the page.
    Other things to note is that we would like this to be on a single page.
    I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
    however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
    So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
    Any idea's how I could accomplish this? Is there a better way of doing this?
    Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
    I found this method when looking at Oracles Workflow tables.

    Welcome to the Oracle Forums !
    >
    Can I create a dynamic number of inputs during runtime?
    Oracle 11g
    Application Express 4.0.2.00.06
    Here is my problem:
    We have a table that holds metadata about files (hardcopy or softcopy files).
    We expect we may need more columns in the table at some point and don't want to modify the table or the application.
    So in order to do this I would like to create:
    A table called TBL_FILE with the columns:
    TBL_FILE_ID NUMBER (This will be the primary key)
    TBL_FILE_NAME VARCHAR2(1000) (This will be the name of the file)
    A second table will be called TBL_FILE_META with the columns:
    TBL_META_ID NUMBER (This will be the primary key)
    TBL_FILE_ID NUMBER (This will be the forign key to the file table)
    TBL_META_COLUMN VARCHAR2(30) (This is what the column name would be if it existed in TBL_FILE)
    TBL_META_VALUE VARCHAR2(1000) (This is the value that record and the 'would be' column)
    So a person can have as much meta data on the file with out having to add columns to the table.
    The problem is how can I allow users to add as much data as they like with out having to re develop the page.
    >
    Creating Page Items dynamically is not available. You will have to create excess items and hide/show , etc. But you cannot change the Item Type. All in all, too many limitations in this approach.
    >
    Other things to note is that we would like this to be on a single page.
    >
    The 100 item limit will hit you if you go with extra item on page. With Tabular Form that should not be a limitation, unless you are exceeding the 50 item limit of APEX_APPLICATION.G_Fnn items, and the 60 column limitation of Report region with "Use Generic Column Names (parse query at runtime only)" of Dynamic region.
    >
    I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
    however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
    >
    If the type if item is variable it only means you need a way to store the item type. Meta Data of the Meta Data.
    >
    So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
    >
    Yes, you can do it. Updatable report/ Tabular Form query can be constructed from the Meta Data using PL/SQL Function Returning SQL Query . It will be a bit of coding in PL/SQL where you use the Meta Data and the Meta Data of the Meta Data to piece together your SELECT with the right APEX_ITEMs. It might have a performance penalty associated with it, but will not be a serious degradation.
    >
    Any idea's how I could accomplish this? Is there a better way of doing this?
    Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
    I found this method when looking at Oracles Workflow tables.
    >
    I guess that is just a good TNF. It is the Master-Detail Design Pattern, that sound more modern ? ;)
    Regards,

  • How can I create a long employment form without making the form widget drag?

    How can I create a long employment form without making the form widget drag?

    Sorry Sachin, I mean that I created a simple form on the page from the widget and started adding fields to it. The more fields I add the slower the delay becomes in creating a new field. Even when I try to select and drag or move an item, there's a huge delay and sometimes the program feezes,  loose what i've done and have ot restart.
    I'm doing an enployment form that has more than 20 fields, at least, and I need to be able to build the fields in separate categories, like Education, Past Employment, etc... quickly without delay issues.
    I can probably send you a snap shot of what I'm talking about if I cna post it or attach it here..?
    ~Andy

  • Can I create a fillable pdf form and then export it for client use on my web site?

    Can I create a fillable pdf form and then export it for client use on my web site?  I need clients to be able to fill in the (registration) form on my site then submit it via email.

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • Can we create a fillable W4 form for new hires and sign it electronically

    Can we create a fillable w4 form for new hires.  can the new hire sign electronically and what is the cost for having electronic signatures?

    We don't support electronic signatures. You should check out our sister service Adobe Echosign - www.echosign.com

  • How can i create a dynamic structure based on my input from a select-option

    Hello,
    This is to develop a custom report in FI for G/L Balance based on company code.
    I have an input select-option for Company code.
    Based on the range of company code my output layout should be modified.
    I am not very much sure to create a dynamic internal based on the input from a select-option.
    Can any one please let me know how can i do this.
    I would appreciate for anyone who turns up quickly.
    Thank you,
    With regs,
    Anitha Joss.

    See the following program, it builds a dynamic internal table based on the company codes from the select option. 
    report zrich_0001 .
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>.
    data: alv_fldcat type slis_t_fieldcat_alv,
          it_fldcat type lvc_t_fcat.
    data: it001 type table of t001 with header line.
    selection-screen begin of block b1 with frame title text-001.
    select-options: s_bukrs for it001-bukrs.
    selection-screen end of block b1.
    start-of-selection.
      select * into table it001 from t001
                     where bukrs in s_bukrs.
      perform build_dyn_itab.
    *  Build_dyn_itab
    form build_dyn_itab.
      data: index(3) type c.
      data: new_table type ref to data,
            new_line  type ref to data,
            wa_it_fldcat type lvc_s_fcat.
      clear wa_it_fldcat.
      wa_it_fldcat-fieldname = 'PERIOD' .
      wa_it_fldcat-datatype = 'CHAR'.
      wa_it_fldcat-intlen = 6.
      append wa_it_fldcat to it_fldcat .
      loop at it001.
        clear wa_it_fldcat.
        wa_it_fldcat-fieldname = it001-bukrs .
        wa_it_fldcat-datatype = 'CHAR'.
        wa_it_fldcat-intlen = 4.
        append wa_it_fldcat to it_fldcat .
      endloop.
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = it_fldcat
                   importing
                      ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    endform.
    Regards,
    Rich Heilman

  • Can I create a sign-in 'form' in iWeb?

    Can I create a simple 'form' in iWeb that allows visitors to 'sign in' or leave 'e-mail addresses' (that automatically get sent to my e-mail address)? No passwords or anything complicated.
    Ben

    No problem...
    First, set up a free account at http://freedback.com/
    Design a form on their site and select/copy the code they give you.
    In your iWeb page, type something like FORMCODE where you want the form to go.
    Open TextEdit - free text editor that comes with every mac.
    To view the code in an HTML file, choose File > Open and select "Ignore rich text commands." Then locate the .html file and click Open.
    (If you publish to your .Mac, mount your iDisk to find it. It will be located at iDisk/Web/Sites/iWeb/Sitename/Pagename.html)
    Find your text, FORMCODE, and replace it with the code you get from Freedback. Save your work.
    Remember, if you make a change to a page like this post-publishing, and later re-publish, you have to make the html changes all over again!
    You could set up a Find/Replace command in MassReplaceIt (http://www.hexmonkey.brownhost.com/). It's a useful and FREE little program that makes all this post-publish editing MUCH easier and faster.

  • Can I create a data entry form?

    I have inherited a large Excel spreadsheet and would like to create a data entry form to input/view data without continually scrolling horizontally. Is this possioble please?
    Many thanks,
    Gary

    Data entry forms and other alternate views of data are best made in a database application. Spreadsheets like Excel or Numbers show data in rows and columns and that's it. If there are two many rows or columns to fit on a page, scrolling is unavoidable. Ditto for tables in Word or Pages.
    A database can create displays that put all related data on a single screen or page.
    Mac databases include Filemaker and Bento (by the same company). I'm sure there are others, I've just never heard of them.
    Good luck,
    Terry

  • Can I create a dynamic report in the server without using a report template

    Hi,
    My company just bought a Crystal Report Server XI and it didn't have a report designer.
    I can't start creating report without the designer.
    The question is can  I generate a dynamic report at runtime (on the crystal report server ) without using report template?
    My project requirement is to use a crystal report server to manage the reports.
    Some client web application will just access this report server.
    I  hope the experts can provide me some guidance.
    regards,
    Rulix
    Edited by: Rulix Batistil on Nov 3, 2008 8:08 AM

    Hi Rulix,
    The latest version of CR Server is 2008. Therefore I'm assuming you are using CR Server 2008.
    New in CR 2008 is the .NET report modification software development kit (SDK). The report application server (RAS) SDK is now available for users of Crystal Reports .NET API without the use of a RAS server. Report modification such as changing, adding, or removing database providers, or adding, removing, or creating report objects, parameters, formulas, and sections can be achieved by accessing the RAS SDK through the Crystal Reports .NET SDK.
    Java developers however receive the JRC and Java SDK documentation through the free Crystal Reports for Eclipse download. This product will be updated on a separate schedule from Crystal Reports.
    Further Information and samples are available in our [Developer Library|https://www.sdn.sap.com/irj/sdn/businessobjects?rid=/webcontent/uuid/5001d5de-f867-2b10-00bf-8d27683c85a0]
    Kind regards,
    Tim

  • How can I create classes dynamically?

    Guys
    My requirment is I want to create classes and their instancess too dynamically. First is it possible in Java?
    If so, then my next question is how can I refer such dynamically created classes in my code to avoid compilation error.
    Thanks in advance
    Regards
    Sunil

    For other ways to generate classes on runtime you could also have a look at BCEL:
    http://jakarta.apache.org/bcel
    And dynamic proxies:
    http://java.sun.com/j2se/1.4.2/docs/guide/reflection/proxy.html
    If so, then my next question is how can I refer such
    dynamically created classes in my code to avoid compilation
    error.Generally the classes that you load should either implement some interface or extend some abstract class you know of at compile time so that the compiler knows what methods are available for use. If that's not possible you can only use reflection.

  • Creating items dynamically

    Hi, is there a way to create items in a page dynamically? For example, I have a query that returns n values. I need to show the n values in n different items, but the n items could change for the next query. Is there a way?
    Regards,
    Jeannine

    FOR c1 IN(SELECT rownum, ttexto_opcion, id_item FROM tb_opciones where id_prueba=:p_id_prueba) LOOP
    HTP.P(APEX_ITEM.radiogroup(c1.rownum,id_item,1,c1.ttexto_opcion,'name="grouped"));
    END LOOP;This might work if not you need to set an html element name attribute (p_attribute) as per http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/api.htm#CHDGCJCG
    APEX_ITEM.RADIOGROUP(
        p_idx              IN    NUMBER,
        p_value            IN    VARCHAR2 DEFAULT,
        p_selected_value   IN    VARCHAR2 DEFAULT,
        p_display          IN    VARCHAR2 DEFAULT,
        p_attributes       IN    VARCHAR2 DEFAULT,
        p_onblur           IN    VARCHAR2 DEFAULT,
        p_onchange         IN    VARCHAR2 DEFAULT,
        p_onfocus          IN    VARCHAR2 DEFAULT,)
        RETURN VARCHAR2;

  • Can't create item extending controller

    Hi everybody, I need your help.
    I need to put a checkbox validation in OIE Details Page > Expense Details. I tried to do it using Personalization, but Create Item icon is disabled. So I'm trying to do it extending the controller but I'm stuck in this point.
    I'm woriking on R11i. I think I have to extend "DetailDataInputCO". I used this code but the item doesn't appear.
    public class xxDetailDataInputCO extends DetailDataInputCO
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAMessageCheckBoxBean ccidbean = (OAMessageCheckBoxBean)pageContext.getWebBeanFactory().createWebBean(pageContext, OAWebBeanConstants.MESSAGE_CHECKBOX_BEAN, null, "xxValidation");
    ccidbean.setID("xxValidation");
    ccidbean.setUINodeName("xxValidation");
    ccidbean.setText("I confirm that all aspects of my time entries are accurate.");
    ccidbean.setPrompt("Test");
    Please, tell me what I'm doing wrong.
    Thanks in advance.

    Hi,
    I checked the Region, even I didnt see the "Create Item" image (not only enabled, the image itself not there).
    So you want to add a checkbox under "Flow Layout: Expense Details".(flowLayout id="DetailFields" )
    <your code start>
    OAHeaderBean hb = (OAHeaderBean)webBean.findChildRecursive("XXXID");
    //Second Create a bean to that
    //add Index to the Header Region
    hb.addIndexedChild(ccidbean);
    <your code ends>
    Instead of add the item to yoru custom Header Bean,
    Can you get the handle of the flowlayout with the id "DetailFields" and then add to that (There is a way to add it in a particular position also).
    import oracle.apps.fnd.framework.webui.beans.layout.OAFlowLayoutBean;
    OAFlowLayoutBean detailsFlowLayout = (OAFlowLayoutBean) webBean.findChildRecursive("DetailFields");
    if(detailsFlowLayout !=null)
    detailsFlowLayout.addIndexedChild(ccidbean);
    // You can use addIndexedChild(int childIndex, UINode child) to add it in a particular index.
    Thanks,
    With regards,
    Kali.
    OSSI.

  • Can we create a dynamic action for Training and Event Management???

    Hi All
    i need to configure automatic email generation for an employee when he gets booked for a training program in the training and event management module. can we use a dynamic action for it? and how to configure it?? I also guess that i have to use the Feature MAILS for it. but i am not sure abt it and also not sure how to configure it. I will really appreciate if someone can provide me with a step to step configuration for the same. Its urgently sought.
    Thanks and Regards

    Notifications in T&E are done through Workflow.Dynamic Actions are only for PA Infotypes.
    ~Suresh

Maybe you are looking for