Stacked Canvas with one block displaying twice

I have a question regarding the Stacked Canvas. I have to create a calender for clients. (I am using stacked canvas to do that).
In the 'calender' table i would have the information like ClientID, Year, weekno, start date, end date.
So i created two blocks for 'Calender' table in this form. One block for Content canvas with ClientID and Year (Block1). And another block (Block2) on Stacked canvas for weekno, startdate and enddate.(normally there will be 52 weeks sometime 53 weeks)
On the Block1 it suppose to display the ClientID and Year once. And in the block2 (stacked canvas) it suppose to display 53 rows with weekno and the start/end dates.
When i create a new row in the block1 for clientid and year (1234, 2008) then the block2 will be populated with 01-jan-2008 to the 31-dec-2008. But the problem i am having is when i try to save it is trying to save two times one from block1 and once from block2 resulting in a unique constraint error.
how should i structure this so it saves only once?
I tried to keep the clientid and the year in block1 as non-database items and copied those values into the block2, that way it saves correctly but when i try to query on the upper block it gives me error.

But you only have one table. You need two tables for master-detail. Can you normalize the calendar table and change it to two tables (master-detail).
See
Re: regarding display of records in header and line level
Gerd offers a solution for two blocks and one table. Maybe that will work for you.
Message was edited by:
Mark Roberts

Similar Messages

  • Can you connect more then one external screen to a mac with one mini display point?

    Does any one know if you can connect more then one external screen to a mac, with one mini display point?

    This company has a dual monitor solution for DisplayPort;
    http://www.matrox.com/graphics/en/products/gxm/dh2go/

  • Stacked canvas with horizontal scrollbar

    Hi,
    In a forms module I want to show a stacked canvas with a horizontal scrollbar. I have set the generator preference POPHSB on every level to yes, but the stacked canvas is still generated without scrollbar. In the Designer help topic "Generated stacked canvas properties" it is stated that the properties horizontal/vertical scrollbar is derived from the object library. But how can I set in Designer the name of an object library object for a stacked canvas? I don't want to override the object CGSO$CANVAS_POPUP because I also have other stacked canvases that doesn't need scrollbars.
    Regards,
    Vincent Botteman

    Hi,
    This is what I just have found: you must indeed create a new canvas object in the object library and then enter the name of the new canvas object in the property "Placement Template/Library Obj" of the first Module component on that canvas! Apparently, you can change the canvas by means of the first Module Component on that canvas.
    Regards,
    Vincent Botteman

  • Scoll bar on tab type canvas for one block

    please help me

    Hi,
    it is possible to do this with a little "trick".
    You need one content canvas, on which you placed your tab-canvas. Then create a stacked canvas ontop of you content-canvas (important, not on top of your tab-canvas, this will result in an error) , size it to fit your scrollbar and then place the viewport to the correct position on the tab-canvas using the property-palette. Now, display your scrollbar on that stacked-canvas. Finally, you have to explicitly show the stacked canvas on forms-startup (WHEN-NEW-FORM-INSTANCE-trigger) and on tab-pab-change (WHEN-TAB-PAGE-CHANGED-trigger) using SHOW_VIEW('MYSCROLLBARCANVAS');
    Edited by: Andreas Weiden on 30.01.2009 16:48

  • Stacked canvas on one convas!!??

    if i have two content canvases and one stacked canvas at the same window ,is it possible to display this stacked canvas at only one specific canvas at this window ??

    Hi TERMI
    Yes it's possible , Here is an example ...
    Pls create a button in ur content canvas in this button pls write the following as an example...
    SHOW_VIEW('STACKED_CANVAS');
    GO_ITEM ('item_name'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    HIDE_VIEW('CONTENT_CANVAS');
    In order to return back to ur content_canvas pls create a button in ur stacked canvas in WHEN-BUTTON-PRESSED Trigger
    pls write the following...
    HIDE_VIEW('STACKED_CANVAS');
    SHOW_VIEW('CONTENT_CANVAS');
    GO_BLOCK('EMP');
    GO_ITEM ('EMPNO'); -- Pls note this item should be navigable and visible in ur Content canvas form
    Hope this helps...
    Regards,
    Abdetu...

  • Stacked Canvas with Title Bar

    Hi , Is it possible to add a title bar on top of the stacked canvas ? Thanks.

    where the title name can be displayed , like title name on top of a window.  anyway,  i have created a new window same size as the stacked canvas and displaying the title name now . Thanks for your response.

  • One article displays twice in a folio

    Hi!
    I have five articles in one folio.  It should display like this:
    Cover
    PG 1
    PG 2
    PG 3
    PG 4
    Instead, one of my articles displays twice, so it looks like this:
    PG 3
    Cover
    PG 1
    PG 2
    PG 3
    PG 4
    How can I remove the duplicate instance of the page?
    Thanks for a reply!

    Select the duplicate article in Folio Builder and click the trash button on the bottom right.

  • Problems with JSF&Tiles (displaying twice one inserted page in tiles)

    I'm using Tiles framework withih Dynamic Web Project in Websphere (WSAD 5.1.1), the project is based on JSF.
    - included tiles.jar in WEB-INF/lib directory
    - in web.xml defined servlet action as: <servlet>
              <servlet-name>action</servlet-name>
              <display-name>TilesServlet</display-name>
              <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
              <init-param>
                   <param-name>definitions-parser-validate</param-name>
                   <param-value>false</param-value>
              </init-param>
              <load-on-startup>2</load-on-startup>
         </servlet> - also to Faces Servlet set value "load on startup" on 1
    - added struts-tiles.tld to WEB-INF folder
    - then I created index.jsp: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
    <%@ page
    language="java"
    contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    %>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM WebSphere Studio">
    <META http-equiv="Content-Style-Type" content="text/css">
    <LINK href="theme/Master.css" rel="stylesheet"
         type="text/css">
    <TITLE>index.jsp</TITLE>
    <%-- jsf:codeBehind language="java" location="/JavaSource/codebehind/index.java" --%><%-- /jsf:codeBehind --%>
    </HEAD>
    <f:use_faces>
         <BODY>
         <TABLE border="1">
              <TBODY>
                   <TR>
                        <TD>
                             <tiles:insert page="/menu.jsp" flush="false"/>
                        </TD>
                        <TD>
                             <tiles:insert page="/content.jsp" flush="false"/>
                        </TD>
                   </TR>
              </TBODY>
         </TABLE>
         </BODY>
    </f:use_faces>
    </HTML> - menu.jsp and content.jsp inserted in index.jsp are not the same, and here is code for menu.jsp: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <HTML>
    <HEAD>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ page
    language="java"
    contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    %>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM WebSphere Studio">
    <META http-equiv="Content-Style-Type" content="text/css">
    <LINK href="theme/Master.css" rel="stylesheet"
         type="text/css">
    <TITLE>menu.jsp</TITLE>
    <SCRIPT type="text/JavaScript" language="JavaScript"
         src=".ibmjsfres/hxclient.js"></SCRIPT>
    <LINK rel="stylesheet" type="text/css"
         href=".ibmjsfres/css/stylesheet.css" title="Style">
    <%-- jsf:codeBehind language="java" location="/JavaSource/codebehind/menu.java" --%><%-- /jsf:codeBehind --%>
    </HEAD>
    <f:use_faces>
         <BODY><hx:script_collector>
         <h:form formName="form1" id="form1"><P><hx:panel_actionbar
                        id="actionbar1"><hx:panel_actionbar nestedTitleText="Sub-Panel Label" id="actionbar2"><hx:command_buttonex label="Command Label" id="button1" action="go_page01"></hx:command_buttonex><hx:command_buttonex label="Command Label" id="button2"></hx:command_buttonex></hx:panel_actionbar><hx:panel_actionbar nestedTitleText="Sub-Panel Label" id="actionbar3"><hx:command_buttonex label="Command Label" id="button3"></hx:command_buttonex><hx:command_buttonex label="Command Label" id="button4"></hx:command_buttonex></hx:panel_actionbar></hx:panel_actionbar></P></h:form>
         </hx:script_collector></BODY>
    </f:use_faces>
    </HTML>The problem is when I run application on server and go to index.jsp the resulting page is containing two times menu.jsp, instead once menu.jsp and once content.jsp.
    Also when you click on buttons in "second" menu.jsp it's like it was clicked on the "first and the original one". When you click navigation rules do apply.
    Can anyone help on this?
    Message was edited by:
    DeYo

    I haven't solved problem yet but so far I realised this:
    - the problem is that both menu.jsp and content.jsp have forms, with tags: <h:form formName="form1" id="form1">.
    I've tried renaming form and id, but it didn't worked, alo tried changing scope of managed beans for the two inserted jsp pages - still nothing.
    - also if the content.jsp is not containing form but other JSF components like Image or Hyperlink, that components are not being shown/rendered.

  • Tab Canvas with Child Block

    I have a question about a tab canvas. I have a parent child relationship where I would like to have the child records each placed on a differnt tab of a tab canvas. At most there will be 7 child records so at most there would be 7 tabs. My question is, is there a way to display the child records on the tabs where each row in the child block in on different tabs. The only way I can think of doing this is by having 7 child blocks each referring to a differnt child record. Is there a cleaner way of doing this with just one child block?
    Thanks
    Diane

    You can do it if you are willing to write all of the code to manage it. Not recommended.
    The alternative is to have a seperate block on each tab, each one a detail of the one master. Each of the seven would have the criteria to only show the appropriate data.
    Regards,
    Robin Zimmermann
    Forms Product Management
    200211

  • Scroll Bar/visibility in Tab canvas/with child blocks property false

    Hi Every one:
    I am working on a Tab Canvas which has a parent block with 2 child Blocks, I am able to hide all items in a child block depend on the value of Parent block but not been able to hide Scroll Bar.
    If any one can give me some ideas. would be a great help.
    Thanx
    null

    perhabs you can create an item which is disabled and no level and not visible and has the same width and heigth of the scrollbar or bigger and if you want to set the toolbar not visible set the item visible.
    (i don't know if you can understand my bad english)
    ~
    pascal

  • Multicam editing in premier pro cc 2014, problem with one camera display size

    Although the clip works fine in a sequence all by itself in multicam editing it is much too large and only a portion displays.  The other camera is fine.  The clips are from different types of cameras 1 is a DSLR, it displays too large, the other is a Sony PD 1570, a pro videocam  that uses tape, it displays fine.

    Have your tried re-ingesting the media.  It's possible the file(s) are corrupt.  I run into this on occasion, especially if the results shows up in the render (which is a dead give-away to file corruption) and re-ingesting fixes it.
    It's also possible that the drive the file resides on has issues as well.  Are you using a raid?  We need more information regarding the specs of your machine and process.

  • Problem with Stacked Canvas

    Hi,
    I have prepared a stacked canvas on a content canvas.
    Both content and stacked canvas are based on the same data block. In the data block 2 items are on content canvas and the remaining are on stacked canvas. I have also a scroll bar on the content canvas so that we can scroll to the right as there are many items on it.
    so 1st and 2nd fields are on the content canvas and remaining ones are on stacked canvas.when i tab out of the 1st field stacked canvas goes invisible, but when i tab out of the 2nd field stacked canvas again comes back.
    How can i avoid this?
    I want the stacked canvas always to be displayed when i tab out from any where.
    One more problem is, when i click on the 2nd field the stacked canvas goes invisible too
    Your suggestions are greatly appreciated.
    Thanks
    Sandeep

    Check if the second item overlaps the area of the stacked canvas. Forms always makes the current item be displayed fully and therefore hides all areas which would overlap the item.

  • Tab Canvas displaying Stacked Canvas at runtime disappears?

    Hi,
    I have 3 canvases that contain the following:
    1) Content Canvas -- This contains the TREE item.
    2) Tab Canvas -- A tab canvas with a single Tab Page
    3) Stacked Canvas -- This is a Stack Canvas with a few
    text items on it.
    4) Single Window.
    ======At runtime the following actions occur: ==========
    1) The Viewport of the stacked canvas is set to the
    Viewport of the Tab Page on the Tab Canvas so that it
    looks like the Tab Page has a vertical and horizontal
    scrollbar with text items displayed.
    2) A text item on the Stacked Canvas is in focus as soon
    the as the form window is displayed.
    ===================Problem is : =====================
    1) When I select a Node of the Tree Item, the Tab Canvas
    automatically disappears(or becomes invisible) , as a
    result the stacked canvas displayed within it at
    runtime also becomes invisible. I am left with only
    the Tree item being displayed.
    =======================================================
    PS : I have never experienced this problem with just the
    content canvas and the Tab Canvas together.
    Any soultion to this problem is most appreciated.
    Thanks
    Sharath

    I am experiencing the exact same thing. The width of the tabs in the layout editor is varied depending on the length of the text. However, at run-time, the width of the tabs is fixed, causing the tabs to be wider than the window and a set of VCR buttons to appear in the upper right corner of the canvas. Personally, I think this is a Forms bug. Why would they intentionally let us set the width to variable at design-time only to force a fixed width at run-time?

  • How: Stacked Canvas on Tab Canvas ?

    Hi All,
    I have content canvas in which I have placed tab canvas with 5 tabs, and on one of the tab I want to place stacked canvas because I have to display multiple blocks on this stacked canvas with vertical scroll bar (This I can specify by saying Vertical scroll bar as Yes for Stacked canvas).
    There is a restriction that, it is not possible to place stacked canvas on tab canvas (Possible only on content canvas), so is there any other workaround.
    Please let me know if anyone has worked on similar type of screen development. Appreciate if anyone can provide some sample code.
    Advance thanks for your time and help.
    Regards
    CJ

    Hi All,
    I found the solution and successfully implemented the desired functionality
    DECLARE
         v_Tab VARCHAR2(1000);
    BEGIN
         v_Tab := GET_CANVAS_PROPERTY('CAN_TABS', TOPMOST_TAB_PAGE);
         IF v_Tab = 'a1' THEN
         GO_BLOCK('BLK1');
              EXECUTE_QUERY;
         ELSIF v_Tab = 'a2' THEN
              GO_BLOCK('BLK2');
              EXECUTE_QUERY;
         ELSIF v_Tab = 'a3' THEN
    *          Set_View_Property('CAN_STK_FIS_NET',HEIGHT,280);*
    *          Set_View_Property('CAN_STK_FIS_NET',WIDTH,630);*
    *          Set_View_Property('CAN_STK_FIS_NET',DISPLAY_POSITION,6,135);*
    *          SHOW_VIEW('CAN_STK_FIS_NET');     *     
              GO_BLOCK('BLK_FIS1_GRID');
              EXECUTE_QUERY;
    END IF;
    END ;
    I have seperately created stacked canvas 'CAN_STK_FIS_NET' and placed multiple blocks as per requirement and able to achieve the functionality.
    Please let me know if any one need any detail explanation.
    regards
    cj

  • Question about stacked canvas disappearing

    Hi,
    I have a block which has some database items and non-database items. Since
    there are many items in the block, I use a stacked canvas with horizontal bar
    to display the less important items.
    In the trigger of new-block-instance, show_view('stacked_canvas')
    But I face one problem. When I click on a non-database item and then move
    the cursor away from the item, the stacked canvas suddenly disappears.
    Any idea ?
    Many thanks in advance

    Imagine each canvas as a piece of paper stacked on a desk. Each piece of paper possibly has a different size and the top left corner of each piece is possible oriented in a different spot. When you say show_view('stacked_canvas') its like reaching to the bottom of the pile and putting that canvas top. When you click on an item not on the stacked canvas that items canvas is placed on top. Your problem is that your non-database item content canvas is covering up the stacked canvas. I think...
    Your issue could be solved by simply rearranging the canvas order by putting the stacked canvas last (I think) in the object navigator.
    Raise on Entry could also be causing your issue. Go to the help. Click the search tab. Type "raise on entry". Read "Working with the Raise on Entry Canvas Property". There is a good explanation in there on how stacked canvases get covered up by content canvases and when.

Maybe you are looking for

  • XML in Payload, fault returned. -org.xml.sax.SAXException: SimpleDeserializ

    I'M getting the following fault msg returned - <?xml version="1.0" encoding="UTF-8"?>    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSch

  • What is the right way to charge a Macbook Pro, 13 inch Retina?

    Hi! So I recently just got the Macbook Pro 13 inch w/ Retina Display (about 3 weeks ago), and the main reason why I got it was because I am taking up Multimedia Arts in college. I do admit that the MBP really is quite pricy, so I want to be able to u

  • Find my iPhone doesn't work

    After having my first iPhone stolen, I decided to try the app "Find my iphone" on my friend's loaner iPhone 3GS to see how and if it really works. When I turned it on, I ensured that these were all setup: - Location Services: ON - Find My iPhone: ON

  • Why is the render quality less than the source files

    I am setting render quality at Best, Full 1920 x 1080.   The movie quality in either a quick time or windows media player file is terrible.  These same files export at good quality at school with the same settings.  Why am I getting poor image qualit

  • Database or I/O error

    Hi everyone. I recently have a problem with logging into my account in skype. It was working fine for me for last 2 yrs. However, when I logging now I've got error message saying either "THERE IS A DATABASE ERROR" or "I/O Error, please login later".