how i will fetch field's dataType, length(if field is Text type), label and helpText from Object in

edited March 2017 in Questions
how i will fetch field's dataType, length(if field is Text type), label and helpText from Object in javascript skuid

Comments

  • J.J. 💎
    edited March 2017
    You can use skuid.model.Model.getField() to get field metadata. All four of the things you mentioned are included, but here is the full list.
  • edited August 2015
    i am fetching
     var vt=  skuid.model.Model.getField(take_priority__c); 
      alert('>>>>>>>>>>>>>>>'+vt);

    Not working....

    Also
    var vt=  skuid.model.ContFlds.getField(take_priority__c);    alert('>>>>>>>>>>>>>>>'+vt);
    ContFlds- my model name
  • Rob HatchRob Hatch 💎💎💎
    edited September 2016
    This syntax will give you the field metadata object. 

    skuid.model.getModel('ModelName').getField('FieldName')



  • edited August 2015
    Can you share me the links of good code stuff of skuid...i am new in skuid...

  • Rob HatchRob Hatch 💎💎💎
    edited September 2016
Sign In or Register to comment.