maynors2427659
Community profile maynors2427659 Level 2
Job title here
Location here
2 BADGES
Level 2

Level 2

Learn more
Joined the community 22-08-2018 11:02:42 AM
Offline
Top badges earned by maynors2427659
Customize the badges you want to showcase on your profile
Re: Get cqdialog properties in Model adaptable from SlingHttpServletRequest
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
ValueMap vm= request.getResource().getValueMap();

Views

587

Likes

0

Replies

0
Get cqdialog properties in Model adaptable from SlingHttpServletRequest
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
Hi, Is there a way to access the cq dialog properties from a Model like this:@Model(adaptables = SlingHttpServletRequest.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)public class MyClass {@Selfprivate SlingHttpServletRequest request;@Injectprivate Page currentPage;@Injectprivate ResourceResolver resourceResolver;And here's the HTLIs there a way to access them without sending them as parameter ( ) or if i have to send them by parameter how is this done and what type of obj...

Views

1.1K

Likes

0

Replies

4
Send parameters to common cq dialog
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
Hi, I have a component with a cq dialog with several tabs, they share the same content so i separate them. This is one of the tabs I have a select with cq-dialog-dropdown-showhide so I need to send a parameter in order to call the JS function with a different name, otherwise it will show and hide the options in the other tabs: How do I send the parameters to this other file in common, something like this:ANd how do I receive it?Thanks,

Views

957

Likes

0

Replies

3
Re: Concat in Ternary Condition
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
Thank you so much, that's the answer I needed. Just made a few changes in case someone is interested${!properties.timezoneminute ? ":00" : [':', properties.timezoneminute] @ join=''}

Views

746

Likes

0

Replies

0
Concat in Ternary Condition
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
Hi, Is there a way to concat a var or a string in a ternary condition as shown below:"${ properties.timezoneminute ? ":" ${properties.timezoneminute} : ":00"Off course, this does not work. In the example, I want to show the timezone minutes if there is any chosen otherwise show just 00. EST+18:15, EST+19:00, etc... The "var" I am trying to concat is the Colon (":").Thanks

Views

953

Likes

0

Replies

3
Re: Avoid Override when save cq Dialog
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
Hi, no i was unable, I saved the responsive grid out of the tabcontent and associated it with an id. That's the only way I found. However the problem with this approach is if you delete the tabcontent then the responsive grid associated with it won't be deleted.

Views

4.5K

Likes

0

Replies

2
Re: Avoid Override when save cq Dialog
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
Hi, any ideas about this? Or maybe it's a bug?

Views

4.5K

Likes

0

Replies

0
Disable textfield if not empty in cq dialog
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
I want to call a JS function on load of cq dialog to validate if a field already has something, if so, disable it from edition. I have tried with validation but it is called after the users interacts with the field, I need a way to do it before, when is being loaded. It is possible?

Views

1.1K

Likes

0

Replies

1
Re: Avoid Override when save cq Dialog
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
Sure, HERE is the code.

Views

4.5K

Likes

0

Replies

1
Re: Avoid Override when save cq Dialog
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
HTL CODE:

Views

4.5K

Likes

0

Replies

3
Re: Avoid Override when save cq Dialog
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
Thanks for answering, here is a video with current behavior, I tried setting the flag deleteHint to false to the multifield, keeps the content but the problem is when I try to delete something, does not delete anything.

Views

4.5K

Likes

0

Replies

0
Avoid Override when save cq Dialog
Avatar
Validate 1
Level 2
maynors2427659
Level 2

Likes

0 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
maynors2427659
- Adobe Experience Manager
I am developing a TABS component, in the cq dialog I have a multifield where you can add the TAB title, then in the HTL it will create a responsive grid inside the item# path of the multifield (as shown below)The problem is when I try to do anything later on the cq dialog, I go and for example, I add a new Tab, and somehow the responsivegrid(tabcontent) is gone for all the tabs, I am guessing that the cq dialog overrides the items of the multifield everytime you close it.I need to prevent this "...

Views

5.2K

Likes

0

Replies

10
Likes given to