Field not storing information

Hello.
I've added a new field to posted shipments (table 110 Sales Shipment Header). It is a field similar to Tracking No.
After I've added that field to pages 110 Posted sales shipment and 142 Posted Sales Shipments, with Editable=true
Two problems:

a) If I click on a posted shipment (editing), I enter a text into the new field, but after cliking Ok and close the field is empty, it doesn't store the information. If I do the same with Tracking number, no problem. Could it be a permissions problem?

b) I would like to edit this field from the page 142, in list format. Is it possible?

Thanks.

Answers

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    a) When you want to modify a posted document, extra permissions needs to be added to the object. Therefore, the changes to this table are done through codeunit 391 "Shipment Header - Edit". You should add the new field in this codeunit.

    b) Then you have to set the Editable-property of this page to True, and set the Editable property of all other fields to No (except the field you want to be able to change).
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • RamonchuRamonchu Member Posts: 31
    Hello Luc.
    Thank you very much for your help!
    Solution to the first problem was the codeunit. After I added the new field as you told me, it works.

    Point b still doesn't work. I set to Yes the Editable property of the page (142) and by now I keep enabled all the other fields (I will disable after testing), but when I go to Posted shipments documents, when I clic on a line, nothing happens. I can't edit any of the fields of the line. It is like the Editable property doesn't work for a list page.

    Any idea?
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    When you run the page from the Role Center, do you see Actions -> Edit list on that page? What version of NAV are you using?
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • RamonchuRamonchu Member Posts: 31
    Yes, I see it (Posted sales shipments, top left), and if I clic on Edit it opens page document 130 as usual. I'm testing with NAV2015.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    I was talking about the action "Edit list"
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • RamonchuRamonchu Member Posts: 31
    No, "Edit list" no. Only Edit. Even if I run the page 142 from the development enviroment, it only has Edit button.

    I've removed the CardPageID="Posted Sales Shipment" from page 142 properties. After, when I doubleclic on a line, the page list opens in edition mode. The problem is that I would like to have both things at the same time: with one clic I edit from the list, with double clic I go to the document.

    I don't know how to configure page 142 in edit mode. I've also checked the property RunPageMode in the Action "Page Posted Sales Shipments" in page 9006 "Order Processor Role Center", and it is in Edit mode.
Sign In or Register to comment.