<?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: Presentation: &amp;quot;Select value as&amp;quot; for an own object? in VMware Aria Automation Orchestrator Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Presentation-quot-Select-value-as-quot-for-an-own-object/m-p/1823311#M15687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DynamicTypesManager.getObject() is the correct way to fetch an instance of some dynamic type. Note that the 3rd parameter (id) should not be null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean by 'didn't work'? Did you get some specific error, or just an invalid/null object? Could you show the scripting code of your dynamic type's binding workflows, especially the code of 'find all' and 'find by id' workflows?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2016 19:11:58 GMT</pubDate>
    <dc:creator>iiliev</dc:creator>
    <dc:date>2016-04-05T19:11:58Z</dc:date>
    <item>
      <title>Presentation: "Select value as" for an own object?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Presentation-quot-Select-value-as-quot-for-an-own-object/m-p/1823308#M15684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm looking for a way to get the "Select value as" for an own object. (or any other solution)&lt;/P&gt;&lt;P&gt; e.g.&lt;/P&gt;&lt;P&gt;If we deploy VM's we have to add in a database a "customer" who is using the VM.&lt;/P&gt;&lt;P&gt;To add the entry to a database and so on is no problem - but i want it "nice" to select the customer in the orchestrator client.&lt;/P&gt;&lt;P&gt;So i can query a database, get all Customers (Name, Street, City, State, whatever) and put it in an array of Customer-Object.&lt;/P&gt;&lt;P&gt;In the Presentation i would like to have it like if i use a Array of VC:VirtualMachine Object and define the input-paramater as "Select value as" - so i can sort the objects by Name, can search and so on ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Apr 2016 17:10:14 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Presentation-quot-Select-value-as-quot-for-an-own-object/m-p/1823308#M15684</guid>
      <dc:creator>Kagome</dc:creator>
      <dc:date>2016-04-03T17:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Presentation: "Select value as" for an own object?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Presentation-quot-Select-value-as-quot-for-an-own-object/m-p/1823309#M15685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems this can be achieved using dynamic types. So you need to define a dynamic namespace, then a dynamic type within this namespace (eg. dynamic type 'Customer' having Name, Street, City, etc. as dynamic properties), and then implement the logic for Customer's binding workflows (find all customers, find a customer by id, etc.).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 20:15:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Presentation-quot-Select-value-as-quot-for-an-own-object/m-p/1823309#M15685</guid>
      <dc:creator>iiliev</dc:creator>
      <dc:date>2016-04-04T20:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Presentation: "Select value as" for an own object?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Presentation-quot-Select-value-as-quot-for-an-own-object/m-p/1823310#M15686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the hint.&lt;/P&gt;&lt;P&gt;It seems to be right direction ... but maybe I'm to tired or stupid ...&lt;/P&gt;&lt;P&gt;how can i access / create this new dynamic typ in a scriptable element and fill the custom properties?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the workflow "Define Namespace" to create a namespace "de.mycompany"&lt;/P&gt;&lt;P&gt;After that i created a Type "Customer" with Custom Property "Name", "Street" using&amp;nbsp; the workflow "Define Type".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that i tried to fill / use that new dynamic Type:&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14598808394822100" jivemacro_uid="_14598808394822100"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14598812776012172" jivemacro_uid="_14598812776012172"&gt;
&lt;P&gt;var myCustomer = new DynamicTypesDynamicObjectCustomer();&lt;/P&gt;
&lt;P&gt;myCustomer.Name = "Testname";&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;didn't work ...&lt;/P&gt;&lt;P&gt;also&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1459881286031777" jivemacro_uid="_1459881286031777"&gt;
&lt;P&gt;var myCustomer = DynamicTypesManager.getObject("de.mycompany", "Customer", null); //Parameters:&amp;nbsp; namespace, type, id&lt;/P&gt;
&lt;P&gt;myCustomer.setProperty("Name", "Testname");&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;didn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 18:35:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Presentation-quot-Select-value-as-quot-for-an-own-object/m-p/1823310#M15686</guid>
      <dc:creator>Kagome</dc:creator>
      <dc:date>2016-04-05T18:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Presentation: "Select value as" for an own object?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Presentation-quot-Select-value-as-quot-for-an-own-object/m-p/1823311#M15687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DynamicTypesManager.getObject() is the correct way to fetch an instance of some dynamic type. Note that the 3rd parameter (id) should not be null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean by 'didn't work'? Did you get some specific error, or just an invalid/null object? Could you show the scripting code of your dynamic type's binding workflows, especially the code of 'find all' and 'find by id' workflows?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 19:11:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Presentation-quot-Select-value-as-quot-for-an-own-object/m-p/1823311#M15687</guid>
      <dc:creator>iiliev</dc:creator>
      <dc:date>2016-04-05T19:11:58Z</dc:date>
    </item>
  </channel>
</rss>

