# Navision 2009R2

**URL:** <https://www.dynamicsuser.net/t/navision-2009r2/57901>\
**Category:** Technical Forum\
**Created:** [June 17, 2015, 7:25am UTC](https://www.dynamicsuser.net/t/navision-2009r2/57901 "2015-06-17T07:25:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveen\_kumar](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@praveen\_kumar](https://www.dynamicsuser.net/u/praveen_kumar)\
**Post date:** [June 17, 2015, 7:25am UTC](https://www.dynamicsuser.net/t/navision-2009r2/57901/1 "2015-06-17T07:25:15Z")

</div>

Hi ,

Can any one help to over come my problem.

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 …

Can any one help me out to solve this…

Thanks in advance…

---

<div class="post-metadata">

**Author:** ![neilgf](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@neilgf](https://www.dynamicsuser.net/u/neilgf)\
**Post date:** [June 17, 2015, 8:20am UTC](https://www.dynamicsuser.net/t/navision-2009r2/57901/2 "2015-06-17T08:20:25Z")

</div>

Praveen

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?

Neil

---

<div class="post-metadata">

**Author:** ![Dragon\_VIB](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@Dragon\_VIB](https://www.dynamicsuser.net/u/Dragon_VIB)\
**Post date:** [June 17, 2015, 12:46pm UTC](https://www.dynamicsuser.net/t/navision-2009r2/57901/3 "2015-06-17T12:46:31Z")

</div>

HI,

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).

Regards,

Zyaed

---

<div class="post-metadata">

**Author:** ![Dragon\_VIB](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@Dragon\_VIB](https://www.dynamicsuser.net/u/Dragon_VIB)\
**Post date:** [June 17, 2015, 12:46pm UTC](https://www.dynamicsuser.net/t/navision-2009r2/57901/4 "2015-06-17T12:46:42Z")

</div>

HI,

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).

Regards,

Zayed

---

<div class="post-metadata">

**Author:** ![praveen\_kumar](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@praveen\_kumar](https://www.dynamicsuser.net/u/praveen_kumar)\
**Post date:** [June 17, 2015, 7:26pm UTC](https://www.dynamicsuser.net/t/navision-2009r2/57901/5 "2015-06-17T19:26:49Z")

</div>

Hi neil,

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.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![praveen\_kumar](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@praveen\_kumar](https://www.dynamicsuser.net/u/praveen_kumar)\
**Post date:** [June 17, 2015, 7:28pm UTC](https://www.dynamicsuser.net/t/navision-2009r2/57901/6 "2015-06-17T19:28:36Z")

</div>

Thanks Mohamed for the response\*\*…\*\*

---

<div class="post-metadata">

**Author:** ![admin1](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/admin1/32/7476_2.png) [@admin1](https://www.dynamicsuser.net/u/admin1)\
**Post date:** [June 17, 2015, 8:51pm UTC](https://www.dynamicsuser.net/t/navision-2009r2/57901/7 "2015-06-17T20:51:49Z")

</div>

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. [:)]

---

<div class="post-metadata">

**Author:** ![praveen\_kumar](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@praveen\_kumar](https://www.dynamicsuser.net/u/praveen_kumar)\
**Post date:** [June 18, 2015, 8:42am UTC](https://www.dynamicsuser.net/t/navision-2009r2/57901/8 "2015-06-18T08:42:13Z")

</div>

Thnaks Neil,Mohamed and **Erik it get solved[Y]**
