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

SOLVED

Input Form Values Not Showing or Hidden

RPDiC
Level 1
Level 1

Hello,

 

I'm trying to develop some custom attributes in the workflow and delivery tables as well as modify the forms to include the additional input fields. For each set of attributes there is an extension to the schema. The custom workflow fields are added to the forms and behaving as expected; however, the modifications to the delivery schema/form do not.

 

Using the form successfully updates the record in the table; however, when I reopen the form after saving and closing the window results in the custom attribute values not appearing in the form. This behaviour is difficult to model, but what I've gathered so far (not sure if this helps isolate the issue) is:

  • the fields appear correctly when generating a new delivery (newDelivery form), with default values in place of enumerated fields
  • the fields are never shown whenever viewing the form of a delivery template
  • ad-hoc deliveries created and opened in a workflow have the values showing until logging out and back in 

 

The enumeration and main element of the schema extending xtk:delivery is as follows:

 

 

 

  <enumeration basetype="short" default="none_specified" name="category">
    <value label="Choose one" name="none_specified" value="0"/>
    <value label="Service" name="service" value="1"/>
    <value label="Marketing" name="marketing" value="2"/>
    <value label="Survey" name="survey" value="3"/>
    <value label="Marketing-Alert" name="marketing_alert" value="4"/>
  </enumeration>

  <element desc="Defines the parameters of a delivery (or of a delivery template)."
           img="nms:campaign.png" label="Deliveries" labelSingular="Delivery" name="delivery">
    <attribute default="none_specified" desc="Line of Business" enum="xtk:workflow:lineOfBusiness"
               label="Line of Business" name="lineOfBusiness" type="byte"/>
    <attribute default="none_specified" desc="Campaign Type" enum="xtk:workflow:workflowType"
               label="Campaign Type" name="campaignType" type="byte"/>
    <attribute default="none_specified" desc="Category" enum="category" label="Category"
               name="category" type="byte"/>
    <attribute label="Campaign Name" length="255" name="campaignName" type="string"/>
    <attribute label="Workflow Name" length="255" name="workflowName" type="string"/>
    <attribute label="A/B Testing" length="255" name="ABTesting" type="string"/>
  </element>

 

 

 

Here is a snippet of the XML in from the Delivery form (NmsDelivery):

 

 

    <container colcount="2" name="general">
      <container colcount="2" colspan="2" type="visibleGroup" visibleIf="[/ignored/@dlvNotReady]=''">
        <input discardReadOnly="true" xpath="@label"/>
        <input xpath="@internalName"/>
      </container>
      <container colspan="2" type="visibleGroup" visibleIf="[/ignored/@dlvNotReady]!=''">
        <input xpath="@label"/>
      </container>
      <container applicableIf="HasPackage('nms:messageCenter')" colspan="2" type="visibleGroup"
                 visibleIf="[/ignored/@triggerMessage]=1">
        <input xpath="triggerMessage/@eventType"/>
      </container>
      <container colcount="2" colspan="2">
        <input xpath="@campaignType"/>
        <input xpath="@lineOfBusiness"/>
      </container>
      <container colcount="1">
        <input colspan="1" xpath="@category"/>
        <input colspan="1" xpath="@ABTesting"/>
      </container>
      <container colspan="1" type="visibleGroup" visibleIf="[/ignored/@triggerMessage]!=1">
        <input xpath="@deliveryCode"/>
      </container>
      <container colspan="2">
        <input xpath="@campaignName"/>
      </container>
      <container colspan="2">
        <input xpath="@workflowName"/>
      </container>
      <input colspan="2" xpath="@nature"/>

 

 

The editions exist in the general container referenced by the Properties input tag higher up in the form XML. The only changes made to the Delivery form are provided above, everything else is OOTB. Here is a screenshot of the delivery template's properties form:

 

RPDiC_0-1591798557355.png

Note: the enumerated values in the form do not show when they should at least be populated with their default values.

 

Below is a screenshot of the newDelivery form, where defaults are showing correctly:

image.png

 

If I save, close (but DO NOT log out of the console), save workflow, and re-open the delivery then it displays correctly:

image.png

 

 

Any help would be greatly appreciated!

1 Accepted Solution
Adhiyan
Correct answer by
Employee
Employee

Hello ,

 

I think you have added the new attributes in the form but not in the xpathsToLoad= section at the top of the form .

 

Adhiyan_0-1591956060629.png

This property ensures that the values you are saving are loaded in the delivery form everytime you open it.

 

Although the value is saved in the schema , it needs to have the xpath in xpathsToLoad to show in the form.

 

Regards,
Adhiyan

 

View solution in original post

4 Replies
Manoj_Kumar_
Community Advisor
Community Advisor

Hello @RPDiC ,

 

I have already given the answer to this question in this thread.

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/why-do-i-get-diffe...

 

Let me know if that helps.

RPDiC
Level 1
Level 1
Thank you very much for the response @Manoj_Kumar_ . I'm a little confused as your previous answer addresses an issue where the input is problematic in the newDelivery form. In my case, the form for generating a new delivery works and displays as it should (with no modifications to the newDelivery XML as it references "nms:delivery:lib/general").
Manoj_Kumar_
Community Advisor
Community Advisor
You will have to update the nms:delivery form in your case to pull the saved values from the schema.
Adhiyan
Correct answer by
Employee
Employee

Hello ,

 

I think you have added the new attributes in the form but not in the xpathsToLoad= section at the top of the form .

 

Adhiyan_0-1591956060629.png

This property ensures that the values you are saving are loaded in the delivery form everytime you open it.

 

Although the value is saved in the schema , it needs to have the xpath in xpathsToLoad to show in the form.

 

Regards,
Adhiyan

 

View solution in original post