Dear AX Group,

I am following an example in a text book.
The example shows one how to create a wizard form using the wizard wizard to 
allow user to add new stock items by this means.

I have followed the example strictly and believe there is some typos because 
the following code, in the run() class would not compile:

void run()
{
    InventTable inventTable;
    InventTxt inventTxt;
    InventTableModule inventTableModule;
    InventItemLocation inventItemLocation;
    ;
    ttsBegin;

    inventTable.initValue();
    inventTable.ItemId = formRun.itemId();
    inventTable.itemName = formRun.itemName();
    inventTable.ItemGroupId = formRun.itemGroupId();
    inventTable.ModelGroupId = formRun.inventModelGroupId();
    inventTable.DimGroupId = formRun.inventDimGroupId();
    inventTable.insert();
    inventTxt.initValue();
    inventTxt.ItemId = formRun.itemId();
    inventTxt.LanguageId = CompanyInfo::find().LanguageId;
    inventTxt.Txt = formRun.itemDescription();
    inventTxt.insert();
    inventTableModule.initValue();
    inventTableModule.ItemId = formRun.itemId();
    inventTableModule.ModuleType = ModuleInventPurchSales::Invent;
    inventTableModule.insert();
    inventTableModule.ItemId = formRun.itemId();
    inventTableModule.ModuleType = ModuleInventPurchSales::Purch;
    inventTableModule.insert();
    inventTableModule.ItemId = formRun.itemId();
    inventTableModule.ModuleType = ModuleInventPurchSales::Sales;
    inventTableModule.insert();
    inventItemLocation.initValue();
    inventItemLocation.ItemId = formRun.itemId();
    inventItemLocation.inventDimId = InventDim::inventDimIdBlank();
    inventItemLocation.insert();
    ttsCommit;
}


The compiler error:
"The table does not contain this field."

It does not like the "runForm.ItemId" etc...
I have created functions that returns the StringEdit values.
But "runForm" is not recognized within the run() class.

Please advise.


Regards,

Marius.


Created with dabMail, the business email client
Download now at www.isatto.com/dabmail


[Non-text portions of this message have been removed]

Reply via email to