Query in ADF

Hi All
I am new to ADF and is in process of learning this.
I was trying to code something in Application module impl class. It contains the below text in the code.
String bindUser = (String)vo.getNamedWhereClauseParam("CurrentUser");
I read from somewhere the CurrentUser in above syntax will give the current session user.
I just wanted to know what other information we can get using getNamedWhereClauseParam.
Any link explaining this function in detail.
Thanks
Anuj

yes, timo as perfect as always while answering . great man :)
well.. this is to user..
i hope that you want to get the current user and the based on the user the query will executes,if am right means get the user via session
just like
ADFContext.getCurrent().getSessionScope().put("key", "Value"); and grab the key value set it vo.setWhereClauseParam("paramuser" putyourkey);before that your vo should have a bindvariable like "paramuser".

Similar Messages

  • Enter and execute query in ADF

    Hi Experts,
    I am trying to implement Enter-Query/Execute-Query in adf and using Jdev 11.1.2.2.0. I put Find and execute operation on the form. When i press execute button i says me to enter value for mandatory fields. But i am try to execute query not trying to create or update records. In forms we can query on any attribute.
    Please guide
    Thanks

    Enter and execute query in Oracle Forms starts with a simple row by row form for updating a table. When you press the "Enter Query" button, the form clears and the user can enter query by example criteria for any of the fields on the form. Then the user presses the "Execute Query" button, and is back in the update form, but with the data for the first matching row shown.
    Here is a page with some links to articles by Steve Muench that explains some ways to implement this in ADF 10.1.3 - I think these techniques should still work in ADF 11g:
    http://radio-weblogs.com/0118231/2006/02/13.html#a658
    Another way with ADF 11g might be to put an af:query component in one facet of an af:switcher and the update form in the other facet. The Enter Query button on the update form tells the switcher to switch to the query facet, and executing the query also tells the switcher to switch back to the update form.

  • Building Cascading Lists for Query with ADF Business components and JSP

    I build “Cascading Lists for Query Screens with ADF Business Components”. When I to select master list first – Ok, but when I to select master list second returned error : JBO – 25013 : Too many objects match the primary key oracle.jbo.key[CN]. CN dependences with key to detail list (Countries in this case). Please help me.
    Excuse me for my English.
    Andrew.

    You would have a better chance, that someone answers your question, if you choose the right forum:
    JDeveloper and ADF

  • How to implement enter and execute query in ADF

    I am new to ADF and I am trying to create a simple data entry screen in ADF 11g based on a database table. I am looking to implement the equivalent of the Enter Query and Execute Query feature in Oracle Forms. I tried the default operations that are available with the data controls. But they don't seem to have this feature. Can someone help me / point me to how this can be implemented.
    Thanks,
    Srini.

    Thanks Shay. As per your suggestion I have included the Find and Execute buttons for the VO Object and ran the page. I first clicked the Find button and entered by query condition and then clicked the Execute button. At this point I get an error popup asking me to enter values for all the mandatory fields. Am I missing something?
    Regards,
    Srini.

  • After query clear ADF search form

    I have a adf search form with a date picker. When I push the search button I go to my view object class to change the query
    String criteria3 = (String)vcr.getAttribute("Datenaiss");
    if (attrs.getName()=="Datenaiss"){
    if (criteria3 != null) {                    
    criteria3="> '"+criteria3+"'";
    vcr.setAttribute("Datenaiss", criteria3 );
    The I receive the result on my jsp but in the field of my date I see now e.g. > '1992-01-17'
    can you help me ?

    If have found a solution to clear the search form
    protected void executeQueryForCollection(Object object, Object[] object1, int i) {
    // set the inputfields to uppercase
    switchStringsViewCriteriaToUpper();
    // execute the query
    super.executeQueryForCollection(object, object1, i);
    // clear the parameters
    super.clearViewCriterias();
    }

  • Complex Query Question-ADF/JSP/10g

    I have a query in a VO that I'm programmatically creating the where clause for that has been working fine.
    I need to extend the functionality to include other tables. I had thought that adding a union to my programmatically generated SQL would work, but it fails at execution. Apparently the environment adds a "select count(1) from(" to the front of my query to generate a row output count, and then closes the parenthesis in the wrong place, which causes the query to fail with an "ORA-00933 SQL command not properly ended".
    How can I accomplish this? I've looked at creating a new VO which includes multiple tables, but what I really need is a union of output from the single primary table with multiple from and where that are dynamically generated based upon user input.

    Here is the logging output when it throws the exception:
    04/08/05 09:16:14 [497] Reusing a cached session application module instance
    04/08/05 09:16:14 [498] Getting a connection for internal use...
    04/08/05 09:16:14 [499] Creating internal connection...
    04/08/05 09:16:14 [500] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    04/08/05 09:16:14 [501] DCUtil.findSpelObject - Tokenizer : searchMasterNamesUIModel
    04/08/05 09:16:14 [502] DCUtil.RETURNING oracle.jbo.uicli.binding.JUFormBinding
    04/08/05 09:16:14 [503] **** refreshControl() for BindingContainer :searchMasterNamesUIModel
    04/08/05 09:16:14 [504] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    04/08/05 09:16:14 [505] **** refreshControl() for BindingContainer :searchMasterNamesUIModel
    04/08/05 09:16:14 [506] Changing iterator range size from :20 to :10
    04/08/05 09:16:14 [507] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    04/08/05 09:16:14 [508] [RangeRefreshEvent: MasterNamesView1 start=0 count=0]
    04/08/05 09:16:14 [509] SELECT MasterNames1.MNI, to_char(date_of_birth,'MM/DD/YYYY') AS DOB, MasterNames1.LAST_NAME, MasterNames1.EYE_COLOR, MasterNames1.HAIR_COLOR, MasterNames1.MIDDLE_NAME, MasterNames1.DATE_OF_BIRTH, MasterNames1.HEIGHT, MasterNames1.SUFFIX, MasterNames1.FIRST_NAME, MasterNames1.WEIGHT, MasterNames1.USER_INSERTED, MasterNames1.DATE_INSERTED, MasterNames1.SKIN_TONE, MasterNames1.LANGUAGE, MasterNames1.OCCUPATION, MasterNames1.PLACE_OF_BUSINESS, MasterNames1.E_MAIL_ADDRESS, MasterNames1.DATE_MODIFIED, MasterNames1.USER_MODIFIED, MasterNames1.ETHNICITY, MasterNames1.RACE, MasterNames1.MARITAL_STATUS, MasterNames1.SEX, MasterNames1.OFFENDER_COMMENTS, Last_Name||', '||First_Name AS FULLNAME FROM MASTER_NAMES MasterNames1 WHERE (upper(last_name) = 'SMITH' and upper(first_name) like '%') union all select MasterNames1.MNI, to_char(date_of_birth,'MM/DD/YYYY') AS DOB, MasterNames1.LAST_NAME, MasterNames1.EYE_COLOR, MasterNames1.HAIR_COLOR, MasterNames1.MIDDLE_NAME, MasterNames1.DATE_OF_BIRTH, MasterNames1.HEIGHT, MasterNames1.SUFFIX, MasterNames1.FIRST_NAME, MasterNames1.WEIGHT, MasterNames1.USER_INSERTED, MasterNames1.DATE_INSERTED, MasterNames1.SKIN_TONE, MasterNames1.LANGUAGE, MasterNames1.OCCUPATION, MasterNames1.PLACE_OF_BUSINESS, MasterNames1.E_MAIL_ADDRESS, MasterNames1.DATE_MODIFIED, MasterNames1.USER_MODIFIED, MasterNames1.ETHNICITY, MasterNames1.RACE, MasterNames1.MARITAL_STATUS, MasterNames1.SEX, MasterNames1.OFFENDER_COMMENTS, Last_Name||', '||First_Name AS FULLNAME FROM MASTER_NAMES MasterNames1 where mni in (select mni from pointer.aliases where upper(last_name) = 'SMITH' and upper(first_name) like '%')
    04/08/05 09:16:14 [510] ViewObject: MasterNamesView1 Estimated Row Count Query Statement:
    04/08/05 09:16:14 [511] "SELECT count(1) FROM (SELECT MasterNames1.MNI, to_char(date_of_birth,'MM/DD/YYYY') AS DOB, MasterNames1.LAST_NAME, MasterNames1.EYE_COLOR, MasterNames1.HAIR_COLOR, MasterNames1.MIDDLE_NAME, MasterNames1.DATE_OF_BIRTH, MasterNames1.HEIGHT, MasterNames1.SUFFIX, MasterNames1.FIRST_NAME, MasterNames1.WEIGHT, MasterNames1.USER_INSERTED, MasterNames1.DATE_INSERTED, MasterNames1.SKIN_TONE, MasterNames1.LANGUAGE, MasterNames1.OCCUPATION, MasterNames1.PLACE_OF_BUSINESS, MasterNames1.E_MAIL_ADDRESS, MasterNames1.DATE_MODIFIED, MasterNames1.USER_MODIFIED, MasterNames1.ETHNICITY, MasterNames1.RACE, MasterNames1.MARITAL_STATUS, MasterNames1.SEX, MasterNames1.OFFENDER_COMMENTS, Last_Name||', '||First_Name AS FULLNAME FROM MASTER_NAMES MasterNames1 WHERE (upper(last_name) = 'SMITH' and upper(first_name) like '%') union all select MasterNames1.MNI, to_char(date_of_birth,'MM/DD/YYYY') AS DOB, MasterNames1.LAST_NAME, MasterNames1.EYE_COLOR, MasterNames1.HAIR_COLOR, MasterNames1.MIDDLE_NAME, MasterNames1.DATE_OF_BIRTH, MasterNames1.HEIGHT, MasterNames1.SUFFIX, MasterNames1.FIRST_NAME, MasterNames1.WEIGHT, MasterNames1.USER_INSERTED, MasterNames1.DATE_INSERTED, MasterNames1.SKIN_TONE, MasterNames1.LANGUAGE, MasterNames1.OCCUPATION, MasterNames1.PLACE_OF_BUSINESS, MasterNames1.E_MAIL_ADDRESS, MasterNames1.DATE_MODIFIED, MasterNames1.USER_MODIFIED, MasterNames1.ETHNICITY, MasterNames1.RACE, MasterNames1.MARITAL_STATUS, MasterNames1.SEX, MasterNames1.OFFENDER_COMMENTS, Last_Name||', '||First_Name AS FULLNAME FROM MASTER_NAMES MasterNames1 where mni in (select mni from pointer.aliases where upper(last_name) = 'SMITH' and upper(first_name) like '%')) "
    04/08/05 09:16:14 [512] ViewObject: MasterNamesView1 Estimated Row Count: 5
    04/08/05 09:16:14 [513] DCBindingContainer.reportException :oracle.jbo.RowNotAvailableException
    04/08/05 09:16:14 [514] oracle.jbo.RowNotAvailableException: JBO-25046: Requested row not available in row set iterator MasterNamesView1.
         at oracle.jbo.client.remote.RowSetIteratorImpl.getAllRowsInRange(RowSetIteratorImpl.java:2002)
         at oracle.jbo.client.remote.RowSetImpl.getAllRowsInRange(RowSetImpl.java:729)
         at oracle.jbo.client.remote.ViewUsageImpl.getAllRowsInRange(ViewUsageImpl.java:1069)
         at oracle.jbo.common.ws.WSRowSetIteratorBase.getAllRowsInRange(WSRowSetIteratorBase.java:746)
         at oracle.adf.model.binding.DCIteratorBinding.getAllRowsInRange(DCIteratorBinding.java:1523)
         at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:533)
         at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:1580)
         at oracle.adf.controller.lifecycle.PageLifecycle.refreshModel(PageLifecycle.java:677)
         at oracle.adf.controller.struts.actions.DataAction.refreshModel(DataAction.java:374)
         at oracle.adf.controller.struts.actions.DataAction.refreshModel(DataAction.java:563)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:128)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:233)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:163)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:228)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    04/08/05 09:16:14 [515] DCUtil.findSpelObject - Tokenizer : SearchMNUIModel
    04/08/05 09:16:14 [516] DCUtil.RETURNING oracle.jbo.uicli.binding.JUFormBinding
    04/08/05 09:16:14 [517] **** refreshControl() for BindingContainer :SearchMNUIModel
    04/08/05 09:16:14 [518] Column count: 29
    04/08/05 09:16:14 [519] ViewObject: MasterNamesView1 close prepared statements...
    04/08/05 09:16:14 [520] ViewObject: MasterNamesView1 Created new QUERY statement
    04/08/05 09:16:14 [521] SELECT MasterNames1.MNI, to_char(date_of_birth,'MM/DD/YYYY') AS DOB, MasterNames1.LAST_NAME, MasterNames1.EYE_COLOR, MasterNames1.HAIR_COLOR, MasterNames1.MIDDLE_NAME, MasterNames1.DATE_OF_BIRTH, MasterNames1.HEIGHT, MasterNames1.SUFFIX, MasterNames1.FIRST_NAME, MasterNames1.WEIGHT, MasterNames1.USER_INSERTED, MasterNames1.DATE_INSERTED, MasterNames1.SKIN_TONE, MasterNames1.LANGUAGE, MasterNames1.OCCUPATION, MasterNames1.PLACE_OF_BUSINESS, MasterNames1.E_MAIL_ADDRESS, MasterNames1.DATE_MODIFIED, MasterNames1.USER_MODIFIED, MasterNames1.ETHNICITY, MasterNames1.RACE, MasterNames1.MARITAL_STATUS, MasterNames1.SEX, MasterNames1.OFFENDER_COMMENTS, Last_Name||', '||First_Name AS FULLNAME FROM MASTER_NAMES MasterNames1 WHERE (upper(last_name) = 'SMITH' and upper(first_name) like '%') union all select MasterNames1.MNI, to_char(date_of_birth,'MM/DD/YYYY') AS DOB, MasterNames1.LAST_NAME, MasterNames1.EYE_COLOR, MasterNames1.HAIR_COLOR, MasterNames1.MIDDLE_NAME, MasterNames1.DATE_OF_BIRTH, MasterNames1.HEIGHT, MasterNames1.SUFFIX, MasterNames1.FIRST_NAME, MasterNames1.WEIGHT, MasterNames1.USER_INSERTED, MasterNames1.DATE_INSERTED, MasterNames1.SKIN_TONE, MasterNames1.LANGUAGE, MasterNames1.OCCUPATION, MasterNames1.PLACE_OF_BUSINESS, MasterNames1.E_MAIL_ADDRESS, MasterNames1.DATE_MODIFIED, MasterNames1.USER_MODIFIED, MasterNames1.ETHNICITY, MasterNames1.RACE, MasterNames1.MARITAL_STATUS, MasterNames1.SEX, MasterNames1.OFFENDER_COMMENTS, Last_Name||', '||First_Name AS FULLNAME FROM MASTER_NAMES MasterNames1 where mni in (select mni from pointer.aliases where upper(last_name) = 'SMITH' and upper(first_name) like '%') ORDER BY fullname
    04/08/05 09:16:14 [522] Bind params for ViewObject: MasterNamesView1
    04/08/05 09:16:14 [523] [RangeRefreshEvent: MasterNamesView1 start=0 count=5]
    04/08/05 09:16:14 [524] A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'*** DCDataControl.sync() called from :somestring
    04/08/05 09:16:14 [525] **** refreshControl() for BindingContainer :SearchMNUIModel
    04/08/05 09:16:14 [526] DCUtil.findSpelObject - Tokenizer : showMasterNamesUIModel
    04/08/05 09:16:14 [527] DCUtil.RETURNING oracle.jbo.uicli.binding.JUFormBinding
    04/08/05 09:16:14 [528] **** refreshControl() for BindingContainer :showMasterNamesUIModel
    04/08/05 09:16:14 [529] Changing iterator range size from :10 to :20
    04/08/05 09:16:14 [530] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    04/08/05 09:16:14 [531] [RangeRefreshEvent: MasterNamesView1 start=0 count=5]
    04/08/05 09:16:14 [532] A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'**** refreshControl() for BindingContainer :showMasterNamesUIModel
    04/08/05 09:16:14 [533] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    04/08/05 09:16:14 [534] A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'Warning! Using introspection to lookup and return value for :Find
    04/08/05 09:16:14 [535] A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'A formatting exception occured: DateOfBirthJBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Illegal pattern character 'Y'Application Module failover is enabled
    04/08/05 09:16:14 [536] Getting a connection for internal use...
    04/08/05 09:16:14 [537] Creating internal connection...
    04/08/05 09:16:14 [538] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    04/08/05 09:16:14 [539] <AM MomVer="0">
    <cd/>
    <TXN Def="1" New="0" Lok="1"/>
    <VO>
    <VO It="1" Sz="20" St="0" Ex="1" Def="model.MasterNamesView" Name="MasterNamesView1" cli="1">
    <Wh>
    <![CDATA[upper(last_name) = 'SMITH' and upper(first_name) like '%') union all select MasterNames1.MNI, to_char(date_of_birth,'MM/DD/YYYY') AS DOB, MasterNames1.LAST_NAME, MasterNames1.EYE_COLOR, MasterNames1.HAIR_COLOR, MasterNames1.MIDDLE_NAME, MasterNames1.DATE_OF_BIRTH, MasterNames1.HEIGHT, MasterNames1.SUFFIX, MasterNames1.FIRST_NAME, MasterNames1.WEIGHT, MasterNames1.USER_INSERTED, MasterNames1.DATE_INSERTED, MasterNames1.SKIN_TONE, MasterNames1.LANGUAGE, MasterNames1.OCCUPATION, MasterNames1.PLACE_OF_BUSINESS, MasterNames1.E_MAIL_ADDRESS, MasterNames1.DATE_MODIFIED, MasterNames1.USER_MODIFIED, MasterNames1.ETHNICITY, MasterNames1.RACE, MasterNames1.MARITAL_STATUS, MasterNames1.SEX, MasterNames1.OFFENDER_COMMENTS, Last_Name||', '||First_Name AS FULLNAME FROM MASTER_NAMES MasterNames1 where mni in (select mni from pointer.aliases where upper(last_name) = 'SMITH' and upper(first_name) like '%']]>
    </Wh>
    <Key>
    <![CDATA[000100000003313431]]>
    </Key>
    </VO>
    </VO>
    </AM>
    04/08/05 09:16:14 [540] **insert** id=1, parid=-1, collid=3051, keyArr.len=-1, cont.len=1416
    04/08/05 09:16:14 [541] stmt: begin insert into "PS_TXN" values (:1, :2, :3, empty_blob(), sysdate) returning content into :4; end;
    04/08/05 09:16:14 [542] **commit** #pending ops=1
    04/08/05 09:16:15 [543] Getting a connection for internal use...
    04/08/05 09:16:15 [544] Creating internal connection...
    04/08/05 09:16:15 [545] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    04/08/05 09:16:15 [546] **deleteAll** collid=3050
    04/08/05 09:16:15 [547] stmt: delete "PS_TXN" where collid=:1
    04/08/05 09:16:15 [548] **commit** #pending ops=1
    Interestingly enough, it returns data correctly even if the exception is thrown.

  • How to call a TopLink Query on ADF Page Load (onload)

    Hi,
    I am new to ADF wants to find out how to call a TopLink Query whenever a page loads. I saw SRDemo Sample but all the queries are bound to some kind of an action method i.e. clicking on a button executes a query etc. But I need to call a toplink query on my page load. Any small sample will help.
    Thanks

    Try this approach:
    http://blogs.oracle.com/shay/2007/07/25

  • How to use SQL query in ADF

    Hi Team,
    I want to fire one sql query to retrive some data. I cant make VO of that query as its from many DB link.
    Query is like SELECT query.
    Can anyone suggest me
    My Jdev :- 11.1.1.6.0
    Thanks In Advance
    Ramit

    I mean to say that the query is made by one or more than one schema .
    something like this:-
    Select hcsua.location , msib.description,
    hl.address1,hl.address2,hl.city,hl.state, hl.postal_code,hl.country, xmnd.part_number
    from hz_party_sites hps, hz_cust_acct_sites_all hcasa, hz_cust_site_uses_all hcsua, hz_locations hl, xxnin_moca_nmi_display xmnd, mtl_system_items_b msib
    Where hps.party_id = 176220
    And hps.party_site_id=hcasa.party_site_id
    And hcasa.cust_acct_site_id=hcsua.cust_acct_site_id
    And hcsua.site_use_code='SHIP_TO'
    And hps.location_id=hl.location_id
    and hcsua.location=xmnd.location_acct_num
    and msib.segment1=xmnd.part_number;
    when I am making SQL VO then its saying cant make attribute of this query.
    Please guide me on this.

  • Execute query in ADF BC

    I'm using JDev 10.1.2, Struts, ADF BC.
    I have an 'input form from' a view that displays all the records. I click on Find and Execute to search for particular record it works fine too. But, if there are no records for the 'find', it doesn't display anything from that point. Looks like, the cache is empty as there are no records found for the "find".
    The question is :
    How do I get all the records after an unsuccessful 'find' ?
    Do I have to use executeQuery()?
    I would like to have a button called 'Refresh' on my page, and when the user clicks on the button, it has to show all the records for that view. Can this be done?

    I'm not sure what do you mean by examining the view. And how do you clear the view? Thanks.

  • Urgent query for ADF-BC deployment as web service

    HI
    Can i deploy ADF-BC APPLICATION on two different machines.
    1 machine will hold model project
    2 will hold userinterface project.
    is it possible?
    or can i deploy application module as a service and use this service as a data control to carry out ALL THE CRUD operation.
    thanx
    Amit

    Hi
    I tried with what u have said. but some how i am not able to deploy the application. I am getting this error
    JBO-30003: The application pool (mp.model.MpAppModuleAS) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.ApplicationModuleCreateException, msg=JBO-25222: Unable to create application module.
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
         at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
         at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1536)
         at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1396)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)
         at oracle.adf.model.BindingContext.get(BindingContext.java:457)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)
         at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)
         at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:128)
         at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)
         at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)
         at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)
         at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)
         at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)
         at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)
         at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)
         at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)
         at oracle.adf.model.BindingContext.get(BindingContext.java:483)
         at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:313)
         at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:633)
         at oracle.adf.model.BindingRequestHandler.isPageViewable(BindingRequestHandler.java:265)
         at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:169)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    pls help
    Amit

  • Query on ADF Tree rendering - Jdeveloper 11g

    Hi,
    Am facing issues with Tree component rendering. Please find details below.
    Am using Jdeveloper 11g and have created data controls using plain java objects.
    Issue 1:
    I have a method getEmployees() which contains hierarchical data. Upon dragging this onto UI and on creating tree binding, i am able to see the tree.
    However i can expand only the parent node. Upon clicking on any of the child nodes (i.e Level 1 nodes), i get a blinking icon forever.
    Note that upon selecting the context menu option on root node and on selecting "Expand all", i get the complete tree in expanded format.
    Can anyone suggest as to what might be the issue with node expansion here ?
    Approach 2
    I tried creating Treemodel programatically.
    Please see snippet below:
    public TreeModel getModel() throws IntrospectionException {
    if (_model == null) {
    model = new ChildPropertyTreeModel(instance, "children")
    public boolean isContainer() {
    return ((T)getRowData()).hasChildren();
    return _model;
    By creating tree model in this way, tree node expansion issue is resolved. But i noticed that upon clicking on node for expansion,
    the getChildren() method (i.e the childProperty method) gets invoked multiple times and not once for the specifically expanded node.
    Can anyone please suggest as to why this is happening/possible solution?
    Thanks
    Navin

    Thanks for the reply. I can see the facets in the structure window and can seemingly add components there, but this is not reflected in the Design view for the page. Very strange. When the page is run, none of these components in the Accordion panel facets are displayed...
    I'm using JDeveloper version 11.1.2.1.0.

  • View Criteria in ADF Query Panel with Table-Class Cast Exception

    Hi,
    I am getting Class Cast Exception when using view criteria for ADF Query Panel with Table. The version I am using is 11g Release 1(11.1.1.2.0)
    Here is what I did:
    1. created a view criteria on a view object
    2. all are optional
    3. all are Strings
    3. Dragged the view criteria as a query component (ADF Query panel with Query table) on to the design layout
    and the error when I clicked the Search button is:
    javax.el.ELException: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
    at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1289)
    at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:115)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at sni.foundation.facesextensions.filters.FoundationFilter.doFilter(FoundationFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._clearFilterCriteriaRows(FacesCtrlSearchBinding.java:4549)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._addFilterCriteria(FacesCtrlSearchBinding.java:4603)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:423)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
    Thanks
    Venkatesh

    Hi Frank.
    I'm using JDev 11.1.1.3.0 as you suggest the error is no longer present in the latest version.
    I can pick my query from the "Saved Search" pick list on the QueryPanel list of queries just fine, and it sets up the filter properly, but when I press the "Search" button, I get the same reported error...
    <RegistrationConfigurator><handleError> Server Exception during PPR, #1
    javax.el.ELException: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
         at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1303)
         at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:115)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._clearFilterCriteriaRows(FacesCtrlSearchBinding.java:4588)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._addFilterCriteria(FacesCtrlSearchBinding.java:4642)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:424)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         ... 42 more

  • ADF Query Search

    What kind of query search is implemented in ADF Query components(ADF Query, ADF Query with Table) ?

    The query component provides the user the ability to perform a query based on a saved search or personalize saved searches. The component displays a search panel with various elements, each of which help the user to accomplish various tasks.
    Elements rendered by the query component
    Search Panel: the panel that encloses all elements rendered by the query component
    Search Header: Spans the entire width of the search panel and used to display a disclosure icon, the label, search mode (toggle button) and saved search (choice list of saved searches). The help (deprecated), info and toolbar facets' content is also displayed in the header.
    Match Type: A radio button group that appears below the search header, it defines whether the search criteria should be treated as an AND search or an OR search. For details on the conjunction operators refer to the QueryDescriptor and ConjunctionCriterion classes.
    Criteria region: A form layout that appears below the Match type, it contains search fields that define the search parameters. For details on search fields refer to the QueryDescriptor model.
    Criterion: A criterion represents a single search field, that comprises of an operator and one or more value fields. For value fields that render LOV components, the autoComplete feature is not enabled unless either of the methods, AttributeCriterion.hasDependentCriterion() or ListOfValuesModel.isAutoCompleteEnabled() return true. This is done to allow the end-user to enter partial values with wild-cards and tab around the search panel without causing the LOV dialog to be launched (everytime they tab-out of the LOV value field).
    Action buttons: The search panel has four action buttons: Search, Reset, Save, and Add Fields. The action buttons appear below the criteria region. They are end-aligned within the search header.
    NOTE: The Add Fields feature is only available in the Advanced mode.

  • Can I obtain access token from ADFS 3.0 based on OAuth ACS-token that I already have?

    Hello!
    I have the following setup: iOS device, ACS/WAAD is IDP and ADFS 3.0 as RP, securing access to WIF web service.
    I want iOS application users to be able to access ADFS-protected web-service.
    I have created some users in WAAD, configured trust between ACS IDP and ADFS RP.
    ADFS is registered in WAAD with AppID = ADFSAppID
    I am doing the following request in order to obtain authorization token for iOS app user from ACS:
    const string issuerName = "[email protected]";
    const string issuerPassword = "Password!23";
    var authContext = new AuthenticationContext("https://login.windows.net/ADFSAppID");
    var uc = new UserCredential(issuerName, issuerPassword);
    var result = authContext.AcquireToken("http://adfs.appdomain.com/adfs/services/trust",
    "ADFSAppID",
    uc);
    _authHeader = result.CreateAuthorizationHeader();
    So, I have a token from ACS in JWT format.
    Now I need to present this token to ADFS in order to obtain a new token that I can use to access the web-service. I am trying the following POST-query:
    https://adfs.appdomain.com/adfs/oauth2/token?grant_type=authorization_code&code={0}&client_id=ADFSAppID&redirect_uri=http://web_service_url
    However, when I try accessing web service with that token, I am getting 403:unauthorized and redirected back to ADFS.
    I have already tries lots of code solutions, such as
    http://leastprivilege.com/2010/10/28/wif-adfs-2-and-wcfpart-6-chaining-multiple-token-services/
    http://www.cloudidentity.com/blog/2013/07/30/securing-a-web-api-with-windows-server-2012-r2-adfs-and-katana/
    http://blog.scottlogic.com/2015/03/09/OAUTH2-Authentication-with-ADFS-3.0.html
    But somehow the problem remains: I cannot get such authentication token from ADFS that it is accepted by my webservice as a valid token.
    Can anybody provide any links or code samples of token exchange between ACS and ADFS?

    Yes, it is. I was able to authenticate normally, if I am using ADFS as IdP for WIF RP.
    But when Azure is IdP for ADFS-protected WIF WS, I am unable to get tokens that would be accepted by WIF WS

  • Jasper report in Jdev adf

    dear all,
    i'm now trying to integrate jasper report in ADF..
    and i'm try to code this code at bean..but its error..
    public void runOracleReport(ActionEvent actionEvent) {
    JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(PopulateBean.createBeanCollection());
    Map parameters = new HashMap();
    parameters.put("branchval", getBranchId());
    try
    InputStream input = new FileInputStream(new File("C:\\Users\\user\\.ireport\\4.7.0\\config\\Templates\\Report\\GenerateOfferLetter.jrxml"));
    OutputStream os = new FileOutputStream(new File("C:\\Users\\user\\Desktop\\ICEMS\\Report\\offerLetter.pdf"));
    JasperDesign jasperDesign = JRXmlLoader.load(input);
    JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, conn);
    JasperExportManager.exportReportToPdfStream(jasperPrint, os);
    JasperViewer.viewReport(jasperPrint, false);
    catch (JRException e) {e.printStackTrace();}
    catch (Exception e) {e.printStackTrace();}
    is it any connection code that i have to write..
    Thank you

    thank you very2 much..it helps me al lot..
    2 questions taht i confused:
    1: Is it query at adf must be same at query jasper?
    2: Is it this code is valid code when i want to call more than parameters:
    Map parameters = new HashMap();
    parameters.put("branchval", getBranchId());
    parameters.put("degreeVal", getDegreeId());
    parameters.put("intakeVal", getIntakeId());
    parameters.put("typeOfferVal", getTypeOfferId());
    parameters.put("jasperParamenterName", "ParameterValue"); Used if you want to pass a parameter to a jasper report
    JasperPrint print = JasperFillManager.fillReport(report, parameters, conn);
    Thank you

Maybe you are looking for

  • I have a big problem and need help.

    I was trying to delete some files when I got a message that said that one of the files contained a program that was running. I close out the program and deleted the file but something happened. I closed out Windows Explorer and notices all my desktop

  • SilverKeeper says iPhoto library not to be synchronized ??

    ...(In SilverKeeper):.............. ""Some folders such as iTunes and iPhoto Libraries, Mail, or other multi-file databases should not be synchronized. These applications rely on multiple files, folder, and indices which keep track of the overall lib

  • Newbie Question: Best Option for First Baseline?

    I understand that in book design, it's important for the bottom line on the left-hand page to be in the same vertical position as the bottom line on the right-hand page. I've read that the way to do this is with Text Frame Options->Baseline Options->

  • Photos - can't transfer them into iphoto.

    I recently lost all the contents of OSX. I purchased iPod Photo Liberator to transfer my photos from my iPod photo and the photos are back on my HD - but I can transfer them into iphoto - it won't let me. Any ideas?

  • Having trouble with Flash I think playing audio from Web?

    No device Hi All, I'm new here so sorry if I'm not asking this in the right place. Here's the deal. My fiancées mom bought this touch pad so she could listen to my Fiancées radio show on line. http://www.tnsportsradio.com/on-air/ I can get to the sit