Sales Order Customer Panel  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Sales Order Customer Panel

Postby DannyC » Tue Jun 13, 2023 12:29 pm

Trying to locate the SQL table & column where the 'Number of Days to Show History for' in the Sales Order Customer Panel is saved.

There is 1 user who I suspect has a large number here & is throwing an error SQLDateTime overflow error.
Disabling the plugin gets the user working OK.

Looking for ZZ_Table where UserID = "q7f7f84k4kd8dh3he7ej' and Column = 'sales order customer panel' (obviously not that exact string lol).
User avatar
DannyC
Senpai
Senpai
 
Posts: 636
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: Sales Order Customer Panel

Postby pricerc » Tue Jun 13, 2023 12:39 pm

SY_UserProfile ?
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20

Re: Sales Order Customer Panel

Postby DannyC » Tue Jun 13, 2023 12:58 pm

SY_UserProfile ?


That was my first thought - very familiar with that table but I couldn't find the explicit row for the Customer Panel.
I still think that's the table but I just need to locate the correct row.
User avatar
DannyC
Senpai
Senpai
 
Posts: 636
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: Sales Order Customer Panel  Topic is solved

Postby pricerc » Tue Jun 13, 2023 1:14 pm

Code: Select all
        Contents = ""
        salesOrderForm.Manager.JLib.GetProfileKey(salesOrderForm.Manager.Database.JiwaLoginUserID, "Sales Order Customer Panel", "NumberDays", Contents)
        If Contents.Trim.Length > 0 Then
            If IsNumeric(Contents) Then
                panelForm.CustomerPanel_NumericEditor1.Value = CInt(Contents)
            End If
        End If


so you're looking for Section = "Sales Order Customer Panel" and IDKey = "NumberDays".

Code: Select all
SELECT [ProfileID]
      ,[LastSavedDateTime]
      ,[UserID]
      ,[Section]
      ,[IDKey]
      ,[Contents]
  FROM [dbo].[SY_UserProfile]
  where Section = 'Sales Order Customer Panel'
  and IDKey = 'NumberDays'
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 24 guests

cron