Sign In   Register
Pinned Items
Recent Activities
  • Hi Sergey,

    Thanks for your quick response.
    I have tried your suggestion but it did not work for me.
    I will use an older version of Maestro (20.05.8) for now.

    Regards,
    1. View Comment
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • I am unable to use & in the field labels e.g. R&D, the & is being stripped off.
    Another interesting behaviour when using <> e.g. Type 'Applicant <details>' into a label field and the html becomes "Applicant <details> </details>"

    This is in...
    I am unable to use & in the field labels e.g. R&D, the & is being stripped off.
    Another interesting behaviour when using <> e.g. Type 'Applicant <details>' into a label field and the html becomes "Applicant <details> </details>"

    This is in Maestro version 21.11.0

    Anyone having similar issues?
    Thanks in advance for any help with this issue.
    More
    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Ravi Velagapudi voted on a discussion post

    I have a Repeat Block Template in the Form with the below fields inside the Repeated Content:

    textfield: userName (id)
    textfield: userAge (id)

     

    How do I map the above to the properties in the Model (already created) below?

    <applicant>
       ...

    I have a Repeat Block Template in the Form with the below fields inside the Repeated Content:

    textfield: userName (id)
    textfield: userAge (id)

     

    How do I map the above to the properties in the Model (already created) below?

    <applicant>
        <repeatingFields>
            <individual>
                name   <--- property (it has a circle on the left in the Form editor)
                age      <--- property (it has a circle on the left in the Form editor)
            </individual>
        </repeatingFields>
    </applicant>

     

    And the expected outcome in the submitted xml is:
    (I have trouble achieving this)

    <applicant>
        <repeatingFields>
            <individual>
                <name>John</name>
                <age>33</age>
            </individual>
        </repeatingFields>
        <repeatingFields>
            <individual>
                <name>Peter</name>
                <age>44</age>
          </individual>

        </repeatingFields>
    </applicant>

     

    I have tried mapping the fields (userName, userAge) to the Model's name and age (e.g. select field userName, then double click name on the Model). But only the last repeat (Peter, 44) appeared and is inside the <TrackingCode> (which is not what I want)

    If I use Repeat instead of Repeat Block Template, it still only returns the last repeat (Peter,44), however, it is in the proper structure (ie. <applicant> ...)

    Thoughts

    • I believe the model's <repeatingFields> structure together with <name> and <age> shall also be made known to Maestro in some way to identify it as a repeat block maker in order to build the desired XML data for submission. How do I achieve this?
    More
    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Ravi Velagapudi likes a discussion post

    I have a Repeat Block Template in the Form with the below fields inside the Repeated Content:

    textfield: userName (id)
    textfield: userAge (id)

     

    How do I map the above to the properties in the Model (already created) below?

    <applicant>
       ...

    I have a Repeat Block Template in the Form with the below fields inside the Repeated Content:

    textfield: userName (id)
    textfield: userAge (id)

     

    How do I map the above to the properties in the Model (already created) below?

    <applicant>
        <repeatingFields>
            <individual>
                name   <--- property (it has a circle on the left in the Form editor)
                age      <--- property (it has a circle on the left in the Form editor)
            </individual>
        </repeatingFields>
    </applicant>

     

    And the expected outcome in the submitted xml is:
    (I have trouble achieving this)

    <applicant>
        <repeatingFields>
            <individual>
                <name>John</name>
                <age>33</age>
            </individual>
        </repeatingFields>
        <repeatingFields>
            <individual>
                <name>Peter</name>
                <age>44</age>
          </individual>

        </repeatingFields>
    </applicant>

     

    I have tried mapping the fields (userName, userAge) to the Model's name and age (e.g. select field userName, then double click name on the Model). But only the last repeat (Peter, 44) appeared and is inside the <TrackingCode> (which is not what I want)

    If I use Repeat instead of Repeat Block Template, it still only returns the last repeat (Peter,44), however, it is in the proper structure (ie. <applicant> ...)

    Thoughts

    • I believe the model's <repeatingFields> structure together with <name> and <age> shall also be made known to Maestro in some way to identify it as a repeat block maker in order to build the desired XML data for submission. How do I achieve this?
    More
    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Ravi Velagapudi commented on a post
    Hi Mark,

    I can see that this post is more than a year old, but did you end up resolving this issue.
    I am facing a similar issue when trying to map a repeating block of a Maestro form to a XML schema using Data Mapper.

    Thanks
    Ravi
    1. View Comment
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Ravi Velagapudi voted on a discussion post

    To solve this problem I needed to add a 'sleep' function to the page load rule.

    If I delay the code it seems that the repeat block has time to be configured properly (with the functions), and so the Util.addRepeatContent function works correctly.

    ...

    To solve this problem I needed to add a 'sleep' function to the page load rule.

    If I delay the code it seems that the repeat block has time to be configured properly (with the functions), and so the Util.addRepeatContent function works correctly.

    See code below:

    // hack to overcome Repeat Block issues
    function sleep(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
    }

    // cards
    var cardsData = Form.prefill.Cards.CardsData;
    if (cardsData) {
    data.$cards = JSON.parse(cardsData);
    data.cards_cardsCount = data.$cards.length;
    if (data.$cards.length > 0) {
    Form.setInstanceCount(Form.items.cards_card_, data.cards_card_, data.$cards.length);
    }
    //console.log("sleep start");
    sleep(1000).then(() => {
    //console.log("sleep end");
    Util.addRepeatContent(Form.items.cards_card_, data.$cards);
    });
    }

    Hope this helps someone.

    Thanks

    Mark

    More
    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
There are no activities here yet
Unable to load tooltip content.

Not a member?

Register to ask a question and access to more content.

Join now

Looking for something else?

You can request access to:

  • Courses
  • Full Release Notes
  • Product Downloads
  • SDK

Request access