Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I will try to address your questions as you wrote them.</p> <p>The single object version of the multi-object-picker is the <a href="https://rally1.rallydev.com/apps/2.0p/doc/#!/api/Rally.ui.ComboBox" rel="nofollow">combobox</a>. As a side note for selection any Portfolio Item of a type I would probably use the <a href="https://rally1.rallydev.com/apps/2.0p/doc/#!/api/Rally.ui.dialog.ChooserDialog" rel="nofollow">Chooser</a> component. Pickers and combobox components work well unless there are too many options in them. The chooser is a great way to allow your user to find exactly the object that they are looking for without giving them a list a million long to look through.</p> <p>Also PortfolioItemType is an object not just a string value. But you can query by it's name which is shown below.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;script type="text/javascript" src="/apps/2.0p/sdk.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; Rally.onReady(function() { Ext.define('CustomApp', { extend: 'Rally.app.App', componentCls: 'app', launch: function() { Ext.create('Rally.ui.dialog.ChooserDialog', { artifactTypes: ['portfolioitem'], autoShow: true, listeners: { artifactChosen: function(selectedRecord) { Ext.Msg.alert('Chooser', selectedRecord.get('Name') + ' was chosen'); }, scope: this }, storeConfig : { filters: [ { property: 'PortfolioItemType.Name', value: 'Initiative' } ] } }); } }); Rally.launchApp('CustomApp', { name: 'Tacos' }); }); &lt;/script&gt; </code></pre> <p> </p> <p>Here is a multi object picker</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;script type="text/javascript" src="https://rally1.rallydev.com/apps/2.0p/sdk.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; Rally.onReady(function() { Ext.define('CustomApp', { extend: 'Rally.app.App', componentCls: 'app', launch: function() { this.add({ xtype: 'rallymultiobjectpicker', modelType: 'portfolioitem', storeConfig : { filters: [ { property: 'PortfolioItemType.Name', value: 'Initiative' } ] }, listeners:{ collapse:function(picker){ console.log(picker.getValue()); } } }); } }); Rally.launchApp('CustomApp', { name: 'Tacos' }); }); &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

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