Vertical alignment when the page content footnotes

I need this script:
Search footnotes in a document, and in these pages with footnotes change the vertical alignment to top...
Thanks.... (And sorry for my not good english !!!)

(Not sure I've understood the goal.)
Maybe you need something like this:
var tfs = app.activeDocument.textFrames.everyItem().getElements(),
     tf;
while( tf=tfs.pop() )
     if ( tf.footnotes.length )
          tf.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;
@+
Marc

Similar Messages

  • Tabs smartform don't work when the field content is blank

    Hi,
        I'm doing a report with smartform, I created a paragraph with 4 tabs, when the field content is blank the next field don't stop in the right tab. Anybody know why ??
      Thanks.
    Suzuki - Brasil

    see example prgram sf*
    Here is the step by step procedure
    http://sap.niraj.tripod.com/id67.html
    Procedure:
    1. Create a new smartform
    Transaction code SMARTFORMS
    Create new smartforms call ZTEST
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. To define the table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collect all the table data in your program, and pass once to SMARTFORMS
    In SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZTEST'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

  • Losing table vertical alignment when converting ditamap to book

    FrameMaker Version: 12.0.4.445 (latest, part of TCS5)
    I have a structured project, where several XML files have been arranged into a ditamap.
    For one of the XML files, I have a table, where I need to set Cell Vertical Alignment of the cells to MIDDLE.
    So using Paragraph Designer > Table Cell, I change the entries from Top to Middle (The defaults were Top).
    With the ditamap pane selected, I then go File menu >> Save Ditamap As
    I save the ditamap as "Book 12.0 with fm components (*.book)" file type.
    In the resulting book, the XML files are now .FM files.
    However, at this point, when I open the .FM file that has the table, the cell styles have reverted to TOP.
    I've searched high-and-low for a similar issue. This is looking like a bug to me, but can someone confirm?
    Thanks

    (Perhaps the moderator should move this to the FrameMaker Integration discussion (under RoboHelp).
    I've determined the correct settings for my purposes, that being vertical alignment in a FM-to-RH integration project. I originally thought it was specifically a FrameMaker issue, though the solution also involves settings in RoboHelp. Here are my findings:
    1. For the selected FM table, note its Table Tag in the Table Designer (e.g., FormatA). This will be used later.
    2. If there is table Entry > Image element, then select the Image element, and set its placement attribute = inline.
    Though inline is supposed to be the default, I found it necessary to state explicitly in order to control alignment of image within a RH table cell.
    3. Moving on from FM, in the CSS file that you are using with your RH project, suppose that you have defined your table as follows. Note that I'm using "CenterMiddle" as the title.
    table.CenterMiddle {
      width: 100% ! important ;  /* This forces the RH table to autofit the window */
      text-align: Center;
      font-family: "Adobe Garamond Pro";
      border-left-style: Solid;
      border-left-width: 1px;
      border-left-color: #000000;
      border-right-style: Solid;
      border-right-width: 1px;
      border-right-color: #000000;
      border-top-style: Solid;
      border-top-width: 1px;
      border-top-color: #000000;
      border-bottom-style: Solid;
      border-bottom-width: 1px;
      border-bottom-color: #000000;
    .CenterMiddle td {
      vertical-align: middle ! important ;  /* This forces the individual cells to align vertically */
      border-color: #000000;
      border-style: solid;
      border-width: 1px;
    4. Go to the RH project to which the FM project is linked.
    5. Go File menu > Project Settings.
    6. In the FrameMaker Document group, click Edit.
    7. Under FrameMaker Settings, locate the Table style that you noted in step (1), and set it to the name of your table from (3).
    At this point, you can update all the FM components in your RH project, and compile the RH project to get the desired results. In my case, I needed both text and images in the table cells to have vertical alignment = middle.

  • Content Query Webpart -- Display part of the Page Content field

    Hi,
    I am using the following to display the first 200 characters of the Page Content field. However, when the Webpart is loaded, it displays not only the Content, but also the html (please notice that this has a html field type)
    Code:
    <div class="description">
      <xsl:value-of select="substring(@PublishingPageContent, 0, 200)" disable-output-escaping="yes"/>
    </div>
    In the Browser, the content looks like:
    <span id="ms-rterangepaste-start"></span><div>Test</div><span id="ms-rterangepaste-end">Page Content</span>
    As oppose to just :
    Test
    Page Content
    Is there something missing from the code? Please advice, your help would be greatly appreciated.

    Hi,
    If you writing the content within the Richtext filed you may not this kind of issue.
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • Experience Manager doesn't show left nav to browse the pages/content collection

    Hi,
    We are using Endeca Experience Manager with ATG 11.0. We have created application and triggered baseline update successfully, all the steps are successful.
    When we open Experience Manager it doesn't show the pages/content which will create by default with Discovery data/pages.
    Please help us on this.
    Thanks in advance,
    Ravinder P

    Thanks for the reply Tim,
    We tried to access in both Chrome and FF, both doesn't show the left nav. We are suspecting that this could be issue with editors or application issue.
    Thanks,
    Ravinder P

  • How do I stop a query from running when the page is loaded

    Hi All,
    I'm using JDeveloper 10.1.3.4. I have a JSPX page that is used to collect search parameters and then when a button is clicked uses those values to run a query and then populate a table on the same page. The problem is that when the page is loaded the system attempts to run the query. The query is a method in a session bean. I can keep the method from running the query code by wrapping it in an 'if' statement and checking the parameters for null (or other value). Once the parameters are collected the query is invoked but it looks like the method is running twice, once with the parameters (here I've checked that the result actually has rows in the list) and then again where the parameters are null and the method returns null.
    What is the best way to do what I want here? From the buttons action method I am called the session beam method and returning null to stay on the same page. I think that is why the method is running the second time and returning null.
    TIA,
    Dave

    Have a look at these screen casts from Steve Muench and see if one of these techniques works for you, or gives you the clue you need.
    Creating Three Simple Search Pages with ADF Business Components and ADF Faces (JSF)
    Part 1: Web-Style Search Form
    Part 2: Oracle Forms-Style EnterQuery/ExecuteQuery Mode Page
    Part 3: Search Form Using View Object with Named Bind Parameters
    I had trouble viewing these with Firefox, but they worked in Internet Explorer.

  • How do I invoke an ActionListener on a page when the page initially loads?

    How do I invoke an ActionListener on a page when the page initially loads?
    Page 1: A user clicks on a h:commandButton and is navigated to Page 2.
    Page 2: When the page loads and goes through RESTORE_VIEW, APPLY_REQUESTS and RENDER_RESPONSE, I need to call an ActionListener in the managed bean for Page 2.
    However, if the user comes in from any other page than Page 1, the ActionListener cannot be invoked intially when the page loads. The user has a choice to click on the h:commandButton on Page2 to invoke the ActionListener.
    What is an example of invoking a method with the ActionListener signature in Java code?
    Where would I put the code to invoke the ActionListener, in a beforePhase or afterPhase, constructor?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Interesting. You're right. It doesn't happen when I click away from this site and then return. Maybe I'm barking up the wrong tree. Maybe it's the specific website I was thinking of and not Firefox. Unfortunately, I have to use that site all the time for work. I'll try contacting their webmaster. Thanks for your help.

  • Getting the page content as pdf file

    Hi All,
    I have a use case like i need to get the page content as pdf file.
    For this i found xsl file and it's config under the following locations
    /libs/cq/config/rewriter/pdf/transformer-xslt --config of source
    /libs/wcm/core/content/pdf/page2fo.xsl -- xsl file location
    For custamising this functionality i copied both confing node and xsl file under "/apps" .In the Config file i changed source to refer xsl file under /apps.But it's not taking config changes.
    I have looked into http://cqblueprints.com/xwiki/bin/view/CQ+FAQ/How+can+I+configure+the+ PDF+rewriter
    there it's saying like we need to modify the com.day.cq.rewriter.xml.XSLTTransformer class. i am not getting how to modify it.
    I need this urgently
    Thanks,
    Chinna Yadlapalli.

    This script:
    http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both -pdf-and-indd-files.php
    answers all your questions.
    Peter

  • Why the menu to move from one page to another is not seen when the page is online?

    On my web, I have different pages like 'Homepage' or 'Contact' but when I publish my web I can not see the menu.
    why the menu to move from one page to another is not seen when the page is online?
    Thank you,
    Roger.

    Where are you publishing and how are you uploading the files?

  • ADF how can i execute a query with parameters when the page renders

    hi
    i am using ADF web 11g
    i need to execute a query with parameters when the page renders
    thanks

    hello,
    I'm a fan of Java code, I really am.
    But when you use ADF, you decided to move to a more declarative environment.
    So why not do it declarative, the adf way?
    In your pagedef insert a action binding.
    This can be anything, a call to the application module, a call on the iterator(Like executeWithparams, etc.)
    Create an invokeAction in your pagedef and set the condition.
    This example refreshes(Action 2 is execute query) the data.
    First the method binding:
        <action IterBinding="PersoonIterator" id="Execute" InstanceName="LSAppModuleDataControl.Persoon"
                DataControl="LSAppModuleDataControl" RequiresUpdateModel="true" Action="2"/>And the invoke action
        <invokeAction Binds="Execute" id="refreshData"/>This always refreshes the data on page entry, but anything is possible, you can set condictions for the invokeAction.
    -Anton
    PS Yes I know that pagedefs become backing beans in the end and yes that is Java code, but if you wanna play the ADF way, the goal is the reduction of Java code and the increased performance of declarative programming.

  • The webpages become so wide and overlap the screen. I think the 100% width is messed up. Now I cant view the page content of any website I have FF 5 .0.1. Why?

    The page content is moved to left about 40%. But there is no horizontal scroll bar below the browser so its impossible to see the content on the right side of the page. I think its a bug.

    @James - So is Flash Firefox's Achilles' Heel? It's a bit disappointing if Safari and Chrome could run PS.com without a problem. I was hoping it was a setting I could change or tweak to make everything flawless again. I really don't want to migrate to another browser.... :(

  • Cascading LOV not working when the page is public

    Hi ,
    I have a cascading LOV in a tabular form which I have built using Denes Kubicek example from
    http://apex.oracle.com/pls/otn/f?p=31517:176:2702932664861989:::::
    Thanks to this wonderful examle I was able to make my cascading lov work.
    However when I make the page public , the second lov(which is based on the first one) does not work.
    Inorder to debug i changed get.get('XML') to get.get() and put an alert on it; to check if the select list string is being returned correctly by the application process - it returns null. The same alert returns the select list string when I put the authentication back on the page.
    Also I noticed when the page is public the application item (TAB_CASCADING_ITEM) is not getting populated with the value of the first select list.
    has anybody encountered the same issue ?
    Appreciate any suggestions?
    Thanks,
    Dippy

    One of the parameters in the htmldb_get is the page the process runs on. You should change that to the current page or make page 0 public as well.

  • Visitor unabe to see the page content in WPC

    Hi Experts,
    I have created a website using  WPC, and I created a role and assigned the site to that role using external connector property.  I assigned that role to me and other users ( Authors, Visitors, Editors) .
    Problem is , I am able to see all the pages by navigating the pages and nodes in that role. Where as other users are not able to see the page content, but ! the role and navigation nodes are there in their logon also.
    Even, the top of the page like ( Edit page, print, RSS, etc) also appear in their logon's  but ! page content is not appearing. I gave exact permission to them as they required.
    Can anyone tell me solution for this ?
    Thanks in advance
    Suersh

    Hi Suresh,
    Check my [reply|/thread/916997 [original link is broken]; to your similar post in the Knowledge Management & Collaboration forum.
    Hope this helps.
    Best Regards,
    Joseph

  • Anyway to delete the middle section of a page so that the rest of the page content moves up?

    Hi, I'm new and in need of help
    I want to delete the middle 3"s of a PDF page so that the rest of the page content (pics/text) moves up? Would Acrobat Pro let me do this?
    TIA!

    First thing to know is Acrobat is not a word processor or page layout program.  While it has many editing capabilities heavy text or layout editing should always take place in the documents' parent application (i.e. Word, InDesign, Quark, FrameMaker, Apple Pages,  OpenOffice, etc...)

  • Fireforx cannot find web page when the page address is correct

    How do I solve the message that Firefox cannot find the page when the page address is correct?

    Do you want to do a Google search instead?
    You can check the <b>keyword.enabled</b> on the <b>about:config</b> page and if necessary then you can toggle this pref to true via a double-click.
    *https://support.mozilla.org/kb/Location+bar+search
    See also:
    *http://kb.mozillazine.org/Error_loading_websites

Maybe you are looking for