none
Query Results only load on hitting refresh

    Question

  • The query results only load after user interaction – hitting the refresh button. Then the whole website is greyed out and the user has to wait.

    Is there a other possibility?

    Nice would be the possibility to load the data into the tables while data can be entered in the other fields meanwhile (eg text fields).

    We have sorted the input fields, so that the text fields are first and the query fields are later and we have up to 6 query fields on one service request. So the analysts have to hit the refresh button 6 times and the whole session is greyed out while waiting.

    Thursday, January 28, 2016 4:19 PM

Answers

  • Yu can add javascript code in makeform.cshtml to trigger click on form load like  http://stackoverflow.com/questions/18097403/trigger-click-event-itself-on-loading-page    

    This is query 'Refresh' button definition in makefrom.cshtml

      <button type="button" class="queryPickButton btn" data-idsource="@item["PathSend"].ToString()">@Resources.SelfServicePortalResources.Refresh</button>

                       
    Thursday, January 28, 2016 4:55 PM

All replies

  • Yu can add javascript code in makeform.cshtml to trigger click on form load like  http://stackoverflow.com/questions/18097403/trigger-click-event-itself-on-loading-page    

    This is query 'Refresh' button definition in makefrom.cshtml

      <button type="button" class="queryPickButton btn" data-idsource="@item["PathSend"].ToString()">@Resources.SelfServicePortalResources.Refresh</button>

                       
    Thursday, January 28, 2016 4:55 PM
  • Yes, this is a possible wordaround to easily add $('.queryPickButton').click(); near line 152.

    But I think, loading on opening the service request should be out of the box – because you HAVE to hit refresh each time using the service request. So it would be better to wait some seconds on the service request start. And I think it would be even faster.

    Tuesday, February 02, 2016 3:22 PM
  • With this solution, all refresh buttons are hit. That is fine, but not for dependent queries. In dependent queries all data is shown.

    Thursday, February 04, 2016 7:27 AM
  • Hi,

    could you please be more specific in how and where (in the chtml file) to add the code so that the querypick fields are refreshed when the page is loaded?

    Thanks!

    Kind Regards


    E.O

    Tuesday, June 07, 2016 10:49 AM
  • Have a look for      $('.queryPickButton').click(); in

    https://gist.github.com/pwahlmueller/27673f2dd6899c3d8ca7a062c3673486
    Tuesday, June 07, 2016 11:07 AM