how to add two functions from script include in a reference qualifier

akhila13
Tera Expert

how to add two functions from script include in a reference qualifier

 

SeatUtils is the script include and  getbcp3() is a function. i have another function getbcp2()

 

have to call both in single reference qualifier

 

tried javascript:new SeatUtils().getbcp3()+new SeatUtils().getbcp2(); but not working fine

 

find_real_file.png

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

use this to call function inside script include 

eg this.functionName() 

I have two function and want to merger both result into third function it will be used like below. 

 

get1: function(){

 

return 'hello';

},

get2: function(){

 

return 'harsh';

}

 

final: function(){

 

return this.get1()+','+this.get2();

 

}

 

If my answer helped you, kindly mark it as correct and helpful.

View solution in original post

12 REPLIES 12

Harsh Vardhan
Giga Patron

use this to call function inside script include 

eg this.functionName() 

I have two function and want to merger both result into third function it will be used like below. 

 

get1: function(){

 

return 'hello';

},

get2: function(){

 

return 'harsh';

}

 

final: function(){

 

return this.get1()+','+this.get2();

 

}

 

If my answer helped you, kindly mark it as correct and helpful.

Thank You... this worked....

Hi Harshvarshan , 

How to call final() function to another script include?

where get1() and get2() are used in Final() function to get final results. I want those final results in another script include function which is finalExtend().