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

Placement Time and Expense entity #42

Open
leonardosalatino opened this issue Aug 5, 2022 · 0 comments
Open

Placement Time and Expense entity #42

leonardosalatino opened this issue Aug 5, 2022 · 0 comments

Comments

@leonardosalatino
Copy link

Is there a way to upload interactions to the timeAndExpense entity that is embedded in Placement?

I couldn't find the correct way to write the field name, I tried "timeAndExpenseBranch" which is the field name, also tried the same way that is found on API.form.controls "timeAndExpense.timeAndExpenseBranch"; but I face error "No Field Map found for timeAndExpenseBranch"

Also tried changin the entity name in extension.json; used "Placement1.timeAndExpense", "timeAndExpense", "TimeAndExpense1", etc. Receiving error "Invalid Extension: Invalid Entity: Placement1.timeAndExpense".


extension.json

{
    "name": "amp-interactions",
    "fieldInteractions": {
        "Placement1": [
            "./dist/field-interactions/placement/**"
        ]
    }
}

time-and-expense-branch.ts

const interaction: FieldInteraction = {
    fieldName: 'timeAndExpenseBranch',
    event: 'change',
    invokeOnInit: false,
    name: '1218Global',
    sortOrder: 10,
    enabled: true,
    script: (API: FieldInteractionAPI) => {

        console.log('hello');

    },
};

export default interaction;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant