1

Re: Required Elements property of XpcListWidget

The XpcListWidget has a property named "Reqd Elements".

This property defines a list of fields which will be pulled out of the XPC reply,
and passed on as parameters to the chosen HTML snippet.

If such a parameter is used by the HTML snippet, but is not defined in the
"Reqd Elements" property then an error will occur.

For a static widget (where the type property is set to "Static"), the widget
parameter will not be substituted and will probably be seen in the rendered
HTML. eg. you will see %%name%% of something similar in the output.

For a dynamic widget, an error will occur in the production page, similar to
the following:

An error occurred at line: 2,833 in the jsp file: /pages/navpoint_macmsc-home.jsp
snippetVar_name cannot be resolved
2830:     <img class="list3_img" src="<%=snippetVar_imagePath%>"/>
2831:     </td>
2832:     <td class="list3_desc wPlnk">
2833:         <a href="javascript:jmpUrl('<%=snippetVar_productUrl%>');"><%=snippetVar_name%></a>
2834:     </td>
2835: </tr>
2836: <tr>

in each case, the solution is to put the missing field into the "Reqd Elements" property.