Predefined filter with form: Keep values when same attribute or xpath more than once
Hello
Here is a part of the form of the predefined filter “By age range”:
<form colcount="3">
<enter>
<set value="0" xpath="/tmp/@min"/>
<set value="0" xpath="/tmp/@max"/>
</enter>
<container colcount="2">
<input label="Minimum age" minValue="0" noTransaction="true" type="number" xpath="/tmp/@min"/>
<input label="Maximum age" minValue="0" noTransaction="true" type="number" xpath="/tmp/@max"/>
</container>
I did something similar with dates (minimum and maximum date). But if I use the “/temp/” path the inserted values are not kept when I later come back.
In contrast to this is the form of the predefined filter “By name or email”, where the values are kept when I come back later:
<form colcount="2">
<input noTransaction="true" xpath="@lastName"/>
<input noTransaction="true" xpath="@email"/>
</form>
But I can’t do it that way because in my case it would be something like:
<form colcount="2">
<input label="Minimum date of deliveries" noTransaction="true" type="datetime" xpath="execution/@broadStartDate"/>
<input label="Maximum date of deliveries" noTransaction="true" type="datetime" xpath="execution/@broadStartDate"/>
</form>
So the xpath for both input tags is the same ("execution/@broadStartDate"), and I see no way of dealing with it in the filter conditions of the General tab.
So: Is there a solution, where I can use the same attribute or xpath in the form of a predefined filter twice in a way that the inserted values are kept, so I can see them when later I come back?
Michael