Hi,
I am new to technical aspects in Axapta and I am looking at the following functionality.

I wanted to replicate the invent movement journal functionality in a new form and i created a new table in which the override write function is written.

Now the problem is that i am able to create a new dimension in inventdim table but i am unable to see the new dimension in the custom table (TestInput). I think the problem is with with datasource fieldsof the table. The dimid populated is the first dimid in the inventdim table.

public void write()
{
    ;
    try
    {
        ttsbegin;
        PackInput.InventDimID = InventDim::findOrCreate(ReceiptInventDim).inventDimId;
        ttscommit;
        ttsbegin;
        super();
        if (TestInput.InventDimID != IssueInventDim.inventDimId)
        {
            IssueInventDim.data(InventDim::find(TestInput.InventDimID));
            IssueInventDim_ds.setCurrent();
        }
        ttscommit;
    }
    catch (exception::Error)
    {
       error("Wrong Dimension");
    }
}

Any help regarding the same very helpful.
Thanking you.

Regards
Sri Ram


Sharing the knowledge on Axapta.



YAHOO! GROUPS LINKS




Reply via email to