Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to set a blank default value to a list field under Cloud Services that is dynamically populating options?(Touch-UI)

Avatar

Avatar
Level 1
Bhanu_Sabbella1
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Bhanu_Sabbella1
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Bhanu_Sabbella1
Level 1

21-01-2019

Hi,

I have a list field "Add Configuration" which will populate a list of all the config pages under "/etc/cloudservices/myConfiguration". This is basically using the "/libs/cq/cloudserviceconfigs/components/childlist" which is iterating the nodes and appending it to the list.

I tried to overlay this component by adding a blank default value to the list but failed to overlay as this component has a mixinType "granite:finalArea". i.e., it cannot be overylaid or inherited.

Is there a way where I can add a blank value as default value to this list.

Classic UI has a blank value by default which is mismatching with the touch ui cloud services tab.

Thanks in advance!

Regards,

Bhanu Sabbella

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

21-01-2019

Can you please describe what you did in detail so the community can try to reproduce it.

Avatar

Avatar
Level 1
Bhanu_Sabbella1
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Bhanu_Sabbella1
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Bhanu_Sabbella1
Level 1

24-01-2019

Hi,

I have a list field under 'Cloud Services' tab in 'Page Properties'.

This list will populate its options from /etc/cloudservices/myconfigPage under which I have few config pages created.
It will iterate through these config pages getting their properties and show as list options to my list field.

Always, the first of the nodes is shown as the default value.

Requirement: I want a blank value as the default value not the first node option.
For this, I tried to overlay "/libs/cq/cloudserviceconfigs/components/childlist" which has a limitation to be overlaid as I mentioned above.

Please let me know if I can achieve my requirement in any other way.

NOTE: This is working fine in Classic UI. Need the same in Touch UI

Thanks!

Avatar

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile
Gaurav-Behl
MVP

25-01-2019

If you can't overlay, which is the case here, then duplicate the code and with the consideration that you may have to refactor it in future. That should work for you.