+ Start a Discussion
m pandeym pandey 

start & end date

object=objA
Start date
End Date
rates number

object=objb
transadate date
quantity number

dis*rate

if transdate is in b/w stdate and enddate the rates should be apply 
ex:-
obja 
it has 3 records that 1)stjan1 to jan31,2)stfeb1 to etfeb27,3)stmar1 to mar30
it has rates of     10.50             15.20        20.00

if i create record in objb,then transdate 22/2/2017 ,the rate should get in between of stdt and endt selected date 

sol
if i select transdate the selectdate should fetch from date related record from obja and if i enter quantity then the rate should fetch from related transdate
please help me out as early as possible....
RKSalesforceRKSalesforce
Hi,

You can create 2 formula fields on Objb and populate data from Associated Obja.

Regards,
Ramakant
RKSalesforceRKSalesforce
Or else you can write trigger on Objb and populate data from Obja.
m pandeym pandey

Ramakant

can u i write trigger or create formula field and can u post it ....iam new to salesforce...

can u please write a code and  can u post it here....