What is the correct way to remove a single cell from a 4 cellesingle row table based on a condition? (I want to remove the third cell).
I have the following formula that is supposed to print "Great Client" if the word "Great" is located within the client name:
(so.partner_id.name.find('Great') > 0) and "Great Client" or removeParentNode('td')
It works fine when the condition is met, but I get an error message when it isn't, i.e. when it hits the removeParentNode('td'):
(<type 'exceptions.AssertionError'>, AssertionError(), <traceback object at 0x7fdae4b7e248>)
How is it possible to remove a single cell from a single row table?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/14/13, 11:51 AM|
|Seen: 2079 times|
|Last updated: 3/16/15, 8:10 AM|