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

Not possible to access store of resource combo resources tab of task editor #567

Closed
matsbryntse opened this issue Apr 21, 2020 · 2 comments
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@matsbryntse
Copy link
Member

matsbryntse commented Apr 21, 2020

Forum post

Should be possible to access the rendered task editor child components in 'beforeTaskEditShow'

new Gantt({
    listeners : {
        beforeTaskEditShow({ taskEdit, editor }) {
            let resourceCombo = editor.widgetMap.resourcestab.resourceCombo;
            console.debug(resourceCombo.store);  // THIS IS UNDEFINED
        }
    },
@matsbryntse matsbryntse added bug Something isn't working forum Issues from forum labels Apr 21, 2020
@matsbryntse matsbryntse self-assigned this Apr 21, 2020
@matsbryntse matsbryntse added resolved Fixed but not yet released (available in the nightly builds) ready for review Issue is fixed, the pull request is being reviewed and removed resolved Fixed but not yet released (available in the nightly builds) labels Apr 21, 2020
@matsbryntse matsbryntse changed the title Not possible to access store of resource combo resourcestab of task editor Not possible to access store of resource combo resources tab of task editor Apr 21, 2020
@matsbryntse matsbryntse removed their assignment Nov 5, 2020
@SibelcoMX
Copy link

Any idea when this will be implemented?

@matsbryntse matsbryntse added this to the 4.1.6 milestone Jun 15, 2021
@pmiklashevych
Copy link

pmiklashevych commented Jun 15, 2021

new Gantt({
    listeners : {
        beforeTaskEditShow({ taskEdit, editor }) {
            let resourceCombo = editor.widgetMap.resourcesTab.resourceCombo;
            console.log(resourceCombo.store);
        }
    },

Works just fine

Note resourcestab should be replaced with resourcesTab

@pmiklashevych pmiklashevych added resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

3 participants