|How do I define the Sampler name in the URL of a Knowledge Base Article?
This can be done by adding an Xpath url element in a KBA set. You can either define a specific sampler name or the parent sampler name of the target.
The XPath to get the Sample name is:
This can be generalised to get the name of any element that has one, just replace sampler with whatever you need.
For example, we have a KBA Set named "Sampler page". The KBA "Sampler URL" has three url elements. One of which is an xpath using the ancestor function to get the sampler name above the target of the KBA which is the cell of the dataview. The configuration of your KBA set should follow the xml codes below.
For further details regarding ancestor functions on relative paths, please refer to 31.3 Appendix E of the Gateway Technical Reference Guide.