On Lookup of a form..

FakerulesFakerules Member Posts: 50
When I look up on a form, I need to filter the values based on where I have looked up the form from..

i.e. different values for lookup from sales card and purchase card..

so can the form capture the id of the form it has been looked up from...

Thanks All

Answers

  • ShonatinaShonatina Member Posts: 114
    Fakerules wrote:
    When I look up on a form, I need to filter the values based on where I have looked up the form from..

    i.e. different values for lookup from sales card and purchase card..

    so can the form capture the id of the form it has been looked up from...

    Thanks All

    hi ...
    have you tried using "condition statements in ur codes"
    smile always
    shona
    That which you seek inside is that which you find outside
  • navuser1navuser1 Member Posts: 1,329
    If I understand you correctly :
    try this.

    YourTable.RESET;
    YourTable.SETRANGE(Field [,FromValue] [.ToValue])
    IF YourTable.FIND('-') THEN BEGIN
    YourTable.FILTERGROUP(2);
    CLEAR(YourForm);
    YourForm.SETTABLEVIEW(YourTable);
    YourForm.SETRECORD(YourTable);
    YourForm.RUN;
    END;
    Now or Never
  • JedrzejTJedrzejT Member Posts: 267
    Hi,
    This is diffrent tables so you dont have to catch form id or something to change filters, just change TableRelation property in tables. With same table forms like "sales order", "sales invoice" - add new condition to tablerelation base on type field
  • FakerulesFakerules Member Posts: 50
    Thanks everybody..

    I am trying all your suggestions...
    Will update you on the one that works..

    keep helping.....
  • FakerulesFakerules Member Posts: 50
    JedrzejT wrote:
    Hi,
    This is diffrent tables so you dont have to catch form id or something to change filters, just change TableRelation property in tables. With same table forms like "sales order", "sales invoice" - add new condition to tablerelation base on type field


    Perfect Solution............
    Done in seconds, thanks a million..
  • FakerulesFakerules Member Posts: 50
    Sorry Guys, only tried one solution and it works just fine....

    Thanks all of you...
    Problem Solved... :thumbsup:
Sign In or Register to comment.