Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert row loses existing values #3676

Closed
ebruchez opened this issue Aug 15, 2018 · 3 comments
Closed

Insert row loses existing values #3676

ebruchez opened this issue Aug 15, 2018 · 3 comments

Comments

@ebruchez
Copy link
Collaborator

I have this data, set at design time:

screen shot 2018-08-15 at 3 34 54 pm

I insert a row below the first row and get:

screen shot 2018-08-15 at 3 35 24 pm

The data appears correct:

<form>
    <section-1>
        <control-1/>
        <control-2/>
        <grid-2>
            <grid-2-iteration>
                <item-name>Foo</item-name>
                <units>2</units>
                <unit-price>42</unit-price>
                <row-total>84</row-total>
            </grid-2-iteration>
            <grid-2-iteration>
                <units/>
                <row-total/>
                <unit-price/>
                <item-name/>
            </grid-2-iteration>
            <grid-2-iteration>
                <units>3</units>
                <row-total>297</row-total>
                <unit-price>99</unit-price>
                <item-name>Bar</item-name>
            </grid-2-iteration>
        </grid-2>
    </section-1>
</form>
@ebruchez
Copy link
Collaborator Author

It seems that getDisplayAndEditValueJava is not called at all for the controls in the new iteration.

@ebruchez
Copy link
Collaborator Author

Following #3651, we don't delete the row anymore. So the iteration moves. But it doesn't seem that there is any xxforms-iteration-moved event dispatched. Further, number.xbl reacts to an fr-iteration-moved event, which doesn't appear anywhere anymore.

@ebruchez
Copy link
Collaborator Author

Using xxforms-iteration-moved on that handler appears to fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant