﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - Form Builder bind more than one UIPickerview in IOS</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Form-Builder-bind-more-than-one-UIPickerview-in-IOS/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Form Builder bind more than one UIPickerview in IOS</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Form-Builder-bind-more-than-one-UIPickerview-in-IOS/</link><pubDate>Fri, 11 Dec 2015 03:30:31 GMT</pubDate><dc:creator>Arief</dc:creator><category>iOS</category><category>Crosslight mobile</category><category>Form-Builder</category><description>&lt;p&gt;Hi Giridhar,&lt;br&gt;&lt;br&gt;Yes your method is already on point,&lt;br&gt;&lt;br&gt;Here is how to pass value between ViewModel:&lt;/p&gt;&lt;p&gt;First of all, you actually don't need to&lt;b&gt; pass all the list items&lt;/b&gt;, you only need to pass the on that user choose, if you are using form you can see that all the value are stored in here:&lt;br&gt;&lt;/p&gt;&lt;pre&gt;public class YourFormViewModel: EditorViewModelBase&amp;lt;SearchParameter&amp;gt;    {
        public YourFormViewModel()
        {
	     // you can access all of your user input in this.Item which can be called anywhere 
        }
}&lt;/pre&gt;&lt;p&gt;Here is the inside of my SearchParameter (this just an example you don't need to copy exactly like mine)&lt;/p&gt;&lt;pre&gt;    public class SearchParameter : ModelBase
    {
private Category _category;
private SubCategory _subCategory;
private TeamDetail _teamDetail

public &lt;span style="font-size: 9pt; white-space: normal;"&gt;Category&lt;/span&gt;&lt;span style="font-size: 9pt; white-space: normal;"&gt; Category&lt;/span&gt;&lt;br&gt;        {
            get
            {
                return _category;
            }
            set
            {
                if (_category!= value)
                {
                    _category= value;
                    OnPropertyChanged("Category");
                }
            }
        }
public &lt;span style="font-size: 9pt; white-space: normal;"&gt;SubCategory&lt;/span&gt;&lt;span style="font-size: 9pt; white-space: normal;"&gt; SubCategory&lt;/span&gt;&lt;br&gt;        {
            get
            {
                return _subCategory;
            }
            set
            {
                if (_subCategory!= value)
                {
                    _subCategory= value;
                    OnPropertyChanged("SubCategory");
                }
            }
        }
public &lt;span style="font-size: 9pt; white-space: normal;"&gt;TeamDetail&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 9pt; white-space: normal;"&gt;TeamDetail&amp;nbsp;&lt;/span&gt;&lt;br&gt;        {
            get
            {
                return _teamDetail;
            }
            set
            {
                if (_teamDetail!= value)
                {
                    _teamDetail= value;
                    OnPropertyChanged("TeamDetail");
                }
            }
        }
}&lt;/pre&gt;&lt;p&gt;here is my SubCategorySelectionViewModel:&lt;/p&gt;&lt;pre&gt;public class SubCategorySelectionViewModel : ListViewModelBase&amp;lt;Category&amp;gt;
{
      public override async void Navigated(NavigatedParameter parameter)
      {
         if (parameter.Sender is SearchFormViewModel){
         {  
           &lt;span style="font-size: 9pt; white-space: normal;"&gt;YourFormViewModel&lt;/span&gt;&lt;span style="font-size: 9pt; white-space: normal;"&gt; viewModel = parameter.Sender as YourFormViewModel;&lt;/span&gt;&lt;br&gt;           //If you use DataListViewModel and query definition you can simply use this
           //this.ViewQuery = viewModel.Item.Category.Id;

           //If you use ListViewModel you can use this:
           //QueryDescriptor queryDescriptor = new QueryDescriptor();
            //SelectParameter selectParameter = new SelectParameter();
            //selectParameter.QueryDescriptor = queryDescriptor;
           //var searchResult = await this.SubCategoryRepositort.GetAllAsync(selectParameter);
            //searchResult = searchResult.where(x =&amp;gt; x.Id == viewModel.Item.Category.Id).ToList()
         }

         base.Navigated(parameter); //all of this must be done before base!
          
       }
}&lt;/pre&gt;&lt;p&gt;So the passing value actually happening in the parent ViewModel, this way you only need to obtain what customer choose rather all of the list.&lt;br&gt;&lt;br&gt;Hope that will helps!&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item><item><title>Form Builder bind more than one UIPickerview in IOS</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Form-Builder-bind-more-than-one-UIPickerview-in-IOS/</link><pubDate>Wed, 09 Dec 2015 12:43:47 GMT</pubDate><dc:creator>sphinxg@usa.net</dc:creator><category>iOS</category><category>Crosslight mobile</category><category>Form-Builder</category><description>&lt;p style="margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: normal; font-family: Times;"&gt;&lt;span style="font-size: 11pt;"&gt;Hi Arief,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: normal; font-family: Times;"&gt;&lt;span style="font-size: 11pt;"&gt;We have binded more than one pickerview in single page by calling separate view model for each picker view.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: normal; font-family: Times;"&gt;&lt;span style="font-size: 11pt;"&gt;Please confirm whether it is right way?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;

&lt;/p&gt;&lt;p style="margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: normal; font-family: Times;"&gt;&lt;span style="font-size: 11pt;"&gt;We need to pass the list item source from main view to picker view model. Please let us know how to pass the list/collection from one view model to another view model.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Form Builder bind more than one UIPickerview in IOS</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Form-Builder-bind-more-than-one-UIPickerview-in-IOS/</link><pubDate>Tue, 08 Dec 2015 09:41:45 GMT</pubDate><dc:creator>sphinxg@usa.net</dc:creator><category>iOS</category><category>Crosslight mobile</category><category>Form-Builder</category><description>&lt;p&gt;&lt;span style="font-size: 11pt;"&gt;Hi Arief,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 11pt;"&gt;Yes. We need below scenario,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(63, 63, 63); font-family: myriad_set_protext, 'Lucida Grande', Helvetica, sans-serif; font-size: 10pt;"&gt;A several single picker bind to each of them (Category, Sub Category, and Team Details) and e&lt;/span&gt;&lt;span style="color: rgb(63, 63, 63); font-family: myriad_set_protext, 'Lucida Grande', Helvetica, sans-serif; font-size: 10pt;"&gt;ach of them loaded based on parent data selection.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(63, 63, 63); font-family: myriad_set_protext, 'Lucida Grande', Helvetica, sans-serif; font-size: 10pt;"&gt;For Example,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="color: rgb(63, 63, 63); font-family: myriad_set_protext, 'Lucida Grande', Helvetica, sans-serif; font-size: 10pt;"&gt;Category records loaded from category master.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(63, 63, 63); font-family: myriad_set_protext, 'Lucida Grande', Helvetica, sans-serif; font-size: 10pt;"&gt;Sub-Category records loaded based on category selection.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(63, 63, 63); font-family: myriad_set_protext, 'Lucida Grande', Helvetica, sans-serif; font-size: 10pt;"&gt;Team details records loaded based on category and sub-category selection&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Please let us know, how to pass list itemsource from one view model to another view model?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Form Builder bind more than one UIPickerview in IOS</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Form-Builder-bind-more-than-one-UIPickerview-in-IOS/</link><pubDate>Mon, 07 Dec 2015 03:44:11 GMT</pubDate><dc:creator>Arief</dc:creator><category>iOS</category><category>Crosslight mobile</category><category>Form-Builder</category><description>&lt;p&gt;Hi Giridhar,&lt;br&gt;&lt;/p&gt;&lt;p&gt;I need to confirm your scenario:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Multiple Picker bind to Category which include Sub Category and Team Detail when chosen&lt;/li&gt;&lt;li&gt;A several single picker bind to each of them (Category, Sub Category, and Team Details)&lt;/li&gt;&lt;li&gt;Multiple Picker to Category which when picked reveals choice based on category you choose&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Is it one of them that you want to achieve?&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>Form Builder bind more than one UIPickerview in IOS</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Form-Builder-bind-more-than-one-UIPickerview-in-IOS/</link><pubDate>Thu, 03 Dec 2015 06:24:31 GMT</pubDate><dc:creator>sphinxg@usa.net</dc:creator><category>iOS</category><category>Crosslight mobile</category><category>Form-Builder</category><description>&lt;p&gt;Hi All,&lt;/p&gt;&lt;p&gt;In one of our scenario of our applicaiton, we need to bind the Category ,Sub Category and Team details with Multiple Picker controls using Form Builder approach. &lt;/p&gt;&lt;p&gt;How to bindmore than one UIPickerviewwith different itemsource.&lt;/p&gt;&lt;p&gt;We have checked the below link and it contains single picker control. &lt;/p&gt;&lt;p&gt;&lt;a href="http://git.intersoftpt.com/projects/CROS/repos/samples/browse/FormBuilderSamples/FormBuilderSamples.Core/Models/Reference/Layout/RowDetailLayout.cs"&gt;http://git.intersoftpt.com/projects/CROS/repos/samples/browse/FormBuilderSamples/FormBuilderSamples.Core/Models/Reference/Layout/RowDetailLayout.cs&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>