Hi Everyone,
I need second opinion on which practice to do it in this condition.
I'm a newbie in this AL stuff and need your opinion on how you do it your way.
I create a table and page based on sales line with 1 to many relation.
for example a property table like below where 1 sales line can have multiple record on it, and the entry number is the primary key.
LineProperty table with these fields : Entry No.(PK), Document Type, Document No, Line No., Property Name, Property Age.
Entry No will be created automatically when record inserted.
The page will be run through this function that's called on action on sales order subform.
There are two advise i need.
1st ---
Is there a method you can advise to create new record in the PropertyPage by getting the value of DocumentType,
DocumentNo, and LineNo from the one i get from Sales Line without using global function to pass value to the page ?
2nd --
For example there are already two records on page with current view (Document type = Invoice, Document No = 01, Line No = 10000)
Entry No : 1
Property Name : Springtime Mansion
Property Age: 12
Entry No: 2
Property Name : Trine Tower Mansion
Property Age: *Empty* (not yet inputted)
And i want to prevent creation on new record because previous record Property Age is still need to be filled before user can create another record. How to do in this situation ?

Report
All responses (
Answers (