Hi,
I have a problem with the DateTime Type parameter in the contract class, when I select a value in the DateTime filter, in the DP class it retrieves the selected date minus one day
Thanks much.
Hi,
I have a problem with the DateTime Type parameter in the contract class, when I select a value in the DateTime filter, in the DP class it retrieves the selected date minus one day
Thanks much.
Thanks for your help
Yes. That's what you would need to do if you are applying filters to date and time fields separately.
I solved the problem with this class : DateTimeUtil :: applyTimeZoneOffset (contract.parmDateTimeFrom (), DateTimeUtil :: getCompanyTimeZone ())
Since these are date and time fields (separately), I am assuming you are breaking this into date and time?
Good to know. Could you now share your code? Assuming you still need help with your functionality.
Thanks!
Hi,
it is a filter at the level of the RetailStatementJour table on the TransFormDate and TransFormTime fields
When you share code, could you please click "Use rich text formatting" -> "Insert" -> "Code". This way it's easier to read. Thanks!
Anyway, your current code is throwing an error so the report processing is halted. Perhaps that explains why it doesn't work for you.
I don't see any code that would filter any records - did you forget to share that part?
Hi,
Where are you using the date time value? Retail statement Jour has two fields date and time.
[
SysEntryPointAttribute
]
public void processReport()
{
RetailStatementJour retailStatementJour;
contract = this.parmDataContract() as PMsalesVoucherContract;
throw error(strFmt("%1", contract.parmDateTimeFrom() ));
}
[
DataMemberAttribute('datetimeFrom'),
SysOperationLabelAttribute(literalstr("@SYS35905")),
SysOperationDisplayOrderAttribute("3")
]
public fromDateTime parmDateTimeFrom(fromDateTime _datetimeFrom = datetimeFrom)
{
datetimeFrom = _datetimeFrom;
return datetimeFrom;
}
I displayed the value retrieved by contract class.
Here is the code that executes the message.
André Arnaud de Cal...
293,110
Super User 2025 Season 1
Martin Dráb
231,886
Most Valuable Professional
nmaenpaa
101,156
Moderator