Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

table unique key and validation

Posted on by Microsoft Employee

Hello

I have an issue on selecting a record from a table to insert it on anathor i explaine 

in the stadrad evrything works i open a table on service line a select a record from table service labor every think is ok.

but on the table service labor i need to put de No. not unique need a key like (make code,No.) and use a filter make code from service header and apply it on service labor.

but my problem on selecting the record from service labor i have a blocking message  "the value on field no. cant be found on table service labor.

when i use debug mode i am blocked on form named service order subform validate line

Type::Labor:
BEGIN
Labor.RESET;
Labor.SETCURRENTKEY("Make Code");
Labor.SETFILTER("Make Code",'%1|''''',"Make Code");
IF LookUpMgt.LookUpLabor(Labor,"No.") THEN
VALIDATE("No.",Labor."No.");
END;

*This post is locked for comments

  • Jalmaraz Profile Picture
    Jalmaraz 667 on at
    RE: table unique key and validation

    The tablerelation of field No. may have a where condition that the selected Labor record doesn´t match.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans