Questions and discussion about using ProcessMaker: user interface, running cases & functionality
By azatrath
#816196
hey all,

i am trying to set an output for each grid line. but some of my data is variable, grid and others are constant. i added an image to showing which data coming from where. end of the line i added
Code: Select all
<style>
.pageBreak { page-break-before: always; }
</style>

<!--@>Grid1-->
html code of my form

<br class="pageBreak">

<!--@<Grid1-->
i tried this one and actually i failed so hard. i want to ask about it. is it possible to use both variable from grid and out of grid together ? i need to seperate each grid line as a page with variable which are coming from grid and out of grid. and is this method can count as a solution for me ?
#816213
You can't put non-grid variables inside a grid like this:
Code: Select all
<!--@>Grid1-->
<tr><td>@#gridField1</td><td>@#gridField2</td></tr> 
<br class="pageBreak">
@#variableOutsideGrid
<!--@<Grid1-->
ProcessMaker will think that @#variableOutsideGrid is a field inside the grid and it won't find it.

The only solution is to create a trigger which inserts variableOutsideGrid inside each row in the grid variable, like this:
Code: Select all
for ($i=1; $i < count(@=Grid1); $i++) {
     @=Grid1[$i]['variableOutsideGrid']  = @@variableOutsideGrid;
}
Then, ProcessMaker will be able to correctly insert the variable in the template.

Nice post and please provide more information. Tha[…]

The step by step guide to convert MBOX files to P[…]

Starting a business in a white-label NFT marketpla[…]

Well if you are a startup who has a dream to build[…]