8 Replies Latest reply: Apr 9, 2013 9:18 PM by 999915 RSS

    Documaker : How to work this trigger with overflow and XPath.

    999915
      Hi,

      My first question, please help me!
      I create a form as follows.
      A page is setting overflow with Group.
      ______________________
      Page(Body)
      Group          
      * Manual trigger Search Mask(Count) : !/xxx/data/RiskInfo/Risk
      Section-Header
      Section-A
      * Manual trigger Search Mask(True/false) : !/xxx/data/RiskInfo/Risk[****][Code='A']
      Section-B
      * Manual trigger Search Mask(True/false) : !/xxx/data/RiskInfo/Risk[****][Code='B']
      End Group
      ______________________

      The XML sample is as follows.
      .....
      <RiskInfo>
      <Risk>
      <Code>A</Code>
      <Name>XXX</Name>
      </Risk>
      <Risk>
      <Code>B</Code>
      <Name>YYY</Name>
      </Risk>
      </RiskInfo>
      .....
      ______________________

      Overflow is no problem.
      But Section-A and Section-B triggers are not worked.
      This trigger setting displays Section-A twice.
      I understand that [****] is wrong, because this is worked correct if I replace from [****] to [1] or [2].
      But I don't understand this correct method...

      Probably I think I need to use the OverFlowSymbol.
      Where do I need to set the OverFlowSymbol? This thinking is wrong??

      Please teach me the method to work this trigger with overflow and XPath.

      Thanks
        • 1. Re: Documaker : How to work this trigger with overflow and XPath.
          user9976634
          With what you describe thus far, I'm not sure you really have an overflow situation.

          Your group trigger using !/xxx/data/RiskInfo/Risk is going to return 2. That means you will get two copies of your group. I'm not sure that is what you intend. You may not need that trigger at all or perhaps you only meant for it to be a True/False?

          Then your subsequent sections don't need to specify overflow in order to trigger.

          !/xxx/data/RiskInfo/Risk/Code='A' will trigger the first section.
          !/xxx/data/RiskInfo/Risk/Code='B' will trigger the second section.
          • 2. Re: Documaker : How to work this trigger with overflow and XPath.
            999915
            Hi,

            Thank you for your reply!!
            I'm sorry, I didn't communicated properly the contents.

            These triggers of Section-A and Section-B are not overflow setting.
            These are conditions for display.

            - The following content means that Section-A is displayed if "!/xxx/data/RiskInfo/Risk/Code" is 'A'.

            Section-A
            * Manual trigger Search Mask(True/false) : !/xxx/data/RiskInfo/Risk[****][Code='A']

            In my case, I want to display like the following.

            (First page)
            Section-Header
            Section-A
            (Second page)
            Section-Header
            Section-B

            But now setting is displayed the following.

            (First page)
            Section-Header
            Section-A
            (Second page)
            Section-Header
            Section-A +<wrong>+

            Can not I set up like this?

            Thanks
            • 3. Re: Documaker : How to work this trigger with overflow and XPath.
              Sruthi
              Hi,

              Sorry, I'm not getting if you really wanted to code the sections inside a group. Can you clarify which of the below options you are looking at -or if overflow situation is actually there-?
              ---------------------------------------------------------------------------
              Input:
              <RiskInfo>
              <Risk>
              <Code>A</Code>
              <Name>XXX</Name>
              </Risk>
              <Risk>
              <Code>B</Code>
              <Name>YYY</Name>
              </Risk>
              <Risk>
              <Code>A</Code>
              <Name>LLL</Name>
              </Risk>
              <Risk>
              <Code>B</Code>
              <Name>NNN</Name>
              </Risk>
              <Risk>
              <Code>B</Code>
              <Name>MMM</Name>
              </Risk>
              </RiskInfo>

              Output 1:
              Section A
              Section B
              Section A
              Section B
              Section B

              Output 2:
              Header A
              Section A
              Section A
              Header B
              Section B
              Section B
              Section B
              ---------------------------------------------------------------------------

              If you want the second one, below is one option. If the header is same or you are sure 'Section A/B' will not overflow to next page, you may change the coding of header and the group.
              --------------------------------------------------------------------------
              Group
              Section-Header
              Section-A
              * Manual trigger Search Mask(Count) : !/xxx/data/RiskInfo/Risk[Code='A']
              End Group
              Group
              Section-Header
              Section-B
              * Manual trigger Search Mask(Count) : !/xxx/data/RiskInfo/Risk[Code='B']
              End Group
              --------------------------------------------------------------------------


              Thank you,
              Sruthi Jayasimhan

              Edited by: Sruthi on Apr 3, 2013 12:25 PM
              • 4. Re: Documaker : How to work this trigger with overflow and XPath.
                827098
                If you have nested, repeating data, the use of SubForms may make the triggering and data mapping a little easier.

                I believe you can find a description of how SubForms work in the appendix of the DMStudio User Guide (Appendix D in the 12.1 version).

                Bob
                • 5. Re: Documaker : How to work this trigger with overflow and XPath.
                  999915
                  Hi Sruthi,

                  Thank you for your reply.
                  I don't want to output your both patterns.
                  My hope is output sample as follows.

                  Section-Header
                  Section-A
                  Section-Header
                  Section-B
                  Section-Header
                  Section-A
                  Section-Header
                  Section-B
                  Section-Header
                  Section-B

                  Section-Header are same Header, but the contents is changeable.

                  Thanks,
                  • 6. Re: Documaker : How to work this trigger with overflow and XPath.
                    999915
                    Hi Bob,

                    Thank you for your help!
                    When I use overflow in the Subform, I will be able to want to do.
                    Those triggers now work, but the changeable item is no longer worked with overflow.
                    When I set the overflow using the Group, It was working properly...
                    ______________________

                    The XML sample is as follows.
                    .....
                    <RiskInfo>
                    <Risk>
                    <Code>A</Code>
                    <Name>XXX</Name>
                    </Risk>
                    <Risk>
                    <Code>B</Code>
                    <Name>YYY</Name>
                    </Risk>
                    </RiskInfo>
                    .....
                    ______________________

                    Output is as follow.

                    Section-Header (=(1))
                    Section-A
                    Section-Header (=(2))
                    Section-B
                    ______________________


                    There is a field of 'Name' at Section-Header.
                    At first, the field is displayed 'XXX' at (1).
                    Next, I want to display 'YYY' in this field, but 'XXX' is displayed at (2).

                    I think a little more...
                    Thanks,
                    • 7. Re: Documaker : How to work this trigger with overflow and XPath.
                      827098
                      You should be able to use the @subform overflow user function in your xpath to set the correct index based on the current subform.

                      You might try something like:

                      !/xxx/data/RiskInfo/Risk[**@subform**]/name

                      You can find more information on handling overflow with XML in the DMStudio users guide (Appendix B in Rel 12.1) and the @subform user function in the Sub Forms section of the document.
                      • 8. Re: Documaker : How to work this trigger with overflow and XPath.
                        999915
                        Hi Bob,

                        Thank you for your reply again!!
                        By using the MOVE_IT and your advice, I solved the problem.

                        I thank you sincerely!