Subject:
The steps here will describe how to create a SmartFill Object that uses a Window Field Value for its Repository Filter.
Resolution:
Here are the steps to follow:
- Go to Microsoft Dynamics GP | Tools | Setup | SmartFill | Objects.
- In the SmartFill Object Maintenance Details window, double click the Object you would like to modify.
- In the SmartFill Object Maintenance Details window, click Repository.
- Find and select the Repository record you would like to create a filter for using a Window field value.
- Click the Modify button.
- In the Modify Repository Record window, enter a Repository Filter.
- For the Table Name and Table Field, select the specific Table Name and Table Field that stores the Window field.
- For the Operation, select Equals.
- For the Type, select Window Field.
- For the Value, select the specific Window field.
- Click OK.
- In the Repository Maintenance window, click OK.
- In the SmartFill Object Maintenance Details window, click Save.
Notes:
Here is a specific example for the Item Number lookup in the Project Accounting Inventory Transfer Entry window that uses both of the Project Number and Cost Category ID values entered.
- Go to Microsoft Dynamics GP | Tools | Setup | SmartFill | Objects.
- In the SmartFill Objects window, click the New Object (+) button.
- In the SmartFill Object Maintenance Details window, enter an Object Name.
- For Search Type, mark the Contains radio button.
- In the Object Definition section:
- For Product, select Project Accounting.
- For Lookup Form, select PA_IV_Item_Lookup.
- For Table Name, select PA_Budget_IVItems.
- For Return Field, select Item Number.
- For Return Datatype, select String.
- For Column 2:
- For Table, select PA_Budget_IVItems.
- For Field Name, select PA Project Number.
- For Display Name, enter PA Project Number.
- Mark the Display checkbox.
- For Column 3:
- For Table, select PA_Budget_IVItems.
- For Field Name, select PA Cost Category ID.
- For Display Name, enter PA Cost Category ID.
- Mark the Display checkbox.
- For the second row:
- For Table Name, select PA_Budget_IVItems.
- For Table Field, select PA Cost Category ID.
- For Operation, select Equals.
- For Type, select Window Field.
- For Value, click the Lookup button, select PA Cost Category ID, and then click Select.
- In the Lookup Fields section:
- For Column 1:
- For Table, select PA_Budget_IVItems.
- For Field Name, select Item Number.
- For Display Name, enter Item Number.
- Mark the Search checkbox.
- Mark the Display checkbox.
- For Column 1:
- Click Save.
- In the SmartFill Objects window, select the Object Name you created, and then click the Edit Object button.
- In the SmartFill Object Maintenance Details window, click the Repository button.
- In the Repository Maintenance window, click the New (+) button.
- In the Lookup Creation Wizard:
- Click Next.
- Select the SmartFill Object you created, and then click Next.
- Once the Add New Lookup for (your SmartFill Object name) Object window opens, go to Transactions | Project | Inventory Transfer.
- In the Inventory Transfer Entry window, click the Document Number lookup, select an Inventory Transfer Document, and then put your cursor in the Item Number field. Note: If an Inventory Transfer Document does not exist, enter a new one and then put your cursor in the Item Number field.
- In the Add New Lookup for (your SmartFill Object name) Object window, verify Item Number is entered for Field.
- Click Add Lookup.
- Click Done.
- In the Repository Maintenance window, click Redisplay.
- Select the line that contains the following information:
- For Product, Project Accounting.
- For Object, the SmartFill Object you created.
- For Form, PA_Inventory_Transfer_Entry.
- For Window, PA_Transaction_Scroll.
- For Field, Item Number.
- Click the Modify button.
- In the Modify Repository Record window, enter the following Repository Filters:
- For the first row:
- For Table Name, select PA_Budget_IVItems.
- For Table Field, select PA Project Number.
- For Operation, select Equals.
- For Type, select Window Field.
- For Value, click the Lookup button, select PA Project Number, and then click Select.
- For the first row:
- Click OK.
- In the Repository Maintenance window, click OK.
- In the SmartFill Object Maintenance Details window, click Save.