Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>UPDATE:</strong></p> <p>As you have already noticed, IntelliSense works for your complex types just fine, but does not work at the Array. Even if you create an array of intrinsic types like String, it still does not work.</p> <p>I have researched this topic thoroughly, in theory, this should be possible, but it's not.<br> As a test, create javascript file name it <strong><em>"customers.js</em></strong>" and include the following:</p> <pre><code>function Customer() { /// &lt;summary&gt;This is my custom intellisense for the Customer type&lt;/summary&gt; ///&lt;field name="NAME" type="String"&gt;The Customer's name&lt;/field&gt; ///&lt;field name="ADDRESS" type="String"&gt;The customer's address&lt;/field&gt; ///&lt;field name="ID" type="String"&gt;The ID number&lt;/field&gt; } Customer.prototype = { NAME: "", ADDRESS: "", ID: 0 }; function CustomerList() { /// &lt;summary&gt;The List of Customers&lt;/summary&gt; ///&lt;field name="HEADER" type="String"&gt;The header&lt;/field&gt; ///&lt;field name="CUSTOMERS" type="Array" elementType="Customer" &gt;The list of customers in an Array&lt;/field&gt; } CustomerList.prototype = { HEADER: { RETURN_CODE: 0, RETURN_MESSAGE: "" }, NUM_RECORDS: 0, START_RECORD: 0, END_RECORD: 0, CUSTOMERS: [new Customer()] }; </code></pre> <p>Then reference this file inside <code>&lt;script src="customers.js"/&gt;</code> </p> <p>or <code>/// &lt;reference path="customer.js" /&gt;</code> inside another JS file. </p> <p>See how the intellisense show the summaries correctly, but when it comes to the array, nothing.</p> <pre><code>var custList = new CustomerList(); custList.CUSTOMERS // intellisense custList.CUSTOMERS[0] // no intellisense as you already know </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload