Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Replicatable DCR Datums -in-context edit
joe_pat
Hello,
We have a Replicatable DCR datum with in our component and we have to make the text field with in the DCR in-context editable.
When i browse two DCRs as input, based on the code i have written in attachment I was able to display the content properly.
But in-context functionality is not working fine for the replicated DCR's field. when i did in-context on these DCR's field it is always opening the first DCR's Field only.
I understand the i am not setting the focus to the right field.
Con some one suggest what is wrong in my code.
Thanks,
Joe.
Find more posts tagged with
Comments
Adam Stoller
I'm just guessing - haven't tried it out, could be completely wrong - but I think the problem is with the 'in-context-edit' attribute value in:[php]
[/php]I think you either need to reference it as
../
@ID
or you need to change the code so that you match only on the Datum itself for the 'template' and then use conditional code to test if
./DCR[
@Type=
'LinkList']
, and if so, then use
./
@ID
for the in-context-edit attribute value.
My basis for the guess is that I believe the way you have it written now it will always process that value as a list of all matching entries (not the one that matched to get you there) and always end up as the first match.
joe_pat
Thanks Ghoti. your suggestion Worked.