NavigationListUI.NavigationList Reload  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

NavigationListUI.NavigationList Reload

Postby SBarnes » Tue Dec 19, 2017 11:49 am

I have a form that inherits from JiwaFinancials.Jiwa.JiwaApplication.NavigationListUI.NavigationList and uses a stored procedure that takes a start date, end date and inventory ID that works perfectly.

I have now added a Next Month and Previous Month buttons to the ribbon that I want to use to obviously change the date range which I can do by calling my SetParameters function again which clears and sets up the new values but how do I get the form to recall the stored procedure and redraw the grid with the new data?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: NavigationListUI.NavigationList Reload  Topic is solved

Postby Mike.Sheen » Tue Dec 19, 2017 1:29 pm

You can invoke the ToolClick for the record refresh, or you can do what that does - call the grid's BuildGridFromStoredProc method.

For reference, here's the ToolClick handler in the NavigationListUI base form:

Code: Select all
Public Sub UltraToolbarsManager1_ToolClick1(sender As Object, e As Infragistics.Win.UltraWinToolbars.ToolClickEventArgs)
   Select Case e.Tool.Key
      Case "ID_RecordRefresh"
         're - read
         JiwaGrid1.BuildGridFromStoredProc(_StoredProcName, SQLParameters)
   End Select
End Sub


Mike
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: NavigationListUI.NavigationList Reload

Postby SBarnes » Tue Dec 19, 2017 2:39 pm

Thanks Mike
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 23 guests