Home
TeamSite
DCR Data Value as a label value in the DCT
Lee
Some of our users have a simple but very long DCR.
This DCR consits of name value pair textboxes. Each pair of text boxes have a label currently set to "Data Item". All very well.
However as the number of data items have grown the users find it tiresome that all of their data items have the same label. they really want thier labels to be "Data Item - xxxxxxxx" Where xxxxx is the text value of the name element of the name value pair.
Easy I thought...and then thought.... and I could not do it???
Has any one achieved somthing similiar. Can you do it in the datacapture.cfg straight off (something like <label>some var ref</label>) or can you achieve it in some otherway. (The majority of our users use the java GUI but if form api is the only way to go....)
Thanks Lee C
Find more posts tagged with
Comments
gzevin
It would definitely help if you attach the DCT your are talking about.
Having said that - a simple thought - if you put your name/value pairs inot a replicant, they at least will be numbered....
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Bubas_IWOV
Hi,
Why dont you use FormApi to check the number of replicantes and re-write the label everytime one item is added.
Bruno
Lee
Unfortunatly the label really needs meaning (ie the name of the name value pair). you also only get numbered replicants in the browser interface. Our users use the java client in the main.
Lee
As explained we are using the java client in the main so formapi is not the first choice. if however its the only choice then i guess we must look at it.
If no one can come up with an alternative whats the best approach using form api? (Never used it before so resources would be a good start?)
I guess we would need to
onload
check client
if browser read through dcr and label up each name value pair
on add
label up new name value pair.
Adam Stoller
Being as the Java UI for templating is no longer being supported - you'd probably be wise to invest the time to work on re-implementing your templates using the browser interface. Then, if the issue still exists ...
--fish
(Interwoven Senior Technical Consultant)