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

Anudeep_Garnepudi
Community profile Anudeep_Garnepudi MVP
Consultant
Hyderabad
20 BADGES
MVP

MVP

Learn more
Joined the community 17-06-2020 6:56:50 AM
Offline
Top badges earned by Anudeep_Garnepudi
Customize the badges you want to showcase on your profile
Re: Service unsatisfied
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
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

100

Likes

2

Replies

1
Re: AEM Slightly - How to call java method whose name is...
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
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

99

Like

1

Replies

0
Re: How to restrict decimals in numberfield
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@ganthimathir337 Try below config

Views

89

Likes

2

Replies

0
Re: Nested multifield loop
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
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

104

Likes

3

Replies

1
Re: Not able to use Math.ceil in Javascript
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
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

128

Like

1

Replies

1
Re: Creating Dropdown in multifield using Sightly
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
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

92

Likes

2

Replies

1
Re: How to configure a servlet via resource type?
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
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

70

Like

1

Replies

0
Re: How to combine two ValueMaps?
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
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

73

Like

1

Replies

0
Re: Question on OOTB Tabs component
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
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

109

Likes

2

Replies

1
Re: How to use document.querySelector() in javascript
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
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

99

Like

1

Replies

0
Re: unable to fetch dropdown value correctly
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
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

96

Like

1

Replies

0
Re: Check if new item is added to the multifield
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
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

156

Like

1

Replies

2
Re: Granite:id to granite:class
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
add [0] as let fontField = $(this).find(".fontField")[0]; should work.

Views

145

Likes

0

Replies

0
Re: Granite:id to granite:class
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@Shaheena_Sheikh Any console errors? It should work. I think .each close parenthesis is missing.[Update]: Checked updated code, [0] is missing at let fontField = $(this).find(".fontField")[0];Adding that should work.

Views

176

Like

1

Replies

2
Re: How to use onready function?
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@ShagunMalik Can you share HTML and JavaScript for better understanding.If my assumption is correct, here you don't need a submit button . Have a normal button and on click of that button get input field value and do an AJAX call. This way user will be on same page and you can use existing variables/data and get search response data.

Views

125

Like

1

Replies

0
Re: Getting error "Cannot set property 'innerHTML' of und...
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@ShagunMalik HTML Using Vanilla JavaScript document.getElementById("my-id").innerHTML = "Some text"; Using jQuery $("#my-id").text("Some text");

Views

130

Like

1

Replies

0
Re: How to convert/export the AEM page into an experience...
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@vijays80591732 Directly hit page(/content/myapp/en/us_en/home.html) from front-end(AJAX) and you will get entire page html as response. You can request for child nodes also(/content/myapp/en/us_en/home/_jcr_content/root/...../xyz.html).

Views

135

Like

1

Replies

0
Re: Disabling a field in dialog
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@Shaheena_Sheikh disabled form fields will not be submitted. You can try making it readonly.

Views

172

Likes

2

Replies

3
Re: Exception while running aem jar in MAC Machine
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@bhanuprakashdod Check https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-license-and-installation/qaq-p/397135/comment-id/85562#M85562 and give a try.

Views

97

Like

1

Replies

0
Re: Error during include of component - TextModel cannot...
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@Codelime Caused by: org.apache.sling.models.factory.MissingElementsException: Could not inject all required fields into class com.adobe.business.core.models.TextModelField or few Fields in Sling Model is/are not being injected.Try setting defaultInjectionStrategy as optional at class level or mark field as optional.@Model(adaptables=Resource.class, defaultInjectionStrategy=DefaultInjectionStrategy.OPTIONAL)@Inject @Optional private String anyField;If still not working, share your Sling Model co...

Views

465

Likes

2

Replies

1
Re: RTE - Default Typography and Text Color
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@santhoshsrg add externalStyleSheets property to RTE node and give css file path as value. Write css targeting cq-dialog class. Ex: .cq-dialog .coral-RichText-editable * { color: red; }

Views

104

Likes

2

Replies

0
Re: AEM jar 6.5: [ERROR] Request to http://localhost:4502...
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@jkiel1091 Check the below link and login first before you build.https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-license-and-installation/qaq-p/397135/comment-id/85562#M85562

Views

150

Like

1

Replies

0
Re: Removing JS from html file
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@JakeCham please share code and use case.

Views

145

Likes

0

Replies

0
Re: How can we duplicate the authoring contents of a fiel...
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@RkR_F5 There is no such OOTB functionality. You should write custom listener to achieve this. Why you want to duplicate the content?Write a listener on multifield add clickGet nth and (n-1)th multifield-itemsGet the content of (n-1)th item and set to nth item's fields[Update]: Just gone through your use case. One way I think of is, you set default value to each of the filed with in multi-filed, so on adding multi field item will get the default values. Blow code to execute logic on multifield a...

Views

252

Like

1

Replies

3
Re: Issue in pushing values into dataLayer object
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@samsundar23 In the example you shared the request url is https://dev.ms.net/homepahe.html, you don't have sub or sub-sub levels.Do undefined check not null check and see once.Example:if(urlWithoutExt.toString().split("/")[4] != undefined){ tempsubsubsection = urlWithoutExt.toString().split("/")[4]; }

Views

120

Like

1

Replies

0
Re: Removing JS from html file
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@JakeCham In your JavaScript you might be targeting only one component. You should get all the components and loop them and execute your logic once for each component on page.Example:document.querySelectorAll(".cmp-class").forEach((eachComponent) => { eachComponent.getAttribute(...); .... });

Views

186

Like

1

Replies

2
Re: Need to show and hide a field description based on th...
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@samsundar23if (...) { product.closest(".coral-Form-fieldwrapper").find("coral-icon.coral-Form-fieldinfo").show(); } else { product.closest(".coral-Form-fieldwrapper").find("coral-icon.coral-Form-fieldinfo").hide(); } Update with above lines and try once.

Views

119

Likes

0

Replies

0
Re: Decimal value with number field failing for specific...
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@volgadr10 Even I see issue using granite/ui/components/coral/foundation/form/numberfield, working as expected using granite/ui/components/foundation/form/numberfield. Give a try.

Views

149

Like

1

Replies

1
Re: Concurrent writing to the session.
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
@chandramohanred Go through the beautiful article by @Jörg_Hoh , will be helpful.https://cqdump.joerghoh.de/2015/03/02/aem-scaling-patterns-avoid-shared-sessions/

Views

125

Likes

2

Replies

0
Re: Optimizing page loading by removing script inside htm...
Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
- Adobe Experience Manager
Welcome 🙂

Views

197

Likes

0

Replies

0