0

How to pass Sobject Api and field name in Action.setparams

 ({
doInit : function(component, event, helper) {
    var opts=[];
    var action = component.get("c.getPicklistValues");
    action.setParams({

    });

} })

1 Answer 1

0

Here the basics of Calling a Server-Side Action ,go through it.

  action.setParams({objectAPI: 'ApiName here', fieldName : 'FieldNameHere' });
3
  • ya..okay..its look like hard code right..so i posted that question thanks
    – user52206
    Commented Dec 20, 2017 at 9:46
  • In the client side,Iam getting javascript value some thing like this
    – user52206
    Commented Dec 20, 2017 at 9:49
  • I cant get you clearly
    – vignesh
    Commented Dec 20, 2017 at 9:52

You must log in to answer this question.