Nested custom xtypes not calling optionsProvider | Community
Skip to main content
October 16, 2015
Solved

Nested custom xtypes not calling optionsProvider

  • October 16, 2015
  • 3 replies
  • 1457 views

We are using a custom xtype to create cusom multifield lists. The xtype takes the declarations from our dialog, and creates repeatable sections based on your standard dialog xml.

We have created another custom xtype, which is a select box, that populates the options based on a function which returns some values in a JSON object from a content node. It works nicely using optionsProvider.

What happens though is when we declare our select xtype within our multifield xtype, the optionsProvider does not fire, hence not populating the options.

 

Does anyone know if there is a known issue whereby optionsProvider isn't called in such circumstances (nested xtypes)?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

smacdonald2008
Level 10
October 16, 2015

If possible - its recommended to avoid using nested xtypes. 

KavallierAuthor
October 16, 2015

Thanks for both of your replies. I have seen the articles you provided links to Shekhar. I might have to rethink my approach - I do think the nested xtypes is getting a bit messy.