since ‎27-11-2014
‎10-12-2019
alvin_l
Level 1
Re: How to save the value in workflow?
Avatar

alvin_l

alvin_l
- Adobe Experience Manager
Hi,Did this problem solved? I am currently building the same feature (activate later) into my own workflow but facing an issue capturing the absoluteTime data into metaData node. By referring to this URL (http://adobeaemclub.com/scheduled-activation-workflows/), "Have a custom workflow step that sets a workflow “metaData” with property name “abosluteTime” and value being the time in milliseconds", I used a dialog participant step, created my dialog with nodename ./metaData/absoluteTime, the inpu...

Views

188

Likes

0

Replies

0
Re: AEM MailService always enclose content into "pre" tag
Avatar

alvin_l

alvin_l
- Adobe Experience Manager
Hi,Just in case if anyone need solution, this issue is temporary fixed by wrapping my HTML email content with a " HTML CONTENT ".Thanks.

Views

71

Likes

0

Replies

0
Re: AEM MailService always enclose content into "pre" tag
Avatar

alvin_l

alvin_l
- Adobe Experience Manager
Hi kalyanar,Please see below: ArrayList emailRecipients = new ArrayList(); emailRecipients.add(new InternetAddress(email_address)); Map mailTokens = new HashMap(); mailTokens.put("xxx", xxx); mailTokens.put("yyy", yyy); HtmlEmail email = new HtmlEmail(); Resource templateRsrc = request.getResourceResolver().getResource(templatePath); final MailTemplate mailTemplate = MailTemplate.create(templateRsrc.getPath(), templateRsrc.getResourceResolver().adaptTo(Session.class)); email = mailTemplate.getEm...

Views

70

Likes

0

Replies

0
Re: AEM MailService always enclose content into "pre" tag
Avatar

alvin_l

alvin_l
- Adobe Experience Manager
Hi,Is this solved? I am having the same issue right now but I couldn't find the solution or any possible place inserting the tag.Thanks.

Views

70

Likes

0

Replies

0
Dynamic checkbox list on dialog
Avatar

alvin_l

alvin_l
- Adobe Experience Manager
Hi,I have 2 dynamic list of topic and subtopic on a dialog which is actually being retrieved from the site tree. For example, here is the tree structure:-- Topic A -- Subtopic 1 -- Subtopic 2-- Topic B -- Subtopic 1 -- Subtopic 2-- Topic C -- Subtopic 1 -- Subtopic 2 -- Subtopic 3User want on that dialog to be, when user checked topic C, the subtopic of topic C will be appended to the bottom of topic C checkbox, the same goes for topic A and B. The subtopic checkbox list will be removed when unc...

Views

75

Likes

0

Replies

0
Question regarding query builder API search excluding a path
Avatar

alvin_l

alvin_l
- Adobe Experience Manager
Hi Sir/Madam,I have a question regarding the query builder API (http://docs.adobe.com/docs/en/cq/current/dam/customizing_and_extendingcq5dam/query_builder.html).If I have a tree structure as below:--> Landing --> Category 1 --> Sub Category 1 - Item 1 - Item 2 --> Sub Category 2 - Item 3 --> Category 2 --> Sub Category 1 - Item 4 - Item 5What I need to achieve is by using query builder API:1. Grab 3 items from a given subcategory2. If there is less than 3 items in the given subcategory, grab fro...

Views

1.8K

Likes

0

Replies

1
Re: querybuilder order by default node order
Avatar

alvin_l

alvin_l
- Adobe Experience Manager
Thanks Sham HC , I have changed to used node.getNodes().And thanks Mshajiahmed for your reply.

Views

830

Likes

0

Replies

0
Re: querybuilder order by default node order
Avatar

alvin_l

alvin_l
- Adobe Experience Manager
Hi,I tried with @path and @jcr:path, both didn't work as well. Basically if I removed the orderby=@path, the order of the results remained unchanged.For example if I used the geometrixx site, for example with the following query in the querydebugger:type=cq:Pagepath=/content/geometrixxproperty=jcr:content/cq:templateproperty.value=/apps/geometrixx/templates/homepageorderby=@pathThis will give me the following results:/content/geometrixx/de (crxde, html, json)/content/geometrixx/es (crxde, html, ...

Views

729

Likes

0

Replies

0
Re: querybuilder order by default node order
Avatar

alvin_l

alvin_l
- Adobe Experience Manager
Hi,thanks a lot for your reply. I tried but it didn't work, do I need to specifically stored the path attribute into the child page's node's property?This is my code: Map queryMap = new HashMap(); queryMap.put("type", "cq:Page"); queryMap.put("path", requestedPage.getPath()); queryMap.put("1_property", "jcr:content/cq:template"); queryMap.put("1_property.value", "xxxxxxx"); queryMap.put("orderby", "@path"); //queryMap.put("orderby.sort", "asc");requestedPage is my Parent Page which I perform the...

Views

731

Likes

0

Replies

0
querybuilder order by default node order
Avatar

alvin_l

alvin_l
- Adobe Experience Manager
Hi,Is there a possibility for query builder to order by the default order in site admin (default node order), so when I drag the page to change its order in the site admin, my query builder results would retrieve it by the new order. This is the query builder I used: http://docs.adobe.com/docs/en/cq/current/dam/customizing_and_extendingcq5dam/query_builder.html, however, if I didn't input the orderby parameter, it is automatically sorted by either created date or modified date, but what I need t...

Views

3.0K

Likes

0

Replies

8