web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Generate No. automatically

(0) ShareShare
ReportReport
Posted on by 40

could you help me,
I want create a 'control plan' by item ,I create a list page of controle plan.
my question is how can I generate automatically No. of control plane that it come PL+No.of item
like :PL1000
(1000 : Bicyclette )

Categories:
  • Krzysztof Bialowas Profile Picture
    500 on at

    Hi,

    Do you have any table behind this page? Which one and is it temporary?

    Best regards,

    Krzysztof

  • Hasnaa1234 Profile Picture
    40 on at

    Hi,

    Yes I create a table that's name 'Header' it containe ' Num','description' .

    I want this Num will be 'PL+No of each item'

    8105.R.png

  • Krzysztof Bialowas Profile Picture
    500 on at

    Hi, then I think you need to have function which will insert a new one when opening from Item Card.

    and in the code you can for example do like this:

    PlanTable.Init();

    PlanTable.Validate(Num, StrSubstNo('%1%2',Text001, Item."No.");

    PlanTable.Insert(true);

    When Text001 should be your PL and Item."No." is Item Number.

    You can also think to put as first field on the page Item No. then it will be easier for users and for you.

    Best regards,

    Krzysztof

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans