cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe forms - Concatenate

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Hi,

This is my first object in adobe forms. I need to concatenate two internal table fields. what is syntax in java script?

kindly provide the basic notes for java scripts for adobeforms.

Thanks with Regards,

Vallamuthu

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Valla,

Alternatively, If you feel more comfortable with ABAP coding; you can create finalTable as global data in form interface, under initialization event, use ABAP code to combine both table content into finalTable .

In your form context, import this finalTable , and under layout tab, design and display your finalTable.

Hope this helps.

regards,

Xiang Li

Former Member
0 Kudos

Hi,

Initially get the internal table data in to two string fields then use the method concat( ) of java script.

for eg:

var hege = ["Cecilie", "Lone"]:

var stale = ["Emil", "Tobias", "Linus"];

var kai = ["Robin"];

var children = hege.concat(stale,kai);

The result of the above example is

Cecilie,Lone,Emil,Tobias,Linus,Robin

Regards

khaleel

nithinjabraham
Explorer
0 Kudos

Hi Vallamuthu madheswaran,

The syntax of Java script to concatinate is

string.concat(string1, string2, ..., stringX)

Example:

var str1 = "Hello ";

var str2 = "world!";

var n = str1.concat(str2);

You can refer the below link to get the basics of java script used in adobe forms

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Expressions_06.html