Sendkeys problem in multiple subform

NaviDevNaviDev Member Posts: 365
Hello,

I have this forms with 5 subform in it in a total of 6 forms. And I am applying the sendkeys to all the form. So I did declare the automation in all the forms containing the same logic. But when I run the main form, the sendkey only works for the main form and the 2 other subform. Does this mean that the automation can only be use in 3 instances?
Navision noob....

Comments

  • devu_13devu_13 Member Posts: 101
    Clear cache usage of automation variable before go to next send key.then restart again.........
    Devendra Kr. Sharma
    IBIZ Consulting Services,India
  • NaviDevNaviDev Member Posts: 365
    Hello devu_13,

    How to clear the cache? :D

    Thank you for your sharing.
    Navision noob....
  • devu_13devu_13 Member Posts: 101
    use automation variable functions ......
    Like clear(pdfcreator.cache);
    Devendra Kr. Sharma
    IBIZ Consulting Services,India
  • NaviDevNaviDev Member Posts: 365
    Hello again,

    Actually the Automation doesnt have any function like cache. So I have clear the automation itself in every time I need to send a key like on the codes below.

    But the output is still the same. :(

    CLEAR(Wscript);
    CREATE(Wscript);
    Wscript.SendKeys('+' + ' ');
    Navision noob....
  • garakgarak Member Posts: 3,263
    What do you want to do? Update the subform(s) based on datas in the mainform?
    O update a subform based on datas in a other subform?
    Do you make it right, it works too!
  • NaviDevNaviDev Member Posts: 365
    Hi garak,

    I use it just to highlight what is the current record selected in every form.
    Navision noob....
  • kinekine Member Posts: 12,562
    That's why I never will do that for customer. The mark is on the left side of each table. If user is not able to learn to use this, all solutions will be very costly and buggy...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    NaviDev wrote:
    Hi garak,

    I use it just to highlight what is the current record selected in every form.


    And why? I it the same reason like in your other post?
    Do you make it right, it works too!
  • NaviDevNaviDev Member Posts: 365
    Yep, its the same reason as my other post.

    Now I am quite confused. When I click(Left Mouse Click) on the subform, it doesn't highlight the line. But when i use the keyboard arrow keys, It does. :-k
    Navision noob....
Sign In or Register to comment.