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

Modify dialog field value after submit

Avatar

Avatar
Validate 10
Level 2
Veera_kandregul
Level 2

Likes

5 likes

Total Posts

27 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
Veera_kandregul
Level 2

Likes

5 likes

Total Posts

27 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
Veera_kandregul
Level 2

15-10-2015

Hi All,

We are trying to achieve multifield dialog using TouchUI dialog where there will be two fields say Title and Link, which are part of multifield. 

We would like to store these two values as <titlevalue>:<linkvalue> againist a property under appropriate content node after submission.

 

Example:

I have two dialog fields, say Title (with name as ./title) and Link (with name as ./link). Under normal dialog submission, the values will be stored in title and link properties. But i would like to get them stored under new property 'titleandlink' with its value as <titlevalue>:<linkvalue>  where titlevalue and linkvalue are the values entered in the dialog.

 

Can you please advise me how to achieve this?

Thanks,

Veera

View Entire Topic

Avatar

Avatar
Validate 10
Level 2
Veera_kandregul
Level 2

Likes

5 likes

Total Posts

27 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
Veera_kandregul
Level 2

Likes

5 likes

Total Posts

27 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
Veera_kandregul
Level 2

15-10-2015

Thank you Scott, for your inputs.

I am more interested to manipulate the data at the dialog level itself (like using cq:listeners like afteredit etc..) as they will be perfect place to act upon dialog data as soon as they get submitted.

I can also try using Java side of the component, provided it will get triggered before dialog data is written to content/../jcr-content/.. node.

Can you please point me to any classes in the JCR API i can use for this purpose?

My requirement is to build multifield dialog for touchUI, i want to write the value as String array in below format.

[title1:link1,title2:link2,title3:link3] provided user entered these values in the dialog in 3 containers (multifield) each containing two fields "Title" and "Link"

 

Can you please point me to any classes in the JCR API i can use for this purpose? or any example code to achieve the same?