Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

ListPart

Posted on by Microsoft Employee

I have an existing page which as a sub page within it, in the example "Warehouse Receipt pack Label' 

122.PNG

I've tried recreating this in another page however it is appearing like this.. 

3617.123.PNG

As far as I can see the properties are the same. Page types are both 'ListPart'. 

Any feedback is appreciated. 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: ListPart

    [quote]

    you need to set SubPageLink property between those pages.

    also set ProviderID property for below subform with ID of above subform

    [/quote]
    AHHHHH!  I just spent the whole afternoon banging my head on why this wasn't working when adding a new listpart to an existing page. Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! 
    It would be so great if the RTC didn't right-align integer fields.  I never even SAW the provider ID, never thought of it, because it's hidden alllll the way on the other side of my 1920px wide monitor.
    Thank you! 
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: ListPart

    Hi no this isn't conflicting, the code is ok but If I add it to any triggers like the OnNewRecord or OnAfterGetRecord it blanks out the other fields such as Pack Qty. or Label No. And I have no idea why.

  • Suggested answer
    Yogesh Kulkarni_ Profile Picture
    Yogesh Kulkarni_ 1,762 on at
    RE: ListPart

    Lewis,

    I hope Document Line No. and Line No. are two different columns.

    You are providing Line No of Purchase Receipt Line with Document Line No to match with before FINDLAST, is this conflicting?

    Hope this helps you out.

    -Yogesh Kulkarni

    Please verify, if you find answer helpful.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: ListPart

    Hi,

    Thanks Unfortunately this hasn't Resolved my issue. I now need the Line No. to populate by using this code but it doesn't appear to be affecting the column no matter where I put it.

    Rec.RESET;

    Rec.SETRANGE("No.", recPurchRcptLine."Document No.");

    Rec.SETRANGE("Document Line No.", recPurchRcptLine."Line No.");

    IF FINDLAST THEN

     intLineNo :=

       "Line No." + 1000

    ELSE

     intLineNo := 10000;

    "Line No." := intLineNo;

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: ListPart

    Lewis,

    For the field you cannot specify in the sub page link and which are not part of primary key you need to add the code on the table on the insert or on the validation of Label No.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: ListPart

    I changed Label No. to primary key and yes that appears to work. I can't however change Pack Qty to a primary key and still therefore doesn't work. Annoying

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: ListPart

    Hi,

    You have to define Subtype of your Group as Repeater as shown in the below image.

    Repeater.jpg

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: ListPart

    They are not part of your primary key? it must be working for primary key fields only?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: ListPart

    I've made these changes but seems to have not resolved the issue. The Line No. Seems to be working correctly but why this is different to the other columns i'm unsure.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: ListPart

    try adding fields which you want to auto populate in SubPageLink property.

    set DelayedInsert property to yes in below subpage

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans