How too set query print layout parameters?

Hello,
simple task:
1. Open "Query Print Layout...": SBO_Application.ActivateMenuItem("4868")
2. Handle new reports form: SBO_Application.Forms.ActiveForm (I know, the better solution should be get form with proper TypeEx and highest TypeCount, but now it doesn't matter)
3. Select row with required report: m.Columns.Item(0).Cells.Item(row).Click(BoCellClickType.ct_Regular, 0)
4. Run printing: SBO_Application.ActivateMenuItem("519")
5. Handle new parameters form: ???
How can I get newly created form containing report parameters (TypeEx "4000")? I wanna set proper parameters and click "OK" to show printed report. Doesn't work handling:
- FORM_LOAD in ItemEvent
- MenuEvent for "519" (is only BeforeAction
- PrintEvent (executed after accepting parameters)
- ReportDataEvent (passed FormUID belongs to reports list, not parameters)
In each event I've listed all forms and there is no form titled "Query - Selection Criteria" with expected TypeEx.
Is there any way to achive this?

when you activate print preview of printing on selected User Query Layout, you can cacth the ET_FORM_LOAD event of formTypeEx =4000
It is working. Please note if you do not have this event, you may check your filters (?)
Then you can populate your values. Based on my experience the click ok button is not working.
Tip: Search the forum in year 2009 i have posted there sample codes
Regards
J

Similar Messages

  • How to use query print layout design

    i have a sql query and i want to see its result on report with the help of print layout design.

    In addition to Tuvia's answer, here is the printing procedure of query PLD:
    Printing User-Defined Queries
    Use
    After you have linked a user-defined query to a user report template, you can print it according to its linked print layout.
    Procedure
    To print a user-defined query, use one of the following two procedures:
    Using the Query Print Layout window:
    1. Choose Tools u2192 Queries u2192 Query Print Layout.
    2. Choose the Reports tab page and select the query you would like to print.
    3. Choose File u2192 Print.
    The user-defined query is printed according to its linked print layout.
    Using the Queries Manager window:
    1. From the toolbar, choose with the quick info text Queries Manager.
    2. Select the query you would like to print.
    3. Choose File u2192 Print.
    The user-defined query is printed according to its linked print layout.
    You can also display a print preview for user-defined queries. To do so, choose File u2192 Print Preview.
    Printing User-Defined Queries with Variables
    Use
    When a user-defined query contains variables, its linked print layout will also display the variables data and print them.
    In the print layout linked to that query, you can see that an additional area containing the condition's parameters was added
    There is pdf file relate to Query PLD in  the SAP service marketplace website.
    Rgds,

  • How to set default Print layout in SDK!

    Hi All
    In Form Delivery (ID=140) I want to Add Button to set default print layout by Addon.
    Please let me know the interface and the table to do it. Thanks

    Hi Tao,
    there's a vb6 sample in the DIAPI documentation
    Sets the specified report layout as default
    Dim oCmpSrv As SAPbobsCOM.CompanyService
    Dim oReportLayoutService As ReportLayoutsService
    Dim oDefaultReportParams As DefaultReportParams
    'get company service
    oCmpSrv = oCompany.GetCompanyService
    'get report layout service
    oReportLayoutService = oCmpSrv.GetBusinessService(ServiceTypes.ReportLayoutsService)
    'get report layout params
    oDefaultReportParams = oReportLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
    'set the report layout code
    oDefaultReportParams.LayoutCode = "POR20005"
    'set the report code
    'the report code is the document type code (e.g. POR2=PurchaseOrder)
    oDefaultReportParams.ReportCode = "POR2"
    'set the user code
    oDefaultReportParams.UserID = 1
    'delete the report layout
    oReportLayoutService.SetDefaultReport(oDefaultReportParams)
    i hope it helps you
    regards
    David

  • How to create authorization to access Query Print Layout?

    Hi again..
    i have 10 query print layout, and not every user can view this layout.
    I assume,
    report 1-3 only for user A,
    report 4-7 only for user B, and
    report 8-10 only for user C.
    How to create autorization for Query Print Layout?
    Thankyou for the help

    Dony,
    In order to createthe PL's of customize report (from Query Manager) you will have to go the Tools Tab of the Menu Bar in which you will have to click the Queries tab which will lead to a drop down menu which when clicked will lead to Quaery Print layout. You will have to choose your query based upon whether from the reports tab double click it to open the Query Print Layout Designer.
    Here again in the Menu Bar you will find the under the Tools the first tab is the PLD which when clicked you can do the same process as explined below
    When you go to the document ( Any Document ) in the tool bar you would find the 24th Icon to be the Print Layout Designer Tab when you click this it takes you to the layout designer window.... below there is tab named set as default when you click this the system would ask you 2 choices
    1. Set as default for all users
    2. Set as default for current user
    Which means that you will have to open each and every form?
    for each and every user and set them as default for the user.
    If you feel this answer is helpful then please do remember to reward points
    Regards,
    Nagesh.

  • How to use Group in Query Print Layout

    Hi All,
    I have prepared a query for fetching all purchase details along with tax code, now I have ordered it on tax code and prepared a query Print Layout,
    Now within this Query Print Lay Out I want to group the tax code and want to add total of some columns at end of every tax code.
    Request to guide how to achieve this.
    Thanking you in advance,
    Samir Gandhi

    We need to use Sort and Group in combination.
    Select the repeatative area and in PLD menu select Sort, then select the column to be sort.
    then in Header / Footer of that respective repeatative area select the fields and put in the group no. in the General.

  • How to set query parameters to i5Grid

    Hello Everyone,
    I am working on creating i5Charts.
    I mapped query template and display template to i5Chart template but I need to pass the query parameters dynamically.
    How to set query parameters to i5Grid?
    Pls help with syntax.
    Thanks.
    Regards,
    Minakshi

    Hi Minakshi,
    Yes you can try the first 2 options listed by Rohit, the 3rd one however is not supported.
    The below syntax should work for you:
      1.  gridObject.getQueryObject().setRowCount(<Value>);
      2.  gridObject.getQueryObject().setParameter("RowCount", <Value>);
    You can check the documentation at the following link:
    http|s://<host>:<port>/XMII/JSDOC/i5ChartAllClasses.html
    You could also use the script assistant to check for the JS methods.
    Regards,
    Ria

  • New customized report using PLD or QUERY PRINT LAYOUT to show customers onl

    I am working with a Software Developing firm as an SAP Consultant.
    Please tell me how to create a new     customized     report displaying various details as required by the client in the report using PLD or Query Print Layout.
    Please help me asap.

    Hi,
    You can create queries using the Query Generator or the Query Wizard tools.
    After you have created your own queries, you can link them to a required print layout.
    for user reports.Look at:
    Tools --> Queries --> Query Print Layout
    Set there your query reports.
    Printing User-Defined Queries
    After you had linked a user-defined query to a user report template, you can now print it
    according to its linked print layout.
    There are two ways for printing your user-defined queries.
    1. Using the Query Print Layout window:
    • Select from the upper menu Tools &#1048774; Queries &#1048774; Query Print Layout.
    • Click the Reports tab page.
    • Click to highlight the required query you would like to print.
    • Click on the printer icon or select from the upper menu File &#1048774; Print.
    • The user-defined query is printed according to its linked print layout.
    2. Using the Queries Manager window:
    • Click the Queries Manager icon on the upper tool bar.
    • Click to highlight the required query you would like to print.
    • Click on the printer icon or select from the upper menu File &#1048774; Print.
    • The user-defined query is printed according to its linked print layout.
    Note! You can also print preview user-defined queries. Do so by selecting the Print
    Preview option as described in the methods above for printing your query.
    Btw, you could search the manual training files relate to query PLD in http://www.service.sap.com/smb
    Rgds,

  • Query Print Layout - Generated PDF Document Name?

    Hi All,
    Query Print Layouts associated to my user queries work great for printing...but does anyone know if there is a way to set a more appropriate document file name when attaching an edited PDF report to an email? It seems to always automatically create a document name starting with 'Query Manager_-1_12' or something similar when attaching the report document directly to email.
    I do realize that I can save the file locally, choose any name I like, then attach to email... but this defeats the purpose of being able to send the query report directly to the email icon.
    If anyone knows how I can do this it would be much appreciated. There seems no option in the QPLD document properties.
    Best regards,
    John

    Hello,
    Yes, I have the same question. It could be great being able to choose the name of the document when creating a pdf. Even better if you could chose fields of the document for the name of the pdf, such as, name of customer, number of document, date, etc.
    Is there any way for doing this?
    Thanks in advance,
    Javier.
    Hi All,
    Query Print Layouts associated to my user queries work great for printing...but does anyone know if there is a way to set a more appropriate document file name when attaching an edited PDF report to an email? It seems to always automatically create a document name starting with 'Query Manager_-1_12' or something similar when attaching the report document directly to email.
    I do realize that I can save the file locally, choose any name I like, then attach to email... but this defeats the purpose of being able to send the query report directly to the email icon.
    If anyone knows how I can do this it would be much appreciated. There seems no option in the QPLD document properties.
    Best regards,
    John

  • Query Print Layout Add-on

    Hi I would like to be able to select a particular row from the query print layout designer (Tools->queries->Query print layout). I open it using this code:
    globals.SBO_Application.ActivateMenuItem("4868");
    oForm2 = globals.SBO_Application.Forms.ActiveForm;
    But how d oI select a particular entry?

    Hi Costas
    try the following
    Set frm = sbo_application.Forms.GetFormByTypeAndCount(4666, 0)
    Set oMatrix = frm.Items("5").Specific
    Set oColumn = oMatrix.Columns(1)
    For i = 1 To oColumn.Cells.Count
    If oColumn.Cells(i).Specific.String = oPreviewDocument Then---> oPreviewDocument = (RITM id Report)
    oColumn.Cells(i).Click
    sbo_application.ActivateMenuItem "184"
    End If
    Next i
    hope it helps
    Regards
    George

  • My Menu - Add a Query Print Layout to the Report Folder

    This is a newb question.  I can easily add a Query or form or most anything else to the Folders under My Menus ... But how can I add a specific Print Query Layout to the Reports folder un My Menu?
    I know it is simple but I can not find the steps in the documentation
    Thanks in advance!!! 
    Dana

    Kapil
    I tried that, but it adds the Query not the QPLD to the menu.
    I had figured that I could go the the QPLD memu and add the Report, but that adds the Query Print Layout Menu with all the reports.
    I feel like I am missing something very obvious here!!!
    Thanks for your quick response!!
    Dana

  • Print preivew Query print layout

    Hi All,
    I have a query that I have created a print preview to.  I can click on Query Print Layout, select the report and print preview to show the report. 
    Does anyone know of a way to do this via the SDK? 
    I was trying to use the ReportLayoutsService and managed to get the report loaded into a SAPbobsCOM.ReportLayout but I have not been able to determine how to display the report.
    Thanks
    Karen

    Karen,
    There is not an object or method to do this currently via the SDK.  The ReportLayoutsService Object is a service that enables you to copy the print layout of a specified document type from one company database to another.
    Please also see this post ...
    Run SBO report directly from SDK
    Eddy

  • Query Print Layout / Query Manager

    Hopefully some one here can help me out ...
    I have created a handful of Query Print Layouts.  How or is there a way when I make a change to the underlying query, to reassociate it with the report?  Now when I change the query,  I have to create a new report.  I am currently on SAP B1 2007 PL11.  When I upgraded from PL06 to PL11,  the queries handle prompted dates differently, causing me to have to make a simple syntax change to my query which does not change the data being passed to the report.
    Thanks in advance
    Dana

    Dana,
    This is the short-coming of the Query PLD.  Once you change the Query, you will need to redo the template all over again.
    Therefore, it is a good practise to always finalize the query and then design the layout.
    Re-assigning the revised query to QPLD is not possible
    Suda

  • Query Print Layout question

    How do you delete a report from the Query Print Layout? It does not give me the option to delete the layout.
    Any help is appreciated, thanks
    -David

    Hi,
    You can check the following thread for your issue as well :
    How to delete QPLD
    Regards,
    Jitin

  • Backup a Query Print Layout or PLD form to restore later

    How can I backup a PLD or Query Print Layout and save to a drive that will allow me to restore the layouts later on another version of B1?
    I am upgrading 2005 to 2007 and during some testing I found the layouts were not saved in it's original form that we created and we had to redo them. I want to be sure I keep the layout as is and only tweak the fields if they have changed at all from 1 version to the next.
    Any ideas?
    Thanks
    Joanne

    Oh sure CX will work fine but not across DB versions. I need the format "before" I upgrade the DB....then take those forms and restore them or copy them to the new DB "after" upgrade.
    I already tried to copy them across DB versions, no luck.
    See I have a Check register using QPL that works great, when I do the upgrade from 2005A to 2007A, the layout goes all out of whack and is not the same as it was in 2005A. I had to redo everything in the layout as if it was created again.
    I am trying to avoid that by coping the form someplace and seeing if I can restore it back after the fact, then test it.
    Does that make sense?

  • How to set default print orientation in oracle reports 6i?

    Can anyone please help how to set default print orientation of Oracle Reports 6i? Currently document is printed in Portrait orientation, but I need to print it in Landscape orientation. Is this possible?

    It is solved now. Go to Layout Model -> Main Section, Press F4. In the property pallet select the Orientation that is required to be selected when print is taken for that report.

Maybe you are looking for

  • Hide the expansion icon on a jtree.

    I need to hide the expansion icon (the "+") on a jtree. I tried to use DefaultTreeCellRenderer and the L&F options, but they hide all of the "+" icons of the tree. I need to hide the icons depending if the node has no-leaf icons. Thanx. pmadridb

  • Some emails are not received on my iPad though they are on my computer. What can I do to resolve this?

    Some important messages have not come to me on my iPad although I can get them on the computer. As I am often traveling without my computer I do depend on the iPad to keep in touc. How can I resolve this problem.

  • FBCJ TRANSACTION

    Hi all, I´m working with the tcode FBCJ, is it any FM for consulting the actual amount if giving date, company code and cash journal number, I need to find that amount to show it in a special report i´m writing. Anybody knows? Thanks!! Gabriel P.

  • Difficulty Learning Junk Mail

    I having some trouble gettting Spamassasin to learn junk mail. I'd noticed that the levels of Junk mail had not come down after some time of having a [email protected] address and creating the symbolic link to the clamav directory as suggested in som

  • Vl02 delivery not created

    hi all i am trying to do an intra company sto in vl10b purchase order shows up but when i am trying to create the delivery system gives message "see log for information about creating deliveries" when i am seeing the log two errors are there but i am