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
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... ;-)
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... ;-)
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.
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
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
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...
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.
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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
when the code run, the screenshot is lookup form,i can't see 'ok' button
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...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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