This could be complicated to explain but I will try:
I have three BO:s
Compay
Job
Travel
Job is something you do for a Company so when registering a Job you always chose a Company.
Travel is the journey to the Company location.
Company hold information about the lengt of the journey (distance to that company).
So:
If you register a job I want a Travel to be registered automatically when I press save. All the info is allready there.
I know the date, the user, the info about the job and the length.
I.E I like a Travel to be created when I press save to save my Job.
How would you do that?
/Rem
Autocreating a BO based on info in other BO:s?
-
- Posts: 304
- Joined: Fri Jun 22, 2007 8:26 pm
You can do that using a rule in your OB
IF Job IS NEW Then CREATE Travel WITH Travel.Job=Job,ob.attribute=value
Here is snippet from a long process of an app that creates and OB once another OB status is changed to "approved" and sets a due date..
CREATE Production WITH Production.Contract=Contract,Production.Status='New',Production.DueDate=BUSINESS_DAY_FORWARD(Contract.DateTimePosted,10)
Hope that helps...
Chris
IF Job IS NEW Then CREATE Travel WITH Travel.Job=Job,ob.attribute=value
Here is snippet from a long process of an app that creates and OB once another OB status is changed to "approved" and sets a due date..
CREATE Production WITH Production.Contract=Contract,Production.Status='New',Production.DueDate=BUSINESS_DAY_FORWARD(Contract.DateTimePosted,10)
Hope that helps...
Chris