Show the Static Filter in the print page header

Our customer need the static filter on the head of each printing page. Now i can display the static filter once on the page using:
<object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="GET_ITEM"/>
         <param name="NAME" value="GR3TEFilter"/>
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
         <param name="DATA_PROVIDER" value="DP"/>
         <param name="HIDDEN" value="X"/>
         <param name="CAPTION" value="SAP_BW_TEXT?program=SAPLRRSV&key=721"/>
         <param name="WIDTH" value="330"/>
         <param name="GENERATE_LINKS" value=""/>
         <param name="SHOW_COMMON_ELEMENTS" value=""/>
         <param name="SHOW_VARIABLES" value=""/>
         ITEM:            GR3TEFilter
</object>
  <b>Problem is, in the template ZWT_ADHOC_PAGE,the print page template, the code for the header is using javascript</b>, like
      leftspancnt = Math.floor(ColumnCnt/2);
      rightspancnt = ColumnCnt - leftspancnt;
      footingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + ColumnCnt + '"><hr size=2 color=black align=left></TD></TR>';
      footingHTM += '<TR><TD vAlign="top" align="left" nowrap Colspan="' + leftspancnt + '"><FONT Size=1>Date Run: ';
      footingHTM += PrintDateTimeStamp;
      footingHTM += '</FONT></TD><TD vAlign="top" align="right" Colspan="' + rightspancnt + '"><FONT Size=1>';
      footingHTM = footingHTM + 'Page ' + currPage.toString() + ' of ' + varPageTotal.toString();
      footingHTM += '</FONT></TD></TR>';
   return footingHTM;
How can i insert the object into the javascript?

Surround the object with a div tag. Also, put the title in the header by grabbing the object from your div tag by using the .innerHTML command on the object.

Similar Messages

  • Why is the static method in the superclass more specific?

    Why is the static method in the superclass more specific than the static method in the subclass? After all, int is a subtype of long, but Base is not a subtype of Sub.
    class Base {
        static void m(int i){ System.out.println("Base"); }
    class Sub extends Base {
        static void m(long l){ System.out.println("Sub"); }
    class Test {
        public static void main(String[] args) {
            int i = 10;
            Sub sub = new Sub();
            sub.m(i);
    }The first example compiles without error.
    Output: Base
    class Base {
        void m(int i){ System.out.println("Base"); }
    class Sub extends Base {
        void m(long l){ System.out.println("Sub"); }
    class Test {
        public static void main(String[] args) {
            int i = 10;
            Sub sub = new Sub();
            sub.m(i);
    }In the second example, both instance methods are applicable and accessible (JLS 15.12.2.1), but neither is more specific (JLS 12.2.2), so we get a compiler error as expected.
    : reference to m is ambiguous,
    both method m(int) in Base and method m(long) in Sub match
    sub.m(i);
    ^
    1 error
    Why don�t we get a compiler error for the static methods?

    Thank you for your ideas.
    ====
    OUNOS:
    I don't get Sylvia's response. This is about static methods, what are instances are needed for??Yes, the question is about static methods. I included the example with non-static methods for a comparison. According to JLS 15.12.2, both examples should cause a compiler error.
    And why you create a Sub object to call the method, and dont just call "Sub.m(..)"Yes, it would make more sense to call Sub.m(i). Let�s change it. Now, I ask the same question. Why is there no compiler error?
    ====
    DANPERKINS:
    The error in your logic stems from calling static methods on instances, as ounos pointed out. Solution: don't. You won't see any more ambiguities.A static member of a class may also be accessed via a reference to an object of that class. It is not an error. (The value of the reference can even be null.)
    Originally I was looking only at the case with non-static methods. Therefore, I used sub.m(i). Once I understood that case, I added the static modifiers. When posting my question, I wish I had also changed sub.m to Sub.m. Either way, according to JLS 15.12.2, a compiler error should occur due to ambiguous method invocation.
    ====
    SILVIAE:
    The question was not about finding an alternative approach that doesn't throw up an ambiguity. The question related to why, in the particular situations described, the ambiguity arises in only one of them.
    Yes.
    Proposing an alternative approach doesn't address the question.
    Yes.
    ====
    If anyone is really interested, here is some background to the question. Some people studying for a Sun Java certificate were investigating some subtleties of method invocations:
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=24&t=019182
    I remember seeing the non-static case discussed in this forum once before in a more practical context. jschell probably knows the link.

  • Can the footer repeat on every printed page?

    I need the footer (part of the master page) to repeat on every printed page of a topic.
    Our client prints topics for use in the field and the footer contains time/date code (that I found on the internet). This date/time info needs to be printed on all pages of each topic. Most of the topics are 2-3 pages in length when printed from the browser. Is it possible to program the footer to repeat? or add HTML code to the topics to do this?
    I'm using RH 9, generating the WebHelp Pro layout for my output. Using IE9 and FireFox9 browsers. I've added a toolbar print button that uses the toolbarscripts01.js script to print the topics. (The script works great and is a HUGE life saver, by the way!! Thanks Peter Grainge!)
    Thanks,
    Shelley

    Hi Shelley
    We've already established in a separate thread that WebHelp Pro is not what you should be creating as you aren't using RoboHelp Server. But that really hasn't got anything to do with the footers.
    What you likely need to do is to supply a PDF that will be used to print. When RoboHelp creates Printed Documentation it first creates a Word document. And if you have elected to create a PDF, the PDF is created from the Word document. So what you can do is to forego the PDF from RoboHelp and manually tweak the Word document to add the desired footers. Then you could create a PDF from that to supply to the user.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • I have to zip pdf files to email them to someone with a PC. The problem is they aren't smaller after zipping and I can't email them. I tried adjusting the Quartz filter to the Reduce file size. Now they're smaller, but the recipient can't read them. Help!

    I need to zip pdf files to email them to a PC user. The problem is file size is not reduced.
    I tried zipping them in Win 7 (which I use via Parallels 7) and sending them to the Finder to email.
    But lately nothing is reduced.  I tried choosing the Reduce File Size option in the Quartz Filter when I save the doc. The file size was reduced. However, the recipient could not read the file. Everything was blurry.
    Is there a solution?

    I am having some PDF sizing issues also, I am a BETA tester for TurboCAD Mac, and with the usage of (public) version 5, I have had some scaling issues. I have had (auto sent) 15 plus crash reports, (available as text) and had posted my scenario within the "lion- problems so far" article, so not to use up extra bandwith- or whatever- there are pictures there. I was not able to upload a PDF on site, and the staff @ Turbo CAd is working on it also. this is Lion specific new update, as I have posted many large format PDF's
    Here (edit to add url)
    Thanks for the helps!
    Johnny

  • Why my dynamic text doesn't look as good as the static one in the same movie?

    I have movie clip with dynamic text and static text. I am
    using same font, size and color. The static texts looks great but
    the dynamic one is not. How can I get smoot fonts within dynamic
    text???
    Thanx....

    Advanced anti-aliasing can be applied only if you use
    embedded fonts and a
    TextFormat class. In your library, select New Font from the
    Options menu.
    Choose a font from the dropdown list and give it any name you
    want. Ok. Then
    right click that font in the library and choose Linkage to
    set it up for
    Actionscript, and in the first frame.
    Add the following actionscript to the first frame of your
    movie to set up
    the font in the movie:
    var text_fmt:TextFormat = new TextFormat();
    text_fmt.font = "trebuchet-15";
    text_fmt.size = 15;
    myText.embedFonts = true;
    myText.setNewTextFormat(text_fmt);
    myText.antiAliasType = "advanced";
    text_fmt is the name of the TextFormat class. You can name
    this anything you
    want.
    trebuchet-15 happens to be what I named my new font item in
    the library
    myText is the name of the dynamic text box that I am going to
    be using this
    font in.
    One more thing. When you set up your dynamic text box ... if
    you're using
    HTML text, don't override this with a <font> tag that
    declares the font face
    or size.
    Hope this helps. This should make the text in your dynamic
    text boxes just
    as smooth as the static text.
    Marge
    "SwedKim" <[email protected]> wrote in
    message
    news:epgqc2$rjq$[email protected]..
    >I have movie clip with dynamic text and static text. I am
    using same font,
    >size
    > and color. The static texts looks great but the dynamic
    one is not. How
    > can I
    > get smoot fonts within dynamic text???
    > Thanx....
    >
    >

  • Why when I am using the 4Hz filter, on the SCXI1122, it slows down my entire system.

    I have a simple VI set up that reads one channel from the SCXI1122. I have AI Sample channel.vi in a 3 second while loop. When I setup the SCXI1122 to use the 4Hz filter and run my VI the used system resources on my computer go to 100% and slows everything down. Can somebody explain to me why this is happening.

    My first reaction to your question is that the SCXI-1122 can only sample 1 sample per second when the 4 Hz filter is used. I would assume that it should work in a 1 second or longer loop. When you say 3 second while loop, I'm assuming that you mean you have a wait statement set for 3 seconds within the loop.
    I would assume that your computer slowing could be a function of the AI Sample VI making the call to the board to get the sample, and then having to wait 1 second for the sample. If you don't have multithreading enabled, this could definitely make your computer "wait" until the data is available.
    This is just my experience. Hope it helps you in some way.
    Mark

  • Where is the extract filter on the photoshop cc????

    I can't find the extract filter that need so much. What can I do???

    It's been replaced by Refine Edge and is no longer available in CC.
    This thread goes into further detail: http://forums.adobe.com/thread/636496
    Gene

  • How do I get the junk filter on the MAC to also filter email on IPhone and IPad?

    I have a MAC, IPad and Iphone and am using Icloud to keep calenndars, photos and music up to date.  however, my email junk filter on the MAC doesn't filter via Icloud for email on the Ipad or Iphone.  It would be great while traveling to not waste time and effort deleting junk mail.
    thanks

    no.

  • Can you create a test online and get the results filter in the report tab?

    Im brand new to this software and i had a big concern about it.
    This is a great tool to create surveys and forms to fill out but i was wondering if you can create a quiz.
    By a quiz i mean that instead of sending me back the data the user click in the multiple choice is it
    possible for me to get instead if they got it right or wrong.
    I want to retun if they got it right a boolean variable (true or false)
         logic ex)
         if (answer == true)
             return "correct"
         else
              return" "incorrect"

    Hi;
    You can certainly create a Quiz using FormsCentral but there is nothing built in to "grade" the quiz and no integration with any grading systems like flubaroo.
    You might be able to use "Formulas" on the "View Response" tab to identify correct/incorrect answers. 
    This describes a bit about how to use Formulas (they can be done in a column as well as a row): http://acrobatusers.com/tutorials/how-to-work-with-formulas-in-formscentral
    This is a list of the forumulas available in FormsCentral: http://helpx.adobe.com/acrobat-com/formscentral/help/formula-syntax-built-in-functions.htm l
    Thanks,
    Josh

  • Not loading the Static content from the iPlanet document base

    Hi,
    I have configured I-planet and BEA 7.4 successfully. The document base for my
    iplanet has the pict directory.
    so when i try to access the pict directory from the browser say http://<>/pict/s.gif
    I get a Error 404--Not Found. I believe the web-server should serve my /pict directory
    by itself . Why is it that my requests are going to Web-logic..
    <Object name="hppreg" ppath="*/servlet/*">
    Service fn="wl_proxy" WebLogicHost="xxx.ffc.com" WebLogicPort="7001"
    </Object>
    I assume only the request with the /servlet should go to Web-logic.
    Any help is greatly appreciated
    Thanks,
    Nag

    The oracle driver library isn't on your classpath. It's normally called something like classes12.zip under the Oracle client installation directory.
    If you're working with Tomcat you need to copy the class library into common/lib and rename it to give it a .jar extension.

  • Is it still RJ11 from the BT Filter to the modem ?...

    Hi,
    Having the service put in approx 1.5 weeks and just wanted to know if the cable from the master socket to the router is still an rj11 cable ?
    Reason for asking is I have an extension cable in use at the mo ?
    Thanks,

    I believe so.
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the the reply answers your question then please mark as ’Mark as Accepted Solution’

  • How works the analogo filter of the 4472?

    I need understand how filter the signals the 4472 board.
    Thanks

    Hello!
    That's a pretty broad question, the best thing to do would be to take a look at the 4472 manual on pages 3-4 through 3-9 at the following URL:
    http://www.ni.com/pdf/manuals/322940c.pdf
    This is an extensive explanation of how the antialiasing filters work, including several graphs of outputs.
    Hope this helps!
    Brian Spears
    Applications Engineer
    National Instruments

  • JavaHelp print shows null1/1 in the page header

    I just noticed that when I print a page of the JavaHelp system, it puts the word null next to the page number in the header of the printed output. For example: null 1/2. Does anyone know if that is a bug in JavaHelp, or if maybe there is something I need to configure somewhere in JavaHelp?
    Thanks for your help

    Thanks for the reply. That is really an interesting solution with many new things, which I dont know. I have mixed both the solutions and adjusted them a bit.That helped reducing the blank pages. But the issue with both solutions is page header(orderid, quotepostas,function date, page number fields) is displaying only for new Function Date. For remaining pages the page header is not getting displayed. Actually the function information, can span across multiple pages, caz it has many other children. Ex: Function with date1 has information that spans across 3 pages, only in the first page the page header is getting displayed, in 2nd and 3rd pages only the function information is displayed, page header is not getting displayed. Actually I am using it this way..
    <?for-each:Order?>
    <?xdoxslt:set_variable($_XDOCTX,'z',count(xdoxslt:distinct_values(Function/Date)))?>
    <?for-each-group:Function;Date?>
    <?OrderId?>
    Page num : <?position()?>
    <?QuotepostAs?>
    <?Date?>
    <?for-each:current-group()?>
    <?Date?>
    <?Id?>
    <?end for-each?>
    <xsl:if xdofo:ctx="inblock" test="position()<xdoxslt:get_variable($_XDOCTX,'z')"><xsl:attribute name="break-before">page</xsl:attribute></xsl:if>
    <?end for-each-group?>
    <xsl:if xdofo:ctx="inblock" test="position()<count(//Order)"> <xsl:attribute name="break-before">page</xsl:attribute></xsl:if>
    <?end for-each?>

  • EVDRE - Property Filter on the Page Key

    Hi,
    I was wondering if it is possible to apply a property filter on one of the dimensions in the page key.  I want to filter data that is returned but do not want to include the dimension in my expansion.
    Example:
    BPC v7.0
    Row Dim = Entity
    Col dim = Time
    Page Key Property Filter on "Account".
    If it is not possible, is there another way to filter data returned by EVDRE based on dimensions properties without including the dimension in the expansion.
    Thanks.

    Thanks for the reply Marvin.
    The purpose of the property filter on the report is to not limit the member selection but rather to filter the data.  I'm pretty new to BPC Excel so I'm not sure if I am missing something but  I'm just looking to filter data from the Database in my EVDRE without having to include the dimension in my expansion/report. 
    Its looks like that the Page Keys and the Current View only allows you to select/filter on one value at a time and if I want to do more I need to include it in my expansion??  There has too be a way to do this b/c if this is a limitation then I seriously thing that SAP needs to go back to the drawing boards with this one.  I hope that its just me as I'm a newbee.
    Any additional assistance will be greatly appreciated.

  • Double entry for a single lens in the Lens filter

    I've noticed that when I filter the Library with metadata, the same EF 50mm f/1.8 lens shows up as two distinct entries, depending on which body it was used on. The Canon 30D reports the lens as "EF50mm f/1.8", and the 450D reports it as "EF 50mm f/1.8 II". Thus there are two categories of pics taken with the same 50mm lens.
    I assume this is due to the way the cameras generate the metadata. Is it possible to modify the way Lightroom interprets the metadata so that the program would know that "EF50mm f/1.8" and "EF50mm f/1.8 II" are one and the same and display the shots together through the Library filter?
    Thank you for any help.

    You could search for both of them. You can select both lenses in the Metadata filter on the Grid (ctrl-click on the second name(assuming Windows)), or (if you search by lens a lot) you could create a smart collection that looks for both.
    Hal

Maybe you are looking for

  • Windows 8.1 to 8.1 Pro

    I have purchased a laptop with Windows 8.1 pre-installed. I also purchased a Windows 8.1 Pro disc and license but every time I run a custom install it reverts back to the 8.1 Home edition with the OEM license and never allows me to install the 8.1 Pr

  • Viewing a pdf file with new and new content

    Hello folks, Assume that one creates a pdf and uses Preview or Reader to view it. Then adds something to the picture and opens the file again: new content, old filename. One would like to see one of the following schemes: a) Open would close the old

  • Modification of the Message ID

    Hi All,     I have received an email from account.microsoft.com domain. But when I look into the headers I see that the Message ID ends with "cez.ice". Could someone please explain why the Message ID is being modified as it should end with sending do

  • Fade Tool problems! help please!!

    I've noticed that when I'm editing audio files and cut out silences, I'm left with a loud clicking noise. So to solve this problem, I used the fade tool (esc 0) and faded out the ending of every single region which took a ridiculous amount of time to

  • Javascript Date & Time Picker

    Hi, I would like to create an event on a text field, when you click on it it's calling a javascript function to popup a date & time picker. Is anyone can help me ? Eric . Thanks