How to print from XSJS to Console

Hello Experts,
I have some code in XSJS to populate/Update my Hana DB based on some conditions. I am looking for a mechanism where I can print few comments to console or to some log file.
I know i can use console.log(); for normal javascript on web browser but it does not work on XSJS. Some other implementation of Server Side JS like node.js gives echo command. Is there something similar for XSJS ?
Thanks in advance.

Thanks for this information. I tried a very simple xsjs to test this but its not working for me. Could you please tell me what am I doing wrong here ?
my test.xsjs
function testTrace () {
     $.trace.info('My name is Raghuveer');
testTrace();
my .xsaccess file
    "anonymous_connection": "<package name>::incognito",
    "authentication" : null,
    "cors" : [{ "enabled":true }],
    "cache_control" : "must-revalidate",
    "exposed": true
Then I hit the URL in a web browser to execute this xsjs.
I looked at the server trace logs by going to location: <servername>:<port>/sap/hana/xs/ide/trace/ and then clicked on both the trc logs corresponding to my server name and tried searching for 'Raghuveer' as a keyword but no result was returned.
Then I went to <servername>:<port>/sap/hana/xs/security/ to verify my permissions. I am attaching the screenshot of all the permission i have for this user. I have the debugger role assigned also but still i dont see the trace to print anything in the log.
Could you please suggest what am I missing ?
Thanks in advance.

Similar Messages

  • How to print from iPhone 3GS with OS 4.2.1?

    Hello,
    I have searched and read through the discussion forums, but I'm not sure I understand how to print from my iPhone.
    In reading the manual for the iPhone 3GS, specifically on page 44, it says the following:
    AirPrint uses your Wi-Fi network to send print jobs wirelessly to your printer. iPhone must be connected to the same wireless network as the AirPrint printer.
    My HP printer (Officejet Pro L7555) is plugged into my Airport Express so that I can do wireless printing. (I am also using an Airport Extreme for the WiFi network in my house).
    When I have, for example, an email on my iPhone that I am reading, if I tap the "reply" button, I do see the "Print" option appear. When I tap on "Print", it brings up a screen where it says, "Select Printer". I then tap on that, and it will then say, "Looking for Printers".
    The final outcome is "No Printers Found".
    Since I am following the instructions on wireless printing as found on page 44 of the iPhone 3GS handbook (with OS 4.2.1 software), I'm not sure what it is that I'm doing wrong. I can print wirelessly with my iMac and my MacBook Pro to my HP printer just fine. Everything in my home is on the same network (my iPhone, iMac, iTouch, and MacBook Pro) that the printer is on.
    I'm sure I'm missing a big chunk of the puzzle somewhere that the manual is missing. Can someone please let me know what additional steps I must take in order to print from my iPhone 3GS while I am at home on my own network?
    Thank you very much.

    From one Andy to another Andy (LOL):
    Okay, thank you for the information. I even searched the Store web page before asking my question, and somehow missed this.
    Well, I'm not about to go and buy ANOTHER Apple toy just to print from my iPhone. For now, I think I can stick to the old-fashioned way and just forward it to myself so that I can print it from the iMac. I just got Apple TV a few days ago, so I'll have to wait a little bit for the next toy.
    Thank you very much for the prompt answer.
    Andy Smith
    Pleasanton, CA

  • How to print from the ipad 2?

    Can anyone tell me how I can print from the Ipad 2?

    How to print from iPad 2
    1. Buy a AirPrint enabled printer; see list below
    http://support.apple.com/kb/ht4356
    2. Run the CD provided and setup as network printer; this will setup your printer to the same network as your iPad
    http://i1224.photobucket.com/albums/ee374/Diavonex/1a30ee42.jpg
    3. Start printing from your iPad without wire
    http://i1224.photobucket.com/albums/ee374/Diavonex/93ec77e5.jpg

  • Anyone know how to print from Win2K or WinXP to shared printer on iMac?

    Help! Anyone know how to print from Win2K or WinXP to shared printer on iMac? I have a new IMac hosting a Canon iP4300, a pc running W2K & a pc running WXPsp2. All computers recognize each other and the iP4300 on the network and can share files. All Mac "Windows Sharing" & "Printer Sharing" preferences sre set correctly. Apple says the printer must be configured on the Windows computers as an SMB/CIFS network printer using a Postscript driver. I can find lots of pages on the net telling me I what needs to be done, but nothing stating how to do it. All the info I've found is either overly simplistic and or relates to the 10th dang of enterprise server administration. Would VERy much appreciate any help at all.
    Victor

    Please search the discussions before posting. This question has been asked many times before and you could save yourself time.
    http://www.ifelix.co.uk/tech/3012.html

  • How to print from iPad mini to a Cacon imagePrint MF4880dw

    Just bought this Canon all-in-one, and after installing it, found that was not compatible with air print. There seem to be several possible solutions to print to it from my iPad mini. What do the experts feel is the best way to print documents?

    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    How to Print from Your iPad
    http://www.dummies.com/how-to/content/how-to-print-from-your-ipad.html
    How do you print directly from the iPad
    http://www.everymac.com/systems/apple/ipad/ipad-faq/how-to-print-documents-direc tly-from-ipad.html
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
    iPad Power: How to Print
    http://www.macworld.com/article/1160312/ipad_printing.html
    Check out these print apps for the iPad.
    Print Utility for iPad ($3.99) http://itunes.apple.com/us/app/print-utility-for-ipad/id422858586?mt=8
    Print Agent Pro for iPad ($5.99) http://itunes.apple.com/us/app/print-agent-pro-for-ipad/id421782942?mt=8   Print Agent Pro can print to many non-AirPrint and non-wireless printers on your network, even if they are only connected to a Mac or PC via USB.
    FingerPrint turns any printer into an AirPrint printer
    http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/
    Print (Print to ALL Printers) ($1.99)
    https://itunes.apple.com/us/app/print-print-to-all-printers/id299423224?mt=8
     Cheers, Tom

  • How to print from pantech element via Bluetooth?

    how to print from my pantech element tablet via bluetooth

    To the best of my knowledge, printing is only supported on iOS devices as of now.

  • I have an MFC J410W Brother's printer, and I need instructions on how to print from my IPAD 4.

    I need to know how to print from my IPAD 4 on my MFC J410W Brother's printer.

    Printing from an iPad or iPhone
    To print directly from an iPad you need an AirPrint - enabled printer on the same wireless network as the iPad. All AirPrint printers are wireless but not all wireless printers are AirPrint-enabled. Your Brother MFC-J410W is not an AirPrint printer.
    If you do not have an AirPrint printer, a number of workarounds exist that enable the use of any printer you normally use, even older ones that may predate AirPrint by decades. Search for the following products:
    handyPrint (Mac only, donation-supported)
    Printopia (Mac only, $19.95 with free trial)
    These are utilities you install on the Mac you normally use for printing, enabling it to act as an AirPrint print server. The Mac must be "on" but may be asleep for them to work. The iPad needs nothing else, no iOS apps need to be installed and no configuration is necessary. If your computer can print, so can the iPad, using one of these utilities on your Mac.
    Equivalent utilities may exist for PCs but I have no experience with them - I suggest https://www.collobos.com
    You can also buy this standalone hardware print server, bypassing the need for a computer altogether:
    http://www.lantronix.com/it-management/xprintserver/xprintserver.html
    Otherwise you will need to buy an AirPrint printer or multifunction device.
    The following are my recommendations
    AirPrint compatible Brother laser devices
    and
    AirPrint compatible Brother inkjet devices
    Read the reviews and choose wisely.

  • How to print from iphone to hp color laserjet CM1017 MFP printer

    How to print from iphone to hp color laserjet CM1017 MFP printer

    In order to AirPrint from your iPad/iPhone, here's all you need to do:
    1. Make sure the printer and iPad/iPhone are connected to the same local network.
    2. Open something you want to print (on the iPad/iPhone).
    3. On the iPad/iPhone, tap the "Action" button (arrow curving out of a box).
    4. Tap "Print".
    If you have any issues with printing, below are some steps that should help you out!
    1. Power off the printer.
    2. Completely power off the iOS devices (hold the Sleep and Home buttons simultaneously until a message appears asking you to "Slide to power off". Slide across that bar, and it should completely power off).
    3. Power the printer back on.
    4. Power the iOS devices back on.
    5. Try to print again.
    Those steps usually resolve the issue. If they do not, try this additional steps:
    6. Power cycle your router (usually done by unplugging the router’s power cord, waiting 20 seconds, and plugging it back in).
    7. Make sure that the iOS devices and the printer are all connected to the same network, then try to print.
    If I have SOLVED your issue, please feel free to provide KUDOS and make sure you mark this thread as SOLUTION PROVIDED!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • How to print from my itouch to the printer

    how to print from my itouch to the printer

    Hi there, AirPrint is the solution you maybe looking for! Please visit the following page on hp.com to get some more details and instructions for AirPrint and also the current list of supported products here: http://www.hp.com/sbso/printing/mac/apple-airprint.pdf?jumpid=reg_R1002_USEN and apps here: http://www.hp.com/sbso/printing/mac/list-airprint-compatible-apps.pdf?jumpid=reg_R1002_USEN
    I am an HP employee.
    Feel free to provide Kudos if I have helped you!

  • How to print from an iPAD to a wireless Canon printer attached to my PC without Airplay

    Please advise how to print from an iPAD Retina to a wireless Canon printer attached to my Windows PC without Airplay.
    Also how best  to get photos from my PC to my iPAD (other than via an SD card)
    Thanks
    Never used a support community before - [email protected]

    more helper apps see
    http://www.howtogeek.com/102671/how-to-enable-airprint-for-ios-printing-from-any -mac-or-windows-pc/
    Generic Software:
    You can connect the printer to a computer and install software on your iPad/computer to print from your ipad to the comptuer then to the printer.
    example:
    http://www.ecamm.com/mac/printopia/
    Should you have some office printer that are connected to a computer there are print enablling applicaionts you can run on the iPad to print to such printers.
    For Windows, try: PrintBreau, or PrintCentral.
    PrintCentral Pro
      http://itunes.apple.com/us/app/printcentral-pro/id426362921?mt=8
    Source: https://discussions.apple.com/thread/2729284?start=0&tstart=0
    Thanks to AirPrint Hacktivator you can turn any printer connected to your Mac or Windows PC into an AirPrint compatible printer.  from:
    http://osxdaily.com/2010/12/01/make-any-printer-airprint-compatible/
    this google query will give you more options
    ipad airprint via mac
    Buy another box
    "The xPrintServer-Network Edition is a  'plug-and-print' hardware print server for printing from Apple iOS devices running iOS version 4.2 or higher.  The device is roughly the size of an iPhone and uses the iOS native print menu. It requires no additional applications, software downloads, or printer driver installations and automatically discovers available networked printers supporting JetDirect / AppSocket, LPD and IPP protocols."
    http://www.smallnetbuilder.com/cloud/cloud-devices/497-lantronix-shipping-airpri nt-server
    A simple and popular way to copy files.
    http://wiki.dropbox.com
    Using iTures to transfer files:
    http://support.apple.com/kb/HT4094?viewlocale=en_US&locale=en_US
    Look in the app store for accessing Windows File servers.
    for example:
    http://itunes.apple.com/us/app/filebrowser-access-files-on/id364738545?mt=8
    Configure WebDave on your server.
    This thread has good info.
    https://discussions.apple.com/thread/3708341?tstart=0
    How to transfer files from your iPad to your PC with iPad to Computer Transfer
    http://www.iphone-mac.com/how-to-transfer-and-sync-contents-from-ipad-to-pc.html

  • HT4356 How to print from iPad to HP4500 wireless?

    How to print from iPad to HP4500 wireless?thanks

    That printer is not on the list of approved Airprint printers.
    http://support.apple.com/kb/ht4356
    You will have to use a universal printing app, such as Print Central or Print n Share.  Look in the app store for printing options.

  • How to print from an iPad to my HP Officejet pro 8600

    How to print from an iPad to my HP Officejet pro 8600

    The HP Officejet 8600 is not AirPrint enabled.
    The HP Officejet 8600A is AirPrint enabled.
    http://support.apple.com/kb/ht4356

  • How to print from an IPad Air?

    Hi - I have bought my wife the IPad Air 32kb for Christmas and need to know how I can print directly from it to my Canon MP970 which is not WifFi enabled?
    Thanks
    Rod

    iOS AirPrint Printers  http://support.apple.com/kb/HT4356
    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
    iPad Power: How to Print
    http://www.macworld.com/article/1160312/ipad_printing.html
    Check out these print apps for the iPad.
    Print Utility for iPad  ($3.99) http://itunes.apple.com/us/app/print-utility-for-ipad/id422858586?mt=8
    Print Agent Pro for iPad ($5.99) http://itunes.apple.com/us/app/print-agent-pro-for-ipad/id421782942?mt=8   Print Agent Pro can print to many non-AirPrint and non-wireless printers on your network, even if they are only connected to a Mac or PC via USB.
    FingerPrint turns any printer into an AirPrint printer
    http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/
     Cheers, Tom

  • Does anyone know how to print from my pad to my desktop?

    does anyone know how to print from my pad to my desktop?

    A desktop is not a printer. Your question is not clear. Explain what you are trying to do.
    iOS AirPrint Printers  http://support.apple.com/kb/HT4356
    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
    iPad Power: How to Print
    http://www.macworld.com/article/1160312/ipad_printing.html
    Check out these print apps for the iPad.
    Print Utility for iPad  ($3.99) http://itunes.apple.com/us/app/print-utility-for-ipad/id422858586?mt=8
    Print Agent Pro for iPad ($5.99)  http://itunes.apple.com/us/app/print-agent-pro-for-ipad/id421782942?mt=8   Print Agent Pro can print to many non-AirPrint and non-wireless printers on your network, even if they are only connected to a Mac or PC via USB.
    FingerPrint turns any printer into an AirPrint printer
    http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/
     Cheers, Tom

  • How to print from IPad.  I have a Canon MX430 airless (wireless) printer

    How to print from IPad.  I have a Canon MX430 airless (wireless) printer

    That printer does not support airprint. See http://support.apple.com/kb/ht4356 for lists of Airprint capable printers.
    You will have to print with one of the many print apps. Canon has some in the App Store.
    There are many other print apps as well:
    PrintCentral
    Print n Share
    etc.
    Check the App Store.

Maybe you are looking for