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

How to do add extra textfield workitemcompletedialog in workflow

Avatar

Avatar
Validate 1
Level 2
kotireddyn99242
Level 2

Likes

4 likes

Total Posts

19 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
kotireddyn99242
Level 2

Likes

4 likes

Total Posts

19 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
kotireddyn99242
Level 2

07-09-2018

Hi Team,

         Issue: I didn't see property value history metaData node in workflow instance node.

          I am overriding  workitemcompletedialog   /libs to /apps path.

/libs/cq/inbox/content/inbox/dialogs/workitemcompletedialog/items/form/items    to   /apps/cq/inbox/content/inbox/dialogs/workitemcompletedialog/items/form/items

existing.PNG

added extra textfield in  workitemcompletedialog dialog box in /apps path

overlaynode.PNG

Provided title name and comment  in dialog box click Ok button.

completepage.PNG

completed work flow and generated  history nodes metadata, i didn't find textfield value in metaData node. Please find attachment.

workflow1.PNG

Thanks

Kotireddy Naru

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,261 likes

Total Posts

3,150 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,261 likes

Total Posts

3,150 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

08-09-2018

Hi,

You need to include your custom field value in post request, so that it can be process and saved in task metadata.

Go to /libs/cq/inbox/gui/components/inbox/clientlibs/commons/js/inbox.commons.workitem.js and add below line at line number 399. so your new data will be look like this. the 3rd line have my custom type stepTitle.

data[("stepTitle-" + taskId)] = $("[name=stepTitle]", "#workitemCompletionDialog").val();

After adding your code it will have all 3 values.

data[(postDataSelector + taskId)]   = coralNextStepSelect.value;

data[("comment-" + taskId)] = $("[name=comment]", "#workitemCompletionDialog").val();

data[("stepTitle-" + taskId)] = $("[name=stepTitle]", "#workitemCompletionDialog").val();

Screen Shot 2018-09-08 at 3.39.16 PM.png

Screen Shot 2018-09-08 at 3.41.00 PM.png

Screen Shot 2018-09-08 at 3.35.45 PM.png

Avatar

Avatar
Validate 1
Level 2
kotireddyn99242
Level 2

Likes

4 likes

Total Posts

19 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
kotireddyn99242
Level 2

Likes

4 likes

Total Posts

19 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
kotireddyn99242
Level 2

08-09-2018

thanks Arun