How to focus to Sales Header form from sales subform ?

lynhthilynhthi Member Posts: 15
edited 2004-10-06 in Navision Attain
Hi Friends !

As you know SalesHeader.Status contains 2 options (Open & Released ) .
I add a additional option "Overdue" to SalesHeader.Status. At time, SalesHeader.Status contains 3 options (Open, Released, Overdue).
When I enter to quantity in sales line, it may the customer of this order be overdue and I update SaleHeader.Status-> Overdue... but I must CLICK on SalesHeader to see the Status be updated.
Can you help me the other way to focus the SalesHeader?
Thank you so much.
Linh.

Comments

  • sggsgg Member Posts: 109
    The problem is in the System's Refreshing the Header part of the form.
    This is done when you focus on the header.

    However, you could force the system to update the controls at certain intervals. This you could do in the OnTimer Trigger of the Sales Order Form.

    If you MUST do this, then you could put CurrForm.UPDATE in the OnTimer Trigger.

    then set the TimerInterval Property of the Sales Order Form to 1000*Interval (in seconds)



    This is better than Just Focusing on the header since you would still have to continue keying data in the sales line like Unit Price
    Sunday, Godwin G
  • philippegirodphilippegirod Member Posts: 191
    But in the case I want just focus...... to help the end-user to have the right field to write in.

    For instance, if I add one information in the subform, or when I activate the form, I want the cursor be placed on a particular field... How can I do that..

    I tried to use the next in the OnActivate trigger on the Form:
    Currform.NameOfTheField.ACTIVATE;
    

    but, it doesn't do anything...

    I tried to search in the forum but..... there are too many things to be able to read...
    Any one as a solution ?

    Thanks...
    My candle burns by both ends, it will not last the night,
    But oh my foes and oh my friends, it gives a lovely light
  • awarnawarn Member Posts: 261
    I'd much rather see you not use the ontimer event - you don't want to have the cursor flipping around every x amount of seconds!

    The line of code you are using is correct:

    Currform.NameOfTheField.ACTIVATE;

    But you must put it in the correct trigger - Id try putting it on the OnDeActivate trigger of whatever field you want to direct...


    But a second easier way would be to redesign your form, remove the fields, and re-add the fields to the form in the order you wish the tab order to be -> then move them around the form to look as you wish.
    If you have lots of code under your fields already this might not be worth it, but if it is just a plain form this should be easier.

    -a
  • awarnawarn Member Posts: 261
    Sorry I re-read the header and my anser doesn't apply at all!

    -a
Sign In or Register to comment.