Custom template: table in a table

Hello

I've recently started working with a custom template for the first time. I'm already far enough to get what I want to accomplish, but I have no idea how to implement what I'll describe here.

In my application, I need data in tables 3 (simplified, it's actually more than that). The data in these tables have a 1 to many relationship. The data are the following: 1 the activity has many tasks, task 1 has several subtasks.

I want to show a screenshot but as I can't post pictures here, so simplified, what I have is:

Assembly1

Task1

Subtask1

Assembly1

Task1

Subtask2

Assembly1

Task2

Subtask3

Assembly1

Task2

Subtask4

Here he repeats my model for all ranks

But what I would like to have:

Assembly1

Task1

Subtask1

Subtask2

Task2

Subtask3

Subtask4

Here it does not extend the model to all ranks, but adapted to the data. The number of tasks in an activity and the number of subtasks in a task are not fixed.

Can someone tell me how to proceed?

The code in my template:

< div class = "complex" >
< table cellpadding = "0" border = "0" cellspacing = "0" >
< tr > < td #SOD # < table > < /tr > >
< tr > < td #OOD # < table > < /tr > >
< tr > < td #ACT # < table > < /tr > >
< /table >

< table cellpadding = "0" border = "0" cellspacing = "0" >
Taak < tr > < th > < /th > < th > and Naam < /th > < /tr >
< tr > < td > #TAAK # < other > Master Department: #AFD_CODE # < other > Bruno nummer: #BELMO # < other > planning: #PLANNING_LA # < table > < td #WN_NAAM # < table > < td > write subtaak/mijlpaal toe < table > < /tr > >
< /table >
< h2 > #SUBTAAK_OF_MIJLPAAL # < / h2 >
< table cellpadding = "0" border = "0" cellspacing = "0" >
personeelsleden < tr > < th > Subtaak/Mijlpaal < /th > < th > links < /th > < th > < /th > < th > Subsubtaak/Submijlpaal Aktie < /th > < th > links personeelsleden < /th > < /tr >
< tr > < td > #SUBTAAK_ID # #SUBTAAK_MIJLPAAL_OMSCHRIJVING # < other > Duiding: #DUIDING # < here > Beleidsvlaggen: #BELEIDSVLAGGEN # < other > deadline: #DEADLINE # < other > status: #STATUS # < other > Nummer: #NUMMER # < other > Regelgeving: #REGELGEVING # < table > < td > quotation: #VERANTWOORDELIJKE # < other > Andere: #ANDERE_PERSONEELSLEDEN # < table > < td > < table > < td > submijlpaal Subsubtaak : #SUBSUBTAAK_SUBMIJLPAAL # < here > #SUBSUBTAAK_ID # #SUBSUBTAAK_OMSCHR # < other > Duiding: #SUB_DUIDING # < other > deadline: #SUB_DEADLINE # < other > status: #SUB_STATUS # < table > < td > quotation: #NAAM_VERANTW # < other > Andere: #ANDERE_PL_SUBSUB # < table > < /tr >
< /table >
< / div >

Tell me if you need the SQL so and I'll post it.

I am currently working with the test environment Oracle supplied us, because we test if we can use APEX in our company.

The version is Application Express 4.2.4.00.07 and it is running on Oracle 11 g.

Kind regards

NDG

I've added page 9 as a copy of your original state page and created 2 regions report on it. Two reports use your query, to which I added 3 analytical columns and an order by clause:

...
  , row_number()
      over (
        partition by op_activiteit.act_id
        order by  op_taak.taak_id
                , op_teamplanning.subtaak_mijlpaal desc
                , op_teamplanning.subtaak_id)                                   activity_rn
  , row_number()
      over (
        partition by op_activiteit.act_id, op_taak.taak_id
        order by  op_teamplanning.subtaak_mijlpaal desc
                , op_teamplanning.subtaak_id)                                   task_rn
  , case
      when   row_number()
               over (
                 partition by op_activiteit.act_id
                 order by op_taak.taak_id
                        , op_teamplanning.subtaak_mijlpaal desc
                        , op_teamplanning.subtaak_id)
           = count(*)
               over (
                 partition by op_activiteit.act_id)
      then
        '
' else null end close_activity ... order by op_activiteit.act_id , op_taak.taak_id , op_teamplanning.subtaak_mijlpaal desc , op_teamplanning.subtaak_id

The activity_rn column numbers each line in an activity, the task_rn column number each line of a task, and close_activity generates a closing for the activity container tag div when a line is the final subtask for an activity. The order by clause for the command in the analytical columns is necessary to render the hierarchy of subtasks in task within activities.

The display of the Standard model uses the Standard model to show all data in the query and display the values of the new columns to illustrate how they are used in the model line Expressions. The display custom model shows the report using this template:

Model of line 1

#SOD#
#OOD#
#ACT#
Taak Werknemer Naam
#TAAK#
Master afdeling: #AFD_CODE#
Belmo nummer: #BELMO#
Planning LA: #PLANNING_LA#
#WN_NAAM# Voeg subtaak/mijlpaal toe

#SUBTAAK_OF_MIJLPAAL#

Subtaak/Mijlpaal Gelinkte personeelsleden Actie Subsubtaak/Submijlpaal Gelinkte personeelsleden
#SUBTAAK_ID# #SUBTAAK_MIJLPAAL_OMSCHRIJVING#
Duiding: #DUIDING#
Beleidsvlaggen: #BELEIDSVLAGGEN#
Deadline: #DEADLINE#
Status: #STATUS#
Nummer: #NUMMER#
Regelgeving: #REGELGEVING#
Verantwoordelijke: #VERANTWOORDELIJKE#
Andere: #ANDERE_PERSONEELSLEDEN#
Subsubtaak of submijlpaal: #SUBSUBTAAK_SUBMIJLPAAL#
#SUBSUBTAAK_ID# #SUBSUBTAAK_OMSCHR#
Duiding: #SUB_DUIDING#
Deadline: #SUB_DEADLINE#
Status: #SUB_STATUS#
Verantwoordelijke: #NAAM_VERANTW#
Andere: #ANDERE_PL_SUBSUB#
#CLOSE_ACTIVITY#

Status of model 1 rank

Founded use PL/SQL Expression

Expression of model 1 rank

#ACTIVITY_RN# = 1

Model of the line 1 is used for the first line of an activity, view activity information, its first task, and his first subtask.

Model of line 2

  
Taak Werknemer Naam
#TAAK#
Master afdeling: #AFD_CODE#
Belmo nummer: #BELMO#
Planning LA: #PLANNING_LA#
#WN_NAAM# Voeg subtaak/mijlpaal toe

#SUBTAAK_OF_MIJLPAAL#

Subtaak/Mijlpaal Gelinkte personeelsleden Actie Subsubtaak/Submijlpaal Gelinkte personeelsleden
#SUBTAAK_ID# #SUBTAAK_MIJLPAAL_OMSCHRIJVING#
Duiding: #DUIDING#
Beleidsvlaggen: #BELEIDSVLAGGEN#
Deadline: #DEADLINE#
Status: #STATUS#
Nummer: #NUMMER#
Regelgeving: #REGELGEVING#
Verantwoordelijke: #VERANTWOORDELIJKE#
Andere: #ANDERE_PERSONEELSLEDEN#
Subsubtaak of submijlpaal: #SUBSUBTAAK_SUBMIJLPAAL#
#SUBSUBTAAK_ID# #SUBSUBTAAK_OMSCHR#
Duiding: #SUB_DUIDING#
Deadline: #SUB_DEADLINE#
Status: #SUB_STATUS#
Verantwoordelijke: #NAAM_VERANTW#
Andere: #ANDERE_PL_SUBSUB#
#CLOSE_ACTIVITY#

Model 2 Condition

Founded use PL/SQL Expression

Model 2 Expression

#TASK_RN# = 1

Model of line 2 is used for the first line of a task that is not the first in an activity, displaying the task and its first subtask.


Model of line 3

  

#SUBTAAK_OF_MIJLPAAL#

Subtaak/Mijlpaal Gelinkte personeelsleden Actie Subsubtaak/Submijlpaal Gelinkte personeelsleden
#SUBTAAK_ID# #SUBTAAK_MIJLPAAL_OMSCHRIJVING#
Duiding: #DUIDING#
Beleidsvlaggen: #BELEIDSVLAGGEN#
Deadline: #DEADLINE#
Status: #STATUS#
Nummer: #NUMMER#
Regelgeving: #REGELGEVING#
Verantwoordelijke: #VERANTWOORDELIJKE#
Andere: #ANDERE_PERSONEELSLEDEN#
Subsubtaak of submijlpaal: #SUBSUBTAAK_SUBMIJLPAAL#
#SUBSUBTAAK_ID# #SUBSUBTAAK_OMSCHR#
Duiding: #SUB_DUIDING#
Deadline: #SUB_DEADLINE#
Status: #SUB_STATUS#
Verantwoordelijke: #NAAM_VERANTW#
Andere: #ANDERE_PL_SUBSUB#
#CLOSE_ACTIVITY#

Model of line 3 is the default, used model used to show the subtasks, following the first line of activities and tasks.

All models include the column #CLOSE_ACTIVITY # to automatically close the container activity, if the model is used to render the last subtask activity.

As stated above, I have concerns about the HTML structure you are here, but not knowing the application or data (not to mention the language!) I did not any changes that respect. After seeing the query, I've got so concerned about this (and the data model). It certainly looks like the query could be simplified.

Orders and paging should be carefully considered with a report at several levels and a model of this nature.

Users can apply ad hoc you place your order by clicking on the table headers, and a known order must be used to maintain the hierarchy of the subordinate task/activity/task. If you want users to be able to sort the subordinate activities/tasks/tasks, you will need to provide some sort of additional control to enable them to clarify this and use the order specified in the conditional line template mechanism as well as the order of global report.

Pagination of the APEX is problematic where a single physical line in the results of the query is mapped to multiple logics 'lines' or levels in the layout of the report. The simplest approach is to use no paging and build the application to apply filters to report so that the result set does not contain an excessive number of lines.

Tags: Database

Similar Questions

  • Best app to make a custom template for the versatile tables?

    I'm new as a result of creative and wonder what the best app is to make a custom template to view and edit tables such as Budgets and the Phases of the project for my clients in new design. Most of the models I find online are dull spreadsheets.

    I want to:

    • create my own templates with my own brand image
    • Edit and adjust the information in the tables for the Phases and budget proposals.
      • import data from spreadsheets or directly enter custom data
    • export to PDF or JPG for quick sharing

    It is better to make of spreadsheets and import them into my models? If so what is the most compatible adobe for this software? I take courses at Lynda.com and would like to know where to focus my hours of learning.

    I appreciate any help!

    Thank you

    Gabe

    If you want to make a spreadsheet, you must use the spreadsheet software as ms excellent.  Adobe does not have the spreadsheet software.

    and you could google that if you want something free or other choices.

  • indexed - color mode how to remove a custom color table color

    Hello

    I'm working on a bitmap to which I put my color mode to "indexed color Mode.  I created a custom color table and I added 9 colors.  I would like to delete one of these colors, but I can't find a way to remove a color from my existing custom color table or start with an empty custom color table so that I can add only colours I want.  If someone can tell me how to do either of these things, I'd be very happy.

    Thanks in advance,
    Paul

    I had the same problem. I'm not sure that you can remove colors. I just changed the color, I'm not one of the existing colors that I want. It does not hurt to have two colors of the same value in the table.

    Edit: This is what I warned you about in your other post.

  • HFM 11.1.2.2 change custom dimension Table

    Hello

    We notice that there is a change in the HFM 11.1.2.2. dimension related to the custom of table structure.
    We have a passage of the 9.3.1 to 11.1.2.2. and note this change. We have a written request
    to extract the log of the database in the 9.3.1.

    Since the change in the structure of the table, someone knows how to bind the columns lCustom1 and lCustom2 of the WFD
    Table of * CUSTOM_ITEM or related table to get the name of the custom dimension member label?

    Thank you

    Hello
    In the 11.1.2.2 version, the lcustom1 field is of type BigInt (8 bytes)
    You must use the CUSTOM_MAP table to identify the size of dimension Custom1 and Custom2
    assuming that the two custom1 and custom2 is 4 bytes each. Then use the following formula
    to calculate the upper and lower lcustom1 bytes, for example:

    DECLARE @i bigint
    Set @i = 12884901894
    Select
    CUSTOM2 = (@i & 0xffffffff00000000) / 4294967296.
    CUSTOM1=@i & 0x00000000ffffffff

    Result:
    CUSTOM1 = 6
    CUSTOM2 = 3

    Then, you can reference the result of the CUSTOM_ITEM table.

  • whts specialty in digital Voltmeter, we can have a custom db table? one can justify?

    Hi all

    DVM is exhausted for static look similar to that we can have a custom db table can one say y to go for DS?

    Thank you and best regards,
    Rakes

    You can use the functions of digital Voltmeter in the XSLT transformations. You can't do it with the DB adapter.

    Marc

  • How to choose the elements that are copied when using a custom template?

    Hello

    As the title, how to choose whether or not an element is copied into a new project when the project is created from a custom template?

    I recently created a custom template by following these instructions, as had recommended after my last question on the forums:

    Click

    The template was created so that I can create several versions of a broad program of LabVIEW with unique names (using the prefix in the project options). It works fine except that some things are not copied into the new project, even if they are part of the model. The most important point of "disappeared" is for runtime menu (which is a RTM file). Does anyone know why this might be missing? And how to make sure, it is included in the future?

    Thanks for any help.

    OK, here is the custom script VI (saved in LabVIEW 2012) and XML update that should fix your test project. You can take a look at how I implemented XML and script VI, then make the changes applicable to your current project.

    1. use the attached file to MenuTest.xml for your meta data. Note the new sections CustomVIMode and CustomVIPath .

    2 create a folder next to your .lvproj of the source script and place the PostCopyScripting.vi in there.

    Once you have done so, your MenuTestProject should be copied on properly... the GTR will be present in the new Bachelor of LAW, it will have a correct prefix (if specified), and it will be the correct link to the VI.

    I would like to know if you have any other questions or problems.

  • How to include interactive components in custom templates?

    Hello guys,.

    How can I include interactive such as switches and indicator components in my custom templates.

    I am experienced working with the new SPICE models and footprints, now I plan switches from keyboard and custom indicators design but first of all, I want to make sure that it is possible.

    Thank you

    Roosevelt

    Hey Roosevelt,

    Unfortunately, the interactive components can be created in-house, and you cannot change existing interactive components. We have heard this request before and I hope to see this in a future release, but we have schedule for when possible.

  • Creating a custom template for a SMS BlackBerry App

    Hello

    I intend to develop a set of custom templates that can be used all by creating Sms in BlackBerry.

    Currently, I have added a menu item "Use templates" to the "ApplicationMenuItemRepository.MENUITEM_SMS_EDIT" and it is visible while creating/changing an Sms message.

    When we choose the menu option, I show a template screen which contains a list of template messages. But, I need to insert the selected message in the display of the model in the application of Sms to the current position of the cursor.

    How can I get the handle to the application model screen Sms? I can so able to insert the model message in the content of the Sms app. Can someone help me with this?

    Thank you

    Belot

    as you have no reference to the message request you can only insert it using injection of the event. the event is always prone to error that the user can interfere with its own entrance. Nevertheless an approach to try.

    the other option would be to replace the sms application. you lose the integration and need to add yourself in custom menu items. I would try the injection of the event or notifies the user that they must call just stick, is not only a lot of work for the user.

  • Display for custom templates (edit, extra, model) gradually closed. How can I re - open?

    Hi, the display area that shows the custom templates (edit, fill, model) gradually closed up to the point where it is just one line and I can't watch my models. Can someone tell me how to open it again, please?

    Reset your preferences. You can do this in the preferences UI ctrl/cmd-k.

  • Remote mobile dv5-2070US laptop computer States included, but does not work on the custom template

    Someone of you have a problem with the mobile remote on the DV5-2070us, I just bought a custom model and the remote control does not work.  I had to call HP to get the remote control has sent to me, he was not in the box, as indicated on the site.  My guess is that the custom templates do not work with the remote control.

    Called HP customer service, they have me advised that this version if the model basic or custom, won't work as my other laptop DV4 series.  This remote will work only while watching a DVD or internet TV.

  • Is it possible to move the overall blog layout in a custom template file (*.tpl)?

    Hello

    I'm new to BC. You want to create several blogs different style from my BC account. The problem is - overall layout of the blog seems to be common to all possible blogs.

    Is it possible to move the contents of the layout of the overall blog in a custom template file (*.tpl)? (The idea is to create separate TPLS to different blogs)

    If so, what tag (which makes use of TPL file) can be used to display the overall content of blog?

    Thank you!

    It is a plan that is not called by a module, so no, you can't make that models like the one for the overal layout.

  • Custom template for related products?

    So, this is the first time I try to customize an ecommerce solution beyond the normal stuff of the BC. Customer wants a specific view for related products, so my first thought was to use a custom template, but it doesn't seem to work.

    So I almost with the help of the model of module, a decline in the amount of 1 - and hoping I can use a custom template for the display of the small product instead since I use that related products.

    I forgot something? Is it possible to use a custom template for the {tag_relatedproducts}?

    Thank you Joel however I have more control over the layout as a few styles of it. I ended up jumping in with the beta version of liquid to get what I need, what gave me some other customizations.

    TAGS cannot take a custom template variable, I chose to store it in a tag "capture." So based on some conflicts of naming of my catalog images, I was able to target specific catalogs, then browse related products and build them up as I wanted.

    Here is an example of what I chose to go with.

    {capture products %} %

    {tag_productlist, true true, 3,}

    {% for %} endcapture

    model {module_catalogue catalogId = "{{this.id"}} "=" "collection ="cat"}

    {tag_name}

    {% If {cat.imageUrl} contains 'show' and ({{this.id}} == {{tag_productlist_5_8.catalogId}}%}}

    {tag_productlist, true true, 3,}

    {% elsif {cat.imageUrl} contains "display" %}

    {% for %} tag_productlist_5_8.items products

    REF #: {{product.custom3}}

    MFG #: {{product.custom2}}

    Price: {{product.saleprice}}

     

    {% endfor %}

    {% products.items %} elsif

    {tag_cataloguelist, true true, 2,}

    {% for %} tag_catalogueList_3_9.items products

    Price: {{product.saleprice}}

    {% endfor %}

    {% other %}

    {tag_cataloguelist, true true, 2,}

    {tag_productlist, true true, 3,}

    {% endif %}

  • Custom template CC17.1

    Hi all-

    Here's what I want to do.  I need a green color with added "noise" isn't just a solid color.  Then, I need to draw shapes and be able to fill the shape with this custom template.  Whenever I did the boss, I get a white box around the color.  I watched several videos about the making of a model without seam and either I don't understand or I'm doing something wrong.  I need this for a golf scorecard project.  I tried to make a model for the rough, a color of let, then a model for the striped fairway.  This way I can make a shape and fill with the pattern.  Does make sense? Any info or links to a video would be great.

    * Note: I tried to make a color square in illustrator and added the photoshop effects film grain.  Then I tried to make a model without flaw, but ends with a white box around the color of the square.  So, when I filled out a form that I did with the boss it was not strong.  HE had the dreaded white box around it.

    Thank you for your help in advance.

    Larry

    I'll just guess the white border is everything for the rasterization of the photoshop effects.

    solution. make your largest photoshop effect that the tile model so that the edges are not displayed.

    If you present your model by dragging your graphic design in the Swatches palette, draw a box without attributes that defines your tile model. put the box behind your work and drag it in the color chart of model. make shure your squareedges of color fall outside of this area of harvest.

  • Custom templates of the book LR 5 module?

    OK, so what convinced me to buy 5 LR was the idea of being able to make the models of custom... book but it seems that you can't really have custom templates, you can just do SOME customization of existing models?

    Tell me I'm wrong... Please!

    What I do is all the work in photoshop - building each page from scratch and then import bleed blurb pages post.

    For example, I want to make a page with 6 vertical photo cells spaced 5 mm with a race of 3px black around her. I might want to add a box of text at the top of the page.

    I see no way to do that in LR. Is there a way? Is it possible to import the work of the PS and make a model?

    If you can not do this kind of work, the ledger LR isn't better that the Blurb site for people who want to really custom provisions, is it?

    Thank you

    Tom

    I'm certainly not an expert at this, but I also have Photoshop Elements and find that it can make the composition of images, much more powerful than LR, I would need to buy the version CS or cloud version of Photoshop, if I want to work at full quality.  Elements do not allow you to publish high quality photos to help you buy the full version of PS If you want that.   LR is for professional photographers and IMO is pass it on PS because of the way it organizes the photos, fixtures and exports all in one.  You have the non-destructive editing, which leaves the original intact.  How can you do this in PS without finishing with 10 different version of the same photo?  It would be a nightmare to track when you are shooting some 10,000 images a year.  Believe me, LR is the way to go.  Learn how to use it, and you can still make you PS editing custom, but you do not buy LR for ledger, you buy it for everything it does.

  • Custom templates other than the standard in online store Modules?

    To all the gurus of BC...

    I came across this Web page today during a search and I'm curious. Can I really get a customizable individual produced large screen in addition to the standard in models of Module of Shopping? Which means, I can be operational with one product with one and another product using it?

    http://Knowledgebase.BusinessCatalyst.com/kb#/KB/layouts/custom-templates

    Thank you

    Chuck

    Hi Chuck,

    It seems that you hope to have possible several layouts for specific products which unfortunately is not available at this stage.  There are only 2 small product dedicated page and 1 presentation of great details.

    So eager to pack the product article to another model, you can assign the product element to a specific catalogue for the single model, but available would be consistent with what I noted above.

    Kind regards

    -Sidney

Maybe you are looking for

  • The elements are duplicated in the left pane of the library.

    When I go to "chrome://browser/content/places/places.xul" items in the left pane seems a copy as in the picture I have attached. Is it possible to fix this before creating a new profile?

  • Tecra 720cdt: memory upgrade question

    I'm looking for 1 oiece 128 MB of memory (MAX)? for my 720cdt. Can someone help me as to a place that I can get this or does anyone have good used sweater, that they no longer need.Just tell me what you need. Thank you Garth

  • How can I get the PDF of the manual iPad?

    I tried this ad and a small yellow bird said that I am not allowed to post. If there are two of them, that's why. I just got an iPad bought directly from Apple. A card with it says I can download a PDF of the manual or use the manual through web page

  • OfficeJet 7110 H812a: HP OfficeJet 7110 H812a: where are the pilots?

    I bought a printer A3 HP OfficeJet 7110 HB812a and I need to install it on a Windows XP system that does NOT have a CD-ROM drive. The support page for this printer on the HP website doesn't have a link to download the drivers for ANY operating system

  • Lakeshore remote GPIB of VSM?

    Hello, I'm controlling a remote Lakeshore VSM via GPIB controller. Unfortunately, the SCAN command doesn't seem to work. I was wondering if there is a good way to send a remote enable command at the Lake? Thanks in advance for any help.