Procedure that checks for a value in the database and returns related info

Hi Everyone,
I need to create a stored procedure that takes customer info(any of these fname,lname,id,email etc) and looks for it in the database and displays the customer info of that particular customer(kinda search engine).
I have to use dynamic sql and sql injection.Can anyone give me a brief idea from where to start.Thankyou.

create or replace procedure pro_customer(p_customer_id number, p_customer out customer%rowtype) is
begin
select *
into p_customer
from customer
where customer_id = p_customer_id;
end pro_customer;
the names,keys and others are invented

Similar Messages

  • Search for a value in the database

    Hi Guys,
    Don’t know if I am being paranoid here. But is there a way to search for a particular value in the entire set of tables in oracle.
    For example I am having a part number called ‘AF2425-B12’ in my inventory table. Is there a way to find out all the tables which contains the value ‘AF2425-B12’ in any of the columns in my database?
    Many Thanks,
    Napster

    Hope this link ll help you,
      https://forums.oracle.com/thread/2572717?start=0&tstart=0

  • Store procedure which get list of values separated by semicolon and return result set as a string semicolon separated strin

    Hello,
    I am trying to make stored procedure in what i am getting i_group_id  as a list of groups seprated by semicoln like 1,2,14,17,23.
    And i want list of emails based on that group. And result set will be as a list of emails seprated by semicolon.
    Can anybody please help me for that. Thanks in advance.
    PROCEDURE get_groups_email(i_group_id    IN VARCHAR2,
                               x_group_email_dtl_cur OUT resultcur)
    IS
    x_group_email VARCHAR2(4000):=NULL;
    BEGIN                            
       FOR i IN (SELECT   TRIM(emp.email) email
                   FROM   ems.employee emp,
                          ems.groups_employee egrp
                  WHERE   egrp.group_id IN (i_group_id)
                    AND   emp.person_id = egrp.person_id) LOOP
        x_group_email:= x_group_email || i.email ||';';
      END LOOP;
      x_group_email := RTRIM(x_group_email,';');
       OPEN x_group_email_dtl_cur FOR  
         SELECT   x_group_email
           FROM   DUAL;  
    DBMS_OUTPUT.PUT_LINE('x_group_email:' || x_group_email);                                        
    END get_groups_email;
    PROCEDURE get_groups_email(i_group_id    IN VARCHAR2,
                               x_group_email_dtl_cur OUT resultcur)
    IS
    x_group_email VARCHAR2(4000):=NULL;
    BEGIN                            
       FOR i IN (SELECT   TRIM(emp.email) email
                   FROM   ems.employee emp,
                          ems.groups_employee egrp
                  WHERE   egrp.group_id IN (i_group_id)
                    AND   emp.person_id = egrp.person_id) LOOP
        x_group_email:= x_group_email || i.email ||';';
      END LOOP;
      x_group_email := RTRIM(x_group_email,';');
       OPEN x_group_email_dtl_cur FOR  
         SELECT   x_group_email
           FROM   DUAL;  
    DBMS_OUTPUT.PUT_LINE('x_group_email:' || x_group_email);                                        
    END get_groups_email;

    >
    Can anybody please help me for that
    >
    Not in this forum they can't. This forum, as the title says, is for SQL Developer questions only.
    Please mark this question ANSWERED and repost it in the SQL and PL/SQL forum
    https://forums.oracle.com/community/developer/english/oracle_database/sql_and_pl_sql

  • Store procedure which get list of values separated by semicolon and return result set as a string semicolon separated string

    Hello,
    I am trying to make stored procedure in what i am getting i_group_id  as a list of groups seprated by semicoln like 1,2,14,17,23.
    And i want list of emails based on that group. And result set will be as a list of emails seprated by semicolon.
    If you know how to install that in stored procedure please help me. Appreciate your help.
    Thanks.
    PROCEDURE get_groups_email(i_group_id    IN VARCHAR2,
                               x_group_email_dtl_cur OUT resultcur)
    IS
    x_group_email VARCHAR2(4000):=NULL;
    BEGIN                           
       FOR i IN (SELECT   TRIM(emp.email) email
                   FROM   ems.employee emp,
                          ems.groups_employee egrp
                  WHERE   egrp.group_id IN (i_group_id)
                    AND   emp.person_id = egrp.person_id) LOOP
        x_group_email:= x_group_email || i.email ||';';
      END LOOP;
      x_group_email := RTRIM(x_group_email,';');
       OPEN x_group_email_dtl_cur FOR 
         SELECT   x_group_email
           FROM   DUAL; 
    DBMS_OUTPUT.PUT_LINE('x_group_email:' || x_group_email);                                       
    END get_groups_email;
    PROCEDURE get_groups_email(i_group_id    IN VARCHAR2,
                               x_group_email_dtl_cur OUT resultcur)
    IS
    x_group_email VARCHAR2(4000):=NULL;
    BEGIN                           
       FOR i IN (SELECT   TRIM(emp.email) email
                   FROM   ems.employee emp,
                          ems.groups_employee egrp
                  WHERE   egrp.group_id IN (i_group_id)
                    AND   emp.person_id = egrp.person_id) LOOP
        x_group_email:= x_group_email || i.email ||';';
      END LOOP;
      x_group_email := RTRIM(x_group_email,';');
       OPEN x_group_email_dtl_cur FOR 
         SELECT   x_group_email
           FROM   DUAL; 
    DBMS_OUTPUT.PUT_LINE('x_group_email:' || x_group_email);                                       
    END get_groups_email;

    1013527 wrote:
    I am using Oracle 9.7.2. Not 11g.
    No Database at hand to provide a working example.
    So use http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:73830657104020 to split your list into rows.
    Join that to your table of e-mail addresses
    then take a look at http://www.sqlsnippets.com/en/topic-11787.html maybe chosing http://www.sqlsnippets.com/en/topic-12087.html
    and you're done.
    Regards
    Etbin
    something to play with (still NOT TESTED!)
    with
    e_mails as
    (select 1 user_id,'alpha' || chr(64) || 'domain.eu' e_mail from dual union all
    select 2,'beta' || chr(64) || 'domain.eu' from dual union all
    select 3,'gamma' || chr(64) || 'domain.eu' from dual union all
    select 4,'delta' || chr(64) || 'domain.eu' from dual union all
    select 5,'epsilon' || chr(64) || 'domain.eu' from dual union all
    select 6,'zeta' || chr(64) || 'domain.eu' from dual union all
    select 7,'eta' || chr(64) || 'domain.eu' from dual union all
    select 8,'theta' || chr(64) || 'domain.eu' from dual union all
    select 9,'iota' || chr(64) || 'domain.eu' from dual union all
    select 10,'kappa' || chr(64) || 'domain.eu' from dual union all
    select 11,'lambda' || chr(64) || 'domain.eu' from dual union all
    select 12,'mu' || chr(64) || 'domain.eu' from dual union all
    select 13,'nu' || chr(64) || 'domain.eu' from dual union all
    select 14,'xi' || chr(64) || 'domain.eu' from dual union all
    select 15,'omicron' || chr(64) || 'domain.eu' from dual union all
    select 16,'pi' || chr(64) || 'domain.eu' from dual union all
    select 17,'rho' || chr(64) || 'domain.eu' from dual union all
    select 18,'sigma' || chr(64) || 'domain.eu' from dual union all
    select 19,'tau' || chr(64) || 'domain.eu' from dual union all
    select 20,'upsilon' || chr(64) || 'domain.eu' from dual union all
    select 21,'phi' || chr(64) || 'domain.eu' from dual union all
    select 22,'chi' || chr(64) || 'domain.eu' from dual union all
    select 23,'psi' || chr(64) || 'domain.eu' from dual union all
    select 24,'omega' || chr(64) || 'domain.eu' from dual
    groups as
    (select 1 g_id,'1,15,21,17' members from dual union all
    select 2,'23,10,3,20,7,23,15,9' from dual union all
    select 3,'3,4,5,6,7,8' from dual union all
    select 4,'23,24,15,16,7,18' from dual
    select g_id,
           substr(sys_connect_by_path(e_mail,';'),2) e_mail_list
      from (select g.g_id,
                   e.e_mail,
                   row_number() over (partition by g.g_id order by e.user_id) rn
              from e_mails e,
                   groups g
             where instr(','||g.members||',',','||to_char(e.user_id)||',') > 0
               and instr(','||:group_list||',',','||to_char(g.g_id)||',') > 0
    where connect_by_isleaf = 1
    start with rn = 1
    connect by rn = prior rn + 1
            and g_id = prior g_id
    Message was edited by: Etbin provided a small example

  • How to check for null values in bpel?? Please Help! very urgent!!!

    Hello Guys,
    I have a problem. I have an external webservice to which I have to post my request. My task is to create an Webservice and Service Assembly to which others would post request and get response. I have to create SA to deploy onto the bus.
    The problem is that there are optional elements in the request and response xsd's. In the Response sometimes certain feilds may come or they may not. for Example:- my response could contain a tag like this <firstName></firstName>
    I have to copy these feilds in my bpel process from one variable to another.(like in the mapper).
    My Question is , Is there any way in BPEL process or BPEL mapper where I could Check for null values in the request or response???
    Your inputs would be very helpful.
    Thanks
    Rajesh

    Thanks for replying man :)
    Ok I will be more clear.
    Here is a snippet of one of the xsd's that I am using.
    <xs:element name="returnUrl" nillable="false" minOccurs="0">
                        <xs:annotation>
                             <xs:documentation>Partner specifies the return URL to which responses need to be sent to, in case of
    Async message model.
    </xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:anyURI">
                                  <xs:maxLength value="300"/>
                                  <xs:whiteSpace value="collapse"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
    This means that the return URL field can be there or it may not be there. But if it is there it cant be null because nillable=false. But the whole <returnURL> </returnURL> can be there or it may not be there because minOccurs=0.
    My requirement is , if returnURL is there in the response with a value, then in my BPEL mapper I should map it else I should not map it.
    Thats the issue.
    and Yes kiran, the node be non-existant.
    So can you please help me with this.
    Thanks
    Rajesh

  • Checking for null value in arraylist

    Hi
    i have an excel file which i i am reading into an arraylist row by row but not necesarrily that all columns in the row mite be filled. So how do i check for null values in the array list.
    try
                        int cellCount = 0;
                        int emptyRow = 0;
                        HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(file));
                        HSSFSheet sheet = workbook.getSheetAt(0);
                        Iterator rows = sheet.rowIterator(); 
                        myRow = new ArrayList();
                        int r = 1;
                             while (rows.hasNext())
                                  System.out.println("Row # " + r);
                                  HSSFRow row = (HSSFRow) rows.next();
                                  Iterator cells = row.cellIterator();          
                                  cellCount = 0;
                                  boolean isValid = false;
                                  while (cells.hasNext())
                                       HSSFCell cell = (HSSFCell) cells.next();
                                       switch (cell.getCellType())
                                            case HSSFCell.CELL_TYPE_NUMERIC:
                                                 double num = cell.getNumericCellValue();     
                                                 DecimalFormat pattern = new DecimalFormat("###,###,###,###");     
                                                 NumberFormat testNumberFormat = NumberFormat.getNumberInstance();
                                                 String mob = testNumberFormat.format(num);               
                                                 Number n = null;
                                                 try
                                                      n = pattern.parse(mob);
                                                 catch ( ParseException e )
                                                      e.printStackTrace();
                                                 System.out.println(n);
                                                 myRow.add(n);                                             
                                                 //myRow.add(String.valueOf(cell.getNumericCellValue()).trim());
                                                 //System.out.println("numeric: " +cell.getNumericCellValue());
                                                 break;
                                            case HSSFCell.CELL_TYPE_STRING:
                                                 myRow.add(cell.getStringCellValue().trim());
                                                 System.out.println("string: " + cell.getStringCellValue().trim());
                                                 break;
                                            case HSSFCell.CELL_TYPE_BLANK:
                                                 myRow.add(" ");
                                                 System.out.println("add empty:");
                                                 break;
                                       } // end switch
                                       cellCount++;
                                  } // end while                    
                                  r++;
                             }// end while
                   } myRow is the arrayList i am adding the cells of the excel file to. I have checked for blank spaces in my coding so please help with how to check for the black spaces that has been added to my arraylist.
    I have tried checking by looping through the ArrayList and then checking for null values like this
    if(myRow.get(i)!=null)
      // do something
    // i have tried this also
    if(myRow.get(i)!="")
    //do something
    }Edited by: nb123 on Feb 3, 2008 11:23 PM

    From your post I see you are using a 3rd party package to access the Excel SpreadSheets, you will have to look in your API for you 3rd party package and see if there is a method that will identify a blank row, if there is and it does not work, then you have to take that problem up with them. I know this is a pain, but it is the price we pay for 3rd party object use.
    In the mean time, you can make a workaround by checking every column in your row and seeing if it is null, or perhaps even better: check and see if the trimmed value of each cell has a lenth of 0.

  • How to get and disply dynamic values on the fly and display in applet

    hello all ,
    i have a problem in refreshing a applet.
    i have a scrolling applet which will get the share values from the database and display in a scrolling applet in the browser . i am getting the values and displaying it.
    but the problem is , if i enter a new record in the database, until and unless i press refresh button of the browser, i am not getting the new values . please help me if anybody having the idea. please mail me to [email protected]
    thank you all.
    by
    samba

    You want a database update to trigger an applet refresh? Can't be done.
    However, you can have the applet periodically re-query the database and update its display with the information it retrieves. Just kick off a Thread that sleeps for a bit, wakes up, queries the db, updates the display, and goes back to sleep.

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • HT1338 My Mac Book Pro is currently runnng OS X v10.5.8. When I check for updates by clicking the apple icon it tells me that my computer is up to date.  What is the easiest way to upgrade to OS X Lion?  Do I need to get OS X Snow Leopard first?

    My Mac Book Pro is currently runnng OS X v10.5.8. When I check for updates by clicking the apple icon it tells me that my computer is up to date.  What is the easiest way to upgrade to OS X Lion?  Do I need to get OS X Snow Leopard first?

    Yes, there's been no updates to 10.5.8 for quite awhile, next is paid Upgrades.
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It looks like they might still have it...
    http://store.apple.com/us/product/MC573Z/A?fnode=MTY1NDAzOA
    If it's a core Duo & not a Core2Duo, then it'll only run in 32 bit mode.
    Lion/101.7 System requirements
        •    x86-64 processor (Macs with an Intel Core 2 Duo, Intel Core i3, Intel Core i5, Intel Core i7, or Xeon processor.)
        •    At least 2GB of memory, I say 6 GB
        •    Latest version of Mac OS X Snow Leopard (10.6.8), with the Mac App Store installed
        •    At least 4GB of disk space for downloading, I say 50 GB.
    Like Snow Leopard, Lion does not support PowerPC-based Macs (e.g., Power Macs, PowerBooks, iBooks, iMacs (G3-G5), eMacs).
    Lion also does not support 32-bit Intel Core Duo or Core Solo based Macs. Rosetta is no longer available in Lion, which means Lion no longer supports PowerPC applications.
    http://en.wikipedia.org/wiki/Mac_OS_X_Lion#System_requirements
    http://www.apple.com/macosx/how-to-buy/
    What applications are not compatible with Mac OS X 10.7 "Lion"?
    http://ow.ly/5Iz09
    http://roaringapps.com/apps:table

  • How may one cancel the download of an update that was started by having actuated the "Check for Updates" button in the "About Firefox" window, please?

    How may one cancel the download of an update that was started by having actuated the "Check for Updates" button in the "About Firefox" window, please? If possible please cover all platforms, Mac, Windows, Linux, although the first mentioned is what currently applies to my circumstances.
    Thank you.

    Such a download is usually saved in an updates or updated folder in the Firefox program/application folder.
    You can delete this folder to cancel the download.
    If files already have been downloaded then remove the files in the updates and updates\0 folder.
    *http://kb.mozillazine.org/Updates_reported_when_running_newest_version
    *http://kb.mozillazine.org/Software_Update
    Mac: /Applications/Firefox.app/updates "/path_to/Firefox.app/Updated.app"
    Linux: "/path_to/firefox/updated"
    Windows: C:\Users\&lt;user&gt;\AppData\Local\Mozilla\Firefox\Mozilla Firefox\updates

  • HT203128 "Unable to check for available downloads. The network connection was lost." I have 3 downloads from yesterday that I receive this error code. Any ideas?

    I have 3 downloads from yesterday that I receive this error code. Any ideas?
    Thank you!

    I may have stumbled upon something that could help. A type of "detour" around the problem.
    I just started experiencing this problem a few days ago. Anytime I'd try to download a song/video/movie, I would get the message, "Unable to check for available downloads. The network connection was reset".
    So, instead of selecting "Check for Available Downloads" under "Advanced" menu...
    I logged into "My Account" page in itunes. If there are available downloads it comes up at the top of the page with the option button "Download Now". When I select that -- it downloads immediately.
    Can't promise it will work every time. But it's worked for me so far. Good luck...

  • Unable to check for available downloads. The network connection timed out.

    I downloaded iTunes 10.1.2 last week, and attempted to upgrade some music to iTunes Plus. I'm showing 35 items in my download queue, but when I attempt to download I get a message "Unable to check for available downloads. Network connection timed out."
    I e-mailed Apple Tech Support multiple times, and received their standard list of links for things to try. So far I have reinstalled iTunes, turned off my Norton Firewall, checked the program rules settings, flushed the dns cache, and unchecked the "allow simultaneous downloads" box. Still no luck.
    Apple's last e-mail requested I send them my account info so they could reset my password, and check my system. I'm still waiting for that to happen.
    I'd appreciate any user suggestions for this problem.

    Fundamentally it is an apple itunes server issue - if you have a lot of downloads the "check for downloads" request can take longer than the default windows internet connection timeout setting - which is 30 seconds on more recent versions of windows.
    You can work around it though - without requiring apple to "segment" your download list, by adding a windows registry setting.
    Apple re-enabled my downloads after I was burgled and then I was stuck - my "check for downloads" was always timing out - and the support guy had no clue - so I went digging, and found a a microsoft article here http://support.microsoft.com/kb/181050 which tells you how to change change that default timout value by adding a registry setting. Besides adding the ReceiveTimeout setting detailed on that page - I also changed the KeepAliveTimeout - just in case.
    HKEYCURRENTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ReceiveTimeout
    which I set to 180000 milliseconds (3 mins)
    HKEYCURRENTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\KeepAliveTimeout
    which I set to 181000 milliseconds (3 mins and 1 second)
    Use regedit to make the change - both settings are DWORDS with decimal values. You'll need to restart your PC to apply the change.
    After the change and restart and one initial failed attempt the request for downloads worked - when the apple itunes server responded after 2 minutes !!

  • To develop an error checker for consecutive values

    Thanks Doug. Your answer has given me further insight into the problem.
    However, I was wondering if it is possible to make an error checker for consecutive values of a particular variable.
    That is, the first value and second value might be 100 and 100.5 respectively, but the third value might be 110, which is a wrong value. How do I discard the 110 point from being plotted?
    Thanks.
    Choy

    Really difficult. How do you know the first two values aren't errors and
    the third one is correct. If you're getting these sorts of values fromn
    your A-D hardware, I'd suggest fixing the problem at the source.
    Regards,
    Alf Katz,
    [email protected]
    "leon2001" wrote in message
    news:[email protected]..
    > Thanks Doug. Your answer has given me further insight into the
    > problem.
    >
    > However, I was wondering if it is possible to make an error checker
    > for consecutive values of a particular variable.
    >
    > That is, the first value and second value might be 100 and 100.5
    > respectively, but the third value might be 110, which is a wrong
    > value. How do I discard the 110 point from being plotted?
    >
    > Thanks.
    >
    >
    > Choy

  • HT1725 When I click on a Movie I get the following "You have already purchased this item but it has not been downloaded. To download it, select Check For Available Downloads from the Store menu." Then get err = 11111

    iTunes quit unexpectedly during the download of a movie.  When I click on that movie now I get the following message: "You have already purchased this item but it has not been downloaded. To download it, select Check For Available Downloads from the Store menu."
    I follow the instructions, but the download still doesn't resume - err = 11111
    Any advice?

    Yeah, I am going to blast my iPhone for the 4th time today and pray this goes away. I had 6 apps showing updates, the 6 badge icon shows on the App Store on my iPhone and, having run them all, the 6 apps have two copies each on my iPhone: one that is the old version of the app and will not run and the other is a faded version of the app with an empty progress bar on the icon. Click those and you get an error message about connecting to iTunes, etc. as described in the article I linked to above.
    It gets stranger than this. If I install a completely NEW app, the 6 that are stuck mid-update heal themselves and appear with the new version only, however now completely different apps (Hold Em for instance - which I did not update and didn't need an update) will not launch "app name Cannot Launch" message comes up.
    Agh!

  • Schedule a Webi XIR2 report to run for all values of the prompt ...

    Hi there,
    Any ideea about if it's possible to schedule a Web Intelligence XIR2 report to automatically run for all  150 different prompt values in the LOV (and have 150 different instances)?
    BOXIR2, Java deployment.
    Many thanks.

    You'd be scheduling the document 150 different times, each for one value of the LOV.
    You'd use the ReportEngine (REBean) SDK to read the LOV values, then use the Enterprise SDK to schedule.
    Here's a bit of code that illustrates how to schedule a Webi doc a single time with specified prompts.  You'd do something similar, but iterate the prompt setting and scheduling:
        IInfoStore iStore  = (IInfoStore) eSession.getService("InfoStore");
        ReportEngine reportEngine =  ((ReportEngines) eSession.getService("ReportEngines"))
                                        .getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
        IInfoObjects objs = iStore.query("Select TOP 1 * From CI_INFOOBJECTS Where "
                                          + " SI_KIND='Webi' And SI_INSTANCE=0 "
                                          + " And SI_NAME = '" + reportName + "'");
        //============================================================================
        // Open Webi document, then get and set Prompts collection
        //============================================================================
        IWebi            webi    = (IWebi) objs.get(0);
        DocumentInstance di      = reportEngine.openDocument(webi.getID());
        Prompts          prompts = di.getPrompts();
        for(int i = 0, m = prompts.getCount() ; i < m ; i++) {
            Prompt prompt = prompts.getItem(i);
            String name   = prompt.getName();
            if("Enter value(s) for State:".equals(name)) {
                Lov lov = prompt.getLOV();
                lov.refresh();
                Values values = lov.getAllValues();
                prompt.enterValues(new ValueFromLov[] { values.getValueFromLov(0),
                                                        values.getValueFromLov(1)});
            } else if ("Enter Shop Id:".equals(name)) {
                prompt.enterValues(new String[] { "261" });
        //===========================================================================
        // Copy prompts over to InfoObject
        //===========================================================================
        PromptsUtil.populateWebiPrompts(prompts, webi);
        //===========================================================================
        // Schedule Webi report to run once now
        //===========================================================================
        webi.getWebiFormatOptions().setFormat(IWebiFormatOptions.CeWebiFormat.Webi);
        ISchedulingInfo schedInfo = webi.getSchedulingInfo();
        schedInfo.setRightNow(true);
        schedInfo.setType(CeScheduleType.ONCE);
        iStore.schedule(objs);
    Sincerely,
    Ted Ueda

Maybe you are looking for

  • Portrait display resolution issue since upgrading to Mountain Lion

    Hello. I'm running a Mac Mini 2011 with the 2.5 GHz i5 and Radeon HD 6630m graphics. I run two monitors, one via HDMI and via the Mini DisplayPort to VGA adaptor. The HDMI connection runs landscape, the VGA portrait. Since updating from Lion to Mount

  • HT4528 My screen on my iphone 4 is not working.

    My screen on my iphone 4 is not working. Even after I plug it up to Itunes it still doesn't work.  What should I do?  Is it a hardware issue?  My phone is not under warranty anymore.

  • How did I get so many users in Server?

    I recently installed OS X server 4.1.  All seemed to be running smoothly.  When I came in the next day I had 89 users.  All appear to be file names and services.  This happened before on server 2.2 before I upgraded.  It happened overnight so I am no

  • Changed IP's of nodes cause ORA-12514

    Hi , we reactivated an older RAC (2 nodes) and ran into the following situation: - the original IP's of the scan-address have been reused, therefore we had to use new IP's After confuguring the new IP's the command <nslookup> myrac-scan.de.domain.dns

  • Facetime crashes my iPhone 5

    Hi guys, So, I have an iPhone 5 updated to iOs 6.0.2 and when I attempt to hold a Facetime call it crashes my phone and it restars (silver apple over black screen). Its verrrry annoying. All other apps work fine and ive restarted the phone. Hope you