IsNull Error  Topic is solved

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

IsNull Error

Postby SBarnes » Fri Mar 26, 2021 2:05 pm

We have a customer that is getting an error on one user about an invalid number of arguments to isnull when they go into the sales order screen.

I suspect it may be related to the form settings for that particular user and form as logging in on the same machine doesn't get the error. for other users

Is there any settings data we can delete from the database that may fix this?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: IsNull Error

Postby Mike.Sheen » Fri Mar 26, 2021 2:14 pm

If you want to remove the user settings for a particular user for the sales order form, the following will do that :

Code: Select all
DELETE FROM SY_UserProfile WHERE UserID = (SELECT StaffID FROM HR_Staff WHERE Username = 'Username') AND Section = 'JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.SalesOrderEntryForm'


Just substitute 'Username' in the above with the staff username you're having a problem with.
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: IsNull Error  Topic is solved

Postby Mike.Sheen » Fri Mar 26, 2021 2:16 pm

Actually, you should change that criteria on the section to be starting with :

Code: Select all
DELETE FROM SY_UserProfile WHERE UserID = (SELECT StaffID FROM HR_Staff WHERE Username = 'Username') AND Section LIKE 'JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.SalesOrderEntryForm%'


Because we append the grid name to the section for grid xml - eg : 'JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.SalesOrderEntryForm.grdLines.Default'
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: IsNull Error

Postby SBarnes » Fri Mar 26, 2021 2:51 pm

It ended up being a faulty customer filter which as stopping the screen loading, I had to drill back up from the debtor to figure it out.
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 0 guests