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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Anudeep_Garnepudi
Community profile Anudeep_Garnepudi Community Advisor
Consultant
Hyderabad
27 BADGES
Community Advisor

Community Advisor

Learn more
Joined the community 17-06-2020 6:56:50 AM
Online
Top badges earned by Anudeep_Garnepudi
Customize the badges you want to showcase on your profile
Re: Need to add an attribute to the DIV element based on checkbox selection
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
Checkbox dialog field should be likeYour HTL should be

Views

75

Like

1

Replies

0
Re: Need to add an attribute to the DIV element based on checkbox selection
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@samsundar23 Firstly, HTL currently supporting HTML attributes with key-value pairs.Approach 1 (Recommended):So, you can add attribute something like data-nosnippet="true" if checkbox is checked and no attribute if unchecked.In your dialog checkbox field add value attribute and set value as (String) true.Note: It is always recommended to use uncheckedValue property for checkbox.Add uncheckedValue property and set a blank value.In HTLHeadingApproach 2 (Personally don't recommended):If you srtictl...

Views

99

Like

1

Replies

2
Re: Help, Toggle Full Screen, Cancel, and Done buttons are not visible in my custom dialog
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
Change property name fromtitle="Column Control">tojcr:title="Column Control" on cq:dialog node

Views

78

Like

1

Replies

1
Re: Help, Toggle Full Screen, Cancel, and Done buttons are not visible in my custom dialog
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
Please share Touch UI dialog, this is Classic UI dialog.

Views

89

Like

1

Replies

5
Re: Help, Toggle Full Screen, Cancel, and Done buttons are not visible in my custom dialog
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@zachRuffin Please share dialog xml.

Views

117

Like

1

Replies

7
Re: Multiple field - Multifield
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@AEMnewbie Non composite multifield support only support only one field.Ex.+ myinput - sling:resourceType = "granite/ui/components/coral/foundation/form/multifield" + field - sling:resourceType = "granite/ui/components/coral/foundation/form/textfield" - name = "./pages"In your case, you have 2 fields in your multifield. You must use composite multifield. When you are using composite multifield, you must give name of the mutifiled node which will be created as child node to the component which ho...

Views

50

Like

1

Replies

0
Re: This is a repeat question
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@davidm28404065 Use Event Listeners. Refer https://aem4beginner.blogspot.com/eventing-in-aem

Views

63

Likes

2

Replies

1
Re: How to render different rendition images based on screen resolution in Sightly HTL?
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@shyamasundar-ks Use HTML picture tag and specify widths in each source tag.picture> https://www.w3schools.com/tags/tag_picture.asphttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture

Views

76

Likes

2

Replies

0
Re: Upload SVG image such that svg tag is retained
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
Java 8 or 11, same approach will work.

Views

61

Like

1

Replies

1
Re: Unable to create Content Fragment model in AEM 6.5.4 after adding /apps/cq/Page/POST.jsp
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@DharmaRaju Add null check for currentPage and RequestDispatcher objects. RequestDispatcher forward method parameter should be request, not requestWrapper.

Views

73

Like

1

Replies

0
Re: Upload SVG image such that svg tag is retained
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@annkitaaggarwal For that you need to write a code to extract the content of the svg file and display from HTL/JSP.In your Sling Model or ScriptletInputStream stream = resolver.getResource("/content/dam/../image.svg/jcr:content/renditions/original/jcr:content").adaptTo(javax.jcr.Node.class).getProperty("jcr:data").getBinary().getStream(); String markup = new String(stream.readAllBytes(), StandardCharsets.UTF_8); stream.close(); If you are using HTL, return the string and use below line in HTML${...

Views

72

Like

1

Replies

3
Re: External client lib script is not working during a page creation from existed template
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@Alex86 Instead of extraClientlibs, try creating a node under .../tabs/promo/items and add property sling:resourceType : granite/ui/components/coral/foundation/includeclientlibs and js : toggleinput This way your clientlib will be included along with your tab doesn't matter create page or page properties.-AG

Views

112

Likes

3

Replies

1
Re: How to iterate nodes one by one
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@Ronnie09 Use while loop.while(it.hasNext()) {Node eachChildNode = it.nextNode();eachChildNode.setProperty("...","...");}session.save();

Views

146

Like

1

Replies

3
Re: AEM List view throws error
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@ManuMathew1994 I see you overlayed /libs/cq/gui/components/coral/admin/page/row/row.jsp Just check the code that you have added or modified, you are doing a wrong Type Cast. Remove the overlayed jsp(/apps/cq/gui/components/coral/admin/page/row/row.jsp) and check once if issue still exists. -AG

Views

130

Likes

2

Replies

1
Re: getting error while building the aem 6.1
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@mudaliar847906 Check the article http://mitchfincher.blogspot.com/2018/07/problem-solved-failed-to-execute-goal.html it might help.

Views

77

Likes

2

Replies

0
Re: I want to update node properties using code
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@Ronnie09 Let me understand what you are trying to do.You are getting Node out of a resource, let's call it as resourceNode (in code variable node).You are getting child nodes of resourceNode.But you are looping and setting the value to the resourceNode always.Assuming that you are saving the session.If your condition node.getPath().equals(mapNewComponent.getKey()) fails, you don't see the property.If you condition node.getPath().equals(mapNewComponent.getKey()) passes, you will only see the pro...

Views

81

Likes

2

Replies

0
Re: Is it possible to insert an iframe into the html of an RTE?
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@HenriMM RTE source validator will remove the iframe with source(src). Use Text Area if you are using RTE just for iframe. -AG

Views

135

Like

1

Replies

1
Re: Service unsatisfied
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@keerthana_hn Seems you are using @Reference annotation on implementation class(com.rrd.dam.core.services.impl.AssetReportExportServiveImpl). Try using interface.

Views

207

Likes

2

Replies

1
Re: AEM Slightly - How to call java method whose name is...
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@karanmahi I think this is not directly possible. One way you can do is, in your Model class itself call the method inside a getter method and return the value. Call that Sling Model getter method in HTL.To call method using method name(String/Variable) use reflection API.Refer: https://www.tutorialspoint.com/How-do-I-invoke-a-Java-method-when-given-the-method-name-as-a-string#:~:text=You%20can%20invoke%20the%20method,the%20form%20of%20a%20string.

Views

209

Like

1

Replies

0
Re: How to restrict decimals in numberfield
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@ganthimathir337 Try below config

Views

175

Likes

2

Replies

0
Re: Nested multifield loop
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@Shaheena_Sheikh Target the parent/root multifiled using multifiled name like below.$("[data-granite-coral-multifield-name='./multifield-name'] .coral3-Multifield-item").each(function( index ) { //Parent multifield items loop $(this).find(".coral3-Multifield-item").each(function( index ) { //Child multifiled items loop )}; )};

Views

192

Likes

3

Replies

1
Re: Not able to use Math.ceil in Javascript
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@ShagunMalik You should assign the Math.ceil(..) returned value to a variable.let xyz = 4.6; xyz = Math.ceil(xyz); console.log(xyz);

Views

235

Like

1

Replies

1
Re: Creating Dropdown in multifield using Sightly
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@Keerthana_H_N I guess you want to show the multifield items in a dropdown(select).I have a nested multifield with name options. Multifield has textfield name ./optionBelow is HTL to render multifield items as select. ${item.option}

Views

158

Likes

2

Replies

1
Re: How to configure a servlet via resource type?
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@TB3dock Registering Servlet using ResourceType:I have a component Demo (/apps/ata/components/demo). Now am registering the Servlet with the resource type of my demo component.import javax.servlet.Servlet; import org.apache.sling.api.SlingHttpServletRequest; import org.apache.sling.api.SlingHttpServletResponse; import org.apache.sling.api.servlets.HttpConstants; import org.apache.sling.api.servlets.SlingSafeMethodsServlet; import org.apache.sling.servlets.annotations.SlingServletResourceTypes; i...

Views

203

Like

1

Replies

0
Re: How to combine two ValueMaps?
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@TB3dock You will get NullPointerException if any one of variables is null. allProps.putAll(props);allProps and props should not be null. Please check.

Views

137

Like

1

Replies

0
Re: Question on OOTB Tabs component
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@ganthimathir337 If message if the main tab and item0 and item1 are sub-tabs and title1 and title2 are text fields under item0 and item1 respectively. Try name property value of title1 is ./message/item0/title1 similarly for title2 ./message/item1/title2

Views

201

Likes

2

Replies

1
Re: How to use document.querySelector() in javascript
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@ShagunMalik Are you sure you have at-least one ul tag in page? If there is no ul tag in DOM, document.querySelector("..") will return null.

Views

190

Like

1

Replies

0
Re: unable to fetch dropdown value correctly
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@Shaheena_Sheikh Is granite:class property value(cq-dialog-dropdown-showhide-multi) same for both select fields?

Views

164

Like

1

Replies

0
Re: Check if new item is added to the multifield
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@Shaheena_Sheikh try the below code$(document).on("dialog-ready", function(){ $("coral-multifield").children("button[coral-multifield-add]").on("click", function() { //Logic }); });

Views

287

Like

1

Replies

2
Re: Granite:id to granite:class
Avatar
Applaud 5
Community Advisor
Anudeep_Garnepudi
Community Advisor

Likes

315 likes

Total Posts

337 posts

Correct reply

93 solutions
Top badges earned
Applaud 5
Give back 300
Ignite 3
Give Back 200
Give Back 100
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
add [0] as let fontField = $(this).find(".fontField")[0]; should work.

Views

275

Likes

0

Replies

0