C\AL code

dharshandharshan Member Posts: 37
Hi,

Could anyone tell me what is the use of following code?

ItemList.LOOKUPMODE(TRUE);
IF ItemList.RUNMODAL = ACTION::LookupOK THEN BEGIN
Text := ItemList.GetSelectionFilter;
EXIT(TRUE);
END;

Thanks in advance.

Comments

  • ashbhardwajashbhardwaj Member Posts: 89
    Hi
    Where this code is written.
    Lookupmode ok : means if on lookup user press ok then it will exit ...till then it wait for response
    This return code tells you what action the user took.
    Also look in to help of FORM.RUNMODAL (Form)
  • kapamaroukapamarou Member Posts: 1,152
    ItemList.LOOKUPMODE(TRUE);
    Sets the mode to lookup

    IF ItemList.RUNMODAL = ACTION::LookupOK THEN BEGIN
    If the user presses OK button then
    Text := ItemList.GetSelectionFilter;
    Run the GetSelectionFilter function of the form so that Text contains something like this: Item1|Item2|Item34
    or like this:
    Item1..Item32
    So it builds a filter with for the records that the user has selected (Highlighted)
    EXIT(TRUE);
    Exit the function returning TRUE
    END;
  • dharshandharshan Member Posts: 37
    Thanks dudes.

    I am Trying to filter the records. In that i have student name,standard,section

    Now i have a master table from that i should filter the record by Student name,or standard or section.

    But wen i am selecting the student name its fetching the standard and section also.

    The standard and section name should be empty still they press the look up button.
Sign In or Register to comment.