In a customization I need to set a EpiDateTimeEditor to todays date, this is what I have so far.
When I put a Messabox.show it only prints out: “Ice.Lib.Framework.EpiDateTimeEditor”
This is the code I’m using:
Any ideas?
In a customization I need to set a EpiDateTimeEditor to todays date, this is what I have so far.
When I put a Messabox.show it only prints out: “Ice.Lib.Framework.EpiDateTimeEditor”
This is the code I’m using:
Any ideas?
Have you tried Fecha.Value.ToString() ?
@Asz0ka is correct for the message box.
Regarding setting the .Value, just be aware this sets the value of the control, but it does not set the value in the dataView.
Is this to default the field to todays date? Is this a field users can change?
maybe set the default value of the field to todays date in the column maintenance.
Yeah, we had a problem and need this date not to be changed by the user and has to be set to the day that the user opens an order transfer
Yeah it still throws out the message: Ice.Lib.Framework.EpiDateTimeEditor
Which version are you on? It seems to work for me:
I would use column maintenance then. That way the field is always set to the date even if you DMT the records.
Using this, it works, but I select a transfer order and go in the stock tab to select the Date, it’s still empty
This is the Date that need to be filled with today’s date.
I see what you mean. I may have misunderstood what you were trying to do. I think since it’s a native control, you’ll have to change the DataView rather than the control like @hmwillett was saying.
If you look at that date box’s properties, you’ll see it’s bound to a certain field for a certain dataview. You’ll have to modify that field, and it will update the text box automagically.
There’s a few posts about editing data views, here’s one:
Check the trace.
Create a BPM On the GetNewRecord post set the date field to the date you want.
Then make the field readonly on the customization.