Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
sivajothi

Awaiting Email Confirmation
Registered:
Posts: 62
Reply with quote  #1 

Hi,

I am using metastorm bpm v 9.1. I have a grid in my form with 3 columns..In the column named link I want to type a link at run time..so that I would be able open this link in the next stage...

Is this possible??.Plz guide me with steps..

Thanks in advance,
Siva.

0
sivajothi

Awaiting Email Confirmation
Registered:
Posts: 62
Reply with quote  #2 
Hi,

I found a solution to the hyperlink in a editable grid...

1.add a column in the grid of type text...Choose a business object for the same..
2.Write a Javascript for on cell entry and on cell exit in the grid properties.
   The Javascript for on cell entry is
  

var colIndex = getCurrentCol("Grid1");

if(colIndex == 3)

{

var rowIndex = getCurrentRow("Grid1");

var curVal = getCell("Grid1",colIndex,rowIndex);

if(curVal != "")

{

//alert(curVal);

var startIndex = curVal.indexOf("target=\"_blank\">");

var endIndex = curVal.indexOf("</a>");

setCell("Grid1",colIndex,rowIndex,curVal.substring(startIndex+16,endIndex));

}

}

and the Jscript for cell exit is

var colIndex = getCurrentCol("Grid1");

if(colIndex == 3)

{

var rowIndex = getCurrentRow("Grid1");

var curVal = getCell("Grid1",colIndex,rowIndex);

if(curVal != "")

{

//alert(curVal);

setCell("Grid1",colIndex,rowIndex,"<a href=\"" + curVal+"\" target=\"_blank\">"+curVal+"</a>");

}

}

 Try this to achieve clickable links in editable grid....

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!