Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Changing the sourcetype of Item List Page (ID=31)

Posted on by 5,124

I have a question on this page.  I m thinking of changing the source type of Item List to TEMPORARY.  The source table is Item.  Since there are a lot of actions/nav/reports associated with this, I am just a little careful making the change.  The reason I want to make it temporary is so I can populate a new column with calculated fields which need to be run real time.  Creating a formfield column will not do as the logic requires more than summation, lookups or what have you.  If I change to temporary, I gather I can modify the new column only without actually saving as it's not supposed to update the real table.

My question for you: do you see any repercussions when changing the source type of Item List Page to Temporary?  Am I over simplifying the concept of changing to sourcetype to Temporary?  My ultimate goal is to allow users to filter on the new column once I populate it at run time.

*This post is locked for comments

  • Suggested answer
    mbr Profile Picture
    mbr 5,124 on at
    RE: Changing the sourcetype of Item List Page (ID=31)

    Hi All,

    The calculated field that I have is not something that can be done via formfield or method simply because client wants to be able to filter that field as well.  Anyway, I ended up creating a normal column fields and am updating these fields via a job every day.  Thank you all for your answers.

  • Suggested answer
    TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: Changing the sourcetype of Item List Page (ID=31)

    If you change the table into a temporary then in real time you have to insert records back to table because temporary table does not hold any data and to populate data it will take considerable time (all will depend on how much recored you have).

    There is no point of making table temporary. Create a list page and add your logic there.

  • Suggested answer
    TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: Changing the sourcetype of Item List Page (ID=31)

    You do not need to make it temporary to add a new column. You can create a new column in the page itself and then add your logic or calculation in the OnAfterGetRecord trigger of the page. By doing that for each record your logic will get executed.

    NAV will only lock the tables (I would say SQL) when you do a modification or insert to a table or you purposely call for lock table function.  So there won't be any performance issue for other users when you add a new column to Item list page.

    As per my understanding you do not need to change it to temporary.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Changing the sourcetype of Item List Page (ID=31)

    To add a new calculated field i don't think you need to change the list page source to temporary, create a new column in the page and use the source of it a function or variable which you can calculate in the onaftergetrecord of the page.

    The calculated field does not have to updated it is just return value from a function which gets updated everytime you open the page.

    If you use the source table as temporary then it will not have any records and you have to populate the temporary record anyway to show the values, so i don't think you need to change the source to temporary.

  • Verified answer
    mmv Profile Picture
    mmv 11,465 on at
    RE: Changing the sourcetype of Item List Page (ID=31)

    Hi mbr,

    As the standard Item List doesn't allow you to modify anything (I mean the modifications happens only on the Item Card), I don't foresee any implication if you use a temporary table as the source for your item list.  But you need to check how it's been used at other places (if you are using this Item List page explicitly based on your customization, if you have).

    Best Regards,

    MMV

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans