How to use arrays in view criteria

Hi all,
Am using Oracle Jdeveloper ,Studio Edition Version 11.1.1.2.0.
I have a query panel with three comboxes,which can multiselect
company,application & user respectively.When I mutiselect company,
then based on the selected value I need to populate the application
& user comboboxes.I want to search based on the selection.
I have used viewcriteria to filter the apllication&
user comboboxes.When a company is selected then company_id is passed as
bind variable to the view criteria,then it can filter application combobox.
Its working fine on single selection.
So I want to pass the selected values as an array to view criteria.
Please help
Thanks

cn u chk this..
http://jobinesh.blogspot.com/2010/12/using-oraclejbodomainarray-with.html
oops.. i am late by three minutes.. ;)
you can check the link provided.. above

Similar Messages

  • How can i use multi group view criteria in jdeveloper10g?

    Hi.
    i'm using jdeveloper10g.1.3.50,i want add multi group viewcriteria,but can't found ViewCriteriaItem.
    eg.select x from x WHERE ( (( (a = 1) ) OR ( (a = 2) ))
    AND ( (b =1) or (b = 2)))
    how can i use multi group view criteria in jdeveloper10g?

    Hi,
    Did you try with viewcriteriarow.setConjunction?
    http://download.oracle.com/docs/cd/B13597_05/web.904/b10391/oracle/jbo/ViewCriteriaRow.html
    -Arun

  • Re: [SunONE-JATO] Re: How to use a tiled view without a model

    I'm not sure what is different for you now. You still parse the string
    and put it into a data structure. Before the data structure was a
    vector, in JATO its just a model with a "hidden" data structure (a hash
    map).
    MVC only really comes into play when you talk about where your write
    this code, and where the data structure is being stored. So really, JATO
    takes care of half of the MVC'ness of it all (where the data is store).
    You just decide where to be the code to populate the model.
    Make sense?
    Is there something different required of you in JATO in this scenario
    that I am not grasping?
    c
    Hoskins, John D. wrote:
    Thanks for the feedback.
    The problem I was solving involved a single string, which contained
    delimited subsets of information.
    The string looked like
    this:"time|analyst|description|time|analyst|description|..."
    In ND, I parsed it apart into it's components (time vector, analyst vector,
    description vector), populated the repeated.
    With JATO, how would I make a model for something that doesn't have a
    database component like this?
    I'm pretty new to this MVC thing, so bear with me.
    John D. Hoskins
    Telephone & Data Systems
    Application Development & Support
    Voice: 608.664.8263
    Fax: 608.664.8288
    Email: john.hoskins@t...
    -----Original Message-----
    From: Craig V. Conover [mailto:<a href="/group/SunONE-JATO/post?protectID=219212113009229091025149066024064239039098031198039130252055210">craig.conover@s...</a>]
    Sent: 6/26/2002 3.22 PM
    Subject: Re: [SunONE-JATO] Re: How to use a tiled view without a model
    I guess the only thing "weird" (for lack of a better term) about what
    you are doing is that your are populating the model on the "display
    cycle". Typically, the cycle goes like this:
    Request -> populate model -> update data store -> retrieve data to
    populate model -> display data
    some of the above steps are optional but hopefully you get the point I
    am making.
    So what you are doing is:
    Request -> populate model/display data
    If it works for you, then it's not necessarilly wrong. But I would
    probably have my model populated before I forwarded to the target
    (displaying view bean) or at a minimum, in the begin display event of
    the view bean or the tiled view, but not during the iteration of the
    tiled view.
    c
    jhoskins wrote:
    Craig,
    Thanks for the pointers. I ended up doing something else. I set the
    models setSize() method to set the max size, and as the tiles fields
    iterated, populated the value from some vectors I had the data in
    already. Is this solution fraught with peril and will ultimately fail,
    or should I try your way?
    John
    --- Craig V. Conover wrote:
    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

    Craig,
    Thanks for the pointers. I ended up doing something else. I set the
    models setSize() method to set the max size, and as the tiles fields
    iterated, populated the value from some vectors I had the data in
    already. Is this solution fraught with peril and will ultimately fail,
    or should I try your way?
    John
    --- "Craig V. Conover" wrote:
    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • How to use array or type in "IN" criteria

    Hi all,
    anybody knows how to use group of same datatype data ( array or type ) in SQL statement
    For example
    ls_dept[1] = 'abc';
    ls_dept[2] = 'xyz';
    ls_dept[10] = 'ppr';
    i want to use this group of data in "IN" criteria like
    Select * from department where dept in ('abc','xyz'.....''ppr');
    if anybody know how to use please reply me as soon as possible.
    Thanks,

    I hope you are not suggesting concatenating literals from a web front-end application ;) Is it not what he was saying.. he is getting user input info from an application.. if the user sends multiple values.. he has to build a string with concatenating literals..
    correct me if I am wrong.

  • How operator contains works on View Criteria?

    Hi im using Jdev 11.1.1.2.0, and i need to filter a VO field, i was wondering how to use the operator contains? i've tried to use the operators AND || && but nothing
    Any idea?
    Edited by: ThDn on Apr 26, 2010 11:21 AM

    You can do it using dynamic view criteria. See following code
    ViewCriteria vc = vo1.createViewCriteria();
    ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
    vcRow.setAttribute("MenuName", "like 'S%'");
    vc.addElement(vcRow);
    vo1.applyViewCriteria(vc);
    vo1.executeQuery();
    ---------------------------------------------------------------------------------------

  • How to use a Table View in AppleScriptObjC

    How can I use a table view and add data to it? And how can I display a button cell and image cell in the table? Thanks.

    Hi all,
    Actually i need some more clarification. How to use the same select statement, if i've to use the tabname in the where clause too?
    for ex : select * from (tab_name) where....?
    Can we do inner join on such select statements? If so how?
    Thanks & Regards,
    Mallik.

  • How to use Crystal report viewer in a portlet based web application

    I am using JRC to view crystal reports in porlet based web application. Following is the code in JSP
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase" %>
    <portlet:defineObjects />
    <%
         // This sample code calls methods from the CRJavaHelper class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the CRJavaHelper class.
         try {
              String reportName = "ProactiveEventsSummaryData.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   //clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
                                  clientDoc.setReportAppServer("inproc:jrc");
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
              // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                   // Create the CrystalReportViewer object
                   CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                   String reportSourceSessionKey = reportName+"ReportSource";
                   Object reportSource = session.getAttribute(reportSourceSessionKey);
                   if (reportSource == null)
                        reportSource = clientDoc.getReportSource();
                        session.setAttribute(reportSourceSessionKey, reportSource);
                   //     set the reportsource property of the viewer
                   crystalReportPageViewer.setReportSource(reportSource);
                   // Apply the viewer preference attributes
                   // Process the report
                   crystalReportPageViewer.processHttpRequest(request, response, application, null);
              // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    With this code , report gets displayed in the portlet but none of the actions on thre report like next page click , search button , opening subreport , clicking on drill-downs are working . The error in the explorer console is as shown below
    Error: CrystalViewerCrystalEvent is not defined
    javascript:CrystalViewerCrystalEvent('CrystalViewer',%20'tb=next')
    PageSource of the web page shows the CrystalViewerCrystalEvent javascript function defined but for somereason its not recognized by the portlet. Has anyone worked on displaying crystalreports in a portlet ?

    Code attached
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase" %>
    <portlet:defineObjects />
    <%
         // This sample code calls methods from the CRJavaHelper class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the CRJavaHelper class.
         try {
              String reportName = "ProactiveEventsSummaryData.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   //clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
                                  clientDoc.setReportAppServer("inproc:jrc");
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
              // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                   // Create the CrystalReportViewer object
                   CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                   String reportSourceSessionKey = reportName+"ReportSource";
                   Object reportSource = session.getAttribute(reportSourceSessionKey);
                   if (reportSource == null)
                        reportSource = clientDoc.getReportSource();
                        session.setAttribute(reportSourceSessionKey, reportSource);
                   //     set the reportsource property of the viewer
                   crystalReportPageViewer.setReportSource(reportSource);
                   // Apply the viewer preference attributes
                   // Process the report
                   crystalReportPageViewer.processHttpRequest(request, response, application, null);
              // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    Edited by: teethoma on Nov 30, 2009 10:06 AM

  • How to use a Text View to show the current user in WDJ

    Hi Experts,
    I am using a Text View to show the current logged on user.
    Also i need to retrieve the date of creation of proposal and show it as output parameter.
    I am using the following code but it is not working properly.
    Please help me out regarding the same.
    Method technicalDescription()
    //Attribute User to store user name
    IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
    user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    //Attribute date to store current system date
    IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
    date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    Method execute()
    //getting current system date
    Date currDate = new Date(System.currentTimeMillis());
    contextElement.setDate(currDate);
    //Retrieve Current User Details
    try {
    IWDClientUser user = WDClientUser.getCurrentUser();
    String firstName = user.getFirstName();
    String lastName = user.getLastName();
    String userName = lastName + " " + firstName;
    contextElement.setUserName(userName);
    } catch (WDUMException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    Method complete()
    output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
    output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
    Thanks a lot.
    Cheers
    Gaurav Raghav

    You can use a text string as the reference.
    If you use the VISA Find Resource function, it will return an array of strings which you can index in your code, and store either the index, or store the string itself. You can even use strings like COM1 and COM2, assuming those ports are available.
    The challenge is when you move from one machine to another, where the serial ports may be different on the other machine.
    Message Edited by LabViewGuruWannabe on 01-07-2008 06:33 AM
    Message Edited by LabViewGuruWannabe on 01-07-2008 06:37 AM
    Attachments:
    VISA find.png ‏5 KB

  • How to Use Column Selector View in Reports

    Hi all,
    Can someone please advise on how to use the column selector view in CROMD's reporting tool?
    Whenever I add a Column Selector view, and check the Enable checkbox of a certain column, a message appears "Click the columns in the selection pane to add more choices". However there is no selection pane, and the only thing I can do within the column is input a column label.
    Am I missing any crucial steps here?
    Thanks.

    Hi,
    Choose a column as column selector by enabling the check box and click the columns that has to get into column selector in the left navigation.
    On click the columns would get in one by one. After that field that you choose would be displayed in the position of the column in the report table
    Typically the purpose is something like this. If you want to dynamically change the first field say by Account Type, Account Region, Account Status and see the revenue then it can be used
    -- Venky CRMIT

  • How to use array as parameter in procedure

    Hello,
    I am using Oracle SQL Developer 1.5.5
    I wanted to write a procedure which does insert into table.
    It should take 2 parameters.How to take array as parameter?
    One is a array of strings ('abc','def','erg') and another is a varchar ('abc').
    How to do this?
    Can somebody pls give a small example?
    Thanks
    Edited by: user13305573 on Aug 5, 2010 11:27 PM

    Hello,
    I am sorry if u didnt get my point.
    My req is i am using Orcale SQL Developer.
    Db is Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    I want to write a procedure which will be called from a java file.
    The parameter to that procedure will be a arr(array of strings) and username(varchar).
    I want to insert that data into a tableA.
    like if parameters are
    (abc01,edfg02,efg03) as arr and honey as username
    then it should insert 3 rows to the tableA
    abc01 honey
    edfg02 honey
    efg03 honey
    Thanks
    Edited by: user13305573 on Aug 5, 2010 11:54 PM

  • How to use deafult pdf viewer ? when i give windows in my pc pdf file open in firefox deafultly but suddenly its not working how to fix this ?

    please tell me how to use default pdf reader in firefox ? when i give windows in my pc pdf file open in firefox deafultly but suddenly its not working how to fix this ? pdf not open when i give ok with preview in firefox its not open its offer again same message

    In order to change the default pdf reader please see: [[View PDF files in Firefox without downloading them]]
    In order to change the file association: [[Applications panel - Set how Firefox handles different types of files]]

  • How to use table maintenance view in module pool screen

    hi ,
    want to use table maintenance view in a module pool screen so that i can edit, insert, delete and update date in to the ztable.please help.

    You can simply call it via SM30.   Or you can call the table maintence view from any program(report or module pool) using a function module.
      call function 'VIEW_MAINTENANCE_CALL'
           exporting
                action                       = 'U'
                view_name                    = 'Z_Table_Name'
           exceptions
                client_reference             = 1
                foreign_lock                 = 2
                invalid_action               = 3
                no_clientindependent_auth    = 4
                no_database_function         = 5
                no_editor_function           = 6
                no_show_auth                 = 7
                no_tvdir_entry               = 8
                no_upd_auth                  = 9
                only_show_allowed            = 10
                system_failure               = 11
                unknown_field_in_dba_sellist = 12
                view_not_found               = 13
                others                       = 14.
    Regards,
    RIch Heilman

  • Re: [SunONE-JATO] How to use a tiled view without a model

    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

    Craig,
    Thanks for the pointers. I ended up doing something else. I set the
    models setSize() method to set the max size, and as the tiles fields
    iterated, populated the value from some vectors I had the data in
    already. Is this solution fraught with peril and will ultimately fail,
    or should I try your way?
    John
    --- "Craig V. Conover" wrote:
    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • How to use a Text View to show the current user

    Hi Experts,
    I am using a Text View to show the current logged on user.
    Also i need to retrieve the date of creation of proposal and show it as output parameter.
    I am using the following code but it is not working properly.
    Please help me out regarding the same.
    Method technicalDescription()
    //Attribute User to store user name
    IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
                user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    //Attribute date to store current system date           
    IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
                date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    Method execute()
    //getting current system date
    Date currDate = new Date(System.currentTimeMillis());
              contextElement.setDate(currDate);
    //Retrieve Current User Details
    try {
    IWDClientUser user = WDClientUser.getCurrentUser();
    String firstName = user.getFirstName();
    String lastName = user.getLastName();          
    String userName = lastName + " " + firstName;
    contextElement.setUserName(userName);
    } catch (WDUMException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    Method complete()
    output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
    output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
    Thanks a lot.
    Cheers
    Gaurav Raghav

    There are a few ways, for example declare an IBOutlet for the text field and then use it with NSControl's stringValue: method (inherited by the NSTextField), or bind the value of the text field to a property, etc.  What have you got so far?

  • How to use functions and views in SMP2.3

    Hi all,
       I am new to SUP/SMP, I did some samples for hwc like create the MBO with object queries and operations using tables. Now i have a doubt 
         Is it possible to use sql functions in smp2.3?
         If it possible how to use them?
         for Select Query can i use stored procedure?
    Ex: Select * from Employee where EmpID=:empid for this querey i wrote a stored procedure like this
    Create procedure Emp_sp(@empID int)
    as
    begin
    Select * from Employee where EmpID=@empID;
    end
    This procedure shown in my database connections profile.
    I created an  operation,
    when i invoke the operation this procedure is visible in the operations list, i give the success screen in that i put a listview but here the attributes are not comming.
    Is there any mistake in my approach,
    Please suggest me.
    Thank you.

    I will suggest you to look at official document for more understanding:
    SyBooks Online

Maybe you are looking for

  • ConsoleOne and Windows 7

    With the rapid oncoming inevitability of Windows 7 and having completely skipped Vista as a viable Enterprise OS I've been doing a bit of testing. I have had Windows 7 x64 Build 7232 running as my primary OS for a bit over a week now and I have to sa

  • Which wire for feeding in video from a Handycam?

    My apologies (again) if this is a dumb question... I have an '08 MacBook Pro (where one of the knocks by reviewers was that it didn't many cable and device inputs). I have a bunch of video from Mini-DV tapes that I'd like to start transferring in fro

  • Satellite U200-181 - Sound is not playing after Vista Ultimate upgrade

    I have restore Win XP from Recovery Disk and upgrade to Windows Vista Ultimate. After reinstalling sound drivers (which installed correctly) i have no sound in my system. All volumes maximal and not mute. It seems like program sound off (by sound jog

  • Finish date changed in Scheduling

    Hello All I am facing one problem in scheduling. I have one production order 7734413. Order is not released. Always I am using back ward scheduling. I am working on  4.7 version In production order Basic finish date is 07.11.2007 and basic start date

  • Failed to install VirtualBox Guest Addition on Oracle Linux 6.1

    I can successfully install Oracle Linux 6.1 on VirtualBox 4.1. But failed to install VirtualBox Guest Additions with the following message: Building the main Guest Additions module [FAILED]. All other modules installed ok.