Jump to content
We've recently updated our Privacy Statement, available here ×

How to create custom templates/forms/frames.


sudheer

Recommended Posts

hi all,

i think i should  use the word form or frame kind...instead template.

i have a list of items, if item type is "A" then i want to use first template/form/frame and if item type is "B" then use second template/form/frame...

how can i achieve this.

 

thanks,

Sudheer.



Post Edited by sudheer at 07/14/2011 06:38
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Using a single report to provide different solutions based on user parameter settings or source data is a clever way to implement business solutions.  It involves overlaying elements and controlling which one is displayed using  printWhenExpression settings on each element.

You first need to decide what is common and what will need to change depending on parameters or source data (eg. a field value).  Common elements normally appear in report sections that don't change much like headers and footers and would include things like logos, report titles, copyright notices, company addressing or web site addresses, and so on.  These are put in place in the main report and are shared between each of the different forms.

Elements that are displayed or hidden depending on parameter settings or field values need to be treated in one of two ways:

  • where there are only one or two elements that change then place them on the main report individually and give each element their own printWhenExpression formula to display and hide them.
  • if there are large number of elements in the same report section that change then place them in a subreport, bind them to a field in the main report, and apply printWhenExpression formulae to each subreport (ie. you display or hide entire subreports.

Deciding on which of these methods to use is based purely on managing complexity.  To keep things simple you need to make a decision about when there are too many elements overlaying each other to manage easily.  This number is usually quite small, and subreports provide a very simple way to manage the complexity.  For some reports you may need to use a mixture of both methods to get the best compromise between functionality and management.

Link to comment
Share on other sites

very thank you, that worked very well.

i am already using single frame, but i placed all properties line by line...

now as u said i placed them overlapped.one upon other.and set the "print qwhen expression".

so at any time my frame will show only property that matches the expression result.

thanks once again.

 

(There's no bounds..so think out of limits..i never ever ,just for testing purpose also ..have not tried with over lapping fields).

it's a lession for me..we are softwre builders so we never dont need to bother about what if it fails..you can implement and try it for several times ..but other engineers ..say for example civil engineers  they can build n test ...

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...