Add entries in table form located on a form page

I have a form with a tabular presentation on her page. Entries in the form of this table are obviously related to the record displayed on the page of the form. The form is based on a demand_id and my form of table contains all transport on demand, so each record in the form of tables has a transport_id and a demand_id with a FK constraint on it (for cascade delete). Everything works well but one thing. I can create a request, add transport, register the application it will save transport associated and delete request and it will remove the transport associated with it. Hiccup time alone, is that I can not add transport creating demand, because the request is technically not yet created, and the FK constraint won't let me add any transport.

A work around all about anyone know? Because I really need to be able to add transport on demand that is being created.

Kind regards
Matt

It's no wonder because you are missing citations in all directions. By using a tool like TOAD helps - try to format your code and it will tell you where your problem is. This should compile:

SELECT apex_item.checkbox (30, transportid) delete_checkbox, transportid,
          apex_item.hidden (31, transportid)
       || apex_item.hidden (32, demandeid)
       || apex_item.hidden (33, seq_id)
       || apex_item.hidden (34, seq_checksum)
       || apex_item.date_popup
                            (35,
                             NULL,
                             dt_transport,
                             'DD/MM/YYYY',
                             15,
                             10,
                                'onchange="f_set_collection_value(this.value,'
                             || seq_id
                             || ', ''3'')"'
                             || 'id=f35_'
                             || '#ROWNUM#'
                            ) dt_transport,
       apex_item.text
             (36,
              hr_transport,
              8,
              8,
                 'onchange="f_set_collection_value(this.value,'
              || seq_id
              || ', ''4'')"',
              'f36_' || '#ROWNUM#'
             ) hr_transport,
       apex_item.text
                    (37,
                     duree,
                     8,
                     8,
                        'onchange="f_set_collection_value(this.value,'
                     || seq_id
                     || ', ''5'')"',
                     'f37_' || '#ROWNUM#'
                    ) duree,
       apex_item.select_list
          (38,
           ind_typetransport,
           'Aller;1,Retour;2,Aller/Retour;3',
              'onchange="f_set_collection_value(this.value,'
           || seq_id
           || ', ''6'')"',
           'NO',
           NULL,
           NULL,
           'f38_' || '#ROWNUM#',
           NULL,
           'NO'
          ) ind_typetransport
  FROM dates_collection_v

I think that the task is too big for your knowledge of PL/SQL and efforts will not lead to the expected results. It would be best to start with easy stuff.

Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
-------------------------------------------------------------------

Tags: Database

Similar Questions

  • Add filter slot table form to show the lines with null values

    Hello

    I have a tabular presentation where we need to add a filter with two values (selection list) so that if one of the columns in a table (column1) is zero, then I need to display all records where column1 is null.

    I was wondering how do I put this in the Source of tabular forms where condition. This filter has only two values,

    All the
    NULL for the error

    So when the user selects all, then all the records in the table are shown
    If the user selects 'Value Null in error', while the records where Column1 is null will be shown

    For example
     column1        column2
                           A
                           B
          1               C
          3               D
     
    If the user selects, then

    all four files will show up. Else, only the first and the second will be returned.

    Thank you

    Hi, Ryan.

    Try a static LOV like this

    STATIC2:;,--- All ---;--- All ---
    

    and a Where clause, like this

    where column1 is null or :p1_filter like '%%'
    

    Jeff

  • Add button of tabular form a line can open several rows?

    Hello

    I use apex 4.2

    I create tree on page when when I click on any node tabular presentation open and display reports record.

    Now, I want, in my article a tabular presentation contain a selection list

    My requirement is when I click on any node tabular form open the no. lines on the no equals. entries in the respective selection of each tree node list.

    Is it possible?

    Help appretiate.

    Thank you

    GO

    Go

    I've created a demo by adding several lines slot table using dynamic action form.

    Select the number of rows in the selection list and click the button "Add line".

    See the information on the page for what I've done.

    Nicolette

  • Ensure that the entry is uppercase form master / detail

    Hi all

    I'm playing with APEX version 4.0.2.00.09 and have created a master form / detailed using the built-in Wizard. My database has a constraint which ensures all data entered must be uppercase, but retail section allows the text to be entered in lowercase. In the image below, you'll notice that description has an entry in lowercase, i.e. when it is inserted into the database, it returns that uppercase constraint has been violated. Is it possible to have some javascript (or other tricks) related to this text box to force uppercase data as the user types into it?

    I noticed a lot of sites mention adding javascript to 'Attributes of the HTML Form element', but I don't have this section when you change the details of projects.


    http://imageupload.co.UK/Viewer.php?file=yu7i83h5dpk5cy0npsy0.PNG

    JavaScript: since you are on version 4.0 you have dynamic actions.
    Define a dynamic action


    • Event: change

    • Selection type: jQuery Selector

    • jQuery Selector:

      td[headers='DESCRIPTION'] input:visible
      


    • Condition: no strings attached



      • Action: set value
      • Fire on loading the Page: No.

      • Set type: Expression Javascript

      • Expression of JavaScript:

        $(this.triggeringElement).val().toUpperCase()
        


      • Remove the Change event: Yes

      • Items concerned:
        Selection type: trigger Element




    This will change the characters all uppercase when the textbox loses focus and the value has changed. (ex tab, clicking somewhere else) If you want that to happen as entry is created, you can use the "Key Release" event, but realize it's behavior embarrassing to put the cursor at the end of the string. No problem when adding, but annoying when a change to an entry (e.g. deleting a Mid-string character set the cursor at the end of the string).

    You can also add validation side Server (or calculation), but here you have to loop through the array of apex_application.g_f # partner in your column that you want to validate. Easier validations are added only in version 4.1 (no calculations though). There is also no "Post calculation calculation" on an element of presentation table as it is on a page element. (that Munky probably refers to?)

    Published by: Tom on February 5, 2013 12:43

  • How can I recover file in table form in a modal window with the id of the request.

    Dear all,

    I use Apex 4.2 worm.

    I've created classic report with 5 columns and add additional column with the name "ADD COMPONENT" link in classic report.

    I call in a table in a modal window, click on link add COMPONENT classic report. .

    Modal window is popup when I click on the link add COMPONENTS , but it does not have any record of respective "Reservation_id and Res_line_id" I have place in link add COMPONENT report Classic.

    How can I view respective folder of reservation_id and res_line_id in table form in the modal window.

    I create in my account. You can view using

    Workspace: APEX_ISSUE

    User:               [email protected]

    Password: kaushik1@34


    Application 71690 - questions

    Page not 13

    Tab: In the form of modal window.

    Thank you

    Hi Maxence,

    CORINE wrote:

    It is wounderfull but I use the Apex 4.2 worm. There is no dialogue option and page mode.

    So how can I do that in Apex 4.2 worm.

    Check this old similar thread that runs in 4.2 APEX where I explained step by step: How to extract the values inside the jquery element dialogue modal rigion

    Also check the options of the iframe for your application sholud be set to 'Allow' or ' Allow from same origin.

    Edit Application Properties-> security-> the browser-> Embed security Connectionwithsuchprocedures-> is set to 'Allow' or 'Allow same origin'

    Hope this helps you,

    Kind regards

    Jitendra

  • How we can print the page numbers for the shape of the TABLE OF CONTENTS when her excluded from the form page count?

    Hi Experts,

    We have the TABLE OF CONTENTS, followed by 100 forms totally 215 pages.

    We checked in the exclusion of the option of number of form page SUMMARY form at the level of the group.

    Followed forms of TABLE OF CONTENTS forms all use FORMSETPAGENUM rule at the bottom of page.

    the first form followed by TABLE OF CONTENTS form the number starts page 1 of 215 and the last form closes at 215 215.

    Now, I want to print the Page number of SUMMARY form only.

    How can do us?  Any thoughts?

    Kind regards

    RAMAN C

    Hello Raman,

    I guess that you included "Exclude the number of pages" option in the form of table of content (TOC).

    There is a limitation in the studio. The functions of page number (PAGE NUM OF FORM / FORMSET PAGE OF NUM) will be ineffective when we choose the option "Exclude the number of pages" in the form of table of contents. Therefore, you was not able to print many pages of form as a table of contents.

    The only way to print the number of pages is to deselect the option "exclude the number of pages. Then you can print the number of pages in the table of contents in the form of table of contents normally. However, this number of pages in the table of contents will add to the Total number of pages form set. The number of pages all forms can be controlled by Postransdal using the script [FORMSET PAGE NUM = TotalPages() - 1]

    Kind regards

    Mahesh

  • JHeadstart - how to configure the form to be modal window in the style of table-form available?

    JHeadstart release 11.1.2 Relase

    When you use the Application JHeadstart Editor, I chose "table-form" style of layout for the field.

    Issue. When the field editing either way, by clicking on the edit button, which will be the user to the form, is it possible to have the form opens in a modal window?  If Yes, where and how configure this option?

    Summary: currently, the flow is as follows: field displays in a table.  The user clicks on the button Edit and screen refreshes the field in a form.  What I want is to have the form to be displayed as a modal window with the table in the background.

    Thank you.


    I think you could do this with 2 different versions of the JHS group.  A configured as 'table' and set up the other as a 'form '.  Then, add a groupLink item in the table to open the form in a modal popup.  (you might even be able to link the group to itself, but then you will need to do some adaptations to prevent it to generate the default table-form link)

  • External table-> fetch location?

    With the help of Oracle 10.2.0.5

    An external table is a construction that gives me access SQL to a file.

    Is it possible to know the name of the file somehow inside to select? Like to add a column with the name of the file?

    example of Pseudo
    CREATE TABLE EXT_DUMMY
    (
        "RECORDTYPE" VARCHAR2(100 BYTE), 
        "COL1" VARCHAR2(100 BYTE), 
        "COL2" VARCHAR2(100 BYTE), 
        "FILE" VARCHAR2(100 BYTE) 
    )
    ORGANIZATION EXTERNAL
    (
        TYPE ORACLE_LOADER DEFAULT DIRECTORY "IMPORT_BAD_FILE" 
        ACCESS PARAMETERS ( 
                 records delimited BY newline 
                 FIELDS TERMINATED BY ';' 
                 MISSING FIELD VALUES ARE NULL 
                   ( RECORDTYPE CHAR
                   , COL1 CHAR 
                   , COL2 CHAR 
                   , FILE CHAR FILLER
                   ) 
                   ) 
        LOCATION ( 'Testfile1.txt, Testfile2.txt' )
    )
        reject limit 10
    ;
    The result might look like this:
    RECORDTYPE   COL1       COL2      FILE
    SAMPLE           DUMMY    DUMMY Testfile1.txt
    SAMPLE           DUMMY1   DUMMY Testfile1.txt
    SAMPLE           DUMMY2   DUMMY Testfile1.txt
    SAMPLE           DUMMY3   DUMMY Testfile1.txt
    SAMPLE           DUMMY1   DUMMY1 Testfile2.txt
    SAMPLE           DUMMY1   DUMMY2 Testfile2.txt
    SAMPLE           DUMMY2   DUMMY1 Testfile2.txt
    I would like to know what file is read a certain rank. Maybe I missed an option in the documentation. In this example, I have two different files as the source for the external table.

    Another use case could be that:
    If I enable a user to switch the external table to a different file
    alter table EXT_DUMMY location ('Testfile3.txt' )
    . How do know us which file is read during the select on the table? When UserA's select, perhaps UserB just modified the location before that selection has been started. That's why UserA reads in a different file than expected.

    Published by: Sven w. on May 26, 2011 16:48

    Published by: Sven w. on May 26, 2011 16:51

    Published by: Sven w. on May 26, 2011 17:11

    Hi Sven,

    I don't know how much we can rely on that, but we will consider the following:

    create table test_xt (
      rec_id  number
    , message varchar2(100)
    )
    organization external (
      default directory test_dir
      access parameters (
        records delimited by newline
        fields terminated by ';'
      )
      location (
        'marc5.txt'
      , 'test1.csv'
      , 'test2.csv'
      , 'test3.csv'
      )
    );
    

    I always thought that the ROWID doesn't hold much meaning for an external table, but...

    SQL> select t.rowid
      2       , dump(t.rowid) as rowid_dump
      3       , regexp_substr(dump(t.rowid,10,9,1),'\d+$') as file#
      4       , t.*
      5  from test_xt t
      6  ;
    
    ROWID              ROWID_DUMP                                                FILE#      REC_ID MESSAGE
    ------------------ --------------------------------------------------------- ------ ---------- -------------------------------
    (AADVyAAAAAAAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,0,0,0,0,0,0,0,0,0     0               1 this is a line from marc5.txt
    (AADVyAAAAAAAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,0,0,0,0,0,0,0,0,33    0               2 this is a line from marc5.txt
    (AADVyAAAAAAAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,0,0,0,0,0,0,0,0,66    0               3 this is a line from marc5.txt
    (AADVyAAAAAAAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,0,0,0,0,0,0,0,0,99    0               4 this is a line from marc5.txt
    (AADVyAAAAAEAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,1,0,0,0,0,0,0,0,0     1               1 this is a line from test1.csv
    (AADVyAAAAAEAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,1,0,0,0,0,0,0,0,33    1               2 this is a line from test1.csv
    (AADVyAAAAAEAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,1,0,0,0,0,0,0,0,66    1               3 this is a line from test1.csv
    (AADVyAAAAAEAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,1,0,0,0,0,0,0,0,99    1               4 this is a line from test1.csv
    (AADVyAAAAAIAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,2,0,0,0,0,0,0,0,0     2               1 this is a line from test2.csv
    (AADVyAAAAAIAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,2,0,0,0,0,0,0,0,33    2               2 this is a line from test2.csv
    (AADVyAAAAAIAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,2,0,0,0,0,0,0,0,66    2               3 this is a line from test2.csv
    (AADVyAAAAAMAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,3,0,0,0,0,0,0,0,0     3               1 this is a line from test3.csv
    (AADVyAAAAAMAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,3,0,0,0,0,0,0,0,33    3               2 this is a line from test3.csv
    (AADVyAAAAAMAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,3,0,0,0,0,0,0,0,66    3               3 this is a line from test3.csv
    (AADVyAAAAAMAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,3,0,0,0,0,0,0,0,99    3               4 this is a line from test3.csv
    (AADVyAAAAAMAAAAAA Typ=208 Len=17: 4,0,0,213,200,0,0,0,3,0,0,0,0,0,0,0,132   3               5 this is a line from test3.csv
    
    16 rows selected
     
    

    Then with a join to EXTERNAL_LOCATION$:

    SQL> with ext_loc as (
      2    select position-1 as pos
      3         , name as filename
      4    from sys.external_location$
      5    where obj# = ( select object_id
      6                   from user_objects
      7                   where object_name = 'TEST_XT' )
      8  )
      9  select x.filename,
     10         t.*
     11  from test_xt t
     12       join ext_loc x on x.pos = to_number(regexp_substr(dump(t.rowid,10,9,1),'\d+$'))
     13  ;
    
    FILENAME       REC_ID MESSAGE
    ------------ -------- --------------------------------
    marc5.txt           1 this is a line from marc5.txt
    marc5.txt           2 this is a line from marc5.txt
    marc5.txt           3 this is a line from marc5.txt
    marc5.txt           4 this is a line from marc5.txt
    test1.csv           1 this is a line from test1.csv
    test1.csv           2 this is a line from test1.csv
    test1.csv           3 this is a line from test1.csv
    test1.csv           4 this is a line from test1.csv
    test2.csv           1 this is a line from test2.csv
    test2.csv           2 this is a line from test2.csv
    test2.csv           3 this is a line from test2.csv
    test3.csv           1 this is a line from test3.csv
    test3.csv           2 this is a line from test3.csv
    test3.csv           3 this is a line from test3.csv
    test3.csv           4 this is a line from test3.csv
    test3.csv           5 this is a line from test3.csv
     
    

    Seems to work... assuming that the files are always read in the order specified by the LOCATION parameter and the ID generated actually means what I think it means.

  • Add a new table and identification number must be advised

    Hi all

    When I click on Add button, just copy the existing table to a new table.  I wouldl like to advised the Identification number when I select Add a new table.
    for example
    (the default number is 1 - column 2
    Identification number is 2 - column 3

    When I select Add button to add a new table the ID in column 2 is 3; and the
    column 3 is 4; and so on.

    I had worked several days but it failed.  Help, please.

    Thanks in advance.

    Here is the link.  It is easy for you to review what I did.

    https://Acrobat.com/#d=upe2RCZPJ * CGIpzpLVS9hQ

    Cindy

    Hello

    in the first column, modify the script to:

    Concat ("LOCATION", 1 + (2 * this.parent.parent.index))

    and in the second column in:

    Concat ("LOCATION", 2 + (2 * this.parent.parent.index))

  • ScrollBar in table form

    Is it possible to put the region in a table for a height/width set with a vertical scroll bar, allowing users to scroll the rows if several lines appear that what is permitted for the height?

    If this is not possible, is it possible to have a region move with the page? For example, I have 2 regions on the page (display in 2 columns). A region is an updated report which shows 25 rows of data in a spreadsheet pre-filled the other region is a region which list availability that users can use to help determine the data for information entry in region 1. The tabular presentation requires scrolling to display all records if then the user loses sight of the valuable information contained in region 2.

    Any help would be appreciated.

    Thank you!

    Hello

    Very quick and dirty will be added to your presentation tabular region header somethinglike

    and at the foot of the region

adjust the style width and height to your needs

But as table form is the same as classic report, you can use the method for example from this post
Scroll to report but I want the column headings to stay where they are

And if you look in the forum there is same more friendly messages

BR, JAri

Published by: jarola November 4, 2009 01:02

  • APEX 5 calendar add entry with button

    Hi all

    In our application (APEX 5.0.1) we use a calendar and to display a separate button to add entries in the calendar.

    The button works fine and opens the same page such as specified in the 'create' link and the insert works fine as well.

    The only problem we seem to have is that when we submit the page via the button, the calendar does not show the newly inserted record.

    When we do by means of clicking on a date, it works very well.

    After refreshing the page, the two records are displayed.

    Adding an offshoot tried for the calendar, but it did not help.

    An idea that could help to solve this problem is welcome.

    Kind regards

    Kim

    Hi Kim Mertens.

    Kim Mertens says:

    In our application (APEX 5.0.1) we use a calendar and to display a separate button to add entries in the calendar.

    The button works fine and opens the same page such as specified in the 'create' link and the insert works fine as well.

    The only problem we seem to have is that when we submit the page via the button, the calendar does not show the newly inserted record.

    When we do by means of clicking on a date, it works very well.

    After refreshing the page, the two records are displayed.

    Adding an offshoot tried for the calendar, but it did not help.

    An idea that could help to solve this problem is welcome.

    What type is your calendar entry page? Normal dialogue / Modal?

    I think it is the modal dialog box / Popup, you can use the dialog close event to refresh the calendar area using dynamic action.

    Here's an example where I demonstrated refresh calendar region on the evolution of the selection list using dynamic action.

    Reference: Re: Please help. Make a dynamic action

    Kind regards

    Kiran

  • FM 2015 Cannot save custom rule in table form

    Hello. I use fm2015 in Windows 7 environment.

    I created a table with only 1 point of rules throughout.

    I then applied a rule of 1 point of double on the bottom edge of the header line. I did it in the custom power and shading, and then when I saw that I could apply this rule directly in the table designer, I applied it there.

    I recorded all of the senses, but the rule of the double is never saved. I get the rule 1 - pt uniform throughout.

    What Miss me? I don't know that I used to be able to do this.

    Thank you.

    Custom power & shading override settings of the table designer. It looks like you want a double rule between positions and body lines?

    1. Select the header row
    2. In Custom decision & Shading, see Custom management cell, choose table, check below. Click on apply. This command removes the replacement and the table will use the settings of the table designer.
    3. Add in the table designer, back in through separators:

    If this fails, you may have added the substitution to the top of the first line of the body instead of the bottom of the header line. It may seem in the same place for us, but FrameMaker sees the difference. It can show you are the substitution is with the button to display the current settings in the CR & S dialog box, but when a table is too complicated with a bunch of replacements, I pull them all off, doing what I can in the table designer and then only use CR & S when absolutely necessary. To remove all the CR & S, select all four outside the edge notches and both the coches inside the border and choose table from the list style to power. Click on apply.

  • Add a new table to the server ESXi 4.1

    Hello

    I try to add a new table on a server ESXi 4.1.0. Is it possible to build the table and add it without restarting the host? The server is an HP ML350 G5. I installed ESXi 4.1 on a hard drive, but I did not install HP driver packages. Is there something I could install from ESXi that would give me the features of configuration of the berries, etc. ?

    Thanks for any help,

    Stem

    Although it is possible (but unsupported) to install tools RIAD on ESXi (see VMware experience before: how to run the CLI of the ACU online HP for Linux in ESXi 4.x) you might have to restart the host still. Reading messages earlier, it would be also better to add the new table by using the ACU (Array Configuration Utility) rather than the ORCA (Option ROM Configuration for arrays). Of these posts, it looks like ORCA could possibly reorganize RAID sets, resulting in a non bootable host.

    André

  • When I try to sign and add dates in pdf forms, as I USED to be able to do...

    When I try to sign and add dates in pdf forms, as I USED to be able to do until I'm so-called 'improved', by selecting "fill and sign", the page will just blank and I'm drunk. What's wrong?

    Windows 7 Pro.

    Screenshot simply shows nothing else that a header with a tab said "Document" that would bring back me to the pdf document. All the pdf documents I've tried, and that was the most I've saved.

    Unfortunately, it came to my attention when I had little time and was both deal with the Australian Taxation office AND fill in the dates and sign and return that some docs of annual audit my accountants.

    Solved the problem simply uninstall the DC version and stalking a version of X Adobe Reader online and installation. Hey presto, everything fixed. As usual the lesson learned is: if it's not broken, don't fix it "." It happened because I agreed a recommended update. Like so many others, Adobe seems to have problems with the "newer".

    I now put on ' manually search for updates (so-called non recommended) and that's the way it will stay, and I do not seek. Also, if I try in the future, I keep the Setup program in a folder in my downloads, so I can come back easily, where an agency decides to remove older versions of availability.

  • Add new metadata tables

    Hello, I added a new table in the map just to store new data produced a count function. Can you tell me how to add this table to the metadata?

    I added my source tables, which are under the module ODBC, metadata with the metadata Wizard. But I do not know how to add this new table. If anyone can help me. Thank you.

    Try to right click on the table in your map, and then choose "synchronize". In the resulting interface be sure to choose «Outgoing...» "under your Direction of synchronization. This will create a table in your metadata.

    Kind regards
    Eric.

    Published by: Eric Buddelmeijer on April 4, 2013 17:14

  • Maybe you are looking for