[CLOSED] StoreParameter : Pass conditional value

  1. #1

    [CLOSED] StoreParameter : Pass conditional value

    Hi please see bellow code

    .Parameters(ps => {
    ps.Add(new StoreParameter { Name = "GroupID", Value = @"if(Ext.isDefined(App.cmbGroupID))
    {
    return App.cmbGroupID.getValue()
    }
    else
    {return 0}
    ", Mode = ParameterMode.Raw });
    })
    So is it possible to pass value based on condition ?
    Last edited by Daniil; Jan 16, 2015 at 9:24 AM. Reason: [CLOSED]
  2. #2
    Hi @matrixwebtech,

    You can do the following.
    Value="getParameter()"
    var getParameter = function () {
        if (Ext.isDefined(App.cmbGroupID)) {
            return App.cmbGroupID.getValue();
        }
        else { 
            return 0;
        }
    };

Similar Threads

  1. [CLOSED] StoreParameter on ObjectDataSource
    By ptrourke in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 16, 2013, 3:55 PM
  2. [CLOSED] ext:StoreParameter set value how get in textFiled
    By boris in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 15, 2012, 8:57 AM
  3. StoreParameter and paging toolbar
    By Aod47 in forum 2.x Help
    Replies: 1
    Last Post: Oct 07, 2012, 2:01 PM
  4. Replies: 3
    Last Post: Sep 20, 2012, 12:01 PM
  5. Update StoreParameter from code behind
    By Alexx in forum 2.x Help
    Replies: 0
    Last Post: Apr 28, 2012, 9:35 AM

Posting Permissions