Livelink-JSON output for AJAX request handler

This execute() method of request handler is use to generate JSON which can be use for AJAX. This is simple request handler which give name as out put, while here header type is text, if it is change to xml and then xml data can be outputed. Continue reading...

Deactivate an Account in SAP

This report de-activates the account of the specified user. This can be used as a utility to SAP BASIS people.
Please be cautious of its use, and thus should be used correctly. Continue reading...

Dynamic DOM Table – javascript

Many time we require to create dynamic table, in javascript which require lot of effort. To ease this I have created function which helps the generate DOM table just passing table id, column headings as array and row data as 2D array. It will return a whole DOM table object which can be append and add in any parent object. CSS can be added as per choice by giving obj.className. Continue reading...

Breaking long string into multiple line- javascript

Many time we are displaying text in javascript in the limit area where we want to break the string into multiple line. Recently I got requirement, so I created this function which helps to solve the problem Continue reading...

Livelink Database – List full path of nodes under a given Livelink Node

Recently I was working on some SQL for a client who wanted to list the full path information for all items under a given Livelink node. As the customer was using SQL Server rather than Oracle I could not use the Connect By functionality. To begin with I tweaked an SQL Server function that Stephen Fisher had posted on the Knowledge Center which returns the full path, seperated by colon’s, to a given Livelink Node, a new version of the SQL is shown below : Continue reading...

Check for module is installed or not Livelink

In some cases, you may want to access functionality provided in another module, and in manu cases this is an optional, rather than core, module. If you call an function in another module that does not exist, you will get an error for the user and a Trace file. This code snippet provides a method so you can test if a module is installed on a server prior to calling it withing your code. The code for this function is as follows : Continue reading...

Get Default link for a Node

Sometimes you may have a Livelink Object ID (the value of dataid from dtree) and you need to create a link to that object. Generally you can find most of the components that you need in the request object, such as the complete URL, but the actual Request Handler for that type of Livelink Object is a little more complex. You can follow the function calls used in the Browse pages, but sometimes you do not have enough information, for example when within a function where these objects are not available.
This article looks at an alternative method to get a link to that Livelink Object. For this we will use the Livelink URL that is used by the Notifications system (?func=notify.config). Continue reading...

Connect to a MySQL database

To connect to a MySQL database to make the data from the database available in your Web application, you can do two things:
1. create a connect.php page, and ‘include’ this page in the PHP page(s) where you need the connection to the database. Continue reading...

Creating thumbnail through PHP

Easy to use function to create thumbnail image from image, it very use full for creating catalog display where user need not to enter two file for thumbnail and main image Continue reading...

creating a draggable sitemap with jquery

There are a handful of javascript libraries and plugins available that attempt this task, but none of them worked flawlessly with our HTML. The real issue here is that javascript alone cannot produce a slick solution, the HTML and CSS need to be carefully constructed to ensure that the experience is seamless and pleasant. Continue reading...