Text module constrained to single page?

I have added a page to the “standard” smart form for purchase order printing. The purpose is to print standard terms and conditions, which are stored in a text module. This should be a piece of cake I thought, but apparently not...
A command to go to the new page has been added at the end of the main window of the standard form.
If I put the text element in a main window on the page they are not printed at all. I would not hesitate to call that a bug, but for all I know Smart Forms are limited to having one window of type Main window in each form.
If I put the text element in a secondary window they are printed partly. There is one page of output, but the terms and conditions need two pages (or possibly more).
I have tried both with a single page for the terms and conditions, and having a YTERMS and YTERMS_CONT.
Any ideas are welcome, and good ideas or tips from people who have solved similar problems are of course extra welcome :-)

Hi Kjetil,
you should hold it in the MAIN-Window. To solve your problem and to be not limited with secondary windows you should do it in that way.
I just draw it here:
MAIN-Window
...<A lot of code_before>...
NEW-PAGE Command node
-Table with your prefered layout (If you need two columns or something like that)
--- here you include your text
So you are not limited in the pages and you are able to build the layout you need.
(Only limited in the width, because your MAINWindow must same width overall)
OR
you create different textes and do it with secondary windows, but here you have to figure out how much fits in what window and that might be end in a messy work if you use different device types.
Let me know, if something is not that clear and I will try to explain it more / offer an example-form
~Florian
PS: The picture should just explain the bracket better

Similar Messages

  • Print Module - Is it possible to show the single pages in the custom package?

    Hello everyone,
    I'm using Lr4.
    I'd like to prepare a multiple pages package in the Print Module.
    I need to view each single page, as because every time I add new page the cells become smaller and it's hard to arrange the images well.
    Is it possible to do that?
    Thanks.
    Sergio

    Ok I found it.
    Zoom page button.
    TOPIC SOLVED

  • Print multiple pages of text module as Terms and Conditions at end of PO

    Hello,
    I have a text module that contains a two page terms and conditions to print as the last pages of a PO.
    I have three pages
    FIRST-->Calls NEXT
    NEXT--> Calls NEXT with a command to LAST in the MAIN window
    LAST-->Calls Last, has a MAIN Window and a regular window which calls text module
    The text module only prints on the first page in the end of the PO(i.e.last page). It does not flow or create an additional page for the left over text in the text module.
    Please advice.

    Hi,
    We have same situation. What I did was to introduce a new element in MAIN WINDOW ( by the way only FIRST & LAST pages are sufficient, no need to have additional page for printing Terms & Conditions ) in that element just have 2 lines viz.:
    /:   NEW-PAGE                                     * Above command so that terms & conditions will always start from a new page.                       
    /:   INCLUDE ZPO_TERMS_AND_CONDITIONS OBJECT TEXT ID ST LANGUAGE EN      
    If terms & conditions are more than a page it will automatically be printed on the next page. ( In our case currently we have got 5 pages of terms & conditions ).
    At the end of the program i.e. When you are finished with printing of a PO just 'WRITE' this element using WRITE_FORM.
    I hope this helps,
    Regards
    Raju Chitale

  • Giving URL to a text (eg blabla.co.uk) repeating on each single page in a PDF file?

    Giving URL to a text (eg blabla.co.uk) repeating on each single page in a PDF file:
    Is there a way to do this?

    is the blablah.co.uk always in the same position on pages (like in as header or footer)?  If so the second script for creating links will work.  YES
    Where am I suppose to add the website link on the script???
    var linkWidth = 36, linkHeight = 18;
    for (var i = 0; i < this.numPages; i++)
    // Create the coordinates for the left link:
    var lRect = [0, linkHeight, linkWidth, 0];
    // Create the coordinates for the right link:
    var cropBox = this.getPageBox("Crop", i);
    var offset = cropBox[2] - cropBox[0] - linkWidth;
    var rRect = [offset, linkHeight, linkWidth + offset, 0];
    // Create the Link objects:
    var leftLink = this.addLink(i, lRect);
    var rightLink = this.addLink(i, rRect);
    // Calculate the previous and next page numbers:
    var nextPage = (i + 1) % this.numPages;
    var prevPage = i - 1;
    if (prevPage < 0) prevPage = this.numPages - 1;
    // Set the link actions to go to the pages:
    leftLink.setAction("this.pageNum = " + prevPage);
    rightLink.setAction("this.pageNum = " + nextPage);
    // Customize the link appearance:
    leftLink.borderColor = color.red;
    leftLink.borderWidth = 1;
    rightLink.borderColor = color.red;
    rightLink.borderWidth = 1;

  • When inserting a single page pdf into another pdf, some of the text disappears

    Currently working on a fairly big pdf. Have a single pdf which opens up fine. What i am trying to do is insert this single page pdf into the larger document. When it is inserted, not all the characters are being displayed like b, v, u etc. If I highlight the areas that have the text missing and choose copy, and paste it into word, all the text is there. Its just not actually showing in the final pdf. What has got me, is that if I open the single page pdf by itself, it opens up fine. Parts of the text only disappear when it is inserted into the larger pdf document. Any thoughts as it has me stumped!!!

    Does the Visio PDF look correct in Acrobat? You might try to save the VISIO file as an EMF file or other vector graphic and create a PDF from there. VISIO has had major problems in the past and that may be associated with your problem.
    Just for the heck of it, have you tried the reverse insertion? Try inserting the longer PDF into the single page one and then move the page to where you want it with the pages view.
    Excuse my mood, but I am real tempted at this time of the evening to simply say your error was in using VISIO. Like I said, sorry.

  • Is there a way to use Text Anchors and Hyperlinks to create a single-page interactive PDF?

    We are trying to emulate the functionality of a website, by creating a series of clickable buttons at the top that would take you to different locations within the page (it's 80" long). This seems to be only possible within multi-page documents, but not single-page documents.

    I have created a tutorial on how to setup domain name masking using cpanel and other popular web hosting control panels.
    You need to edit the zone file settings in the Web Host Manager of Cpanel (WHM) a very popular web hosting control panel.
    Main > DNS Functions > Edit DNS Zone > Choose Zone to Edit
    Unless you have a reseller hosting account or are a server administrator, you will not be able to access this file directly. Just contact your web hosting support rep and they will gladly change it for you.
    see the screenshot of zone file changes
    http://www.netpaths.net/blog/wp-content/uploads/2007/10/cpanel-zone-file.jpg

  • Multiple ALV GRID reports on a single page

    hi all
    I have an  urgent requirement where I need to show 2-3 alv grids on a single page. Please let me know if it is possible to do so. If yes how. Sample code would be very helpful.
    thanks in advance.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 16, 2008 1:45 PM

    HI,
    Create multiple custom containers and call the method   CALL METHOD sap_grid->set_table_for_first_display multiple times.
    This will display multiple ALV grids on a single page.
    Code Below:
    MODULE create_objects OUTPUT.
      CREATE OBJECT g_custom_container
         EXPORTING
       PARENT                      =
           container_name              = 'CUST_CRTL'
       STYLE                       =
       LIFETIME                    = lifetime_default
       REPID                       =
       DYNNR                       =
       NO_AUTODEF_PROGID_DYNNR     =
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        OTHERS                      = 6
      IF sy-subrc <> 0.
        MESSAGE e143(z1).
      ENDIF.
    *Create object for sap grid
      CREATE OBJECT sap_grid
        EXPORTING
         I_SHELLSTYLE      = 0
         I_LIFETIME        =
           i_parent          = g_custom_container
         I_APPL_EVENTS     = space
         I_PARENTDBG       =
         I_APPLOGPARENT    =
         I_GRAPHICSPARENT  =
         I_NAME            =
       EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init   = 2
          error_cntl_link   = 3
          error_dp_create   = 4
          OTHERS            = 5.
      IF sy-subrc <> 0.
        MESSAGE e144(z1).
      ENDIF.
      CREATE OBJECT g_custom_container1
         EXPORTING
       PARENT                      =
           container_name              = 'CUST_CRTL1'
       STYLE                       =
       LIFETIME                    = lifetime_default
       REPID                       =
       DYNNR                       =
       NO_AUTODEF_PROGID_DYNNR     =
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        OTHERS                      = 6
      IF sy-subrc <> 0.
        MESSAGE e143(z1).
      ENDIF.
    *Create object for sap grid
      CREATE OBJECT sap_grid1
        EXPORTING
         I_SHELLSTYLE      = 0
         I_LIFETIME        =
           i_parent          = g_custom_container1
         I_APPL_EVENTS     = space
         I_PARENTDBG       =
         I_APPLOGPARENT    =
         I_GRAPHICSPARENT  =
         I_NAME            =
       EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init   = 2
          error_cntl_link   = 3
          error_dp_create   = 4
          OTHERS            = 5.
      IF sy-subrc <> 0.
        MESSAGE e144(z1).
      ENDIF.
      CREATE OBJECT g_custom_container2
         EXPORTING
       PARENT                      =
           container_name              = 'CUST_CRTL2'
       STYLE                       =
       LIFETIME                    = lifetime_default
       REPID                       =
       DYNNR                       =
       NO_AUTODEF_PROGID_DYNNR     =
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        OTHERS                      = 6
      IF sy-subrc <> 0.
        MESSAGE e143(z1).
      ENDIF.
    *Create object for sap grid
      CREATE OBJECT sap_grid2
        EXPORTING
         I_SHELLSTYLE      = 0
         I_LIFETIME        =
           i_parent          = g_custom_container2
         I_APPL_EVENTS     = space
         I_PARENTDBG       =
         I_APPLOGPARENT    =
         I_GRAPHICSPARENT  =
         I_NAME            =
       EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init   = 2
          error_cntl_link   = 3
          error_dp_create   = 4
          OTHERS            = 5.
      IF sy-subrc <> 0.
        MESSAGE e144(z1).
      ENDIF.
    ENDMODULE.                 " create_objects  OUTPUT
    *&      Module  fill_fcat  OUTPUT
          text
    MODULE fill_fcat OUTPUT.
      CONSTANTS : lc_x TYPE c VALUE 'X',
                  lc_a TYPE c VALUE 'D'.
    *Prepare field catalog for all Summary Report
      wa_field-fieldname = 'BUKRS'.
      wa_field-tabname = 'T_BSID_BSAD'.
      wa_field-outputlen = '12'.
      wa_field-col_pos = '1'.
      wa_field-coltext = text-002. "'Company Code'.
      APPEND wa_field TO fcat.
    CLEAR wa_field.
    wa_field-fieldname = 'CURR'.
    wa_field-tabname = 'T_BSID_BSAD'.
    wa_field-outputlen = '10'.
    wa_field-col_pos = '2'.
    wa_field-coltext = text-022."'Currency'.
    APPEND wa_field TO fcat.
      CLEAR wa_field.
      wa_field-fieldname = 'KUNNR'.
      wa_field-tabname = 'T_BSID_BSAD'.
      wa_field-outputlen = '10'.
      wa_field-col_pos = '3'.
      wa_field-coltext = text-005."'Customer Number'.
      APPEND wa_field TO fcat.
      CLEAR wa_field.
      wa_field-fieldname = 'NAME1'.
      wa_field-tabname = 'T_BSID_BSAD'.
    wa_field-outputlen = '13'.
      wa_field-col_pos = '4'.
      wa_field-coltext = text-007."'Customer Name'.
      APPEND wa_field TO fcat.
      CLEAR wa_field.
      wa_field-fieldname = 'KLIMK'.
      wa_field-tabname = 'T_BSID_BSAD'.
      wa_field-outputlen = '12'.
      wa_field-col_pos = '5'.
      wa_field-coltext = text-008. " 'Credit Limit'.
      APPEND wa_field TO fcat.
      CLEAR wa_field.
      wa_field-fieldname = 'DMBTR'.
      wa_field-tabname = 'T_BSID_BSAD'.
    wa_field-outputlen = '16'.
      wa_field-col_pos = '6'.
      wa_field-coltext = text-009. "'Current Balance Calculated'.
      APPEND wa_field TO fcat.
      CLEAR wa_field.
      CLEAR wa_field.
      wa_field-fieldname = 'BLNC'.
      wa_field-tabname = 'T_BSID_BSAD'.
      wa_field-outputlen = '23'.
      wa_field-col_pos = '7'.
      wa_field-coltext = g_bal_date. "'Balance b/f @ (Date taken from Z table) '.
      wa_field-fix_column = 'X'.
      APPEND wa_field TO fcat.
      CLEAR wa_field.
    CLEAR wa_field.
    wa_field-fieldname = 'DATE'.
    wa_field-tabname = 'T_BSID_BSAD'.
    wa_field-outputlen = '8'.
    wa_field-col_pos = '7'.
    wa_field-coltext = text-021. "'Balance b/f Date @ Z Table balance'.
    APPEND wa_field TO fcat.
    CLEAR wa_field.
      CLEAR wa_field.
      wa_field-fieldname = 'INVOICES'.
      wa_field-tabname = 'T_BSID_BSAD'.
    wa_field-outputlen = '13'.
      wa_field-col_pos = '8'.
      wa_field-coltext = text-012. "'Invoices'.
      APPEND wa_field TO fcat.
      CLEAR wa_field.
      CLEAR wa_field.
      wa_field-fieldname = 'PAYMENTS'.
      wa_field-tabname = 'T_BSID_BSAD'.
    wa_field-outputlen = '13'.
      wa_field-col_pos = '9'.
      wa_field-coltext = text-013. "'Payments'.
      APPEND wa_field TO fcat.
      CLEAR wa_field.
      CLEAR wa_field.
      wa_field-fieldname = 'DMBTR'.
      wa_field-tabname = 'T_BSID_BSAD'.
      wa_field-outputlen = '23'.
      wa_field-col_pos = '10'.
      wa_field-coltext = g_bal_date1. "'Balance c/f @ (Date of Lodgement from selection screen)'.
      APPEND wa_field TO fcat.
      CLEAR wa_field.
      CLEAR wa_field.
      wa_field-fieldname = 'CHECK'.
      wa_field-tabname = 'T_BSID_BSAD'.
    wa_field-outputlen = '13'.
      wa_field-col_pos = '11'.
      wa_field-coltext = text-020. "'CHECK'.
      APPEND wa_field TO fcat.
      CLEAR wa_field.
      CLEAR g_layout.
      g_layout-zebra = lc_x.
    g_layout-sel_mode = lc_a.
    *Prepare field catalog for all Invoice Extract
      wa_field1-fieldname = 'BUKRS'.
      wa_field1-tabname = 'T_INVOICE'.
      wa_field1-outputlen = '12'.
      wa_field1-col_pos = '1'.
      wa_field1-coltext = text-002. "'Company Code'.
      APPEND wa_field1 TO fcat1.
      CLEAR wa_field1.
      wa_field1-fieldname = 'KUNNR'.
      wa_field1-tabname = 'T_INVOICE'.
      wa_field1-outputlen = '13'.
      wa_field1-col_pos = '2'.
      wa_field1-coltext = text-005."'Customer Number'.
      APPEND wa_field1 TO fcat1.
      CLEAR wa_field1.
      wa_field1-fieldname = 'NAME1'.
      wa_field1-tabname = 'T_INVOICE'.
      wa_field1-outputlen = '13'.
      wa_field1-col_pos = '3'.
      wa_field1-coltext = text-007."'Customer Name'.
      APPEND wa_field1 TO fcat1.
      CLEAR wa_field1.
      wa_field1-fieldname = 'GJAHR'.
      wa_field1-tabname = 'T_INVOICE'.
      wa_field1-outputlen = '7'.
      wa_field1-col_pos = '4'.
      wa_field1-coltext = text-015. " 'Fiscal Year'.
      APPEND wa_field1 TO fcat1.
      CLEAR wa_field1.
      wa_field1-fieldname = 'BELNR'.
      wa_field1-tabname = 'T_INVOICE'.
    wa_field1-outputlen = '10'.
      wa_field1-col_pos = '5'.
      wa_field1-coltext = text-016. "'Invoice Number'.
      APPEND wa_field1 TO fcat1.
      CLEAR wa_field1.
      CLEAR wa_field1.
      wa_field1-fieldname = 'CURR'.
      wa_field1-tabname = 'T_INVOICE'.
      wa_field1-outputlen = '8'.
      wa_field1-col_pos = '6'.
      wa_field1-coltext = text-022."'Currency'.
      APPEND wa_field1 TO fcat1.
      CLEAR wa_field1.
      wa_field1-fieldname = 'DMBTR'.
      wa_field1-tabname = 'T_INVOICE'.
      wa_field1-outputlen = '13'.
      wa_field1-col_pos = '7'.
      wa_field1-coltext = text-017. "'Invoice Amount '.
      APPEND wa_field1 TO fcat1.
      CLEAR wa_field1.
      CLEAR wa_field1.
      wa_field1-fieldname = 'BLDAT'.
      wa_field1-tabname = 'T_INVOICE'.
      wa_field1-outputlen = '12'.
      wa_field1-col_pos = '8'.
      wa_field1-coltext = text-018. "'Date of Shipment'.
      APPEND wa_field1 TO fcat1.
      CLEAR wa_field1.
      CLEAR wa_field1.
      wa_field1-fieldname = 'DUEDT'.
      wa_field1-tabname = 'T_INVOICE'.
      wa_field1-outputlen = '13'.
      wa_field1-col_pos = '9'.
      wa_field1-coltext = text-019. "'Due Date Calculated'.
      APPEND wa_field1 TO fcat1.
      CLEAR wa_field1.
      CLEAR g_layout1.
      g_layout1-zebra = lc_x.
    g_layout-sel_mode = lc_a.
    *Prepare field catalog for all Payment Extract
      CLEAR wa_field2.
      wa_field2-fieldname = 'BUKRS'.
      wa_field2-tabname = 'T_PAYMENT'.
      wa_field2-outputlen = '12'.
      wa_field2-col_pos = '1'.
      wa_field2-coltext = text-002. "'Company Code'.
      APPEND wa_field2 TO fcat2.
      CLEAR wa_field2.
      CLEAR wa_field2.
      wa_field2-fieldname = 'KUNNR'.
      wa_field2-tabname = 'T_PAYMENT'.
    wa_field2-outputlen = '13'.
      wa_field2-col_pos = '2'.
      wa_field2-coltext = text-005. "'Customer Number'.
      APPEND wa_field2 TO fcat2.
      CLEAR wa_field2.
      CLEAR wa_field2.
      wa_field2-fieldname = 'NAME1'.
      wa_field2-tabname = 'T_PAYMENT'.
      wa_field2-outputlen = '13'.
      wa_field2-col_pos = '3'.
      wa_field2-coltext = text-007. "'Customer Name'.
      APPEND wa_field2 TO fcat2.
      CLEAR wa_field2.
      CLEAR wa_field2.
      wa_field2-fieldname = 'GJAHR'.
      wa_field2-tabname = 'T_PAYMENT'.
      wa_field2-outputlen = '11'.
      wa_field2-col_pos = '4'.
      wa_field2-coltext = text-015. "'Fiscal Year'.
      APPEND wa_field2 TO fcat2.
      CLEAR wa_field2.
      CLEAR wa_field2.
      wa_field2-fieldname = 'BELNR'.
      wa_field2-tabname = 'T_PAYMENT'.
      wa_field2-outputlen = '13'.
      wa_field2-col_pos = '5'.
      wa_field2-coltext = text-016. "'Invoice Number'.
      APPEND wa_field2 TO fcat2.
      CLEAR wa_field2.
      CLEAR wa_field2.
      wa_field2-fieldname = 'CURR'.
      wa_field2-tabname = 'T_PAYMENT'.
      wa_field2-outputlen = '11'.
      wa_field2-col_pos = '6'.
      wa_field2-coltext = text-022."'Currency'.
      APPEND wa_field2 TO fcat2.
      CLEAR wa_field2.
      wa_field2-fieldname = 'DMBTR'.
      wa_field2-tabname = 'T_PAYMENT'.
      wa_field2-outputlen = '13'.
      wa_field2-col_pos = '7'.
      wa_field2-coltext = text-017. "'Invoice Amount'.
      APPEND wa_field2 TO fcat2.
      CLEAR wa_field2.
      CLEAR g_layout2.
      g_layout2-zebra = lc_x.
    g_layout-sel_mode = lc_a.
    ENDMODULE.                 " fill_fcat  OUTPUT
    *&      Module  display_data  OUTPUT
          text
    MODULE display_data OUTPUT.
      g_layout3-variant = g_save.
      CALL METHOD sap_grid->set_table_for_first_display
         EXPORTING
          I_BUFFER_ACTIVE               =
          I_BYPASSING_BUFFER            =
          I_CONSISTENCY_CHECK           =
            i_structure_name              = 'gt_display'
            is_variant                    =  g_layout3
            i_save                        =  'A'
            i_default                     =  'X'
             is_layout                     = g_layout
          IS_PRINT                      =
          IT_SPECIAL_GROUPS             =
          IT_TOOLBAR_EXCLUDING          =
          IT_HYPERLINK                  =
          IT_ALV_GRAPHICS               =
          IT_EXCEPT_QINFO               =
         CHANGING
            it_outtab                     = t_bsid_bsad
            it_fieldcatalog               = fcat
          IT_SORT                       =
          IT_FILTER                     =
         EXCEPTIONS
           invalid_parameter_combination = 1
           program_error                 = 2
           too_many_lines                = 3
           OTHERS                        = 4 .
      IF sy-subrc <> 0.
        MESSAGE e145(z1).
      ENDIF.
      g_layout4-variant = g_save1.
      CALL METHOD sap_grid1->set_table_for_first_display
           EXPORTING
          I_BUFFER_ACTIVE               =
          I_BYPASSING_BUFFER            =
          I_CONSISTENCY_CHECK           =
            i_structure_name              = 'gt_display1'
            is_variant                    = g_layout4
            i_save                        = 'A'
            i_default                     = 'X'
            is_layout                     = g_layout1
          IS_PRINT                      =
          IT_SPECIAL_GROUPS             =
          IT_TOOLBAR_EXCLUDING          =
          IT_HYPERLINK                  =
          IT_ALV_GRAPHICS               =
          IT_EXCEPT_QINFO               =
           CHANGING
              it_outtab                     = t_invoice
              it_fieldcatalog               = fcat1
          IT_SORT                       =
          IT_FILTER                     =
           EXCEPTIONS
             invalid_parameter_combination = 1
             program_error                 = 2
             too_many_lines                = 3
             OTHERS                        = 4 .
      IF sy-subrc <> 0.
        MESSAGE e145(z1).
      ENDIF.
      g_layout5-variant = g_save2.
      CALL METHOD sap_grid2->set_table_for_first_display
         EXPORTING
          I_BUFFER_ACTIVE               =
          I_BYPASSING_BUFFER            =
          I_CONSISTENCY_CHECK           =
            i_structure_name              = 'gt_display2'
            is_variant                    =  g_layout5
            i_save                        =  'A'
            i_default                     = 'X'
            is_layout                     = g_layout2
          IS_PRINT                      =
          IT_SPECIAL_GROUPS             =
          IT_TOOLBAR_EXCLUDING          =
          IT_HYPERLINK                  =
          IT_ALV_GRAPHICS               =
          IT_EXCEPT_QINFO               =
         CHANGING
            it_outtab                     = t_payment
            it_fieldcatalog               = fcat2
          IT_SORT                       =
          IT_FILTER                     =
         EXCEPTIONS
           invalid_parameter_combination = 1
           program_error                 = 2
           too_many_lines                = 3
           OTHERS                        = 4 .
      IF sy-subrc <> 0.
        MESSAGE e145(z1).
      ENDIF.
    ENDMODULE.                 " display_data  OUTPUT
    *&      Module  exit  INPUT
          text
    MODULE exit INPUT.
      CALL METHOD g_custom_container->free.
      CLEAR t_bsid_bsad[].
      CALL METHOD g_custom_container1->free.
      CLEAR t_invoice[].
      CALL METHOD g_custom_container2->free.
      CLEAR t_payment[].
      LEAVE PROGRAM.
    ENDMODULE.                 " exit  INPUT
    *&      Module  user_command_1100  INPUT
          text
    MODULE user_command_1100 INPUT.
      MOVE g_ok_code TO g_saveok_code.
      CLEAR g_ok_code.
      CASE g_saveok_code.
    *on BACK leave program
        WHEN 'BACK'.
          CALL METHOD g_custom_container->free.
          CALL METHOD g_custom_container1->free.
          CALL METHOD g_custom_container2->free.
          CLEAR: g_custom_container,
                 g_custom_container1,
                 g_custom_container2.
         LEAVE PROGRAM.
         SET SCREEN 1000.
         CALL TRANSACTION 'Z5172'.
         CALL SELECTION-SCREEN 1000.
          set screen 0.
          leave screen.
    *on CANCEL leave program
        WHEN 'EXIT'.
          CALL METHOD g_custom_container->free.
          CALL METHOD g_custom_container1->free.
          CALL METHOD g_custom_container2->free.
          LEAVE PROGRAM.
    *on CANCEL leave program
        WHEN 'CANCEL'.
          CALL METHOD g_custom_container->free.
          CALL METHOD g_custom_container1->free.
          CALL METHOD g_custom_container2->free.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " user_command_1100  INPUT

  • Sharepoint 2013 - Search for link names on a single page

    Hi
    I am messing around with SP13 and trying to get my search result web part to only search for link names and display all results.
    I have created the search source to point at the sub site. If I search for part of a link name it will list all links in one long row as a single result.
    Example: One single page contains all links. Each link points to a .aspx page. The search source is pointing at this page and it can display results but only as a single result containing all links as one line of text.
    Say I have 1000+ links of which 50 has names such as Link1-Item1-Basket1, Link1-Item1-Basket2 up to Link1-Item1-Basket50.
    When I search for Link1-Item1 I would like my search results to display 50 results as 50 individual links.
    Is this possible?

    Hi,
    Yes, you can format the search results as you expected.  But you have to create a custom display template to format your results such as extract the links from each results and display it as separate link.
    Once display template created you have to map the display template to your search results web part.
    Please refer to the following articles.
    SharePoint 2013 Customize Display Template for Content By Search Web
    Part (CSWP) Part-1
    Introduction to SharePoint 2013 Display Templates
    Display Template Overview
    Please mark it answered, if your problem resolved.

  • How do I display PDF document as single pages on iPad?

    Hi,
    I have a company catalogue in PDF format, 20 pages long. We use Issuu to allow customer to view the catalogue on their PCs and mobile devices.
    In Issuu you can customise the embed widget to show single pages, and this works fine when viewing the catalogue on a PC. The problem arises when trying to view the catalogue on an iPad. It appears that the iPad automatically sets the PDF to view as a Facing Pages document. It doesn't matter if I'm using Safari, or the Atomic browser we have installed (so that we can hide the URL bar).
    I've created the document in inDesign as a single page document but the iPad still merges pages 2-3, 4-5, 6-7 etc.
    The iPads will be used in our retail stores so it's important that the set up and navigation is as simple as possible. The catalogue is placed within an iFrame on the page so that I can but a navigational banner at the top that easily takes customers back to the main menu page. It's important that the catalogue opens within the page. The Issuu embed widget for Tumblr, etc only creates a preview of the catalogue which then opens in a separate tab, which unfortunately will not be suitable to our needs.
    You can view the page here: http://www.eurocollections.com/block/catalogue.html
    I've tried a number of different options, I've written to Issuu but they were unable to help as it only seems to be an iPad-related problem.
    Any help or suggestions would be greatly appreciated.
    Kind regards,
    Peter

    The PDF viewers on the iPad do not understand customised widgets.  They understand the PDF format, exactly as it was designed by Adobe.  Instead of trying to use a custom solution, use the features which are provided by the PDF format.  Custom solutions work only for the situations that the company that wrote the custom solution wants them to work and they are a corruption of the normal way PDFs are used.
    In your situation I'd remove all dependency on any custom widgets from your PDF document.  Instead you can use links which allow you to click on a piece of text or an image in the PDF and the PDF software will take you to a different page.  This is part of the PDF standard and will work on all software capable of showing PDFs.  It is all your users should need to navigate from one part of your catalogue to another.  Whatever software you're using to create your PDF should give instructions on how to create links in your PDF document.
    Similarly your use of iFrames is a little stange.  If your material is on a web site, put it in web pages where you can use all the features web pages give you, including blue-underlined links to other pages.  If, instead, your material is in a PDF then put all the navigation in the PDF.  Don't try to depend on a strange interaction between the PDF and your web pages.

  • How to handle jquery and ajax call in single page application using coded ui

    Hi,
    I am facing a very tricky situation while using coded ui. My application interact with ajax and I was facing the issue to handle the ajax in the login page and other pages. I went through the post : http://stackoverflow.com/questions/17849074/jquery-ajax-success-not-getting-triggered-with-coded-ui-test-project 
    and got solution for my problem. Now when ever a ajax is getting called in the page its getting handle with app config file. However the issue I am facing right now is. 
    When i click on a button a window will appear which is actually a "div tag". Please see the image below. In  the that window when I have to select a item from drop down, the ajax will get called, however it will get called only for the window,
    it wont be called for the entire page.. i.e. it will update only the window. I am not able to handle this ajax call, script gets stuck in refresh state. I will request you guys to provide a work around for it.
    I would like to add more details - Visual studio version - 2013 update 3, IE11. 
    Application details: Its a single page application which uses bootstrap framework. All the ajax call are dynamic.
    Thanks in advance.

    Thanks for the reply.
    The window is not exactly a pop up window. Its a div tag in the same page. As this is my first time to work on  a single page application I am not sure how it works. For the entire page I am able to handle the ajax call however the action performed
    in the div tag is not getting handled.
    Code for the window, I am not sure to what extend will it be helpful.
    <div class="modal-content"><div class="modal-header"><div class="bootstrap-dialog-header"><div class="bootstrap-dialog-close-button" style="display: none;"><button class="close">×</button></div><div
    class="bootstrap-dialog-title">Move Item to different task [FocusAudit]</div></div></div><div class="modal-body"><div class="bootstrap-dialog-body"><div class="bootstrap-dialog-message"><div><div
    id="dashboard">
      <table class="TFtable">
        <tbody><tr>
          <td colspan="2">
                You are about to move the  24 selected item item to a different task. Select the task to which to move this item, (Optionally) enter notes about the task change, and click 'Change' to continue.
              </td>
        </tr>
        <tr>
          <td>Select New WorkFlow:</td>
          <td><select class="form-control" id="MA_workflow" onchange="ChangeWorkFlow()"><option value="647446014">Batches<option value="647446007">Claim<option value="647446065"
    selected="">Workflow1</option></select></td>
        </tr>
        <tr>
          <td>Select New Task:</td>
          <td><select class="form-control" id="MA_actions"><option value="647446025">BatchRebuild</option><option value="647446054">Complete</option><option value="647446039">DataIntegrityCheck</option><option
    value="647446038">FocusAudit</option><option value="647446053">FocusAuditMiner</option><option value="647446037">FocusAuditSelect</option><option value="647446055">LocationRouter</option><option
    value="647446029">MineForSBT</option><option value="647446022">OCRtoWebDE</option><option value="647446024">OnePass</option><option value="647446049">OnePassRouter</option><option
    value="647446050">OnePassUS</option><option value="647446060">QAuditImporter</option><option value="647446045">QIAutoAuditGrader</option><option value="647446058">QIAutoAuditInjector</option><option
    value="647446048">QIMiner</option><option value="647446040">QISampler</option><option value="647446056">QIVerify</option><option value="647446059">QIVerifyGrader</option><option
    value="647446047">QIVerifyUS</option><option value="647446021">RecoRules</option><option value="647446082">Review</option><option value="647446042">Router</option><option
    value="647446023">Validate</option><option value="647446081">Verify</option><option value="647446080">WebDEFileCreator</option></select></td>
        </tr>
        <tr>
          <td>Select New Status:</td>
          <td>
            <select class="form-control" id="MA_status">
              <option value="ready">Ready</option>
              <option value="reject">Rejected</option>
              <option value="hold">Held</option>
              <option value="ready">Keep Status From Original Task</option>
            </select>
          </td>
        </tr>
        <tr>
          <td colspan="2">Notes:</td>
        </tr>
        <tr>
          <td colspan="2">
            <textarea name="MA_statusnote" class="form-control" id="MA_statusnote" maxlength="250" rows="5" cols="40"></textarea>
          </td>
        </tr>
        <tr>
          <td style="text-align: right;" colspan="2">
            <input class="btn btn-default list-inline" id="btnSubmit" onclick="prepareData_MoveToAction();" type="button" value="Change">
            <input class="btn btn-cancel" id="btnCancel" style="padding-left: 5px;" onclick=" dialogInstance2.close();" type="button" value="Cancel">
          </td>
        </tr>
      </tbody></table>
      <div id="overlayDialog" style="display: none;">
        <div style="width: 100%; text-align: center;">
          <h1>Processing...</h1>
          <img src="Images/ajax-loader.gif">
        </div>
      </div>
      <div id="dData_MoveToAction" style="display: none;" data-itemcount="24" data-oldactionidno="647446079" data-oldstatus="ready" data-oldactionname="FocusAudit" data-fnparent="PS"></div>
    </div>
    <script id="scrpd" language="text/javascript">
      <!--
      var cworkflow =$('#MA_workflow option:selected').text();
       function initMoveToAction()
         function ChangeWorkFlow(){
           $('#overlayDialog').show(300);
        var _newworkflowname=$('#MA_workflow option:selected').text(); 
        if(cworkflow!=_newworkflowname)
         getItemType();
         cworkflow = _newworkflowname;
       function getItemType()
          var _workflowid=$('#MA_workflow option:selected').text();
           var formData = { workflowid: _workflowid}
            var sPage = './Handlers/GenericFn.ashx?action=getitemtype';
           $.ajax({
                    url: sPage,
                    type: "POST",
                    data: formData,
                    datatype: JSON,
                    success: function (data, textStatus, jqXHR) {
                    var newItemActions = jQuery.parseJSON(data);
                      $('#MA_actions').empty();
                      $.each(newItemActions, function(i, option) {
                   $('#MA_actions').append($('<option></option>').attr("value", option.Value).text(option.Key));
                         $('#overlayDialog').hide(300);
                    error: function (data) {
                      var error = jQuery.parseJSON(data.responseText)
                       SetProdSummary();
                       dialogInstance2.close();
                        ErrorMessage(error.ErrorCaption, error.ErrorDescription, error.IsCloseWindow);
            function prepareData_MoveToAction()
                 var ma_oldstatus, ma_oldactionname, ma_actionidno,ma_oldactionid, ma_statusNote,ma_itemNewStatus,ma_itemtotalno, ma_newworkflowname,ma_fnparen;
                    ma_itemNewStatus = $('#MA_status option:selected' ).val();
                    ma_actionidno=$('#MA_actions option:selected').val();
                    ma_newworkflowname=$('#MA_workflow option:selected').text();
                    ma_statusNote = $("#MA_statusnote").val();
                var params = $("#dData_MoveToAction");
                if (params.data("oldstatus"))
                    ma_oldstatus = params.data("oldstatus");
                if (params.data("oldactionname"))
                    ma_oldactionname = params.data("oldactionname");
                if (params.data("oldactionidno"))
                    ma_oldactionid = params.data("oldactionidno");
                 if (params.data("itemcount"))
                    ma_itemtotalno = params.data("itemcount");
                 if (params.data("fnparent"))
                    ma_fnparen = params.data("fnparent");
                var formData = { currentstatus: ma_oldstatus, oldactionid:ma_oldactionid,newstatus: ma_itemNewStatus, actionid: ma_actionidno, oldactionName:ma_oldactionname, statusnote: ma_statusNote,totalno:ma_itemtotalno,  newworkflowname:
    ma_newworkflowname,fnparent:ma_fnparen};            
                var sPage = './Handlers/ItemAction_MoveToAction.ashx?action=movetoaction';
                 $('#overlayDialog').show(300);
                  $('#btnSubmit').attr('disabled',true);
                  $('#btnCancel').attr('disabled',true);
                $.ajax({
                    url: sPage,
                    type: "POST",
                    data: formData,
                    datatype: JSON,
                    success: function (data, textStatus, jqXHR) {
                        SetProdSummary();
                        $('#overlayDialog').hide(300);
                       dialogInstance2.close();
                    error: function (data) {
                      var error = jQuery.parseJSON(data.responseText)
                       SetProdSummary();
                       dialogInstance2.close();
                        ErrorMessage(error.ErrorCaption, error.ErrorDescription, error.IsCloseWindow);
          -->
    </script></div></div></div></div><div class="modal-footer" style="display: none;"><div class="bootstrap-dialog-footer"></div></div></div>
    I agree the point the UI has to be active or else the script will have issue during the playback. In my scenario I have to work on that window. I have to perform action on it. Now when the window(div thing) comes up the page in the background goes disable
    till the action is performed on the window or the window is closed. I have to perform action on it then only I can proceed with the TC automation. Please let me know any option to solve this problem.
    Thanks 
    Ahetejazahmad Khan.

  • Multiple file links in a single page: A better way to/efficient way to handle ?

    Aloha Everyone!
    I would like to ask the community how they have handled multiple file links in a single page. Sort of a pseudo database of files.
    Here is the webpage I have been working on:http://huichawaii.org/
    Here is what I have done to show files so far:
    old version:http://huichawaii.org/proceedings---2012-education%2c-math---engineering-technology.html
    new version: http://huichawaii.org/ahs2013-proceedings.html
    The website works best in Chrom or Firefox, still have to convert the flash header to an edge animate .
    Mahalo in advance for everyone's input!

    Depending on what other text you might have, you could use the data list component.
    To get the text to have underlines, you will need to edit the repeated item. You can also adjust colors and fonts as well. The default rollover and selected states will probably not be the UI that want, so make sure you change those as well.
    Now for the interactivity, select the datalist, and use the interactions panel, choose "On Select", then "Go To Url", the trick is to make sure the "When a specific item is selected" is also set. Here are the basic settings to get your links working:
    Add new interactions for each item you want to be functional.

  • How do i change the display in ADE to a single page view instead of two pages side by side? I find it distracting and prefer to look at one page at a time.

    How do i change the display in ADE to a single page view instead of two pages side by side? I find it distracting and prefer to look at one page at a time.

    You can increase the font size and automatically page view changes. Go to menubar; Reading -> PDF View or Epub Text Size (depending upon the ebook) and increase the size.

  • Deleting a Single Page in Pages '09

    I created a two-page text document in Pages '09 with headers/footers and Pages added a THIRD blank page (with header/footer) that I DO NOT WANT. When I attempt to delete a page, the ONLY option Pages gives me is to delete ALL THREE PAGES. Is the any way that just a SINGLE page can be deleted? Thanks so much for letting me know because this is SO FRUSTRATING!!!

    Pages doesn't "see" a page as you & I do. Pages sees logical pages, separated by section breaks, rather than physical pages. You can see this by showing thumbnails, View > Show Page Thumbnails, & then clicking on a page thumbnail. The yellow border around groups of pages shows the logical page. You need to insert section breaks before & after the physical pages to separate them. Then, with the cursor in the body of page three, use the section tab of the layout inspector & uncheck user previous headers & footers.

  • How to use a single page for create and update mode.

    Hi,
    I need to develop a single page to be used for both create and update modes.
    I am going to use a variable MODE
    and i will set this in the emp summary page.
    Based on the button clicked by the user i have to render the JSF page.
    For tis if the user selects a perticular and cliks on update thn i will pass the empno to the next.
    so there in the next i will appy a ViewCreiteria on my View Obj to fetch only that row so that only that emp will be displayed ion update mode.
    This is working fione for me.
    So now the issue is
    when the user clicks on CreatEmp button.
    i need to enable my VO for insert operations.
    for this i wrote the code like this in the beforePhase event
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding valBinding = ctx.getApplication().createValueBinding("#{data}");
    BindingContext bContext = (BindingContext) valBinding.getValue(ctx);
    DCDataControl dcControl = bContext.findDataControl("DataControl");
    Application app = ctx.getApplication();
    ApplicationModule am = (ApplicationModule) dcControl.getDataProvider();
    System.out.println("After Appmodule initiation");
    // get the VO reference and initiate the query
    System.out.println("Before Page VO initiation");
    PrismDmPageSectionViewImpl vo = (ViewImpl)am.findViewObject("View");
    //ViewRowImpl row = (ViewRowImpl) vo.createRow();
    /* TO CREATE AN EMPTY ROW*/
    Row row=vo.createRow();
    System.out.println("New Row is created");
    //vo.createKey(row);
    vo.insertRow(row);
    vo.setCurrentRow(row);
    By doing this a new empty page is rendered.
    But when i fill up the values and click on ok.. i am getting the error like this..
    JBO-27023: Failed to validate all rows in a transaction.
    JBO-27027: Missing mandatory attributes for a row with key null of type View3
    JBO-27014: Attribute Id in View3 is required
    JBO-27014: Attribute PageeId in View3 is required
    Please point me out where i am missing.
    Thanks

    Hi,
    In my opinion you are over complicating things.
    This is what I do for using the sme page as both create and update without all this code.
    1) Create a browse page containing a an adf table with a select one component bound to your view object.
    2) Create an additional edit page containing only an edit form containing fields of your view object that your users must enter in order to add or edit rows.
    3) Link the pages in the JSF diagram with an "edit" navigation case from browse to edit page and a "return" navigation case from edit to browse (make sure that redirect option is NOT set on both cases)
    4) Remove the submit button from the edit page and add two application module bindings for the commit and rollback operations as command buttons in the form footer facet. Make sure that both buttons has an action of return and that their disabled property is set to false. You will probably change their labels to ok and cancel respectively.
    5) Drop a create action for your view object from the data control palette inside your page as a command button and set the action property to edit also.
    3) Set the action property of the view button to edit
    This should basically work without any code from your part. -- at least it does so for me -- if you like to make it a bit more funcy you may add am action listener inside your buttons and set a requeScope variable for example #{requestScope.editing} to true or false depending on the button clicked. Then add a title to your page with a value like #{requestScope.editing == true ? 'Editing record' : 'Adding a new record'}..
    Hope that helps.
    Thanassis

  • Combining Contents of 2 PDFs into a single page PDF

    I need to combine elements of two different PDFs into one, single page PDF.   
    One PDF is Template of sorts with headers to be edited, the other PDF is a non-ocr scan that includes text and images.   
    I've found no way to copy and paste on a single page b.t two PDFs. I've tried pasting into an inserted page and then dragging it up or cutting and pasting within the document (with the intention of deleting the unneeded second page) with no luck.
    This seems like it should be such a no brainer. Open 1st PDF, Open 2nd PDF, make selection Ctrl C, go to 1st PDF, place cursor where desired, Ctrl V.   But it doesn't work at all in an intuitive way like any other document program where you can cut and paste with ease b/t documents and even b/t programs.
    So instead, I've copied the part of the image PDF I want into the original word doc of the template, then created a PDF from that.  However, when I try to tell Acrobat to make the entire document OCR, it tells me it can’t b/c it contains renderable text (the header information, I’m assuming).  If I run the OCR on a PDF containing just the image, it does it no problem.   
    What is the best way to bring these two documents together in way that results in a single page, completely searchable PDF? 

    Unfortunately, another $700 software purchase is not in the cards and I can’t wrap my mind around why it should be necessary.  It seems so nonsensical to me that Acrobat has all these advanced functions for editing, combining, making portfolios etc., yet can not perform the simple task of cutting and pasting between two documents.
    While Adobe support was putting me on hold, I doodled up some generic sample documents that I could upload here to illustrate the problem. Hopefully, someone can play with these and give me a workable solution.
    The first PDF, Original Acme Clip, represents the file that is provided to me by our clipping service. They cut the item out of a magazine, put the customized info into their standard template in whatever word processing program they use, printed it out, pasted the magazine clip to that page and then scanned the hard copy to PDF-as an image only PDF, it is not optimized for optical character recognition and is not searchable.
    The second PDF, Final Acme PDF, represents the file that our workflow eventually ends up as-a PDF containing only the info we want, formatted as we want, in which both the headers and clip content are searchable. To get there currently, we print out the Original ACME Clip, type the relevant info into the headers of a Word template that includes our logo and standard footer, print out the Word template page, manually cut out the scanned image from the PDF, and paste it onto the template paper.  The resulting paper is scanned into the Final Acme PDF and OCR is run on the whole thing to make it all searchable.
    What we’d like to do is skip all the printing, and manual cutting and pasting. Any and all suggestions for work in Acrobat 9 Pro to do this would be gratefully appreciated!

Maybe you are looking for

  • IPhone 6 Canada Rogers will work on USA T Mobile LTE?

    Hey All, I have an iPhone 6 with Rogers in Canada. I'm moving to the States in a few months and I would like to know if I will be able to use my iPhone 6 with T Mobile's LTE service. Rogers said they will unlock my phone for INTERNATIONAL use. But I'

  • Z10 Bluetooth error: "Failed to find service"

    1. I tried to transfer a file from my Z10 to Macbook Air (Mac OS Mavericks). 2. When I select a file and then try to send it through Bluetooth - i get a message: "Failed to find service" 3. I have checked all settings on Macbook and Z10 are ok. 4. I

  • Updated to iOS 7 and now car controls don't work

    I recently updated my iPhone 5 to iOS 7, and now it no longer works properly with my vw golf sound system. I used to be able to plug it in and control it through the touch screen in my car, but now everything is jumbled and the controls don't work. P

  • Rename node in process chain

    In the process chain in left side screen I need to change Node name descript. "Not Assigned" to "New Name". Please advice how to do that ?. Thanks Liza

  • HTML Export Content Ordering Problem

    I've inherited a collection of InDesign files and PDF files that have been exported from them.  I'd like to convert everything to HTML.  The InDesign export process is working fine for most files, but for a few, I am getting my content's order re-arr