Linking Fields | Adobe Higher Education
Skip to main content
davidl14970702
Level 4
March 8, 2018

Linking Fields

  • March 8, 2018
  • 2 の返信
  • 8195 ビュー

I would like to set one field with an enumeration (on the left, below (@campaign_ministry_area)), and then have the selection be populated in another filed (on the right,webAnalytics/@tag1). I'm not 100% sure where to start.

But both fields are on my extension of the delivery table, in my own namespace.

The purpose of having both fields to is to set one within campaign, while the other gets processed to out web analytics account.

I feel like I can do something like this

<element externalJoin="true" label="Tag1" name="webAnalytics/@tag1" revLink="Delivery"

             target="lw:delivery" type="link">

      <join xpath-dst="@id" xpath-src="@Campaign_Minisitry_Area"/>

Any suggestions would be helpful.

このトピックへの返信は締め切られました。

2 の返信

Amit_Kumar
Level 10
March 9, 2018

Hi David,

You need not change the schema you can go to the input form for the delivery and use below code to pick the value from one tab and use it in another?

<enter>

    <set expr="Iif([@Campaign_Minisitry_Area]=='', 'defaultvalue', [@Campaign_Minisitry_Area])"

         xpath="webAnalytics/@tag1"/>

</enter>

Note: ensure you are using correct Xpaths here

Regards,

Amit

davidl14970702
Level 4
March 10, 2018

I added it but im nor seeing what i would have expected. I added it to the beginning of that container. Is defautvalue supposed to be defaultValue? proper V?

Amit_Kumar
Level 10
March 15, 2018

Hi David,

It's strange, Can you send me your Delivery schema and input form in a personal email at amitdeol@outlook.com?

I will try to execute that on my local system and I will respond back.

Regards,

Amit


Hey,

I did a quick test and you have used incorrect XPath for tag1, use this and it will work!

<postSave>

   <set expr="Coalesce(@Campaign_Minisitry_Area, '')" xpath="/ignored/writer/delivery/webAnalytics/@tag1"/>

      <set value="nms:delivery" xpath="/ignored/writer/delivery/@xtkschema"/>

      <set value="update" xpath="/ignored/writer/delivery/@_operation"/>

      <set expr="[@id]" xpath="/ignored/writer/delivery/@id"/>

      <soapCall name="Write" service="xtk:persist">

        <param exprIn="[/ignored/writer/delivery]" type="DOMDocument"/>

      </soapCall>

  </postSave>

Regards,

Amit

ManojK_Epsilon
Level 2
July 16, 2020

Hello @davidl14970702 ,

 

Just use the below code to auto populate the tag1 value with Campaign Ministry Value

<enter>
    <set expr="Iif(@Campaign_Minisitry_Area==''),@Campaign_Ministry_Area ,'DEFAULT_VALUE_HERE')"   xpath="webAnalytics/@tag1"/>
</enter>

Let me know if this works.