I would like to use a request page, where user can add a parameter, and I want to use this parameter in OnAfterInsertRecord() trigger of the xmlport. I want to fill out a field of the inserted line with this data.
How can I refer to that parameter added by the user on request page?
Thanks. I tried both solution, and it works, I can get the parameters added by the user.
But, I have another problem with this XMLport.
I want to import data to Table 83 Item Journal Line. I made a page action to run my xmlport. I have some code in OnBeforeInsertRecord to filter items based on the data in imported text file. I start the process, add the parameters on request page, but I get the following error message:
Phys. Inventory must be equal to ‘Yes’ in Item Journal Line: Journal Template Name=, Journal Batch Name=, Line No.=0. Current value is ‘No’.
My parameters are Journal Template Name and Journal Batch Name, so they don’t have the added value. I tried to set initial value of Phys. Inventory to yes. But after doing this, I have the following error message:
Phys. Inventory must be equal to ‘No’ in Item Journal Line: Journal Template Name=LELTAR, Journal Batch Name=LT2011_02, Line No.=1. Current value is ‘Yes’.
So, in this way I have the right data in Journal Template Name and Journal Batch Name, but Phys. Inventory is not good. In addititon to, the bulit-in Calculate Inventory function doesn’t work, too. So, it not a solution, either.