How To Develop A D365 Number Sequence

Поделиться
HTML-код
  • Опубликовано: 13 сен 2024

Комментарии • 23

  • @tahajawaid4975
    @tahajawaid4975 2 месяца назад +1

    Thanks Peter for making such an informative video. Greetings from Pakistan

    • @peterramer
      @peterramer  2 месяца назад +1

      Thank you! Greetings!

  • @aleksandra6419
    @aleksandra6419 2 года назад +2

    Thank you Piotr for your work! Greetings from Poland. You are always helpful :)

  • @benja200barca
    @benja200barca 2 года назад +2

    this is fantastic man! Thank you very much! Greetings from Mexico

    • @peterramer
      @peterramer  2 года назад +2

      You are most welcome! De nada!

  • @parimalrajsscet
    @parimalrajsscet Год назад +1

    good work

  • @DanishAli-zp8od
    @DanishAli-zp8od 10 месяцев назад

    Hi Peter, thanks for this tutorial. I am getting an error when extending the NumberSeqApplicationModule class, can you suggest what I might be missing? I am a beginner so any help would be much appreciated!
    Thanks again!

    • @peterramer
      @peterramer  10 месяцев назад

      I would be happy to try to help. Can you tell me what the error message is? And perhaps share the code?

  • @leoreemam
    @leoreemam Год назад

    Hi Peter, Thank for you for showing the Number sequence concept. When we deploy the changes to a new server how will the Number sequence will get set in the ‘Number sequence’ tab.

    • @peterramer
      @peterramer  Год назад +1

      This is a good question. I believe as part of promoting the code to a new server, Microsoft is going to run certain code every time, such as this, to ensure that new number sequences get added to the tab. So it should happen automatically when you promote code. No action needed.

  • @mansigajjar3034
    @mansigajjar3034 6 месяцев назад

    Awesome tutorial !! Helped a lot

  • @omarabdelhamed1056
    @omarabdelhamed1056 2 года назад +1

    thanks Peter for this video ,, actually u have a question .. if i do same step and didn't save the record for CarId .. i mean i pressed New that will call Create method .. number seq will populate in CarId field ,, then i didn't save and delete the record
    ,, next time will get the next number seq although i didn't save it ,, how can i handle it ?

    • @peterramer
      @peterramer  2 года назад +1

      Usually it really isn’t a problem that the system keeps incrementing you the next number. As long as the format of you number is enough # symbols you should not run out of numbers. You can check the continuous flag and the system would then later go back and try to use those un-used values. But checking the continuous flag isn’t actually recommended. Just let the system skip the number. If you really need a value that is always incremental you shouldn’t use a number sequence. Instead you can use a method to calculate the next number based on first finding the previously highest number and adding 1 to that value.

  • @shwepee__2257
    @shwepee__2257 Год назад

    Thank you Peter for this video, its very helpful. Actually i have a question, when i test my number sequence and when i click new, the system set up the next number sequence but it doesnt add a row, it just stays at one row. And i have no idea how can i fix this problem

    • @peterramer
      @peterramer  Год назад

      Check and make sure that the datasource property is set on the grid control on your form. You can also put a breakpoint in the ‘create’ method of the datasource and make sure it is getting called by the system when you push the new button.

  • @parimalrajsscet
    @parimalrajsscet Год назад +1

    why only create method is used for it. why other methods are not used for creating number sequence like validate write, write or any other methods

    • @peterramer
      @peterramer  Год назад

      Typically you will want the number sequence to be set and populated when you first create the record and not when you are saving the record. It would be a little confusing if you had a field that was a key identifier field, but you left it blank, and only when you went to save it did the system populate it. Functionally it makes more sense if the field gets populated as soon as the user clicks the “new” button.

  • @Jkeshwji
    @Jkeshwji 2 года назад

    Peter, We have different types of items which will require its own number sequence. Similar to the Fixed Asset type, how do I get started? Any help will be greatly appreciated.

    • @Jkeshwji
      @Jkeshwji 2 года назад

      I meant to say similar to Fixed Asset Group.

  • @SangNguyen-hv6sg
    @SangNguyen-hv6sg 2 года назад

    I get an error message when I open the Trial balance form, this is a standard form of the system what should I do to fix this
    Stack trace: Call to TTSCOMMIT without first calling TTSBEGIN.

    • @peterramer
      @peterramer  2 года назад

      This error occurs when there are not the same number of calls to ttsbegin as ttscommit. This can happen if you forget one of these statements. Or if you have one, but not both inside of an if statement. I recommend you debug the kind and go like by line of what code runs. And keep track of when the code calls ttsbegin and ttscommit. And figure out which ttscommit is missing a corresponding ttsbegin.