Skip to content

DPL interpreter cannot access AngularObjects created via Angular forms #323

Description

@Laukkala

Describe the bug
Setting a value in one paragraph using Angular interpreter creates an AngularObject, but that AngularObject is not available for use in other paragraphs using different interpreters, for example DPLInterpreter, even if the AngularObject is set as global.

Same applies to ResourcePools when using z.put() and z.get()

Expected behavior
It should be possible to set a value using Angular Interpreter for use in other interpreters

How to reproduce

Create paragraph 1 (remember to replace paragraphIds to match your version):

%angular
<form>
    <label class="form-label">
        Select column
    </label>
    <div class="input-group">
        <input ng-model="angularValue" type="text" class="form-control" placeholder="Write something" />
        <button ng-click="z.angularUnbind('angularValue'); type="submit" class="btn btn-secondary">
            Reset
        </button>
        <button ng-click="z.angularBind('angularValue', angularValue, 'paragraph_1731580770564_1960409457');" type="submit" class="btn btn-primary">
            Send
        </button>
    </div>
</form>

Create paragraph 2:

%dpl
index=crud earliest=-5y
| spath
| rename count as operationCount
| stats sum(operationCount) by ${angularValue}

Setting a value in paragraph 1 creates an AngularObject, but that AngularObject is not available for use in Paragraph 2

Software version
4.0.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions