Custom Form Tabs  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Custom Form Tabs

Postby SBarnes » Tue Jul 13, 2021 5:30 pm

What determines what parameters are passed into a custom form tabs stored procedure and is there a way to override it so say for example hand in extra parameters?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Custom Form Tabs  Topic is solved

Postby Mike.Sheen » Wed Jul 14, 2021 6:19 pm

SBarnes wrote:What determines what parameters are passed into a custom form tabs stored procedure and is there a way to override it so say for example hand in extra parameters?


Those parameters are always the ID of the record (eg: InventoryID when looking at inventory maintenance form) (parameter RecID), the current logical warehouse (parameter IN_LogicalID) and the current staff member (parameter StaffIDSQLParam).

If you need more / different parameters then you'll need to add a tab the long way using a bit of code in a plugin, and handle the read, createend and copy events to display the contents.
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: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Custom Form Tabs

Postby SBarnes » Wed Jul 14, 2021 6:38 pm

Given I haven't looked at the code as to what handles it which I would assume is in the form stuff somewhere would it be possible for it to have an event added to it to hand out the SQL command like on the stocktake does so you could get at it that way, I'll log the request if it can be done but I just want to know if I am on the right track to what might be possible rather than waste time if it can't be done.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 5 guests