Livelink Object from Work Flow Form

On many occasions there are times when you want to snapshot the status of a Livelink workflow Form data at a given point in the work, either for auditing or for archiving. The following Event Script creates a Livelink Form Object using a specified Form Template and View and creates it in a specified folder in Livelink.
This snippet comes in two sections, the first is the main Event Script (CreateLLObjFromForm) which acts as the wrapper, and a second OScript Script (CreateFormNode) which creates the Livelink Object. This second method does not have to sit within the same Script as the main event script, so could be placed elsewhere in your module. Continue reading...

Random generated password

Many time in registration page or forgotten password, the new password should be generated to sent. This code will help to generate random password. Continue reading...

Get Max field value of MySQL Table by PHP

This function helps to get the max value of the table for the field. You will just require to pass the field which you want the max value and the table name it will return the max value of that field. Continue reading...

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...