hi all,
On page Order Subcon Details receipt 16370.posting date field must automatically take today's date
i don't know where to start.where and what code to implement this table(39) or page(16370)
thanks in advance
Hi @mdsr.
First of all, you shouldn't add business logic code to a page object. The business logic is better of in the class (table) responsible for the action, or on a Management Codeunit.
With that said, i suppose in your case you'll only have to add the code to the OnInsert trigger of table 39 so that it assumes today's date, depending on the "Document Type" i guess.
Actually requirement is that:While creating sub con order from Subcontracting Order (16323) then POSTING DATE should take current system Date and same date should reflect on
Ord. Subcon Details Rcpt. List (16370) POSTING DATE
Page 16323 having source table purchase header(38)and 16370 having source table purchase Line 39
I don't know how to achieve same
Answers
First of all, you shouldn't add business logic code to a page object. The business logic is better of in the class (table) responsible for the action, or on a Management Codeunit.
With that said, i suppose in your case you'll only have to add the code to the OnInsert trigger of table 39 so that it assumes today's date, depending on the "Document Type" i guess.
Actually requirement is that:While creating sub con order from Subcontracting Order (16323) then POSTING DATE should take current system Date and same date should reflect on
Ord. Subcon Details Rcpt. List (16370) POSTING DATE
Page 16323 having source table purchase header(38)and 16370 having source table purchase Line 39
I don't know how to achieve same