lookup page not show 'ok' button

GRUBBYFANSGRUBBYFANS Member Posts: 154
edited 2013-09-30 in NAV Three Tier
today,i have write some code in a page,when you click a field in page,like lookup filed in form,but the lookup page,i can't see its 'ok' button,why?i don't know the reason,please help me :(:(:( ,in the Classic,the program is right

Comments

  • kinekine Member Posts: 12,562
    May be that the page you are using have wrong Page type...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • GRUBBYFANSGRUBBYFANS Member Posts: 154
    kine wrote:
    May be that the page you are using have wrong Page type...
    which type do you think? list?card?worksheet?listpart?kine i can send the program to you,please help me,i think it is a bug :-k
  • kinekine Member Posts: 12,562
    Which page type have you used? Compare it with a page, which works as lookup and have the OK button on it. It is easy way how to check if all is correct and you can do it yourself... ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • GRUBBYFANSGRUBBYFANS Member Posts: 154
    kine wrote:
    Which page type have you used? Compare it with a page, which works as lookup and have the OK button on it. It is easy way how to check if all is correct and you can do it yourself... ;-)
    page type is worksheet
  • kinekine Member Posts: 12,562
    Worksheet is used for journals, not as lookup page... you need to use correct page type in correct case. That there are other features you want to use doesn't mean that you can just change the page type and it will still works correctly.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • GRUBBYFANSGRUBBYFANS Member Posts: 154
    kine wrote:
    Worksheet is used for journals, not as lookup page... you need to use correct page type in correct case. That there are other features you want to use doesn't mean that you can just change the page type and it will still works correctly.
    kine,you can see the page 562,and see the report 94,the dimension lookup field,this is my logic
  • kinekine Member Posts: 12,562
    Can you post the code where you are running the page? The original screenshots are not available anymore...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • GRUBBYFANSGRUBBYFANS Member Posts: 154
    kine wrote:
    Can you post the code where you are running the page? The original screenshots are not available anymore...

    this is my code!

    Name DataType Subtype
    GenBusPostGrpSelect page Gen. Bus Post Group Select
    GenBusPostGrp Record Gen. Business Posting Group
    TempGenBusPostGrp Record Gen. Business Posting Group
     CLEAR(GenBusPostGrpSelect);
     IF GenBusPostGrp.FIND('-') THEN
       REPEAT
         GenBusPostGrpSelect.InsertGenBusPostGrpBuf(
           GenBusPostGrp.Selected,GenBusPostGrp.Code,
           GenBusPostGrp.Description);
    
       UNTIL GenBusPostGrp.NEXT = 0;
    
    GenBusPostGrpSelect.LOOKUPMODE := TRUE;
    IF GenBusPostGrpSelect.RUNMODAL = ACTION::LookupOK THEN BEGIN
      GenBusPostGrpSelect.GetGenBusPostGrpBuf(TempGenBusPostGrp);
      
      SetGenBusPostGrpSelect(
         TempGenBusPostGrp,SelectedText);
    
    END;
    
    when the code run, the screenshot is lookup form,i can't see 'ok' button
  • kinekine Member Posts: 12,562
    Ok. I have tested this:

    1) Created new page of type worksheet over some table
    2) Added some fields to the page
    3) Run the page from designer
    4) -> the page opened have OK button...

    There must be some other problem...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • mihail_kolevmihail_kolev Member Posts: 379
    Is the code in the OnLookup trigger... becouse the "..." symbol appears when you heve code in the OnAssistEdit trigger
    -Mihail- [MCTS]
  • GRUBBYFANSGRUBBYFANS Member Posts: 154
    Is the code in the OnLookup trigger... becouse the "..." symbol appears when you heve code in the OnAssistEdit trigger
    all right,i am trying to change my program code,i will see the result :-k :-k
  • CodingoCodingo Member Posts: 8
    Hello everybody :) ,

    I had pretty the same issue with a page which I created in NAV 2013.

    I fixed it with the following rule:
    When there is code behind the OnLookup trigger where we want to handle the lookup and additional the field has the property "TableRelation" filled, the Lookup-Page will has no "OK" button.
    So I just deleted the TableRelation value and my lookup was working as I wanted.

    I hope this is helpful.

    Thanks
Sign In or Register to comment.