Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3505 มุมมอง

Hi all,

   Can we add the current date into reports by Studio please?

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,
Yes it is possible to add the current date into reports using Studio.If the model does not have an existing field for the current date, you have to create a date field in the model to store the current date.

After creating the field a compute function can given to the field in order to compute the current date. For that you can click on the ‘More’ button at the left bottom corner and will be redirected to the field properties. There under the ‘Advanced Properties’ section we can give the required dependencies and the compute function in python code as:

for record in self:
record ['x_studio_date_field_name'] = datetime.datetime.now ()

Then you can go to the reports section in Studio, select the required report and add the date field in the report.

Regards

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 24
779
2
ต.ค. 24
1938
1
ก.ค. 24
1259
0
มิ.ย. 24
611
2
ก.พ. 24
1751