sagar_makhesana - Tuesday, April 15, 2014 5:18 AM:
HeLLo Friends,
I have two item type
(1)Timesheet
(2)Task
Task is related with Timesheet as No Related relationship.
Both of Item have Property Date [ Data type : Date : date time ]
Now when user create the instance of Timesheet user will add instance of task as well.
can i have some validation on Child item [ Task ] that user can not enter date apart from the date selected in Parent item type [ Timesheet ]
Note : Here instance of Timesheet is not saved yet so id is still in memory only.
Thanks in Advance :-)
Harsha - Tuesday, April 15, 2014 6:27 AM:
You can use 'Foreign' data type for Task's date Property. Select foreign data type, click on Data source, expand 'source_id' and select Timesheet's 'date' property.
In result you can see date field on Task as disabled and getting the same value what Timesheet's date property has always.
sagar_makhesana - Tuesday, April 15, 2014 8:14 AM:
Thank you Harsha,
For your brief answer. By Using foreign property i can achieve both things
(1) Will get value of Timesheet on Task
(2) As filed will be disable it Provides me batter validation .
But here for little more enhancement i want to do some customization like in Task item type i have added two Properties [1] From [2] To
[1] From --- Data type (Date ) Pattern ( short date time )
[2] To --- Data type (Date ) Pattern ( short date time )
by adding this two properties user can add as many instance of Task with proper value of time given to task .
Here i m not able to use Foreign Data type of Timesheet as user must be able to enter some value and as per business logic i m trying to develop that every entry of Task must have same date only as Timesheet have.
Thanks in Advance :-)