Creating a Dynamic Tabular Form

Hi Everyone,
This is a question aimed at Denes Kubicek, but if he is not on the forum today then maybe someone else could help me.
I am trying to create a tabular form on a table view. The thing is that the primary key is not populated using a trigger, the primary key is 2 varchar columns.
For Example.*
SVC_NAME
SVC_HST_IP
SVC_NUM
SVC_DB_TYPE     
SVC_APP_TYPE     
SVC_APP_NAME     
SVC_BK_TYPE
So i am trying to create a tabular form based on the above columns, where the SVC_NAME and SVC_HST_IP are going to be inserted as the primary keys.
I have seen on Denes Kubiceks APEX website that he has been able to create a tabular form which could meet my requirements, Tabular Form Dynamic. The only thing is that i am falling at the first step. Please could someone provide me with some direction as regards to where to put the code?
What I have done to this point is place section 1 of the code "1. SQL Query / PL/SQL Function Returning SQL Query" in a report. However, when I run the page I get "failed to parse SQL query:ORA-00936: missing expression" error message. I assume that section 2 and 3 will be application processes but I have not got to that point yet. I am not sure about section 4.
Any help would be appreciated,
Thanks,
-N.S.N.O.

N.S.N.O.
See this example on how to proceed with tables without a primary key:
http://htmldb.oracle.com/pls/otn/f?p=31517:157
which applies in your case. Using ROWID is also an option.
Whatever later you call your primary key is not important since this example uses ROWID.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------

Similar Messages

  • Creating a manual tabular form on an empty table

    Hi all,
    I am trying to create a manual tabular form on an empty table. Is it possible to display textboxes and column headers, when I run the report I get "no data found".
    Regards,

    Hi Denes and thank you for your valuable input.
    My problem is in fact that, I have created the tabular form by using a report region with a SQL query, something like,
    select apex_item.display_and_save(1, p.bolge) bolge,
    apex_item.display_and_save(2, p.hafta) hafta,
    apex_item.display_and_save(3, p.yil) yil,
    apex_item.display_and_save(4, p.mamul) mamul,
    apex_item.display_and_save(5, p.tahmin1) tahmin1,
    apex_item.display_and_save(6, p.tahmin2) tahmin2,
    apex_item.display_and_save(7, p.tahmin3) tahmin3,
    apex_item.display_and_save(8, p.tahmin4) tahmin4,
    apex_item.display_and_save(9, p.tahmin5) tahmin5,
    apex_item.display_and_save(10, p.tahmin6) tahmin6,
    apex_item.display_and_save(11, p.revize4) revize4,
    apex_item.display_and_save(12, p.revize5) revize5,
    apex_item.display_and_save(13, p.revize6) revize6
    from portal_link.v_planlama p
    The problem is that, since there is no data in the table, when I run the page, I cant get the form to be rendered, and I get a nice "no data found". There should be a way to get the form rendered, hence making it available for data input.
    Regards,
    Onur

  • I have developed a little tool to help with Dynamic Tabular Forms....

    I have created a little framework which will help people to develop dynamic actions in tabular forms.
    It currently only supports text and display only but if necessary I'm willing to expand this little tool...
    You can find it here: http://linuxservernico.no-ip.info:8888/JSON_Tabular_form.zip
    Please let me know of what you think about it and how to improve it...
    To be continued,
    Nico

    The problem is that APEX doesn't support dynamic actions and plugins on a tabular form (not yet).
    For now my implementation is just on overloading of the apex_item implementation of apex.
    Check the readme.txt for installation it isn't that hard but you need to understand the context.
    Thnx for the positive response
    Br,
    Nico

  • How to create a manual tabular form with DELETE capability

    Since the wizard tabular form does not allow the use of checkboxes, I am building my tabular form manually following the HOW-TO document. I will need to be able to delete rows in the form in addition to inserting and updating. Is there a document somewhere that describes how to do this? The how-to doesn't cover it and I have searched the forums to no avail.
    Thanks.
    Darin

    To create dynamic checkbox you can do the following:
    SELECT HTMLDB_ITEM.CHECKBOX(1,"your database field name", 'unchecked or checked') " "
    FROM YOUR_TABLE_NAME OR DUAL;
    ...then...
    In order to extrapolate the checkbox value you use following array:
    htmldb_application.g_f01("subscript value)"
    This array will contain value of checkbox. At this point you can do this:
    if htmldb_application.g_f01("subscript value)" = 'Y'
    THEN
    INSERT DATA...
    DELETE DATA...
    END IF;
    Hope this somewhat helps...
    NOTE: I have entered a lot of pseudo values/code but I believe you can fill in the blanks for what you need.

  • Need to Create a Dynamic Tablular Form in APEX

    Can someone point me to the APEX documentation that discusses how to create a tabular form that can be dynamic (I can add or change data in the table)? Similar to a report, but where the data can be modified.
    Thanks.
    David

    Actually, I found the step by step tutorial on creating a tabular form. So I should be all set. No need to reply to this thread.
    Thanks.
    David

  • How to create validation only for created rows in tabular form

    Hi all,
    I have a simple question. Is it possible to create a validation for tabular form which will be fired only for created?
    There is a possibility in APEX 4.1 to choose two types of "*Execution scope*" first is "*For created and Modified Rows*" and second is "*All Submitted Rows*".
    Thanks in advance!
    Regards,
    Jiri

    Hello Jiri,
    >> Is it possible to create a validation for tabular form which will be fired only for created?
    You can still use the scope of For created and Modified Rows and use a PL/SQL Expression condition of:
    :APEX$ROW_STATUS = 'C'You also need to change Execute Condition to For Each Row .
    Hope it helps,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • What do I need to do to default some values when a new row is created in a tabular form?

    Hello all -
    I have a tabular form which requires a few columns to be entered by the user when s/he creates a new row, but other fields in the column can just default to certain values.  How do I set those default values so that the user doesn't have to be bothered with entering any data except those that MUST be entered?
    An example:
    Form1
    REGION        COUNTRY       CITY
    APAC            JAPAN            TOKYO
    APAC            AUSTRALIA    SIDNEY
    APAC            KOREA           SEOUL
    REGION is nearly always APAC, so I want to default to that.  The user can still adjust it if necessary, but I want to set it for the user, just to save having to enter a value.  When the user clicks the the Add Row button, I want to load that value right away and leave the next two fields blank so the user can enter whatever they want.
    Thanks!
    John

    Hi,
    Go edit that column.
    Under Tabular Form Attributes you can find options to set default value
    Regards,
    Jari

  • Creating a complex tabular form manually

    Hi,
    I am trying to create a tabular form manually. The tabular form consists of
    rows , with each row containing
    1. Select List (of employee names)
    2. JOB (Text box)
    3. Salary (text box)
    I have a add button to add a row, a row similar in appearance to the above, i.e it consists of a select list of "employee names", "job" text box and "salary" text box.
    I should to be able to specify the id for these items in each row that I add, I need to specify id for each item in each row that I add since, there is a lov image attached to each row, that would capture any data entered by the user in that row and take him to a popup page with the values specified in the main page.
    Can anyone tell me how to specify id to the items I add (i.e when I create a new row).I also dont find any id created to the items in the form that I have created manually. Please note i am using the APEX_ITEM package to create the tabular form manually.

    Hi Andy,
    I would like to explain what I have done and kindly let me know if this is right.
    I created a tabular multirow form using APEX built in component, since I wanted to add validations and I could not get a handle to UpdateMRU, I decided to create the tabular multirow forms manually using the example on the APEX howtos link.
    I find that the multirow form which i created manually does not have any id associated with the items.
    1. Please let me know if I need to add validations is there only one way i.e to create the multi row tabular form manually?
    2.How do I specify the ids for each item. The APEX_ITEM APIs dont provide any way to add ids to items?
    3.Is it possible to add validations to the multi row form generated using APEX wizard?In the sense , for eg, I have the employee table presented as multi row table, when a user adds a new row or modifies an existing row, he should not be allowed to add an employee with the same name, Now where do I do this valiation and how can I show the error against that row?
    4. What I need to do further is. I have an image on each row (akin to a button) that would spring up a popup page with search options , so that I can repopulate values back into the parent page, to do this I need to pass the ids of the ITEMS to and fro from the parent to the child and back.
    I would like to understand how to approach the above issues.
    Would appreciate if you could let me know on the same.
    Thanks.

  • Error when creating breadcrumb for tabular form

    Dear all,
    I when I tried to create a breadcrumb in tabular form, I got:
    1 error has occurred
        * This Menu Identification Page already has an associated Menu Option. You must select another page.I found other thread that discussed the same subject and it mentioned about "deleting entries in tabular view" when apex_application_bc_entries showing the corresponding page was included in defined_for_page and url column (my corresponding page was included in those columns also). However I don't know how to delete those entries.
    Could anybody advise me?
    best regards,
    Val

    I have resolved the problem by copying the page I want to link to another page in the app without breadcrumbs, then added the breadcrumb region,
    a breadcrumb entry. I then pointed the 'home' page to the new page and was able to navigate to the new page and back to the home page.

  • Creating a dynamic interactive form

    I have been working at trying to get a text field that expands when more text is added to the field. I have been looking at the sample Purchase Order form that came with Designer and when I look at the properties of the subform for the comments field near the bottom of the page I see options that are grayed out when I look at the properties of the subform that I have made. I'm just not getting it and seeing what to do to get thing to work.
    For example when I go to look at the Object > Subform properties everything is grayed out except the Type, Presence, and Locale fields. In the Object > Binding properties everything below Name, Default Binding and Import/Export Bindings fields is grayed out.
    Without knowing what else to look into I'm stuck.
    I have tried working with the tutorial in the Designer help but there is no tutorial for a dynamic interactive form just a dynamic form that apparently doesn't work the same way.

    OK. I think I got this figured out why the fields are grayed out.
    But how do I get a field to grow when I finaly open the pdf document in Acrobat 7?

  • 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

  • Dynamic tabular form

    Hi Gurus,
    Can any one help?
    I have one table that holds a list of People...
    Another that holds Classifications
    Another that holds Sub Classifications (linked to the Classification table)
    Table(*Person*)
    PersonID, PersonName
    Table(*Classifications*)
    ClassID, ClassName
    Table(*SubClass*)
    SubClassID, SubClassName
    I need a form that will allow me to put Classifications and Sub Classifications against a Person. I want to be able to add new Classifications and SubClass Values which are dynamical added to the form...
    I have a table that holds other data and links the People to the Assessment
    Table(*Person2Assessment*)
    AssessmentID, PersonID, Date, AssessorName, Notes
    I have a table to hold the Values of the Assessment...
    Table(*AssessmentValues*)
    AValuesID, AssessmentID, ClassID, SubClassID
    A typical person may look like:
    e.g.
    Person1(Fred)
    Class1(Programming C++)
    SubClass1a(Expert)
    Class2(Language)
    SunClass2a(English-speaking)
    Class3(Location)
    SubClass3e(India)
    Now I have the data tables I have no idea at all how to create the table and save the values for the AssessmentValues in one table the dynamically adds values based on the different classifications available...
    Can anyone point me in the direction of a sample app, or anything... any kind of help would be great!!!!! I am 100% stuck :o(
    Thanks
    Tod
    Edited by: user10738104 on 09-Jul-2012 16:16

    Hi there
    Two ways:
    a: easy way
    Type:SQL Query(updateable report)
    e.g. use wizards
    select
    "ID",
    "ID" ID_DISPLAY,
    "PDRLREFNO",
    "NOOFCOPIES",
    "NOOFCOPIESCLIENT",
    "WITHBID",
    "ELECTRONICFORMAT",
    "KEYDOCUMENT",
    "FI",
    "FIINDEX",
    "FA",
    "FAINDEX",
    "AB",
    "ABINDEX",
    "WWLPROJECTNO",
    "DOC_CLASS",
    "FORMAT"
    from "#OWNER#"."PDRL_PDRLDETAILS"
    where "WWLPROJECTNO" = :P10_PROJECT AND "PDRL_NUMBER" = :P10_PDRL_NO
    If you use wizard it will create all processes.
    b:pl/sql way (steep learning curve)
    Region is sql query
    select x.Sel, x.REFERENCE_NO, x.TOWN_COUNTRY, x.FROM_NIGHT, x.TO_NIGHT, x.HOTEL_DETAILS, x.cost, X.ID
    from
    (select     htmldb_item.checkbox(41,h.id,'CHECKED') Sel,
    h.REFERENCE_NO as REFERENCE_NO,
         htmldb_item.text(42,h.TOWN_COUNTRY,35) as TOWN_COUNTRY,
         htmldb_item.DATE_POPUP(43,rownum,h.FROM_NIGHT,'dd-mon-yyyy',10) as FROM_NIGHT,
         htmldb_item.DATE_POPUP(44,rownum,h.TO_NIGHT,'dd-mon-yyyy',10) as TO_NIGHT,
         htmldb_item.text(45,h.HOTEL_DETAILS,50) as HOTEL_DETAILS,
         htmldb_item.text(46,h.COST,5) as COST,
    htmldb_item.text(47,h.ID,1) as ID
    from     TRAVEL_BOOKING_HOTEL_D h where h.REFERENCE_NO = :P651_REFERENCE_NO ) x
    for each process you need to create yourself
    e.g. update
    declare
    vrow char(255);
    begin
    :P651_TEST:='';
    vrow:='';
    for i in 1..HTMLDB_APPLICATION.G_F41.count
    loop
    update westgarth.TRAVEL_BOOKING_HOTEL_D
    set TOWN_COUNTRY = HTMLDB_APPLICATION.G_F42(i),
    FROM_NIGHT = HTMLDB_APPLICATION.G_F43(i),
         TO_NIGHT = HTMLDB_APPLICATION.G_F44(i),
    HOTEL_DETAILS = HTMLDB_APPLICATION.G_F45(i),
    COST = HTMLDB_APPLICATION.G_F46(i)
    where ID = HTMLDB_APPLICATION.G_F47(i);
    -- vrow := HTMLDB_APPLICATION.G_F45(i);
    end loop;
    --:P651_TEST :=vrow;
    end;
    NB Each field must be unique (***essential***)
    Hope this helps....

  • Creating A Dynamic Bilingual Form

    I'm a relative newbie just trying to figure out the best way to create a single form which would allow the user to change the language (English/French) on-the-fly. So based on what the user selects as their language (radio button) all of the text captions AND tool tips associated with the text fields would then be displayed in that language. Is there an efficient way to implement some sort of "resource file" or "lookup table" with the text field name as a key, and the corresponding English and French caption values, and then just load this English or French caption value depending on what language the user chose? I'm not expecting a detailed solution, just maybe a broad idea of the best way to go about doing this, to at least get me pointed in the right direction.
    Any help would be much appreciated, thanks in advance!

    Technically that is certainly doable but depending on how complicated the form is (how many objects need to be updated) you can affect performance. If it takes more than a few seconds to change the text then users will complain. Also you will have layout issues where a caption in Englsih takes a certain amount of space then changing it to French usually means that more space is required. For these reasons most people end up with two different forms and load the appropriate one for the user.

  • How create tabular form using dynamic sql

    I have 50 tables and I need create application for support all these tables, I don't want to create 50 tubular regions.
    I want create list of tables; user pick one of them and I want generate dynamic tabular form for suppot.
    Is it possible?
    Thanks Mary

    Hi Mary,
    It is possible, but you would have to control everything manually. Have a look at: [http://apex.oracle.com/pls/otn/f?p=33642:252] - I've included instructions explaining how this has been created
    Andy

  • Query for create manual tabular form using apex collection using item textfield with autocomplete

    can we create a manual tabular form inside item textfield with autocomplete ?
    how it is possible?
    with Apex_item API used for this item.
    i used this code for creat  cascading select list
    select seq_id,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   1,
            p_value                     =>   c001,
            p_query                     =>   'SELECT C001 D
         , C002 R
      FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = ''col1''',
            p_attributes                =>   'style="width:150px" onchange="f__name(this,parseInt(#ROWNUM#));"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f01_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f01_#ROWNUM#',
            p_show_extra                =>   'NO') name,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   2,
            p_value                     =>   c002,
            p_query              =>   ' SELECT null d, null r FROM dual WHERE 1 = 2
            p_attributes                =>   'style="width:150px"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f02_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f02_#ROWNUM#',
            p_show_extra                =>   'NO')name2,
    from apex_collections
    where
    collection_name = 'COLLECTION1'
    It is fine .
    but i want item in tabular form  textfield with autocomplete and remove select list. my requirement is using textfield with autocomplete select a employee name and second item textfield with autocomplete display dependent perticular employee related multiple task.
    how it is created.i have no idea related textfield with autocomplete.Please help me....

    pt_user1
    I understand that the add row button is currently doing a submit.
    To not submit the page you need a dynamic action on the page.
    Does the javascript function addRow do what you want?
    Otherwise have a look at the following two threads Add row in manual tabular form using dynamic action and Accessing Tabular Form & Add Elements to Collection without Page Submit.
    You're process could be something like:
    Add the new values to the collection using the idea's in the second thread and at the same time add the new row.
    And as second action refresh your tabular form.
    If you get stuck set up what you have done on apex.oracle.com using the tables from the demo application.
    Nicolette

Maybe you are looking for

  • Priority issue in Support Desk in Solutionsolution Manager

    Hi Guru's     When we create the support Desk Message in solMan or thru any Satellite system, the email will trigger to the Concerned person, But in the Support Desk mail the priority is not appearing,we are using the solution Manager 4.0 ( Upgraded)

  • Links will not open in new window from iPad but work in IE on desktop.

    I am trying to set some links to open in a new tab but for some reason they just keep opening in the original tab. External links work fine but when I try to make another page from my website open in new tab, it will not work. I have looked at the co

  • Why wont my finished movie upload to youtube

    why wont my movie upload to youtube it just says its uploading and when its finished i check youtube and its not there!

  • Can I see and edit the adress book phone tags?

    Hi. Does anyone know if it's possible to see and edit the list of standart and costume phone tags on the Lion Adress Book? And can you sync it with iCloud with an iPhone? Thank you for the help.

  • Upgraded my phone and lost some contacts

    Recently updated my iPhone form a 4 to a 5....backed up the old phone and when I synced to the new one I got most of what was there. I seem to be missing a lot of contacts....how can I retrieve them. I tried backing it up again..but to no avail