SBX - Search With Button

SBX - Forum Post Title

Help! New to Nav

Microsoft Dynamics NAV Forum

KaganTiogss asked a question on 13 Jun 2019 6:30 AM

Question Status

Suggested Answer

Hi,

I am trying to replace a rec with a xrec

- I also need to need to use a CONFIRM which when clicking yes, replace the file.

So far I have:

IF recPurchaseLine.Description <> xrecPurchaseLine.Description THEN 

But because I am new I'm not sure how to do this. 

Any help will be appreciated even to aim me in the right direction. 

Thanks

Reply
Teddy Herryanto responded on 13 Jun 2019 3:09 PM
My Badges
Suggested Answer

The rec and xrec can only be used if your table is the source of the objects.

If you want to do Purchase Line, you need to be in Purchase Line table or a page that is using Purchase Line as the SourceTable.

Only then you can do :

IF rec.description <> xrec.description then

Reply
Teddy Herryanto responded on 13 Jun 2019 3:09 PM
My Badges
Suggested Answer

The rec and xrec can only be used if your table is the source of the objects.

If you want to do Purchase Line, you need to be in Purchase Line table or a page that is using Purchase Line as the SourceTable.

Only then you can do :

IF rec.description <> xrec.description then

Reply

SBX - Two Col Forum

SBX - Migrated JS