Activating Grid + filter in 1 form

rixrixrixrix Member Posts: 121
Hello, plz help

The guy from implementating company said that it is not possible, but I am not sure ....
We have NAV 4

I designed form in that way (I will simplify it) that there is : 1 Grid (let say only 1 column "itemID" - non Unique, 1 TextBox)

What I want:
1. I will move in the grid (normally by arrows)
2. I will go into the text box and fill in the ID
3. By pressing Enter I want to filter on that ID in the grid and put pointer on the 1st item of filtered rows (in the Grid) and want that row to be active....

Now it works like this:
3. By pressing Enter , there are filtered rows + row where I stood last when changin focus from grid to textarea

The Guy also said, that there is also problem with activating grid column. That I have to move first ....

Please can u help me? Is it possible to do it My way ?

Thank you in advance

Comments

  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    1. Set the property NextControl of your main form control (field) to the ID of your SubForm.
    2. In OnActivateForm of your SubForm type in the following code:
    CurrForm.YourField.ACTIVATE;
    FINDFIRST;
    CurrForm.UPDATE(FALSE);
    
    "Money is likewise the greatest chance and the greatest scourge of mankind."
Sign In or Register to comment.