NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on March 17, 2022, 07:44:17 AM

Title: NT 12.38
Post by: osquiabro on March 17, 2022, 07:44:17 AM
after update to NT 12.38 this broke a code in Netwebrowse, filter, conditional Filter after update generate this code

ElsIf p_web.IsChildOf(loc:Parent,'UpdateActivePickups')
      loc:FilterWas =
      If 'Bil:BillofLadingId = '&  p_web.GSV('Bil3:BillofLadingId')&' and (Bil:ChargeValue>0 or Bil:ChargeValue<0) and Bil:CustomerId='& p_web.GSV('Cus3:CustomerId') <> ''
        loc:FilterWas = clip(loc:FilterWas) & ' AND ' & 'Bil:BillofLadingId = '&  p_web.GSV('Bil3:BillofLadingId')&' and (Bil:ChargeValue>0 or Bil:ChargeValue<0) and Bil:CustomerId='& p_web.GSV('Cus3:CustomerId')
      End

previous version
 ElsIf p_web.IsChildOf(loc:Parent,'UpdateActivePickups')
      Bil3:BillofLadingId = p_web.RestoreValue('Bil3:BillofLadingId')
      loc:FilterWas =  'Bil:BillofLadingId = ' & Bil3:BillofLadingId
      If 'Bil:BillofLadingId = '&  p_web.GSV('Bil3:BillofLadingId')&' and (Bil:ChargeValue>0 or Bil:ChargeValue<0) and Bil:CustomerId='& p_web.GSV('Cus3:CustomerId') <> ''
        loc:FilterWas = clip(loc:FilterWas) & ' AND ' & 'Bil:BillofLadingId = '&  p_web.GSV('Bil3:BillofLadingId')&' and (Bil:ChargeValue>0 or Bil:ChargeValue<0) and Bil:CustomerId='& p_web.GSV('Cus3:CustomerId')
      End

go back to 12.37 
Title: Re: NT 12.38
Post by: Bruce on March 22, 2022, 11:50:09 PM
insufficient data for meaningful answer.
Title: Re: NT 12.38
Post by: osquiabro on March 23, 2022, 06:21:11 AM
NT 12.38 generate this incomplete code in Netwebrowse, filter, conditional Filter
loc:FilterWas =

NT 12.37
Bil3:BillofLadingId = p_web.RestoreValue('Bil3:BillofLadingId')
loc:FilterWas =  'Bil:BillofLadingId = ' & Bil3:BillofLadingId

Title: Re: NT 12.38
Post by: Bruce on March 24, 2022, 02:16:33 AM
That filter line comes from the Range/Filter settings for the browse.
So what does that look like in 12.38? did the settings go missing? are they there? Can you duplicate the effect in an example?

cheers
Bruce