Hi
I have a scenario that on the document we have mergefields with the same name added as below:
«TableStart:QuoteServicePrefix»«Description»«TableEnd:QuoteServicePrefix»
«TableStart:Services»
«ServiceName»«TableStart:MealBasis» («Name»)«TableEnd:MealBasis»
«TableEnd:Services»
«TableStart:ServiceDescriptions»«Description»«TableEnd:ServiceDescriptions»
«TableStart:QuoteServiceDescription»«Description»«TableEnd:QuoteServiceDescription»
«ServicePictures»
«TableStart:Locations»«Name»«TableEnd:Locations»
«TableStart:LocationDescriptions»«Description»«TableEnd:LocationDescriptions»
«LocationPics»
«TableStart:Suppliers»**«Name»**
«Grading»
«Telephone»
«Street», «City», «Code»
«Website»
«TableEnd:Suppliers»
«TableStart:SupplierDescriptions»«Description»«TableEnd:SupplierDescriptions»
«SupPicture»
«TableStart:QuoteServiceSuffix»«Description»«TableEnd:QuoteServiceSuffix»
«TableStart:OptionalPricing»For «TableStart:Currencies»«Code»«TableEnd:Currencies» «Amount» less«TableEnd:OptionalPricing»
«Pricing»
You will notice Descriptions merge field is the field in question and the Descriptions are coming from different tables.
How do I move to a particular mergeField , when we use builderLayout.MoveToMergeField('Description") it always returns the first one and so now we cannot insert new mergefield at the right position as it is always goner insert in reference to the first description merge field.
Secondly should we need to insert a new merge field after «TableEnd:ServiceDescriptions» how do we go about since movetomergefield does not recognise TableEnd and if we say Move toMergeField("ServiceDescriptions ") it will find The TableStart:ServiceDescriptions.
Lastly we have the above section repeated in another section and the new fields we want to insert should also be inserted in that section
Regards
Travelogic Developers