NetTalk Central

Author Topic: Bug in conditional Browse ?  (Read 3289 times)

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Bug in conditional Browse ?
« on: January 13, 2015, 09:38:50 PM »
Might be a bug - might be I have missed something.

I have a browse, customer does not want to see one of the columns if the product = 'xx'

So I go to the browse field and set the column to be conditional
ie if   pro:ProductType ~= 'Stock Item'  - See image attached

GREAT, that works  - BUT the header remains
ie CPE Points the column data is "hidden", but the header "CPE Points" remains, and so it now sits over the $ RRP column, and all the columns there after are over one position

???



[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Bug in conditional Browse ?
« Reply #1 on: January 14, 2015, 06:00:36 AM »
it's looks like the browse is on Products right? So when it evaluates the condition for the header the row is likely not loaded, so the result of the condition could be anything.

It seems to me a better condition would be based on the value of the "category" selected on the left.

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: Bug in conditional Browse ?
« Reply #2 on: January 14, 2015, 06:32:02 AM »
Good theory Bruce

I tried variations on the Column Condition, taking your advise on the relationship between the parent ( CategoryShop  catS: )   and the child  (Product pro:)   I made the condition that the product type  (pro:typeId)  as per the relationship, is fixed to the id value of the category for the word "Stock Item"  which is id=2
As this field is not in the browse, I made it a View Field   pro:TypeId

So for the value of 2 (stock Item)   the product browse should evaluate the Column Condition and not display the training points (Pro:CPEPoints)

Once again the header remains.

See second image uploaded for this test.

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Bug in conditional Browse ?
« Reply #3 on: January 16, 2015, 12:02:22 AM »
I presume sorted after yesterday's User Group webinar?