Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

issue with edit method in Project invoice proposal form

$
0
0

I am working on ProjectInvoiceProposal Form(Project Management & accounting -> Common-> Project Invoices -> Invoice Proposal, this path opens up a listpage, select a record with status Open double click and open the details form) ,  forms AOT name is ProjInvoiceProposalDetail, this form has field called  “Invoice Formats”  as shown below, which is based upon a edit method. Edit method is found at \Forms\ProjInvoiceProposalDetail\Data Sources\ProjProposalJour\Methods\editInvoiceFormat,

Apart from standard  invoice format options we have our own Project specific options like, Period and worker, Fixed price and ActivityWorker., when I choose either one of them , the invoice format control behaves little weird, initially it sets up the value, I selected, but when I click on print Preview button( it opens up a report , based on format) , value changes , I checked if they are refreshing the form, somewhere after print preview button , but I dnt see, it anywhere, though I have written a piece of code on click method of PrintPreview to set the Invoice format explicitly , but not much of a help. I see a for loop in the clicked method of printPreview button, I suspect something is going wrong there, but then the code I have written is not making any  effect.

When I made a further digging, I realised that the edit method , editInvoiceFormat is taking a different value in parameter _newValue  , than the value I selected,  and if(_set) block does not seem to set the value properly. 

The related code is available in both Dev01 and Dev02. Any idea on this will be of a great help.


Viewing all articles
Browse latest Browse all 72043

Trending Articles