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)
Values in the OR Container not re-populating automatically
Mohan_Babu
Hi!,
I have a problem with the data captured in the DCT, i have the following code in my DCT
[HTML]
Type
LinkURL
Image (Optional)
Topic
Topic
[/HTML]
I create a DCR by selecting the type2 container and populate all the data for all the items within that container. save it and close it.
I again comeback and open the DCR which i have created, i could see all the data that i had populated in it, now in the same DCR i change the container type from type2 to type1, it shows me the items in the container for type1.. which is perfectly right[type2 container is gone since its a "OR" type and only one can be shown],
the problem is that when i reselect the type2 container again, it shows all the items blank, it doesn't show the data which i had entered earlier.
if i close the DCR and open it again it will show me type2 with the all the data i had entered, but when i change it to someother type and come back to the same type it will show me blank...
it there a way to restore the values when the change back to the same type.. .
Any help in solving this...
Thanks
Mohan
Find more posts tagged with
Comments
ISCBorisB
is there a way to restore the values when the change back to the same type...
Not OOTB and not without custom coding.
You can perhaps save your data in hidden items and restore them upon some events, etc. However, with the scenario like that
it is IMO easier to use a regular and-Container and toggle sub-containers
visibility
through FormAPI.
Mr_Cruise
A simple solution may be to submit the DCR once it has been saved, via From API. Then just tell the business users to revert if they need to roll back. This probably does not meet your requirement 100% but at least it’s a happy compromise
I would NOT start storing content in a temporary structure as you are going to enter a whole world of pain.
Mohan_Babu
Thanks Boris and Cruise..
Boris,
The problem that i found with the "or" container is that i have no event on which i can capture the values and store it as hidden... as there is a replicant option("+" sign) which i can only use to change the container type.. and onreplicantAdded doesn't work for that...
the other option might work, but i actually have 5 containers and within each there are 5 to 6 containers, so if i go with formapi to control the visibility i am going mad.. the formapi code is going into pages... i had tried that for just 2 containers.. but it become too complex.. hence want to avoid it..
Thanks
Mohan
Mohan_Babu
Guys,
I found that it is a Bug with TS 6.5 and they have fixed in SP3 and 6.7.1, but we are still in 6.5 SP2. so i guess if we install SP3 it should solve the problem..
Thanks
Mohan