<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: passing parameter to generate diagrm through custom quries in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751592#M8085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi sir,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i m sorry,i will elaborate my question again, i know using "?" at schematic feature class level for attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At diagram template level i have two attributes&amp;nbsp; substationid,substationtype and these attributes are used in all schematic feature classes using "?".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how to send values to these two attributes substationid,substationtype from javascript using schematic api to generate diagram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your reply.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2013 03:18:55 GMT</pubDate>
    <dc:creator>AbdulMateen</dc:creator>
    <dc:date>2013-02-26T03:18:55Z</dc:date>
    <item>
      <title>passing parameter to generate diagrm through custom quries</title>
      <link>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751590#M8083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i designed template which needs two parameters so at template level i created two parameters,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;let us say substationid,substation type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how to send these values from url to generate new diagram.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2013 05:04:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751590#M8083</guid>
      <dc:creator>AbdulMateen</dc:creator>
      <dc:date>2013-02-23T05:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter to generate diagrm through custom quries</title>
      <link>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751591#M8084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your feature class queries, just use the ? as a special character&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Select * from SomeTable where MyField = ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you type in that question mark, you will see a parameters section open up.&amp;nbsp; You will see any attributes available for that feature class as well as the diagram template it belongs to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I put together a video series on the resource center and one of those videos is specific to custom query.&amp;nbsp; I think I remember adding in an example using parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/communities/schematics/01n600000012000000.htm"&gt;http://resources.arcgis.com/en/communities/schematics/01n600000012000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 14:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751591#M8084</guid>
      <dc:creator>RickAnderson</dc:creator>
      <dc:date>2013-02-25T14:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter to generate diagrm through custom quries</title>
      <link>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751592#M8085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi sir,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i m sorry,i will elaborate my question again, i know using "?" at schematic feature class level for attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At diagram template level i have two attributes&amp;nbsp; substationid,substationtype and these attributes are used in all schematic feature classes using "?".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how to send values to these two attributes substationid,substationtype from javascript using schematic api to generate diagram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your reply.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 03:18:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751592#M8085</guid>
      <dc:creator>AbdulMateen</dc:creator>
      <dc:date>2013-02-26T03:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter to generate diagrm through custom quries</title>
      <link>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751593#M8086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still not completely sure what you have configured here.&amp;nbsp; What does it look like in ArcMap when the user clicks the generate diagram button and points to this schematic dataset and diagram template?&amp;nbsp; Is the name field a dropdown list that has concatenated values of substationid - substationtype?&amp;nbsp; If so, that is exactly what you need to pass in the name parameter of the rest call on server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]22260[/ATTACH]&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attached image, you can see that my name field is a dropdown list containing some sort of field data.&amp;nbsp; On the server side, if I wanted to create this diagram, I would need to pass in the value of 671 for the name parameter.&amp;nbsp; Also for custom query on server you need to make sure to pass in an empty initialobjects parameter in the buildercontext.&amp;nbsp; See the rest api help for &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/rest/apiref/exts/Schematics/schGenerateDiagram.html" rel="nofollow" target="_blank"&gt;generatediagram&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 14:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751593#M8086</guid>
      <dc:creator>RickAnderson</dc:creator>
      <dc:date>2013-02-28T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter to generate diagrm through custom quries</title>
      <link>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751594#M8087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;great solved thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 04:24:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751594#M8087</guid>
      <dc:creator>AbdulMateen</dc:creator>
      <dc:date>2013-03-06T04:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter to generate diagrm through custom quries</title>
      <link>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751595#M8088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am going to generate diagram from Schematics Services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Generate Schematics from the Desktop works well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24121[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I can't figured out how to pass parameters to REST API: generateDiagram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Recording from reply, "C114-000002" should be set in the name parameter and set builderContext as {"initialObjects": []}. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://myip/arcgis/rest/services/Schematic/TestSCHE/MapServer/exts/SchematicsServer/templates/1/generateDiagram?name=C114-000002&amp;amp;folderID=&amp;amp;builderContext=%7B%22initialObjects%22%3A+%5B%5D%7D&amp;amp;user=me&amp;amp;f=pjson"&gt;http://myip/arcgis/rest/services/Schematic/TestSCHE/MapServer/exts/SchematicsServer/templates/1/generateDiagram?name=C114-000002&amp;amp;folderID=&amp;amp;builderContext=%7B%22initialObjects%22%3A+%5B%5D%7D&amp;amp;user=me&amp;amp;f=pjson&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The response is: { "error": {&amp;nbsp; "code": 400,&amp;nbsp; "message": "Invalid or missing input parameters.",&amp;nbsp; "details": [&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] }}".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 05:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/passing-parameter-to-generate-diagrm-through/m-p/751595#M8088</guid>
      <dc:creator>Yu_ChingYu</dc:creator>
      <dc:date>2013-05-08T05:46:19Z</dc:date>
    </item>
  </channel>
</rss>

