Set Future Status

I have made a custom asset that is bassed on the calendar asset.


I am looking to have the option to set the future status when creating the asset. So that the user does not have to go back into the details to set it.



I tried adding <field code="status_future_status" /> to the edit_interface_create.xml but it killed the asset. Timed out when trying to create a new one.



Any direction towards what I am trying to do would be great!

You should use a Trigger to do this for you. Configure a Trigger to add a Future Status change on the Asset Created event of your particular type of Asset.

all the assets of this type will have a differnt future status option. So i cant set a trigger to change it on a certain date or amount of days, it will be differnt everytime.


What would be ideal is that (keep in mind this is like a calendar asset) that at the end_date of the asset the status is changed. Triggers can match attributes, so I would need to match end_date with the real date of today. Is there a way of representing todays date that would match the same format end_date uses.

You would have to write some functionality into the _createAdditional() function of your asset to automatically also create the Future Status Cron Job based on the end date of your event. You would also need to watch for changes to the end date (i.e. if someone edits the event) so that you change the Future Status Cron Job at the same time.

So just to confirm there is no simple way of setting the future status option when creating the asset?

[quote]So just to confirm there is no simple way of setting the future status option when creating the asset?
[right][post=“11838”]<{POST_SNAPBACK}>[/post][/right][/quote]



Only via a pre-configured Trigger action. You can’t expose the create screen of one asset on another asset’s create screen (a future status action is actually creating a cron job asset in the system).