I have a simple request form with 2 vars for user input - NewType and NewCode
NewType has a table relation to a Type table - no problem
NewCode needs a table relation to the Code table which needs be filtered on the NewType value just entered and that is where I am stuck.
- Request Form fields do not provide for OnValidate
- NewCode.TableRelation property's OnAssist does not bring up anything
- I have tried entering a WHERE clause manually in the TableRelation property but either 1) I have not figured out how to enter it correctly or 2) it does not work for a variable.
I am convinced that this should be fairly simple but I have not figured it out yet. Thanks in advance for any assistance.
0
Comments
This goes to OnLookup trigger. I hope this helps.
RIS Plus, LLC
Report - OnActivate()
Report - OnDeactivate()
Report - OnFormat(VAR Text : Text[1024];)
Report - OnBeforeInput()
Report - OnInputChange()
Report - OnAfterInput(VAR Text : Text[1024];)
Report - OnValidate()
Report - OnAfterValidate()
Report - OnLookup(VAR Text : Text[1024];) : Boolean
Report - OnDrillDown()
Report - OnAssistEdit()
I am not getting OnValiadate or OnLookup options... ?????
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Glad you found it though
RIS Plus, LLC
CatCodes.SETRANGE(Type,CurrType);
IF FORM.RUNMODAL(37001262,CatCodes) = ACTION::LookupOK THEN BEGIN
CurrCode := CatCodes.Code;
EXIT(TRUE);
END;
Debug shows 'CurrCode' being assigned the value properly but it is not passing back into the Req Form. There is no TableRelation on CurrCode [Code 10]; all other properties are defaults as far as I can tell. ?? Maybe I'm denser than I thought :shock:
to set the value correctly if this code is called from OnLookup.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.