My Task Due to no space in sales header table for creating extra fields. so i have created new table with those extra fields .
Next i created global variables in sales order page and assigned those variables to new table fields to get data in the table but am not seeing data flow into that table.
I want to push data into the table with global variable …
Hi! Presume there is a link between the sales header table and the new table? Are you pulling data to the header from the new table or allowing the user to add data into the sales header on your new globals?
In the Page code create a new Global variable which will refer to the new table that you created. After that, map the fields which is located in your new table in the current page using the Field menu option (From View Tab).
In the Page code create a new Global variable which will refer to the new table that you created. After that, map the fields which is located in your new table in the current page using the Field menu option (From View Tab).
Thanks for the response .Am pulling data into the new table when the user creates Quotation using Global variables.But now when the user converts the Quotation to order the new table fileds not getting flowing when the order is created . Could you please tell me were to write the code so that the new table fields flow when the order is create.
In the OnAfterGetRecord trigger of the page, you can open/get the new table record, like this:
IF NOT NewTable.GET(“Document Type”,“No.”) THEN
NewTable.INIT;
And the refer directly to the record variable in the page’s field list like NewTable.Field1.
But if these fields should also be modifiable and not read-only, then you also need code in place to update the other table, insert/delete etc. That would be much more code.
Have you considered instead just linking the two tables and display the NewTable as a part, similar to the way sales lines are used? Parts doesn’t have to be listpart, can also be cardparts. Then you don’t have to code anything to handle the modifications. [:)]