Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Can Inputs in Forms and Pre-Defined Filters be Pipe-Delimited?

Avatar

Level 2

One of the built-in Adobe predefined filters, "Recipients of a delivery" [rcpPerDelivery] allows a user to pipe-delimit values in an input box.  I am attempting to build a new form and form-driven pre-defined filter that leverages this behavior; however, I am struggling to do so.  Has anyone here successfully built a form or pre-defined filter that allows users to bar-delimit inputs?

 

Mimicking the factory filter, I defined some XML for a free-text field:

<inputlabel="Kit Codes"noTransaction="true"required="true"type="edit"xpath="/tmp/@kitCodes"/>

 

But when used in a workflow, the following workflow XML is generated:

<conditionboolOperator="AND"compositeKey=""dependkey=""expr="[delivery/@deliveryCode] IN ('FOO|BAR')/>
...
<tmpindivEligible="all"kitCodes="FOO|BAR"segmentation="true"/>
</ctx>
...


When the default filter is used, I see

...
<!--Coverted to individual comma-separated values as expected-->
    <conditionexpr="[url/@label] IN ('FOO', 'BAR')"internalId="3"/>
    </condition>
    <tmp_cs="Delivery 'MY TEST DELIVERY'"behaviorType="open"segmentation="true"urlFilter="FOO|BAR">
...
</extractOutput>
...
1 Reply

Avatar

Employee Advisor

Did you manage to resolve your query?

Avatar

Level 2

Unfortunately I have not - I've spent several hours trying a few different approaches, but still no luck.  Here's another screenshot of the built-in Adobe filter letting a user know that input can be bar-delimited

rss1_0-1638886297556.png

The query that builds the predefined filter (highly unusual that it is not visible)

rss1_1-1638886382745.png

And then an expanded snippet of the built-in Adobe filter's XML.  It's quite odd, there appears to be no mention in here about using the bar delimiter outside of the "help" prompt.  Which is making me think that perhaps the delimiter for this specific filter is being set in a package.

  <container type="visibleGroup" visibleIf="[/tmp/@behaviorType]='open' or [/tmp/@behaviorType]='click'">
    <input label="Filter by URL label" type="edit" xpath="/tmp/@urlFilter"/>
    <static label="You can specify more than one labels by using '|' (pipe) as a separator."
            type="help"/>
  </container>

If you have any tips or avenues of research to recreating this feature outside of this specific filter, let me know!

Avatar

Level 2

Hey all - has anyone had any luck with this yet?