NetTalk Central

Author Topic: Problem with child and loc:parent  (Read 3306 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1846
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Problem with child and loc:parent
« 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?
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11177
    • View Profile
Re: Problem with child and loc:parent
« Reply #1 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