NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on July 03, 2018, 07:35:24 AM

Title: Problem with child and loc:parent
Post by: Alberto on July 03, 2018, 07:35:24 AM
I have a Memory Form called ubPedidosWeb
It has a browse called bPedidosWeb which has a child that its filtered when it is child of bPedidosWeb
The code generated in the child filter is:
  If False  ! Generate Filter
  ElsIf loc:Parent = lower('bPedidosWeb')
      Doc:ID = p_web.RestoreValue('Doc:ID')
      loc:FilterWas = 'Mov:IDfactura = ' & Doc:ID
  Else
  End
which is ok
but the los:parent value is now ubPedidosWeb, which is the Memory form name.
It is a bug or do I have to change and set the child of the browse to be a child of the form?
Title: Re: Problem with child and loc:parent
Post by: Bruce on July 04, 2018, 11:09:21 PM
Hi Alberto,

There's a refinement going on internally to distinguish between "parent" and "parentpage".
It may take a few releases before this is all settled and in place.

I think your best option for now is to add _another_ conditional filter to the child browse, so that it has the correct filter when it's a child of bPedidosWeb AND when it's a child of ubPedidosWeb.

cheers
Bruce