since ‎17-11-2020
2 hours ago
Shaheena_Sheikh
Level 1
Re: colorfield and datasource
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
You have been very helpful, Thanks!

Views

13

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
Can you please explain the part how on adding objects to optionItems, those items are getting added in the node level in AEM. I mean code from JS is directly going to AEM node how? I dont see you pushing it anywhere in the node path

Views

26

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
in console log the for look is showing only the new values.

Views

42

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
yes clear() is added.

Views

54

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
It may be cache issue, it started working now. There's another issue, if i select one country in first field, then check the second field, it shows the correct options. Then again if select another option in the country, then the new cities option show up along with previous cities option. Rather than showing only new options, its appending old + new options. Now If i dont select anything in the second option and just save the dialog then reopen the dialog. This time if i check the second field ...

Views

68

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
I followed the complete solution but I am facinf a problem with the secod colorfield. Once I have selected a value in the first field, I am able to see the allowed values in the second field. But after i select a value in the second field and save the dialog box and then reopen it again, i am not able to see the options to my second field anymore. Though i am able to see the value i selected for the second field. The second field option is able to persist the data and also showing the selected d...

Views

81

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
let citiesField = $(".cq-dialog").find("#cities")[0]; In this line of your code, what is cq-dialog and cities? are these the properties "name" whose value we provide as ./valueHere?

Views

112

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
I like this approach, I am trying to implement it in my colorfield. My first colorfield is using datasource from generic list while for the second one i will use your appraoch using json. That should work right?

Views

127

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
I thought of this, but my only concern is, wont the servlet call make the actions taken in a dialog slow?

Views

46

Likes

0

Replies

0
colorfield and datasource
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
I have a component whose dialog has 2 colorfield in it. These colorfield are showing the color options from a ACS generic list using datasource node.I want to modify this with:when I select a color in the first colorfield, I want to show some colors in the swatch of the 2nd colorfield based on the selection of the 1st one.Example:1st pink--2nd black, white, yellow etc1st green--2nd red, blue, teal etc

Views

173

Likes

0

Replies

19
Re: Adding secure attribute to cookie
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
My page is loading on HTTPS but yet I can see a few cookies not being HttpOnly/Secure

Views

54

Likes

0

Replies

0
Re: Adding secure and httponly attributes to JSESSIONID cookie
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
Did you find a solution to this?

Views

6

Likes

0

Replies

0
Adding secure attribute to cookie
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
Hi All,I am trying to figure out how can I make my existing cookies secure by adding secure attribute (PS. I am newbie to cookies).

Views

96

Likes

0

Replies

4
Re: Fetch node property value of asset whose Properties p...
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
Your code sure works but it fetches alot of data in the response. How can i use a loop or something to get details of its children?

Views

68

Likes

0

Replies

0
Re: Fetch node property value of asset whose Properties p...
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
Can you please provide some link which I can use to explore further more on this one?

Views

75

Likes

0

Replies

0
Re: Use Api in JS
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
i think what you are saying makes sense. That may be the issue. All I want to accomplish is to fetch currentNode property-value in my valdation and so i thought to use the USE API. Is there anyway to get that done?

Views

77

Likes

0

Replies

0
Re: Use Api in JS
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
I saw that ticket but i dont think that's relevant because i just started my local instance but i still see the same issue

Views

65

Likes

0

Replies

0
Use Api in JS
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
I have create a custom js file in a clientlib with category dam.gui.coral.metadataeditor. I have added the below code to my JS:"use strict";use(function () {var path = currentPage.path;});When I open the Properties page for my asset this JS loads. But I am seeing a console error:Uncaught ReferenceError: Use is not defined at I am not able to use the Use Api in my javascript

Views

134

Likes

0

Replies

7
Re: Prevent image from auto download
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager Assets
That is working for specific images. How can I set it up for all the images in a particular folder under /content/dam?

Views

43

Likes

0

Replies

0
Fetch node property value of asset whose Properties page is open
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
I have added a new dropdown to the asset Properties page. I have also added a custom validation file to the asset metadata schema. When I select any asset and open the Properties page, the JS file loads. I wanted to verify the value of some node properties-value (like title, mime type etc) of the asset whose Properties page is open. But i dnt know how can i get the resource and its property values.

Views

125

Likes

0

Replies

4
Re: Custom Validation to Asset Metadata
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
The solution is to add the category as dam.gui.coral. and it gets loaded!

Views

77

Likes

0

Replies

0
Re: Custom Validation to Asset Metadata
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
there is no dialog node in Metadata schema of asset

Views

89

Likes

0

Replies

0
Custom Validation to Asset Metadata
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
I need to add custom validation to a field in the asset metadata editor schema (Dropdown). I created clientlib (category = xyz) and js files under /apps (the JS file is only having a console.log). To the dropdown node I added property 'extraclientlibs' and value 'xyz'. I added a 'granite:data' node as a child node to the dropdown.But the JS doesnt load.Where do we need to add the JS to be able to validate a field in asset metadata schema?(i was working on /conf/global/settings/dam/adminui-extens...

Views

108

Likes

0

Replies

4
Cascading checkbox in metadata schema of asset
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
I have enabled the checkbox in the metadata schema but I am not able to see all the cascading options under the rule tabs for my checkbox. How can I enable that?

Views

65

Likes

0

Replies

1
Prevent image from auto download
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager Assets
When I open the link below, the image download automatically. I wanted to prevent the image from downloading and wanted it to load on the browser, so I unchecked the checkbox in Apache Sling Content Disposition Filter for the field Enable For All Resource Paths. But even if I add content/*:image/jpg to Included Resource Paths & Content Types, the image still gets downloaded. I also tried by adding the absolute image path to Excluded Resource Paths, the image still gets downloaded. How can I prev...

Views

89

Likes

0

Replies

2
ACS Commons Generic List
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
ACS Commons Generic List is present under /etc, but is it possible to use the list from /apps?

Views

107

Likes

0

Replies

2
hex code for no color in colorField
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
I am using granite colorField and i have allowed no color option in its swatch. the title value pair for no color is :the value is emptyIn my js file, I need to check if no color option is selected. but the below code doesnt work:selector: "[xyz]",validate: function(el) {var input = el.value;if(input != "" && input != ''){//task}whereas if I check using some hex code for color, then the if condition works fine. What is the code/way to check no color? I am using acs commons generic list to get co...

Views

87

Likes

0

Replies

1
Re: Clientlib issue
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
if i create a clientlib for dialogs only then if i include those clientlib through the granite-include-clientlib node, will the other clientlib that belongs to my component wont get discarded right?

Views

89

Likes

0

Replies

0
Re: Clientlib query
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
so if i have a valid clientlib inside my component folder, that wont get called automatically and i have to include it to call it.

Views

102

Likes

0

Replies

0
Clientlib query
Avatar

Shaheena_Sheikh

Shaheena_Sheikh
- Adobe Experience Manager
If I add a clientlib files under my component package, will that get automatically picked or do I need to call it in my html/js files?

Views

161

Likes

0

Replies

5