cancel
Showing results for 
Search instead for 
Did you mean: 

validation-on-go-button-in-fiori-element-list-report

durgaprasanth_vemula
Participant
0 Kudos

Hi,

I have requirement in the List Report using Fiori Elements and required validation on Go Button.

My requirement is i have 3 Selection fields and if the User Enters data in only one Selection field and hit Go button and it should threw error message " Please Enter Data in atleast two of the Selection fields" and it should not call the Table.

Thanks

Durga Prasanth

View Entire Topic
maheshgonda
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Have you tried this?

var oSmFilter = this.getView().byId("listReportFilter");

oSmFilter.attachFilterChange(this.onFilterValueChange.bind(this));

Best Regards,
Mahesh

0 Kudos

@maheshgonda

Hi Mahesh,

I am getting error this._sIdPrefix.attachFilterChange is not a function

this._sIdPrefix = this.getView().byId("ZTS_TIMESHEET::sap.suite.ui.generic.template.ListReport.view.ListReport::ZC_PSCATSDB--GridTable");

this._sIdPrefix.attachFilterChange(this.onFilterValueChange.bind(this));

onFilterValueChange : function(oEvent)

{

debugger;

},

xiaoru
Discoverer
0 Kudos

hello

i'm facing the same issue.Do you have any solutions?