Window title -using parameter

i am wondering how i can change the window title using the parameters that i pass to this particular form.
I would like for my window title be something like:
Edit Site: :parameter.fac for :parameter.date
~Vannette

It is not clear on which Operating system you are running your forms. If it is Windows then if you are trying to set 'TITLE' for the main window (In windows forms run inside MDI Application Window)
Then use
Set_Window_Property(FORMS_MDI_WINDOW,TITLE, Edit Site: ||:parameter.fac|| for ||:parameter.date );
And it should work.

Similar Messages

  • How to set window title using cfdocument format="FlashPaper" ?

    Does anyone know how to set the the browser window title when using:
    <cfdocument format="FlashPaper">
    #docContent#
    </cfdocument>
    The variable docContent is a fully formed html document, complete with <head> and <title> elements, yet <cfdocument> doesn't pick up the title I've specified. I'm wondering if anyone has done this before???
    Thanks!

    Yes, I tried that, but <cfdocument> replaces any content that I add. I cannot view the source for the page, but at least according to FireBug, when I view the page contents, I get:
    <html>
    <head>
    <title>print.cfm - print.cfm (application/x-shockwave-flash Object)</title>
    </head>
    <body marginwidth="0" marginheight="0">
    <embed width="100%" height="100%" type="plugin" src="http://127.0.0.1/tss/print.cfm?id=expeditions_staff&start=1" type="application/x-shockwave-flash">
    </body>
    </html>

  • Any pitfalls in using parameter driven views ?

    I suppose the exec dbms_application_info.set_client_info('xxxx') will remain active only for the session and will be cleaned up at the end of the session.
    I am working on oracle 9i.

    I'm not sure what the title-- using parameter driven views-- has to do with the DBMS_APPLICATION_INFO package...
    The information that DBMS_APPLICATION_INFO sets is at a session level. Once the session ends, that data disappears.
    If you are trying to build a parameter driven view, however, you're better off using application contexts.
    Justin

  • Question about Setting Window Title/the use of AVWindowSetTitle()

    Hi everyone,
    I have a question about setting the title of the window in which the Acrobat viewer normally opens a PDF file.  The documentation states that AVWindowSetTitle() cannot be used in this case.  However, using it has worked with versions of Acrobat/Reader up until and including version 8.
    Everything breaks down starting with Acrobat 9.
    According to the documentation I am supposed to do the following: "To set the title of a window in which the Acrobat viewer opens a PDF file, you must replace AVDocOpenFromASFileWithParams() and pass the window title in tempTitle."
    Unfortunately, there are 2 problems I have with this approach:
         I do need to be able to change the document title on document Save, not only on document Open
         I do not know what AVDocOpenFromASFileWithParams() implementation has to look like if I have to replace it using HFTReplaceEntry().
    Is there a sample customized implementation of AVDocOpenFromASFileWithParams() somewhere that I could take a look at?
    Is there a way to change a document Title inside Acrobat/Reader window after a Save operation?
    Thanks a million,
      Lana2010K

         I am sorry.  I don't know how you tested this and came to conclusion that this works correctly in Acrobat X.
         I just tested our Acrobat plug-in with a trial version of Acrobat X and this did not work.
         When we open a file in Acrobat (doing it ourselves in the plug-in by adding another specialized open) we set the window title to something different from the default file name.  Then if a file gets edited and saved (File->Save), the window title gets reset to the file name. In the PDDocDidSave callback we call AVWindowSetTitle() to set it back to a more descriptive window title we need.  This has worked up until and including Acrobat 8, but does not work in either version 9.0 or 10.0.
         Also, I just modified the plug-in code to always change the Window Title of every document (even if opened through native File->Open) on document Save.  It does not work.
         Please help,
              Lana2010K

  • I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    Click on it, choose Get Info from the File menu, and check the format.
    If it's formatted as NTFS, reformat it as MS-DOS, exFAT, or Mac OS Extended (Journaled) as desired, or install software such as Paragon NTFS on the computer.
    If it's formatted as FAT32 or exFAT, use the Disk Utility's Repair Disk command on it; this may also happen for a flash drive which is about to fail.
    If it's formatted as Mac OS Extended, click Authenticate and provide your administrator password, or change the permissions on that specific folder in its Get Info window.
    (109318)

  • Window.open() will open separated windows even using the same window name?

    Hi, I have below two test html pages as below(could not find a way to insert a attachment, so paste the content below). The reproduce step is as below: (My environment is Win8.1 with IE11)
    1. Open print_test.html page in IE, here we call page1.
    2. Click "File -> New Session" menu from IE menu bar, which will open another new IE window which display another " print_test.html" page, here we call page 2.
    3. Click "Print" hyper-link in page1, and a popup window which display "print_test_open.html" page, counting begins from 1, here we call it page 3.
    4. Click "Print" hyper-link in page2, and another popup window which display "print_test_open.html" page, counting begins from 1, here we call it page 4.
    However, the behavior above is totally different on my Win7 (64 bit) with IE 10, which is in step 4, when I click "Print" hyper-link in page2, instead of open a new popup window, the window for page 3 will be reused and counting will restart from
    1.
    I googled and know from MDN for window.open() and get below information to indicate that in my test pages, I use the same window name, so that the existed window with the same name will be reused is as expected, but however, why IE behave differently in
    Win8.1 with IE 11? Why the existed window could not be reused anymore?
    If a window with the name strWindowName already exists, then, instead of opening a new window, strUrl is loaded into the existing window. In this case the return value of the method is the existing window.
    The behavior in Win8.1 + IE 11 is similar with what Google Chrome does, and Chrome's explanation is that two separated window using separated processes which do no share information, so that even using the same window name. twp separated windows will
    popup.. So I am confused here, IE 10 and IE 11 are both using multi-process mechanism right? I saw from the Windows Task Manager, when using "File -> New Session" to open another print_test.html page in step 2. both IE 10 and IE 11 are opening
    4 iexplore.exe processes, two of them are 64 bit, and two of them are 32 bit. I can't see any configuration difference between these two envs, but why the behavior is so different? 
    Could anyone give some help and clarify here? Great thanks in advance.
    Oh, btw, another colleague can reproduce the issue (open separated windows even using the same window name) in his Win7 64 bit with IE 10 env, but could not reproduce in his Win 32 bit with IE 10 env... Hope this information could also do help.
    ======================== Test pages ===============================
    (1) print_test.html
    <!DOCTYPE html>
    <html>
    <head>
    <title>Print test</title>
    <head>
    <body>
    <h1>Print test</h1>
    <p><a href="javascript:void(0)" onclick='window.open("print_test_open.html", "test");'>Print</a></p>
    <p><a href="javascript:void(0)" onclick='window.open("print_test_open.html", "test"); myWindow.location.reload(true);'>Print (force refresh)</a></p>
    </body>
    </html>
    (2) print_test_open.html
    <!DOCTYPE html>
    <html>
    <head>
    <title>Open</title>
    <head>
    <body>
    <h1>
    <div id="count">Test</div>
    </h1>
    <p>Test</p>
    <script type="text/javascript">
    var e = document.getElementById("count");
    sessionStorage['count'] = 0;
    function timedCount() {
        i = sessionStorage['count'];
        i++;
        sessionStorage['count'] = i;
        e.innerHTML = "Count: " + i;
        setTimeout(function(){timedCount()},100);
    timedCount();
    </script>
    </body>
    </html>

    Hi,
    please try in noAddons mode and with the IE Popup blocker turned off. Also ensure you are using the default IE Security zone settings. Internet Options>Security tab, click "Reset all zones to default"
    To debug your scripts in IE11.
    Tools>Internet Options>Advanced tab, check "Always record developer console messages".
    start your test and display the developer tool console to display suppressed errors and warnings.
    (I don't see where myWindow is assigned).
    "If a window with the name strWindowName already exists, then, instead of opening a new window, strUrl is loaded into the existing window. In this case the return value of the method is the existing window."
    window.open has an optional 'replace' parameter...
    http://msdn.microsoft.com/en-us/library/ie/ms536651(v=vs.85).aspx
    to reuses a tab or window
    window.open({url},[name],[placement],[replace])
    If possible can you please provide a publicly accessible link to your test pages as we need to inspect the response headers to monitor what is cached.
    or
    f12>Networking tab, click 'Start' button, then proceed with your test plan.
    Regards.
    Rob^_^

  • ADF launchDialog and window title

    Hello there
    is it possible to set Window title for dialog opened via
    AdfContext launchDialog?
    I am redirecting dialog to another servlet out of Faces context to show some pdf files in the browser.
    What properties are supported for the window properties parameter, except width and height?
    ferdo

    I used the handleLaunch method and then set up the url along with parameters that generates the pdf report:
    public void handleLaunch(LaunchEvent launchEvent){
    parametros = "P_CD_PARCEIRO=" + (codParceiro.getValue()==null?"":codParceiro.getValue()) + "&P_DT_INICIO=" + dtInicio + "&P_DT_FIM=" + dtFim +
    "&P_TP_DOCUMENTO=" + tpDocumento.getValue() + "&P_NU_DOCUMENTO=" + this.retiraMascaraCampo((String)("2".equals(tpDocumento.getValue())?numeroDocumentoCNPJ.getValue():numeroDocumentoCPF.getValue())) +
    "&P_CD_BANCO=" + codigoBanco.getValue() + "&P_CD_AGENCIA=" + codigoAgencia.getValue() +
    "&P_NU_CHEQUE=" + numeroCheque.getValue() + "&P_CD_CLIENTE=" + codigoUnidadeServico.getValue();
    String url = resource.getString("historicocobranca.url") + parametros;
    //Set the url value into the report page (Dialog)
    Object urlObj = url;
    launchEvent.getDialogParameters().put("url", urlObj);

  • Personal customisation of page title using liquid

    Hello all,
    I am looking to customise the title of the webpage so that the top of the browser window will be personalised based on a parameter passed through the url.
    I am trying this:
            {% for listing in MDListings.items %}
            {% if {{globals.get.MID}} == {{listing.itemid}} %}
            {% assign pagetitle = {{listing.name}} %}
            {% endif %}{% endfor %}
            <title>{{pagetitle}}</title>
    When I insert it into the <head> portion and update the page, the whole chunk will move to the body automatically.
    When I run the liquid script in the body the output is fine.
    So my question is, how do i change the page title using liquid? Or is there another way to do so if liquid is not needed/recommended?
    Would someone enlighten me about this? Thanks!!

    Hi Liam,
    What I'm trying to do is to display a webapp on a custom page NOT using the module_webapps detail layout. This is because I need to produce results from 2 different categories and I'm using a connector webapp to link the categories to the webapp listing.
            {module_webapps id="" render="collection" collection="MDListings" template="" filter="all"}         {module_webapps id="" render="collection" collection="MDCategories" template="" filter="all"}         {module_webapps id="" render="collection" collection="MDConnectors" template="" filter="all"}         {% for listing in MDListings.items %}                {% if globals.get.MID == listing.itemid %}                   {% assign pagetitle = listing.name %}                                     {% endif %}         {% endfor %}        OR         {module_webapps id="" render="collection" collection="MDListings" template="" filter="all"}         {module_webapps id="" render="collection" collection="MDCategories" template="" filter="all"}         {module_webapps id="" render="collection" collection="MDConnectors" template="" filter="all"}         {% for listing in MDListings.items %}                {% if globals.get.MID == listing.itemid %}                   {% assign pagetitle = listing.name %}                  {% endif %}         {% endfor %}          
    So this content here is inside the html file that I have which I am going to use as the custom page for displaying the listing. I'm extracting the ID through the URL, then searching through the webapp list for the specific item, then extracting the information from that item.
    I can extract those information easily, however I want to make use of the name of that item and modify the page title which will change the browser page name. However when i do it in the above method, the browser will display {{listing.name}} in the first method and {{pagetitle}} in the second.
    I'm wondering if i am doing this correctly, or is there an easier way to do whatever I'm doing?

  • Displaying  Window Title Dynamically

    Hi Gurus,
    I have to display window title which is coming from T100 table. Based on the entered message number from t100 table i need to display the respective messagetext from  respective messageno from T100 table.Please let me know how to display window title dynamically from table T100.
    Points will be rewarded
    Thanks,
    Kishor

    Rather than reading from T001, you can just use the "message" verb to get the content and variable substitution done for you... so this may help:
    report zlocal_jc_sdn_titlebar1.
    data:
      g_title                 type sy-ucomm.
    parameter:
      p_gday                  type sy-datum.
    * Events:
    initialization.
      perform initialization.
    at selection-screen output.
      set titlebar 'MY_TITLE' with g_title. "MY_TITLE just contains &
    *&      Form  initialization
    form initialization.
      message e398(00) with 'Hello' sy-uname 'today is' sy-datum
        into g_title.
    endform.                    "initialization
    Jonathan

  • How to read browser(window) title in jsp?

    Hi,
    I need to read/find window title in my jsp code. Is there any method/way using which I can find window title?
    I can read it in javascript using window.document.title but as we know that we can not use javascript inside jsp, I am not able to use this method.
    Any help will be appriciated.
    Rohit

    Is your decision based upon the title of the page you are generating or the title of the page you have just come from?
    In either case, basing logic off of a window title sounds like a potential for trouble to me.
    If you want to make a decision, then send a parameter for the web application to react to.
    You can't get the window.title of the previous page.
    You are generating the current page, so you should already KNOW what the title of that page is right? You just printed it!
    Potential alternatives which are roughly equivalent:
    request.getHeader("referer") gets the url of the page that sent you to this one
    request.getRequestURI gets the jsp being currently executed.
    request.getAttribute("javax.servlet.forward.request_uri") will get you the original uri that was requested (assuming the page has been forwarded)
    Cheers,
    evnafets

  • [DWM] How to get window titles (w/xprop?)

    I'm trying to expand my "switch-to-tag"-script to include window titles, but have stumbled upon something I can't understand:
    If I issue "xprop" (with no arguments), and click on my firefox-window, I get the following output:
    user@host $ xprop (click on firefox window)
    _NET_WM_USER_TIME(CARDINAL) = 6193278
    WM_STATE(WM_STATE):
    window state: Normal
    icon window: 0x0
    WM_HINTS(WM_HINTS):
    Client accepts input or input focus: True
    Initial state is Normal State.
    bitmap id # to use for icon: 0x14000aa
    bitmap id # of mask for icon: 0x14000ab
    window id # of group leader: 0x1400001
    WM_WINDOW_ROLE(STRING) = "browser"
    XdndAware(ATOM) = BITMAP
    _MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
    [[ !! HUGE ASCII ICON WAS DELETED TO SAVE SPACE HERE !! ]]
    _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 20971689
    _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
    _NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x14000a8
    WM_CLIENT_LEADER(WINDOW): window id # 0x1400001
    _NET_WM_PID(CARDINAL) = 873
    WM_LOCALE_NAME(STRING) = "C"
    WM_CLIENT_MACHINE(STRING) = "allotria"
    WM_NORMAL_HINTS(WM_SIZE_HINTS):
    program specified minimum size: 1 by 63
    program specified maximum size: 32767 by 32767
    window gravity: NorthWest
    WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
    WM_CLASS(STRING) = "Navigator", "Firefox"
    WM_ICON_NAME(STRING) = "How do I get the active window title into a script? (Page 1) / Applications & Desktop Environments / Arch Linux Forums - Mozilla Firefox (Private Browsing)"
    _NET_WM_ICON_NAME(UTF8_STRING) = "How do I get the active window title into a script? (Page 1) / Applications & Desktop Environments / Arch Linux Forums - Mozilla Firefox (Private Browsing)"
    WM_NAME(STRING) = "How do I get the active window title into a script? (Page 1) / Applications & Desktop Environments / Arch Linux Forums - Mozilla Firefox (Private Browsing)"
    _NET_WM_NAME(UTF8_STRING) = "How do I get the active window title into a script? (Page 1) / Applications & Desktop Environments / Arch Linux Forums - Mozilla Firefox (Private Browsing)"
    So that worked alright. However, if I feed the ID of the window (0x1400001) to xprop, I get the following:
    user@host $ xprop -id 0x1400001
    WM_CLASS(STRING) = "firefox", "Firefox"
    WM_COMMAND(STRING) = { "firefox" }
    _NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x1400002
    WM_CLIENT_LEADER(WINDOW): window id # 0x1400001
    _NET_WM_PID(CARDINAL) = 873
    WM_LOCALE_NAME(STRING) = "C"
    WM_CLIENT_MACHINE(STRING) = "allotria"
    WM_NORMAL_HINTS(WM_SIZE_HINTS):
    program specified size: 10 by 10
    WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING
    WM_ICON_NAME(STRING) = "firefox"
    _NET_WM_ICON_NAME(UTF8_STRING) = "firefox"
    WM_NAME(STRING) = "Firefox"
    _NET_WM_NAME(UTF8_STRING) = "Firefox"
    There's no title in that output, even though I saw it by clicking - How come? And how do I grab the correct window title from a window id?
    Last edited by graph (2013-05-05 08:18:10)

    man xprop wrote:If the desired window is not the root window, it may be selected in two ways on the command line, either by id  number such as might be obtained from xwininfo, or by name if the window possesses a name.
    The id you obtained from xprop is the WM_CLIENT_LEADER, also listed in the WM_HINTS as the group leader. So that appears to be something like a root window for Firefox, not necessarily the one you see (with the title you want).

  • How to use parameter id in report

    dear all
    please solve this problem
    i use parameter id in alv report and i call another report i m unable to pass parameter to another report
    regards
    abhilash

    Hi,
    Here is the example
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          gt_events     type slis_t_event,
          gd_prntparams type slis_print_alv.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform build_events.
    perform build_print_params.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you  more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
                  I.e. Field type may be required in-order for
                       the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    gd_layout-totals_only        = 'X'.
    gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
                                            "click(press f2)
    gd_layout-zebra             = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text       = 'helllllo'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
                i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
                it_events               = gt_events
                is_print                = gd_prntparams
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
      from ekpo
      into table it_ekko.
    endform.                    " DATA_RETRIEVAL
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    Form top-of-page.
    *ALV Header declarations
    data: t_header type slis_t_listheader,
          wa_header type slis_listheader,
          t_line like wa_header-info,
          ld_lines type i,
          ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'EKKO Table Report'.
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table it_ekko lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.
          FORM USER_COMMAND                                          *
          --> R_UCOMM                                                *
          --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Check function code
      CASE r_ucomm.
        WHEN '&IC1'.
      Check field clicked on within ALVgrid report
        IF rs_selfield-fieldname = 'EBELN'.
        Read data table, using index of row user clicked on
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
        Set parameter ID for transaction screen field
          SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
        Sxecute transaction ME23N, and skip initial data entry screen
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDCASE.
    ENDFORM.
    *&      Form  BUILD_EVENTS
          Build events table
    form build_events.
      data: ls_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = gt_events[].
      read table gt_events with key name =  slis_ev_end_of_page
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_PAGE' to ls_event-form.
        append ls_event to gt_events.
      endif.
        read table gt_events with key name =  slis_ev_end_of_list
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_LIST' to ls_event-form.
        append ls_event to gt_events.
      endif.
    endform.                    " BUILD_EVENTS
    *&      Form  BUILD_PRINT_PARAMS
          Setup print parameters
    form build_print_params.
      gd_prntparams-reserve_lines = '3'.   "Lines reserved for footer
      gd_prntparams-no_coverpage = 'X'.
    endform.                    " BUILD_PRINT_PARAMS
    *&      Form  END_OF_PAGE
    form END_OF_PAGE.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      write: sy-uline(50).
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    *&      Form  END_OF_LIST
    form END_OF_LIST.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    Regards
    Mudit

  • How to add entire new row at the top of table in pdf report from c# windows forms using iTextSharp

    Hi for past 3 days i was thinking and breaking my head on how to add entire new at top table created in pdf report from c# windows forms with iTextSharp.
    First: I was able to create/export sql server data in form of table in pdf report from c# windows forms. Given below is the code in c#.
    using System;
    using System.Collections.Generic;
    using System.Configuration;
    using System.Text;
    using System.Data;
    using System.IO;
    using System.Data.SqlClient;
    using System.Windows.Forms;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    namespace DRRS_CSharp
    public partial class frmPDFTechnician : Form
    public frmPDFTechnician()
    InitializeComponent();
    private void btnExport_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer= PdfWriter.GetInstance(doc, new FileStream("Technician22.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(7);
    table.TotalWidth=585f;
    table.LockedWidth = true;
    PdfPTable inner = new PdfPTable(1);
    inner.WidthPercentage = 115;
    PdfPCell celt=new PdfPCell(new Phrase(new Paragraph("Institute/Hospital:AIIMS,NEW DELHI",FontFactory.GetFont("Arial",14,iTextSharp.text.Font.BOLD,BaseColor.BLACK))));
    inner.AddCell(celt);
    Paragraph para = new Paragraph("DCS Clinical Report-Technician wise", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK));
    para.Alignment = iTextSharp.text.Element.TITLE;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(95f, 95f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn=new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select t.technician_id,td.Technician_first_name,td.Technician_middle_name,td.Technician_last_name,t.technician_dob,t.technician_sex,td.technician_type from Techniciandetail td,Technician t where td.technician_id=t.technician_id and td.status=1", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("ID");
    table.AddCell("First Name");
    table.AddCell("Middle Name");
    table.AddCell("Last Name");
    table.AddCell("DOB" );
    table.AddCell("Gender");
    table.AddCell("Designation");
    while (dr.Read())
    table.AddCell(dr[0].ToString());
    table.AddCell(dr[1].ToString());
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString());
    table.AddCell(dr[4].ToString());
    table.AddCell(dr[5].ToString());
    table.AddCell(dr[6].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(inner);
    doc.Add(table);
    doc.Close();
    The code executes well with no problem and get all datas from tables into table in PDF report from c# windows forms.
    But here is my problem how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    As the problem i am facing is my title or Header(DCS Clinical Report-Technician wise) is at top of my image named:logo5.png and not coming to it's center position of my image.
    Second the problem i am facing is how to add new entire row to top of existing table in pdf report from c# windows form using iTextSharp?.
    given in below is the row and it's data . So how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    as you can see how i create my columns in table in pdf report and populate it with sql server data. Given the code below:
    Document doc = new Document(PageSize.A4.Rotate());
    var writer= PdfWriter.GetInstance(doc, new FileStream("Technician22.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(7);
    table.TotalWidth=585f;
    table.LockedWidth = true;
    Paragraph para = new Paragraph("DCS Clinical Report-Technician wise", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK));
    para.Alignment = iTextSharp.text.Element.TITLE;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(95f, 95f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn=new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select t.technician_id,td.Technician_first_name,td.Technician_middle_name,td.Technician_last_name,t.technician_dob,t.technician_sex,td.technician_type from Techniciandetail td,Technician t where td.technician_id=t.technician_id and td.status=1", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("ID");
    table.AddCell("First Name");
    table.AddCell("Middle Name");
    table.AddCell("Last Name");
    table.AddCell("DOB" );
    table.AddCell("Gender");
    table.AddCell("Designation");
    while (dr.Read())
    table.AddCell(dr[0].ToString());
    table.AddCell(dr[1].ToString());
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString());
    table.AddCell(dr[4].ToString());
    table.AddCell(dr[5].ToString());
    table.AddCell(dr[6].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    So my question is how to make my column headers in bold?
    So these are my questions.
    1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?
    I know that i have to do some modifications to my code but i dont know how to do it. Can anyone help me please.
    Any help or guidance in solving this problem would be greatly appreciated.
    vishal

    Hi,
    >>1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?<<
    I’m sorry for the issue that you are hitting now.
    This itextsharp is third party control, for this issue, I recommended to consult the control provider directly, I think they can give more precise troubleshooting.
    http://sourceforge.net/projects/itextsharp/
    Thanks for your understanding.
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get User Id in every window title bar at runtime

    Hi people
    How can i get Userid in the window title bar at runtime
    prasanth a.s.

    If running on the web you can use webutil or SET_WINDOW_PROPERTY (title). You can use GET_APPLICATION_PROPERTY(usename) as well.
    More info in the Help.
    Regards
    Grant Ronald
    Forms Product Management

  • How to hide the window of Runtime Parameter Form?

    I have a form and I call a report from this form.I have passed some parameters to this report.Before the browser of reports appear the window of Runtime Parameter Form.I want to hide this window of Runtime Parameter Form but I don't know how.
    Please help me!

    When calling the report, set the property PARAMFORM to NO. IF you using parameter list to pass values to report you can do as follows:
    ADD_PARAMETER(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');

Maybe you are looking for

  • Repeat request 4 help - iTunes 6.0 not recognizing purchased

    I'm re-posting this question, hoping for help... thanks! iTunes 6.0 software not recognizing purchased songs ( msg # 1.: Posted Oct 15, 05 9:14 pm ) Good Evening, I had written for help before, but couldn't get the 5.0.1 problem resolved. There was g

  • I am unable to join my existing wireless network with new AirPort Express

    I am unable to join my existing wireless network with new AirPort Express. I am using a DLink DI-524 Router, Windows 7 (64), and the AirPort Express. AirPort Utility will not recognize the AEX wirelessly, it will only recognize it when it is connecte

  • No connection between computer and Ipod.. Very strange

    Hi, (i'm typing this message for a friend of mine) A couple of days ago I bought a new Ipod video 30 Gb. I installed Itunes on my laptop and sync. it with my Ipod. I also uploaded some songs. Now I installed Itunes on my computer and tried to sync it

  • Corrupt pictures

    I just burned a disk of picutes from iPhoto 5.0.4, it burned just fine, but when I put the disk back in the computer to see the photos, there weren't any photos on the disk, just empty white frames. Also when I bring up some of my older albums from l

  • Problem in Process chain data loading

    Hi Experts, We have a Process chain in which the lists of jobs are as follows. 1) BI_TRIGGER_PROCESS 2) BI_PROCESS_LOADING 3) BI_PROCESS_ODSACTIVAT 4) BI_PROCESS_DROPINDEX 5) BI_PROCESS_LOADING 6) BI_PROCESS_INDEX 7) BI_PROCESS_ABAP      These jobs t