Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Date Picker throwing error "'touchUiDialogPath' property invalid or missing"

Avatar

Level 2

Hi All,
We are upgrading to AEM 6.4 currently and as a part of repository restructuring  we have moved all the workflow related data to
"/conf/global/settings/workflow", during this we also moved out date picker dialog to this folder.

after moving that we are getting
error touchUiDialogPath' property invalid or missing

however, we have configured,
touchUiDialogPath to "/conf/global/settings/workflow/dialogs/schedule_publish_date_picker/cq:dialog"

which is the current location of cq:dialog for date picker.
this date picker has
resourceType : granite/ui/components/coral/foundation/form/datepicker

Can anyone please suggest if anything else is to be done in order to have date picket in workflow dialog path.

Thanks in Advance.

1 Accepted Solution

Avatar

Correct answer by
Level 10
20 Replies

Avatar

Level 10

Does the coral/granite date picker work in a normal component dialog? That will tell us if there is something wrong with that specific resource type on your upgraded instance.

See if you can build a component dialog with that resource type as described here - Scott's Digital Community: Building Experience Manager Component using Granite/Coral Resource Types

Avatar

Level 2

I saw it is working fine on page properties (on/off) fields.

Avatar

Level 10

So its working fine in component dialogs but fails when you have a dialog with that resource type as part of a workflow?

Avatar

Level 2

yes, it works fine on component dialog but when I am using it in workflow dialog specifying the cq:dialog path to it it gives the above error.

1506914_pastedImage_0.png

1506915_pastedImage_1.png

Avatar

Level 10

I am going to test this too to see if i get the same result. I will post back my findings.

Avatar

Level 10

Can you show a screenshot of the workflow model where you are using this custom step?

Avatar

Level 10

Hi,

You cannot use Touch UI resourceTypes in classic UI workflow. there is no full implementation of workflow in touch UI..So better pls use classic UI workflow but don't use touch UI resourceTypes

Also I see that you used xtype: cqinclude and you are using touch UI dialog path.

Thanks,

Ratna Kumar

Avatar

Level 2

I think this is not correct, that how it works in case of workflow and it works fine in AEM 6.2 version.

Avatar

Level 2

Hi smacdonald2008​,

below is my workflow model,

1506962_pastedImage_0.png

and custom dialog looks like,1506964_pastedImage_2.png

Avatar

Level 10

We are going to update this older AEM community article to AEM 6.4 and show use of Touch UI and this resource type -- Adobe Experience Manager Help | Creating an Adobe Experience Manager Custom Worflow Step with a dial...

Avatar

Level 10

Hi,

Yes myself and Scott will update the article: Adobe Experience Manager Help | Creating an Adobe Experience Manager Custom Worflow Step with a dial... to Touch UI in AEM 6.4.

We will keep this posted.

Thanks,

Ratna Kumar.

Avatar

Level 2

.Thanks, smacdonald2008
Just a quick question, do you see this as a product limitation to support Date picker in workflow or do we have any quick workaround?

We are currently going through POC for upgrade work, in case it turns out to be a product limitation we will report it to the concerned team.

Avatar

Level 10

I am not sure - I have not heard of that. I need to investigate this.

Avatar

Level 2

Thanks, Scott
please let me know if you find anything on this.


Thanks a lot for the quick reply and initiating the work for the document update.

Avatar

Level 10

My plan of attack here is to start with the older article on 6.4 and see if that works and then to modify to include Touch UI resource types in the dialog.

Avatar

Correct answer by
Level 10

See this video:

Avatar

Level 2

Hi,
Here it is used in the workflow step, however, I am trying to use the date picker in workflow dialog step so that date value can be entered by workflow assignee during the workflow process and not during designing the workflow model.

Still, it doesn't solve the problem for dialog participant steps in the Touch UI dialog.

Avatar

Level 10

Show a video of the issue you are experiencing. The Resource type shown in the above video should work in all dialogs if setup properly.

Also - if you can - package up your example and a README and place on a Google Drive. I want to look at you package and if necessary - we will send to Eng team.

Avatar

Level 3

Is this article updated?

We are working on AEM 6.4.4.

We also have similar workflow, in one the steps of workflow a participant has to choose activate later and he need to choose date/time from datetime picker.

But the moment we enter anything using datepicker, the date/time values go away and also the datepicker.

In 6.4.3 it used to work, on debugging more I observed that, there is some difference in

/libs/cq/inbox/gui/components/inbox/clientlibs/commons.js between SP-4 and SP-3 for AEM 6.4.

date-picker.png

Below is the code from 6.4.4:

dialog.off('coral-overlay:close' + workitemActionDialogNS)

                            .on('coral-overlay:close' + workitemActionDialogNS, function() {

                            // remove the injected dialog pieces...

                            $(".cq-inbox-dialog-injection-anchor").empty();

                        });

Above highlighted line is removing the entire widget from dialog.

Till SP-3 it was working, please suggest. Thanks in advance.