Get value before print anything

Hello guys,
I would like to know, how to get a value from database BEFORE the form starts any printing. I mean, where do I have to put my code?
Or what part of a form, is executed first (before printing) so I can put my code right there,
Thanks,

you need write print program,you get the data from tables to internal tables.
then you pass internal table data to Smartform FM.
Use Example code :
Program :   SF_EXAMPLE_01
Smartform :   SF_EXAMPLE_01
Reward Points if it is useful
Thanks
Seshu

Similar Messages

  • I have an O S X 10.8.5 and an epsom sx600fw and i cannot get it to print anything from textedit or any other text although it will make copies . please help

    i have an O S X 10.8.5 and an epsom SX600 FW printer and i cannot get it to print from Textedit or anything else ! although it seems to do coloured borders but not text. it does make copies ,but will not print. please help ,i urgently need to type and print a letter.

    i have an O S X 10.8.5 and an epsom SX600 FW printer and i cannot get it to print from Textedit or anything else ! although it seems to do coloured borders but not text. it does make copies ,but will not print. please help ,i urgently need to type and print a letter.

  • Setting an item value before print report in BI Publisher

    Hi,
    I am having an issue with setting a page item's value once a button (that prints a BI Publisher report) is pressed. The session state for the item is set, however because the page does not re-load no value appears in the item on the page.
    I am using a button as a page Item and using a Page Branch with the Branch Point set as On Submit: After Processing(After Computation, Validation, and Processing) with the Page set to 0 and the Request set to PRINT_REPORT=REPORT
    Is there any way to set the item value on the page before branching to the report?
    Your help is greatly appreciated.
    -Marsha

    Marsha,
    You can do that as follows:
    1- create a hidden text item (P20_date_hidden) with default value set to sysdate.
    2- for your button >> edit >> Buttom display attributes >> attributes >> type in : onFocus= "set_date();" (( note: am using onFocus because it takes places before onClick ))
    3- In your page >> edit >> HTML header >> type in :
    <script language="JavaScript" type="text/javascript">
    function set_date()
    v_date = $x('P20_DATE_HIDDEN').value;
    $x('P20_DATE_LETTER_SENT').value = v_date;
    </script>
    Hope this helps,
    Sam
    Please reward good answers by marking them correct or useful!

  • HP 460 series, left light blinking and cartridges are in properly. I cannot get it to print anything

    The left light keeps blinking which should mean the color cartridge is not in correctly, but it is. Cannot even print a test page

    Hi - Try following the steps in this document.  In some cases, the cartridge/printer contacts may have some residue on them that results in the printer not recognizing the cartridge.  The document walks you through cleaning the contacts.
    Hope that helps.
    Say Thanks by clicking the Kudos thumbs up. Please mark the post that solves your problem as an Accepted Solution so other forum users can utilize the solution.
    I am an HP employee.

  • 8625 failure to print anything from windows 8.1 computer on wirelessnetwork

    I installed the HP Officejet aio yesterday and I cannot get it to print anything from my computer.  I installed it on my home network.  My office mate has the same computer and is running on 8.1 and he can print to the 8625.  But I cannot.  The printers does show up in the control panel as the default printer when I send a file to be printed it says it's printing but I get nothing.  What should I do, I'm really PO'd about this.

    Winidows 8.1 printer issue         From a previous post by Associate Professor, an HP Employee
    Hopefully one of the following solutions will help you.   
    If you have seen issues where your laptops/tablets has been taken from a private (home) network to a public network  and then not been able to print when returning back to your private (home) network.  This is most likely due to the public network settings not being reset back to the private (home) network settings.  If this sounds like an issue you are having- try resetting your network settings by following the steps in the documents linked here:
    For Ink Printers, please visit this document to help resolve your issue:
    Print Jobs are Stuck in Queue
    For LaserJets, please visit this document to help resolve your issue:
    HP Laserjet - Printer offline and unable to print on a network in Windows 8.1
    Install this Microsoft patch to make sure this private-public-private network issue does not reoccur. It is part of the April 2014 Windows Update package for Windows 8.1 and Server2012 R2 (http://support.microsoft.com/kb/2919355). 
    If you experience this issue before you apply the patch, you must manually reset your network settings for this patch to function. Please refer to the above documents for manual reset help.
    Tobindo
    A non-hp employee

  • Get number of pages of adobe form before printing

    Dear Experts,
    I want to get number of pages adobe form will print before printing the form.
    Please suggest.

    Hello Sagar,
         Without executing the generated Function Module, it is not possible to get the page count of a form in driver program because the generated FM itself is responsible to execute the whole layout and determine the number of pages in the PDF output. The below screenshot shows the number of pages in the structure /1BCDWB/FORMOUTPUT of generated FM after the generated FM is executed successfully.
    I really don't know why you need the number of pages before calling the generated FM. But if you still need it, then you might need to call the whole FM cycle twice( FP_JOB_OPEN , Generated FM, and FP_JOB_CLOSE ).
    1) First time while calling the FM FP_JOB_OPEN, you need to modify the contents of SFPOUTPUTPARAMS structure. Send the blank values in fields GETPDF, REQNEW and REQIMM, and send the "X" in fields NOPREVIEW, NOPRINT and NOARCHIVE and 000 in field COPIES.
    The reason for doing this is, we do not want actual PDF output. We only want to determine the number of pages.
    2) Now execute the generated FM . You will get the number of pages in the structure /1BCDWB/FORMOUTPUT-PAGES as shown in screenshot above.
    3) Now call the FM FP_JOB_CLOSE as usual.
    4) Again call the FM FP_JOB_OPEN. This time you again need to modify the contents of SFPOUTPUTPARAMS structure reversely. Send the "X" in fields GETPDF, REQNEW and REQIMM, and send the blank values in fields NOPREVIEW, NOPRINT and NOARCHIVE and 001 in field COPIES.
    This time we need the actual PDF output.
    5) Now do the required processing with previously fetched number of pages before calling the generated FM.
    6) Now call the FM FP_JOB_CLOSE as usual.

  • I cant print and get this message, "adobe elements, "the saved printer information is not compatible with this version of photoshop elements, or the saved printer is no longer available. you will need to check with your printer settings before printing."

    I keep getting this message when trying to print in adobe elements, I am using a new Epson WF-3640 printer
    "the saved printer information is not compatible with this version of photoshop elements, or the saved printer is no longer available. you will need to check with your printer settings before printing.

    Hi,
    If you are working in PSE13, please update it to latest PSE13.1 update available and see if it helps.
    To apply update, you can go to Help > Updates and there you can see PSE13.1 update.
    Thanks,
    Anwesha

  • I can't print anything from Firefox. I get blank pages

    Ever since I downloaded the previous update, I can't print anything from Firefox. I just downloaded version 3.6.8 and I have the same problem. I am using a Mac with OS 10.6. Whenever I try to print an email or a web page from Firefox I get a single blank page.
    I can print fine from Safari. Firefox worked fine until I installed version3.6.5 (or whatever the previous version was)

    Thanks I will check out the site!

  • How can I get the value before a checkbox if it's selected

    Please refer the below screenshot. I want to get the values before a checkbox if the checkbox is slected. And I want to add those values. How can I do this?
    So according to the screenshot, I want to take 1500+1500+1000 value. Can I achieve this?
    +100

    Hi phantom,
    Row 1 is a Header Row. Row 10 is a Footer Row.
    Formula in Footer Cell B10
    =SUMIF(C,TRUE,B).
    SUMIF will sum the values in B where there is a tick (TRUE) in C.
    Regards,
    Ian.

  • When I try to print anything in Firefox, email or internet, I get a message that says printer error and nothing prints. Tried printing same stuff from Internet

    When I try to print anything in Firefox, email or internet, I get a message that says printer error and nothing prints. Tried printing same stuff from Internet Explorer it works fine.

    hello bdoolen, please try to [[Reset Firefox – easily fix most problems|reset firefox]] and see if this can address the issue...

  • TS1647 My Macbook Pro will not print anything from any program. I've reinstalled the drivers. I get an error message in Word that says, "Word could not communicate with printer." Any ideas?

    My Macbook Pro will not print anything from any program. I've reinstalled the drivers. I get an error message in Word that says, "Word could not communicate with printer." Any ideas?

    Be sure to try restarting, if you have not done so since this problem occurred.  You should also power off the printer while you do the restart...
    If that does not help, you can try resetting the printing system.  Open System Preferences Print & Scan (or Print & Fax) pane.  In the sidebar with list of printers, right (control) click anywhere.  Select Reset printing system.  You will have to add back your printers after you do this.

  • Possible to get JComboBox before and after chaged value?

    Hi,
    I have a JComboBox... whenever the JComboBox value change is it possible to get the before and after changed value? For example:
    Let says the JComboBox is showing "One" and the user change it to "Three" after the user chged... I want to System.out.println before chged value ("One") and aft chged value ("Three")
    I tried:
    put in some code in the itemStateChanged() method... but no success...
    Can someone pls provide some pointer or sample code...
    Thank you for your time...

    Ok, I lost half a day on this (novice problem), but I arranjed a solution that resolve the problem totally. There is the code:
    YourComboBox.addFocusListener(new java.awt.event.FocusAdapter()
            int aux_selected;
            // if YourComboBox gains Focus
           public void focusGained(java.awt.event.FocusEvent fe)
                // get index value of selected element
               aux_selected= YourComboBox.getSelectedIndex();
               // create a variable for storing de ItemListener
              ComboBListener = new java.awt.event.ItemListener() {
                   public void itemStateChanged(java.awt.event.ItemEvent e)
                       if(e.getStateChange()==java.awt.event.ItemEvent.SELECTED)
                           // compares the selected value with the old one
                           if (aux_selected!=YourComboBox.getSelectedIndex())
                           System.out.println("ComboBox Changed !");
               // add the variable Listener to your Combo
               YourComboBox.addItemListener(ComboBListener);
           // if focus is lost
           public void focusLost(java.awt.event.FocusEvent fe)
              // remove the itemListener from the combobox
             YourComboBox.removeItemListener(ComboBListener);
    //Put the Listener variable outside
    private java.awt.event.ItemListener ComboBListener; //----------------------------------------------------------------------------------------------------
    You only have to change YourComboBox by the name of the combobox.
    To all people that help this forum (specially from PORTUGAL) and all java people: YOU ARE DOING A GREAT JOB

  • Hi I'm using the latest version of acrobat pro on a Mac i cannot save or print anything as a pdf from the internet i just get a black screen

    Hi I'm using the latest version of acrobat pro on a Mac i cannot save or print anything as a pdf from the internet i just get a black screen, my previous version worked fine, any ideas please

    You can read this article to see if it helps:
    http://kb.mozillazine.org/Problems_printing_web_pages

  • Why do I get the following message when I try to print something off the internet:printer is off linr" when it is connected and I can print anything that comes like letters etc.

    ever since I installed "Fire Fox" I have not been able to print anything off the internet, although I can print item that come such as letters etc.
    I keep getting the message that my printer is off line when it is on. I am able to type and print o.k. but not able to print anything that I search on the internet.

    Is this a silver AppleTV 1? If so coudl be these are 1080p trailers - it only supports up to 720p.

  • Get value of field object when I double click on any column of report

    Hi,
    We are converting our projects from .NET 2003 to .Net 2008 and upgrading reports10 to crystal reports 2008 and changing our Active x report viewer control  to crystal report viewer.
    We donu2019t use reports just to see and print the data. Our use is a bit more.
    As we were using Active X Control (CRAXDDRT) to perform different operations
    Following are some functions which are included in our requirements:
    1-     We need the columns width to be flexible which we can changed in the code dynamically according to the users wish
    2-     Setting text of some fields dynamically from .Net code
    3-     Hide and show the columns dynamically from .Net code
           Upto here we are done using crystal report 2008 and .net 2008
           Now we are stuck with problem
    4-     When we double click on fieldobject at runtime we are able to fetch the value of field object by using e.objectinfo.text.tostring, so far it is perfect
    But we have different situation here and need a solution for this
    I have two fields like Account ID and Account Description
    I need the solution so that when user clicks either on Account ID or Account Description I should be able to fetch the Field object value of Account ID Column only so that i will be able to open different forms and reports based on that ID
    As we were doing it before using Active X Control the code snippet is giving below
    case "Field: Account. AccountID ", "Field: Account.Description"
    GlobalCode = GiveCode(mYFields.Item(1).value) '------ Where 1 refer to Account ID, so in both cases either we click Account ID or Description Field at run time we are able to return the account ID field value.
    so we need solution some thing like that please do let us know how we can do that
    For Your reference we were using CrystalActivexReportViewerLib10.CRVFields obejct to fectch the report values
    Thanx in Advance
    Regards,
    Arshad Hussain Bhatt

    Hello,
    I am getting value of that cell where I am clicking. But I need the value of other columns also in that particular row where I double clicked. For this I gave one example also that suppose I have a report where there are two columns. One is AccountID and other is AccountDescription. Now if I click on Account ID I get the value of AccountID and when I click on AccountDescription I get the value of AccountDescripiton This is oK n good but I want that If i double click on AccountDescription I should be able to get the value of AccountID also.Please tell me is there anyway to do so?
    We did so when we were using CRAXDRT.Report Bellow is the code snippet for how I did it in that.
    Dim MyField As CrystalActiveXReportViewerLIb10.CRVFields
    Private Function GiveFieldIndex(ByVal As CrystalActiveXReportViewerLib10.CRVFields, ByVal FldName As String) As Integer
    For i as integer = 1 To FldArry.Count
        If FldArry.Item(i).name = FldName Then
                    GiveFieldIndex = i
          End If
    End Function
    Private Sub CRViewer1_DoubleClick(ByVal eventSender As System.Object, ByVal eventArgs As AxCrystalActiveXReportViewerLib10._ICRViewerEvents_DblClickedEvent) Handles CRViewer1.DblClicked
    If MyField.Name = "Field: AdoJV.AccountID" Or MyField.Name = "Field: AdoJV.AccountDesc" Then
    /Following line will give us AccountID in anycase either we click on AccountID or Account Desc or even you can add more column by adding Or Operator. We need something like this in Crystal Report 2008/
      Dim GlobeAddEditCode  as String = myFields.Item(GiveFieldIndex(myFields, "Field: AdoJV.AccountID")).Value
    End If
    End Sub
    Regards,
    Arshad Hussain Bhatt
    Edited by: arshhb on Oct 31, 2009 6:44 AM
    Edited by: arshhb on Oct 31, 2009 7:09 AM
    Edited by: arshhb on Oct 31, 2009 7:13 AM

Maybe you are looking for