Unable to get xtk:fileRes schema values in webpage
Hi All,
I am creating a web page in which i need to get the images list from public resources folder(xtk:fileRes schema) as drop down so that the customer can select the image from it.
But while adding xtk:fileRes in to the code, the particular column/field is not showing the dropdown option.
For cross checking i used another normal schema and tried and then I was able to get the drop down and the list from that schema was also shown.
Given below the code for this particular field used in the web app:
<div class="info">
<div class="infoalign"><b>Image</b><span class="req" id="req_4">*</span></div>
<div class="infowidth"><input name="txtZip" id="pincode" list="imageslist" class="pincode text" type="text" size="14" placeholder="Image" data-nl-ismandatory="true" data-nl-label="Image" data-nl-xpath="@imagepath" data-nl-bindto="xpath" data-validation-type="Image" /></div>
<datalist id="imageslist"><% for each(var rec in new XML(xtk.queryDef.create(<queryDef schema="xtk:fileRes" operation="select" lineCount="100000"> <select> <node expr="@name" alias="name"/> </select> </queryDef>).ExecuteQuery().toXMLString())){ %>
<option value=<%= rec.@name %>>
<% } %>
</datalist>
</div>
Is this issue specific to out of the box schemas or xtk schemas?
Could someone kindly help me resolve this issue ASAP.
@davidkangni @_manoj_kumar_ @jonathon_wodnicki
Thanks & Regards
Greeshma