Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

LiveChange not working in ValueHelp field

Hi All,

Am trying to use setValueState("None") on the VH field while mandatory validation. I am using Livechange function, but valuestate None is not working as i am not typing any key physically i get the value from VH dialog. So "LiveChange" is not working here. So can anyone help me to where how can i set the ValueState property depending on the values entered in VH field.

Former Member
Former Member replied

Sorry use this in your method,

if(this.byId(ValueHelpId).getValue() !== "" )

   {

   this.byId(ValueHelpId).setValueState(sap.ui.core.ValueState.None);

   }else{

   this.byId(ValueHelpId).setValueState(sap.ui.core.ValueState.Error);

}

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question