Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9021

Re: Hide Button if Field Empty

$
0
0

I am wondering what would be the requirement for this? Is it for SplitApp Controls's 'Back' button in Detail page? For Phone an Desktop scenarios? If yes, there is an easy way to do that.

 

If not, you may do binding for the 'visible' property of the button. Example:

 

oControl = new sap.m.Button({

  text: "{PHONE}",

   visible: {

  path:"PHONE",

  formatter: function(fValue) {

  if (fValue)

       return true;

  else

     return false.

  }

  }

});


Viewing all articles
Browse latest Browse all 9021

Trending Articles