You need to sign in to do that
Don't have an account?
component not rerendered properly.
Hello All,
I have developped one component. the component is used to display account hierarchy in tree view manner.
I called this component in searchAccount class in which i have given one text box to search account and also given another button i.e. ADD which will add that searched selected account into that tree hierarchy by assigning parentAccount.
Now when i added that account i need it to rerender that component so that i will be able to display that account into that hierarchy but unfortunately hierarchy view is distracted and another columns are automatically appended to the last row.
can anyone help me in this matter?
I think you'll need to post some code for us to look at.
You might be using the component in some VFP which might be having a form, so try rerendering the form when you add a Account. I hope you are working on apex/VFP name or a custom tab having VFP in it. If you are working on Account layout and added the page in layout then the scenario would be different.
Let me know the details if this is not the case.
Thank you!
Regards,
Lakshman
Hello Bob,
Thank you for quick reply. here below i am posting the code:
The page looks reasonable. Can you clarify what you mean by the hierarchy view is distracted and another columns are automatically appended? Are the columns automatically appended to the hierarchy view or the search results?
Hello bob,
suppose i have 5 columns and 4 rows plus 1 row for total column.now when i am adding searched account one row will be automatically added to the table but unfortunately the extra rows of first account is repeated five times. e.g.
before rerender
after rerender and adding the account
what is the reason ?
Can you post the component and controller? It sounds like the list that is backing the grid maybe isn't being cleared down correctly.
Hello bob,
here is the piece of code of controller.
below is the piece of component code
I'd imagine its to do with these lines:
which add values to the totalOfFields1 list each time the method is invoked. Prior to this you use the set method, which will overwrite existing values, but at this point they will be tacked on to the end each time. Should you be clearing down the totals list prior to recalculating the values?