Friday 24 June 2016

Refresh Page

Hello Everyone,

If we want to refresh a page after some action here is one of the simplest way to do it.

First of all create  a function called RefreshPage as shown in below snapshot..

Code:


Function Code









Variable Name - WshShell
Data Type - Automation
Sub Type - 'Windows Script Host Object Model'.WshShell

Function Call: - RefreshPage

The function should be called from an appropriate place where required and page would get refreshed after than action.

And its done.


Your valuable comments and feedback are appreciated.

"Power is gained by Sharing Knowledge not hoarding it"

13 comments:

  1. hello
    can you give fob in object

    ReplyDelete
  2. Hello Vishal, Send me your email id and i would provide you fob file.

    ReplyDelete
    Replies
    1. hello Suraj,
      when I am adding the variable WshShell and after I put the sub type, a pop-up message comes up and start searching and counter continues to count ... it lasts around two hours then i canceled it... is there something wrong

      Delete
    2. Hello,

      Kindly see below details as mentioned explained above.

      Variable Name - WshShell
      Data Type - Automation
      Sub Type - 'Windows Script Host Object Model'.WshShell

      Delete
    3. Hello Suraj,

      I used the same! but when am adding the cariable WshShell with the Sub Type - 'Windows Script Host Object Model'.WshShell, NAV system will pop-up message :

      Searching the Automation Server Table
      Counter ********
      Table Automation Table
      Key Name, GUID, Version

      Now Counter is keeping increasing and nothing happened after that .. only counter is increasing :((

      if you can give ur email address to send u a screen snapshot ...

      Delete
  3. Replies
    1. Great. Happy to hear that it was helpful to you

      Delete
    2. can i have ur email address please.
      my name is Imad

      Delete
    3. Email: surajpatel038@gmail.com

      Delete
  4. i am getting pop and after click on yes then it is going to refresh..so i want to auto refresh without click on Yes

    ReplyDelete
  5. Works Smoothly, Thanks Suraj

    ReplyDelete
  6. is this possible in business central

    ReplyDelete