I am having a editable grid in that there is a field that should autopopulate a value
eg. there are two fields start date and end date I want to find the difference and then in days field it autopopulate the no of days
In interface level the value is showing in that field but it is not saving in rule input
Discussion posts and replies are publicly visible
Actually you are passing the logic in the value field try to pass the same on the saveInto end date field. Save Into for a field works when you perform some action on that field.
Use the below code for saveInto of your end date. Value will be saved to your rule input.
{ fv!item.enddate if( a!isNullOrEmpty( fv!item.enddate ), {}, a!save( fv!item.demandhours, ( tointeger( tointervalds(save!value) - tointervalds(fv!item.startdate) ) ) ) ) ) }
It's Worked Thanks
The real important thing to learn here is that the "saveInto" parameter of a component does absolutely nothing unless you actually change the value referenced in that component. Until then, the saveInto will never execute. That's why if you have a field where all it does is display a calculated value based on other fields, if you actually need that calculation stored somewhere, you need to do the work to save that value in some other location.