I'm trying to develop a form with a group that contains a section with a trigger that repeat it as many times as it found the rows in the XML.I want to surround this group with a margin box. How can i do that?
I tried to use the GroupBegin Function Box but i got and error that it can not locate the box.
If you are using the Add group option in Documaker studio, you might get this kind of error. Please do try placing a box in one section and code GroupBegin and Box rules in this section and code all the Sections to be grouped under it and finally a section with GroupEnd.
Now i have other problemm, it doesnt work when there is group pagination... how can I fix that??
I tried adding a dummy section and coding GroupBegin GroupPagination but it doesnt work either.
Here it is
Section 1. Box whith GroupBegin; Box(Margin(20,20,20,20))
Section 2. Header
Section 3. Rows with a trigger that repeat it as many times as is in the XML
Section 4. Footer with GroupEnd
and it works fine until it need group pagination, when that happens it only print the top line of the box, leave a blank space and go to the next page
Actually GroupBox rule hasn't worked well when the Grouped sections span from one page to another. However, by seeing your form setup as illustrated below, I think you are trying to show a box like a page border based on the assumptions that you are enclosing the header and footer also within the Box. Am I correct in understanding?
Or do you mean Header and Footer using the SetGroupOptions?
Edited by: Nirmal Garga on Jan 3, 2012 11:43 PM
well i mean Header and Footer using the SetGroupOptions, but my goal is to show the box like a border of the form. Btw, that form also has a trigger because it could be repeated but with different data.
This is exactly one of the scenarios we face in our project too. Due to this limitation in the GroupBox, we made a work around solution. I am just illustrating what we did so that you may also try in your case.
There will be no use of GroupBox in this work around solution.
Section 1. A page size section with just the border. CopyOnOverflow option selected; placed at Abs+0,Abs+0 position
Section 2. A custom size empty section (1 or 2 lines height) positioned at Abs+0,Abs+2400 FAPS for 1 inch Top margin or Abs+0,Abs+1200FAPS for 1/2 inch Top margin. CopyOnOverflow option selected.
Section 3. Rows with a trigger that repeat it as many times as is in the XML; positioned at Rel+0,Max+0;
If it does show up some issues related to space in the top or pagination during multiple page scenario, try pushing Section 1 & 2 as Headers once ant give a try.
Edited by: Nirmal Garga on Jan 4, 2012 9:46 AM
I already tried that, but i had some issues because the rows that are repeated as many as is in the XML are inside a group with the "Column" function (because i need to print it in two columns). Also, the page size section doesnt fit to the size of the form, and when there´s pagination, it is prited above the previous one.
Please see if you can avoid using the Group column. If you are going to have only 2 columns, could you try to create the section with variables or text in appropriate positions using Text areas?
What I mean here is, handle the two columns using 2 text areas or using insert table with 1 row in the section. The above solution which I gave you has worked well for me. In fact we have implemented few forms in that approach.
Edited by: Nirmal Garga on Jan 5, 2012 10:02 PM
Could you please share what kind of issue or problem you get. Because in my case, it is working fine; the only difference being that I am using a flat file extract instead of XML. In my case, I get repeating records in extract that determine the number of rows in the table.
The thing is that in my XML I only have 1 tag with each detail, and i want to print it in two diferent columns like this.
Detail 1 Detail 2
Detail 3 Detail 4
And i don't know how to print the first detail in the left and the second one in the right column. I tried using the text area with 2 diferents fields but i didn't know how to print them like that.
Please try this approach so that you can stay away from Group pagination and Group Column.
1. In Section detail code 2 variables either using one or two text areas or a table with 2 columns, 1 row with each cell having a variable.
2. At the end you will have 2 variables to code/ map. Use the GETRECUSED on both these variables with Record=1 in variable-1 and Record=2 in variable-2.
3. Set Inovsym in the Section rule.
4. Code the Section trigger with the record mask and number of records per overflow as "2".
5. In afgjob, while using "SetOvFlwSym", set as below:
;SetOvFlwSym;1;<overflow symbol>,<section name>,2;
here, 2 stands for number of records per overflow section is 2.