I have created smsInformation attribute in delivery schema and added it in xpathsToLoad and xpathsToLoadOpt inside nms:delivery input form.
Added below code in nms:delivery input form-
<container img="xtk:text.png" label="Text content" name="tabSMS" readOnlyIf="[/tmp/@readOnly] or ([/ignored/@limitEdition] and [/ignored/@contentStatus]!=10)">
<input label="SMS Information." xpath="/@smsInformation"/>
<input fullToolbar="true" htmlMode="false" name="ctSource" nolabel="true"
type="htmlSource" xpath="../content/sms/source" xpathInsert="/ignored/customizeSMSContent">
<input menuId="deliveryMenuBuilder" type="customizeBtn" xpath="/ignored/customizeSMSContent"/>
Below is delivery template-
When I type data in SMS information attribute, save the delivery and re-open it the atrribute looks blank.
Please let me know why data not getting save in sms information attribute.
Solved! Go to Solution.
all fields in /smsParameters are stored in XML (not in separate database columns). Your container is probably under parent container which is referenced to /smsParameters and form is looking your new field in wrong place. Move it or set full location <input label="SMS Information." xpath="/delivery/@smsInformation"/>
Below are schema and delivery input form screenshot
I tried below logic as also in schema but it didn't work
delivery input form
Please let me know if I missed anything.
Hi @tejashri12 ,
if you created attribute @smsInformation in the main tree in nms:delivery schema you should address it with: <input label="SMS Information." xpath="@smsInformation"/>
Before that, check if you Updated database structure (if new column is reflected to DB not only in the schema).