|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.SubreportLink
public class SubreportLink
A SubreportLink object links a field in main report with a field in subreport with use of a prompt field in the subreport.
The values of the field in main report will used as prompt values in the subreport.
These prompt values will be used in the record selection formula to compare with
the values of the field in the subreport. The PromptField will be generated
automatically, so if you want to use your own PromptField add one to the Fields
set and use setPromptField method.
This class is part of the RDC.
Subreport,
Fields.addPromptField(java.lang.String, java.lang.String, int),
Engine.setSF(java.lang.String),
Serialized Form| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares two SubreportLink objects for equality. |
Engine |
getMainEngine()
Gets the main Engine to which the subreport is linked. |
Field |
getMainField()
Gets the Field to that the field in subreport is linked. |
PromptField |
getPromptField()
Returns the PromptField of the subreport, that is linked with the DatabaseField from the main report. |
Engine |
getSubEngine()
Gets the Engine of the subreport. |
Field |
getSubField()
Returns the field in the subreport, that is used to compare with the value of the links PromptField in the record selection formula. |
int |
indexOf()
Returns the index of this subreport link in the list of subreport links of the subreport. |
PromptField |
setMainField(Field field,
boolean generatePrompt)
Sets the Field in the mainreport that value will be used to set the value of the PromptField in the subreport. |
void |
setMainField(Field field)
Sets the field in the mainreport that value will be used to set the value of the PromptField in the subreport. |
void |
setPromptField(PromptField p)
Set the PromptField of the subreport, that is linked with the DatabaseField from the main report. |
void |
setSubField(Field field)
Sets the Field in the subreport, that is used to compare with the value of the links PromptField in the record selection formula. |
| Methods inherited from interface com.inet.report.parser.NodeParser |
|---|
isDOMParser, parseDOM, parseElement, parseEndElement, parseText |
| Method Detail |
|---|
public Engine getMainEngine()
public Engine getSubEngine()
public Field getMainField()
public PromptField setMainField(Field field,
boolean generatePrompt)
throws ReportException
field - The Field that gives the values for the subreports PromptField.generatePrompt - if true an prompt will be automatically generated if neccessary.
ReportException - If the generation of the prompt field for the sub report failed.
java.lang.IllegalArgumentException - If the given field doesnt exist in main report.DatabaseField
public void setMainField(Field field)
throws ReportException
field - The Field that gives the values for the subreports PromptField.
ReportException - If the generation of the prompt field for the sub report failed.DatabaseFieldpublic void setSubField(Field field)
field - - The field to compare with.DatabaseField,
PromptField,
FormulaField,
SQLField,
setPromptField(PromptField)
public Field getSubField()
throws ReportException
ReportException - If this sub report link is invalid.DatabaseField,
PromptField,
FormulaField,
SQLField,
getPromptField()public void setPromptField(PromptField p)
p - The new prompt field which should be used for this subreport link.PromptFieldpublic PromptField getPromptField()
PromptFieldpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to compare with.
public int indexOf()
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||