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

The onSurveyInstanceCreated event doesn't provide a parameter that would contain the survey element being configured in Property Grid #5808

Closed
JaneSjs opened this issue Aug 21, 2024 · 0 comments · Fixed by #5811
Assignees
Labels
API change Issues that request changes in the API user issue An issue or bug reported by users.
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Aug 21, 2024

T19483 - options.obj.getType() is throwing error
https://surveyjs.answerdesk.io/internal/ticket/details/T19483


Previously, to access a property grid survey instance, the creator.onPropertyGridSurveyCreated function was used. In the meantime, this function is made obsolete. However, the creator.onSurveyInstanceCreated replacement function doesn't provide an options.obj parameter to determine a target object for which a property grid was created. However, it is possible to determine this element using the options.model parameter: options.model.objValue. Should we add the options.model property to an API description or add an additional option which would contain a target element?

@JaneSjs JaneSjs added API change Issues that request changes in the API user issue An issue or bug reported by users. labels Aug 21, 2024
andrewtelnov added a commit that referenced this issue Aug 22, 2024
andrewtelnov added a commit that referenced this issue Aug 22, 2024
#5811)

* creator.onSurveyInstanceCreated - No property which returns a form element for options.area: "property-grid" fix #5808

* Describe the `obj` property in the `SurveyInstanceCreatedEvent` interface

---------

Co-authored-by: RomanTsukanov <[email protected]>
@RomanTsukanov RomanTsukanov changed the title creator.onSurveyInstanceCreated - No property which returns a form element for options.area: "property-grid" The onSurveyInstanceCreated event doesn't provide a parameter that would contain the survey element being configured in Property Grid Aug 27, 2024
@OlgaLarina OlgaLarina added this to the v1.11.13 milestone Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change Issues that request changes in the API user issue An issue or bug reported by users.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants