How to add items in multyifield | Community
Skip to main content
sherybedrock
Level 3
October 9, 2017

How to add items in multyifield

  • October 9, 2017
  • 2 replies
  • 12702 views

Hi all,

I'm adding some default values in a multyfield via javascript. There is a check box on which I have a listener and if it is checked loop over the selection items of the multifield and adding items with values. On first open of the dialog and check the checkbox values are populated fine, but if I disable the checkbox, click ok. Then open again the dialog click on the check box and the stored values are not populated. There is only addItem. When I click on add item it opens the field but with broken view. Then I shoud extend the dialog and now all values are displayed correctly. Any ideas how can gix this issue.

Regards

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

2 replies

kautuk_sahni
Community Manager
Community Manager
October 10, 2017

I am not very clear here, is your checkbox in multifield? If so, this is known the issue.

See:- http://sgaem.blogspot.in/2017/04/touch-ui-composite-multi-field-with.html

// When the checkbox is in the Composite Multi-Field, It doesn’t work properly. The checkbox would remain unchecked on re-opening the dialog box even if it was checked earlier.

~kautuk

When we use checkbox widget in Composite Multi-Field, It doesn’t work properly.

Kautuk Sahni
sherybedrock
Level 3
October 10, 2017

sherybedrock
Level 3
October 10, 2017

any ideas how can i fix this issue


on load width is 0, but on resize it is applying a new correct size​

smacdonald2008
Level 10
October 10, 2017
sherybedrock
Level 3
October 10, 2017

The problem is in set visible, because when it is false is setting some width=0 and i don't have a solution for now multi.setVisible(selected);