cancel
Showing results for 
Search instead for 
Did you mean: 

Loop inside JSONArray to display it inside a document Generated with Generate Document Task

bhchemss
Star Contributor
Star Contributor

Hi everyone,

I have a table as process variable ,I want to generate a document with Generate document task based on word template.

I tried with Aspose syntax :

<<variables.get["Array[0].prop1"] at least to get the first one but it didn't  work.

The documentation of Aspose usage was't clear, can anyone help with this please ?

Thank you

Regards

Chemss

1 ACCEPTED ANSWER

bhchemss
Star Contributor
Star Contributor

I made a workaround for this , I tried to put the each value of property in a single array and do a loop inside the array and display it in a list inside the document template with :

<<foreach [p in getVarName]>> <<[p]>> <</foreach>>

Hope this help someone !

Cheers

Chemss

View answer in original post

3 REPLIES 3

bhchemss
Star Contributor
Star Contributor

I made a workaround for this , I tried to put the each value of property in a single array and do a loop inside the array and display it in a list inside the document template with :

<<foreach [p in getVarName]>> <<[p]>> <</foreach>>

Hope this help someone !

Cheers

Chemss

rachana
Champ in-the-making
Champ in-the-making

Hi Ben,

I am trying to do the same.I am getting error Object serialization error as I am using javascript.

Please help me.

Thanks. I already did the same workaround, but I still have a problem in display.

Do you still have the word template file?