ktrinad Posted August 20, 2006 Share Posted August 20, 2006 By: Mohamed - maewonline Problem with Custom Data Source 2004-03-23 07:38case: ----- I have the following class in the following class i have two data source for my report sf1VO and dishVO Problem: -------- the following class haven't the implementation of it's next method Need: ----- My need is i want someone to help me to put an implementation to the next() method so i can iterate in the two datasource without any problem // Import oracle jbo classes import dori.jasper.engine.*; import dori.jasper.view.*; import oracle.jbo.uicli.binding.*; import oracle.jbo.uicli.controls.*; import oracle.jbo.uicli.jui.*; import oracle.jbo.uicli.mom.*; import oracle.jbo.*; import oracle.jbo.domain.Number; public class SF1ReportDataSource implements JRDataSource { private ViewObject sf1VO; private ViewObject dishVO; public SF1ReportDataSource() { try { // Bootstrap application JUApplication app = JUMetaObjectManager.createApplicationObject( "stms_jclient.RolloutSf1ReportModule", null, new JUEnvInfoProvider() ); JUPanelBinding panelBinding = new JUPanelBinding("stms_jclient.RolloutSf1ReportModule", null); panelBinding.setApplication(app); // Load all the panels with the corresponding ViewObject data. sf1VO = panelBinding.getApplicationModule().findViewObject("Sf1ReportViewUsage"); dishVO = panelBinding.getApplicationModule().findViewObject("LOS_Matrix_Dish_Size_VOUsage"); sf1VO.executeQuery(); dishVO.executeQuery(); } catch (Exception ex) { System.out.println("Here"); JUMetaObjectManager.reportException(null, ex); System.exit(1); } } public Object getFieldValue(JRField field) throws JRException { if (field.getName().equals("Dish_Size1")) { return new String(""); } String fieldName = field.getName(); Object obj = sf1VO.getCurrentRow().getAttribute(fieldName); String ss = null; if (obj!=null) ss = obj.toString(); return ss ; } } By: Mohamed - maewonline RE: Problem with Custom Data Source 2004-03-23 08:18Any Suggestions???? By: Chuck Deal - cdeal RE: Problem with Custom Data Source 2004-03-23 10:44You need to give people some time to think about it! You also need to supply more details. What do you want the next() method to do? Iterate over the first datasource and then continue with the second? Iterate over both at the same time (treat both sets of data as a single row)? By: RoyalScorpion - mohamedfakhry20 RE: Problem with Custom Data Source 2004-03-28 13:56i think i send to you a code explains how to iterate on these two resultsets Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now