on 01-29-2015 10:28 AM
Hi All,
I have created one new view which gets call while clicked on button on another page. In new view I have added few header details and 2 tables in page with the use of below code. All the content is getting printed but problem is When I am trying to show the few header details and single table, its printing perfectly like first it shows header details and then table, but when I am trying to show one more table (means 2 tables), the order to show on page gets disturb display like first table then Header details and then second table.
Even the correct sequence should be like first header details and then first table and then second table.
Could you please let me know how we can handle it.
Code:
page.setFooter(toolbar);
page.setCustomHeader(_header);
page.addContent(layoutBPBundle).addContent(oController.populateBundleHeader());
page.addContent(layoutBPBundle).addContent(oController.PopulateCylinderList());
return page;
Message was edited by: Jaten Sangal
Message was edited by: Jaten Sangal
try
page.setFooter(toolbar);
page.setCustomHeader(_header);
page.addContent(layoutBPBundle).addContent(oController.populateBundleHeader());
page.addContent(layoutBPBundle.clone()).addContent(oController.PopulateCylinderList());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maksim,
Thanks for your response..
While adding Clone() with layoutBPBundle, the header now coming first but repeating once again. The sequence now as mentioned below:
Header --> First table --> header (again with should not come now) --> second table.
Could you please let me know what now need to do for header should not repeat again.
Regards,
Jaten
Hi Jaten,
as long as you are creating your content in the view file you should be ok. I have not seen this scenario described unless, there are syntax errors in your files. can you please share the view code and also see if there are any errors in your code?
also, the oController functions look like they are getting executed right away, try wrapping those in a function() { oController.yourFunction() }
hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.