Would anyone know if it's possible to concatenate ...
# general
u
Would anyone know if it's possible to concatenate a Date field and a Time field into a Date/Time field via a workflow "Set Field Value" Action? If not, how do I go about converting both fields into strings? TO_CHAR doesn't seem to be working unless I'm following an incorrect format.
k
This is not possible with a workflow without some major hoop jumping
u
Would you mind elaborating? I'm at a loss and quite close to just relegating free-form text fields for those specific fields.
k
When are you trying to set it?
is it a before user submit? after field edit? after record submit?
u
Ideally after both fields are filled, so after field edit.
k
If it's in a client context which is after field edit- you have to do some kind of javascript math to make it work.
I don't know what the formula would look like, but it'd be ugly partial suitescript
and at that point - I'm just having my developer write a client script that's way more readable/straight forward anyways
👍 1
u
Ah, I see. So I suppose it's better I write a clientscript then. Thanks for the input.
k
Yeah, and you probably also need a user event script for when it is set via CSV upload/other methods as well
and the formula for doing it in a workflow for those other contexts can be oracle sql at that point - but it'd be messy. And you already have most of the logic figured out in your client script - so may as well just turn it into a user event script with a few edits to cover those use cases as well