Rather than "DataItemLinkReference" property

teckpohteckpoh Member Posts: 271
let say to make a table link with the other, we use "DataItemLinkReference" property but let say in c/al editor...how we want to specify "DataItemLinkReference" & "DataItemLink" property for a table A link to table B?

Comments

  • Thomas_Hviid_ThornThomas_Hviid_Thorn Member Posts: 92
    I'm not sure about "we", but I would use SETCURRENTKEY and SETRANGE/SETFILTER.

    Actually, if apropriate, I combine them - e.g. apply extra filters in the code, if the filters is only to be used conditionally.
    With Kind Regards
    Thoms Hviid Thorn
  • Ravi_Prakash_GoyalRavi_Prakash_Goyal Member Posts: 72
    Apply the same filter as you used in DataItemLink property of the indended dataitem in the C/AL editor.
  • DenSterDenSter Member Posts: 8,307
    Why would you want to program it if you have a perfectly good property for it?
  • teckpohteckpoh Member Posts: 271
    thank you all~~ my problem solved..wat i do is use "setfilter & setrange" ....10s
Sign In or Register to comment.