Dynamically showing or hiding Header, main , or trailer section

Hi List,
Can some body tell me how to hide/show header, main, or trailer section programatically ? I have a report in which i have to show or hide these sections based on a condition. I'm checking for value of a parameter and based on some calculation i have to show or hide main section. I mean if main section is visible then header section should not or vice versa.
Can somebody suggest some way to achieve this ?
Thanks in advance for your help
null

Hello
You have to create a format trigger for each of the item you want to hide/show like this:
function B_2FormatTrigger return boolean is
begin
if :p_format = 'N' then
return(FALSE);
end if;
return (TRUE);
end;
To create a format trigger, you have to go in advance layout section of the property palette and choose format trigger.
Hope this help
Karine

Similar Messages

  • Urgent : Dynamically showing or hiding Header, main , or trailer section in reports

    Hi List,
    I have posted this question earlier also but didn't get any response. Can somebody please have a look at it and let me know whether it's possible or not ?
    Hi List,
    Can some body tell me how to hide/show header, main, or trailer section programatically ? I have a report in which i have to show or hide these sections based on a condition. I'm checking for value of a parameter and based on some calculation i have to show or hide main section. I mean if main section is visible then header section should not or vice versa.
    Can somebody suggest some way to achieve this ?
    Thanks in advance for your help

    did u tried format trigger or conditional formatting.
    U can write a basic checks using conditinal
    formatting for ex.
    if param1 greater than 100 hide the object.
    hope this helps.
    sh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Manish Kothari ([email protected]):
    Hi List,
    I have posted this question earlier also but didn't get any response. Can somebody please have a look at it and let me know whether it's possible or not ?
    Hi List,
    Can some body tell me how to hide/show header, main, or trailer section programatically ? I have a report in which i have to show or hide these sections based on a condition. I'm checking for value of a parameter and based on some calculation i have to show or hide main section. I mean if main section is visible then header section should not or vice versa.
    Can somebody suggest some way to achieve this ?
    Thanks in advance for your help<HR></BLOCKQUOTE>
    null

  • Header, main and trailer in alternate pages

    I want to print Header in first page, main in second and trailer in third page. What I'm getting now when I have 3 records is main in first three pages, then main in the next 3 then trailer in last 3 pages. I set all the section to print in first page. Any inputs?

    That thing I can do.
    But, the requirement is like this: The first page is employee header details on portrait, the second page is let's say employee's timesheet that requires landscape layout, then the third page is summary that is also portrait. Now, I need the three sections as header=portrait, main=timesheet and trailer=portrait. So basically, if I have three employees, the second, fifth and 8th page is landscape. But what I'm getting right now is pages 1-3 = header, 4-6 = main and 7-9 is trailer.

  • Generating Header and trailer sections in reports..

    Hi all.
    I want to generate reports, that has both a header- and a trailer section page.
    Usually this was part of the template report, but in Designer 9, the generator first converts the template report (.rdf) to a template report (.tdf), and is then using this template.
    But where is the header- and trailer page? You can't see them in the reports builder, when looking at templates, and the generated report does not contain any header- nor trailer pages.
    Have I missed something?
    Any replies welcome...
    Benny Albrechtsen

    I have the same question. This is what I found on Metalink.
    goal: How To Define A Header/Trailer Section In A Reports Template Definition File (TDF)
    fact: Oracle Reports Developer
    fix: It is not possible to have a HEADER/TRAILER section in a Reports Template Definition File (TDF). Templates do not need to have a HEADER/TRAILER section, infact there is no sectioning in a template. They just define the visual layout when applied against a report section.
    This did not answer my question!

  • Separate Header, Main, Trailer for each group of date

    Hi,
    I have report built-in Oracle Reports10g R2, with Header, Main, Trailer sections, I am running report for different date parameters, for instance date between 29-30 Dec, 11.
    But when i get output of the report it do format as I expect, mean output comes in this way Header(29, 30 Dec), Main(29, 30 Dec), Trailer(29, 30). I made separate repeating frame for all of 3 sections which is based on DATE parameter. I want output to be Header(29 Dec), Main(29 Dec), Trailer(29) and same for 30th Dec.
    Somebody will guide me please what is wrong with my report.
    Thanks and Regards,
    Syed Khawar
    Edited by: S.Khawar on Jan 4, 2012 11:44 AM

    Hi bombocha,
    According to your description, you want to export each group to separate Excel File. As tested in my environment, we can use filter and subscription to achieve your goal. Please refer to the following steps:
    Supposing we have a table grouping on SalesTerritoryGroup field, we can create another dataset Dataset2 using the simple queries "Select distinct SalesTerritoryGroup from ...".
    Add a parameter @SalesTerritoryGroup to the report, then get Available Values from Dataset2 SalesTerritoryGroup field.
    Create a filter on the dataset used to extract report data, set Expression: SalesTerritoryGroup, Operator: =, Value: [@SalesTerritoryGroup].
    Deploy the report to report manager and create a data-driven subscription with Windows File Share delivery extension.
    In step 3 of creating the subscription, specify the query as "Select distinct  SalesTerritoryGroup  from ..." and click on Validate button.
    In step 4, set file name as Get the value from the database: SalesTerritoryGroup, and set Render Format to Excel.
    In step 5, as to the SalesTerritoryGroup parameter values, select SalesTerritoryGroup from Get the value from the database drop down list.
    Create a schedule for the subscription, then click Finish.
    For more information about Data-driven Subscriptions, please refer to the following article:
    Data-driven Subscriptions in SSRS
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • Container resizing when dynamically showing/hiding components

    I work with Swing for quite some time, but there's one thing that's bugging me all the time - when you dynamically show/hide some components, the container is not resized appropriately. That means that some components are cut off or hidden beyond the container edge. Maybe I'm just doing something wrong, can somebody help me?
    The easiest example is here. I'll create a label that is hidden by default. When I dynamically show it, the frame/panel is not enlarged and therefore the label is not visible until the user manually resizes the frame/panel. Only after that you can see it.
    (Usually I use the layout manager used when designing UIs in NetBeans, but I hope these default layout managers will demonstrate the same problem.)
    import java.awt.event.*;
    import javax.swing.*;
    public class DynamicComponentDemo {
        private static void createAndShowGUI() {
            final JFrame frame = new JFrame("Dynamic Component Demo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setLocationRelativeTo(null);
            final JPanel panel = new JPanel();
            frame.add(panel);
            final JCheckBox checkbox = new JCheckBox("Show label");
            final JLabel label = new JLabel("This is a label!");
            checkbox.addItemListener(new ItemListener() {
                public void itemStateChanged(ItemEvent e) {
                    label.setVisible(checkbox.isSelected());
            label.setVisible(false);
            panel.add(checkbox);
            panel.add(label);
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }What can I do to force the frame/panel to resize appropriately when some new component is shown? Moreover, can you point me to some documentation regarding these matters?
    Thanks.

    Kleopatra wrote:
    no. no. no. no. Never-never-ever call setXXSize - XX for min/pref/max - in application code.Thanks for the correction.
    Unfortunately,
    http://wiki.java.net/bin/view/Javadesktop/SwingLabsImperialRules
    is a dead link, so I'm not sure if this is better than my previous example :(
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DynamicComponentDemo3 {
      private static void createAndShowGUI() {
        final JFrame frame = new JFrame("Dynamic Component Demo");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setLocationRelativeTo(null);
        final JPanel panel = new JPanel(new FlowLayout() {
          @Override public Dimension preferredLayoutSize(Container target) {
            //synchronized (target.getTreeLock()) {
            Dimension ps = super.preferredLayoutSize(target);
            Dimension cs = target.getSize();
            ps.width  = Math.max(cs.width,  ps.width);
            ps.height = Math.max(cs.height, ps.height);
            return ps;
        frame.add(panel);
        final JCheckBox checkbox = new JCheckBox("Show label");
        final JLabel label = new JLabel("This is a label!");
        checkbox.addItemListener(new ItemListener() {
          public void itemStateChanged(ItemEvent e) {
              label.setVisible(checkbox.isSelected());
              frame.pack();
        panel.add(checkbox);
        panel.add(label);
        frame.pack();
        label.setVisible(false);
        frame.setVisible(true);
      public static void main(String[] args) {
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            createAndShowGUI();
    }

  • Continue page numbering from Main Section to Trailer Section

    Hello,
    I am trying to create a report which has multiple report blocks in the Main section. The page orientation is portrait for Main section. Now, I want to add a report block which should have a landscape orientation. So, I created this in the Trailer section. All that works out well.
    My next task is to add a Table of Contents as the first page of the output (pdf). This is clearly documented in the Building Reports 10g manual and works just fine for the Main section. i.e. the TOC comes out with correct page numbers. But, for the Trailer section, the page number retrieved by SRW.GET_PAGE_NUM shows a page number of 1 , since it's the first page in the Trailer.
    What I want is that the Trailer's page number should continue where the Main section left off. In fact, If I put a field in the margin for the trailer and source it from "Page Number" in the property pallet, I can see that it has the correct page number, i.e. it's main sections page number + 1. But, SRW.GET_PAGE_NUM seems to retrieve 1.
    Note that at the Report Module level, I have set the Format Order of Sections property to Main-Trailer-Header.
    Any inputs are much appreciated.
    Thanks,
    Manish

    That worked perfectly after I discovered I also needed to uncheck "use previous footnote". I also checked "First page is different" since it is a Section Title Page and did not need a page number. Now, all that is needed is the availability of different types/styles of numbering (Roman numeral for introductory pages as an example).
    What is happening is that I am self publishing a genealogical book on my family tree that also carries quite a lot of other family information and each of the "Sections" was built in Pages since I did not know how to correctly do sectioning to use a single Page document. There are eight SECTIONS, not pages, with a total 278 duplex (2 sided) pages.
    Thanks Yvan for helping clarify the sectioning.
    Sparkgapper

  • Dynamically show/hide pages in a workset for special users at runtime

    Hi all,
    I want to create a workset that contains pages for different countries. The portal users should only be able to see the countries where they do business. I also would like masterdata from R/3 to drive the display of content on the portal.
    - Is there a way how I could dynamically show/hide certain pages of the workset for the specific users?
    - Would this showing/hiding of pages affect the workset for all users or only the instance for the specific user?
    - Would there be a difference when I want to dynamically show/hide iviews in a page instead of showing/hiding pages in a workset?
    Thanks a lot in advance.

    Hi Timo,
    Check out the article located at:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/portal_content/filtering role and workset content.htm
    It talks to exactly what you're trying to do.  I'd imagine you could extend this simplistic example to have the service pull the users country from his/her master record in R/3 and set their filtering expression accordingly.
    Hope this helps,
    Marty

  • How to show all view tab (Main Report and all Sub Report) in Visual FoxPro 9

    I use ActiveX from Crystal Report Developer XI for viewer in Visual FoxPro 9 and I already know how to show Main Report by using command:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Inside the MyReport.rpt there is two subreport name :
    1. MySubReport1
    2. MySubReport2
    My Question is :
    How to show all view tab (Main Report and all Sub Report) at the 1st time we call ViewReport?
    I try to using command :
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptSub=oRptOpen.OpenSubreport("MySubReport1")
    oRptSub=oRptOpen.OpenSubreport("MySubReport2")
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    but only show Main Report (view tab name : Preview)?
    Did I miss any command before I call oRptView.ViewReport?

    Your right, there is only one tab to view the report.
    To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
    http://diamond.businessobjects.com/robhorne</a>

  • No header, main area and footer in smartforms while creating table in 4.6c

    Hi Experts,
    Iam working in SAP 4.6c version and iam creating smartform for domestic invoice, in smartform i have created table but when expand the table its not giving the option of Header, Main Area and footer, can anyone explain how i can get the above details.. pls reply ASAP as its very important.
    Thanks in advance,
    Abhishek Pandey.

    Hi,
    I had faced a similar situation in 4.6c.
    As clearly stated, you get the Header and Footer from Events.
    The Window defined under Page, should have
    Main window checked in it's General Attributes
    I guess that should get hold of your problem.
    Cheers,
    Remi

  • Dynamic lenght in report heading

    Hi experts,
    I need to pass dynamic length in report heading.
    i.e.., REPORT zrep LINE-SIZE dyn_len NO STANDARD PAGE HEADING.
    So that my report output width will be in different length based on value dyn_len.
    Any solution or alternative in simple list display. Pls suggest ....
    Thanks in advance.
    Zak.

    Hello,
    Do not specify LINE SIZE in that case.
    Thanks,
    Jayant

  • File-adapter with Dynamic Directory/Filenames in Header-variables

    Hi,
    I have looked through the file-adapter documentation. And it says that you can use wildcards/regexpressions/dynamic file and directory names using the file-adapter-wizard. Also you can use the header-variables to specify the file and directory names at run-time.
    Is it also possible to use the dynamic names using the header-variables?
    I want to create a process that I can give in the file/directory-names at run-time and that it will look for a file using the wild-cards to pickup. Since at run-time I often do not know the name of the file, since it might contain a sequence or date/time-stamp. But I do know the location and the structure of the file name (that is specified at config-time).
    The same question for outbound: if I specify a name in the header-variables with forexample '%seq%' in the name, like 'filename_%seq%.XML', will it then create the file with the sequence?
    Thanks in advance.
    Regards,
    Martien

    Hi,
    I've been trhough this document over and over again, but did not find anything on how to do it actually. But I found out that the file-outbound-header wsdl does not contain a directory element after generation by the wizard. But you can add it afterwards.
    Also you can replace the location attribute in the jca:address element of the adapter-wsdl by mcf properties (host, username, password) and override them by copying the values to the partnerlink using bpelx:properties.
    I planned to put the details in my blog.
    Regards,
    Martien

  • How to get data from SOAP-Header/MAIN-Section?

    Hi,
    I need some data of the SOAP-Header-MAIN-Section, e.g. <SAP:Sender><SAP:SERVICE>
    Is it possible to get these data with XSLT-Mapping or Java-Mapping? Are there blogs about it?
    I need these data of the MAIN-Section inside the condition of the receiver determination.
    Thank you all.
    Regards
    Wolfgang

    Hi,
    Do you wnat to access the Sender Service details in your mapping using java or XSL mapping? this is possible.
    Check this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/content.htm
    Or do you want to access the SOAP header itself?
    Regards,
    bhavesh

  • Fixed width file outgoing with header,detail and trailer in one map

    we have a scenario where in we have to create an output file. the file is fixed width with three different kinds of records namely header, details and trailer. if the specification of the metadata of the file is specified how will we incorporate the creation of the file in one map since the map produces only one call to UTL_FILE and writes it.
    there is a work around in a crude way where in we can define the file as a CSV and pass everything in an appanded string in one column. but i wanted to know how we can get the three logical records in one map..
    thanks
    kamal

    The problem is not with generating the records.. i mean header , detail and trailer.
    it is how we put them into a fixed width sampled file. if we look at the code generated we will see only one call being made to generate the file.

  • My new podcast episodes are not showing up on the main page

    my podcast page hasn't updated in 2 weeks even though i've been adding new episodes to my feed:
    http://www.cofc.edu/~hiottm/RSS.XML
    When i click SUBSCRIBE, i see the newest episodes there, so iTunes is reading my feed correctly, but why aren't they showing up on the main page?
    http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=200063590
    Does anyone know if there is a LIMIT to how many will show up on that main page? I have 45 being displayed, but my feed has 59 separate items. I've not read anything that indicates there is a limit.
    any help would be appreciated!!
      Windows XP  

    my podcast page hasn't updated in 2 weeks even though
    i've been adding new episodes to my feed:
    http://www.cofc.edu/~hiottm/RSS.XML
    When i click SUBSCRIBE, i see the newest episodes
    there, so iTunes is reading my feed correctly, but
    why aren't they showing up on the main page?
    http://phobos.apple.com/WebObjects/MZStore.woa/wa/view
    Podcast?id=200063590
    Does anyone know if there is a LIMIT to how many will
    show up on that main page? I have 45 being
    displayed, but my feed has 59 separate items. I've
    not read anything that indicates there is a limit.
    any help would be appreciated!!
      Windows XP  
    I have exactly the same problem with the feed from my podcast at
    http://angus_sessions.podOmatic.com/rss2.xml
    My other podcast downloads fine.
    The same problem is experience in iTunes on both my Mac and PC so it appears to be aniTunes issue, particularly since Juice has no problem updating using the same rss feed.
    It would be great if the iTunes team would comment.
    iMAc   Mac OS X (10.4.3)   Issue also on XP Pro

Maybe you are looking for