i want to calculate the number of hours of employee ,for that i use rangeslider so i will get the hours in 0 to 8 but its not saving in database , is this the right way to save the hours or im doing wrong.
Hi Muhammad,
i have attached the oml for your reference with some changes .. Please look into this if it fulfills your requirement.
You overwrite your selected values instead of using them here:
Change the assignments and then it should work.
not working still
Have you checked (using debugger) if the values are assigned to correct variables?
Also, could you share your updated OML?
here is updated oml
Let's return to your first OML...
In RangeSliderIntervalOnValueChange you have two input parameters - IntervalStart and IntervalEnd. Those are the values selected from the widget. You need to use them, by assigning their values directly to other variables (Attendencetracking's attributes in your case) or calculating something from them (for instance, difference between the selected interval ends). In the first OML you did the opposite, assigned pre-existing data from Attendencetracking to the parameters.
i just have a workhours entity attribute in attendecetracking ,i want 1 number like 0 to 8 and save it in workhours ,is that possible ori have to make other entities attribute of start and end range
If you need only one number, what's the reason of choosing RangeSliderInterval? RangeSlider widget would be perfect for your requirement.
Configure it like here:
And set a new action for OnValueChange. Add this assignment there:
You can delete RangeSliderId if you don't plan to reuse this action for other sliders.
still no hours save in database .should i have to assign a user id ?updated oml is here
You're still trying to use RangeSliderInterval instead of RangeSlider. Please implement the solution I described. Ideally, delete the current widget and action and implement everything exactly as on the screenshots.
Done thanks for your effort .