BI beans sample code installation

hi i am new to olap
i installed oracle9i enterprise server with olap option.
i updated it to 9.2.0.06 with patch.
i installed Bussiness Inteligent Bean package.
then i try to instlled BI beans samples
It's giving me errors about OLAP_USER
i checked OLAP_USER role is exist or not.
it is not present in my DB.
so i changed samples and and changed all OLAP_USER role to OLAP_DBA.
It start working, but not able to create analytical workspace.
It's giving error
BEGIN CWM2_OLAP_TABLE_MAP.ADD_AWVIEW('CS_OLAP','CS_O_SHAW_SHAWC_CHANN8VIEW','R2C
','CS_OLAP','SHAW'); END;
ERROR at line 1:
ORA-06550: line 1, column 27:
PLS-00302: component 'ADD_AWVIEW' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
BEGIN cwm2_olap_table_map.map_awview_column('CS_OLAP', 'CS_O_SHAW_SHAWC_CHANN8VI
EW', 'SHAWCHANNELS_ET', 'SHAWCHANNELS'); END;
ERROR at line 1:
ORA-06550: line 1, column 27:
PLS-00302: component 'MAP_AWVIEW_COLUMN' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
I found that 'CWM2_OLAP_TABLE_MAP' package is installed in OLAP_SYS workspace
but all these procedures are not installed in OLAP_SYS workspace
So there are two problems i am facing
OLAP_USER role is not present
CWM2_OLAP_TABLE_MAP.ADD_AWVIEW and cwm2_olap_table_map.map_awview_column procedures are not present
both problems are related with my installation of olap.
is there any way to update these packages or any other patch is required?

Hi,
Hopefully your Post Installation Script has been failed. Check for your catpatch.sql script.
Do the following activity :
1)Shutdown and then startup migrate
2) run catpatch.sql (located at $ORACLE_HOME/rdbms/admin)
3) create olap_user roles and give necessary privileges :
CREATE ROLE OLAP_USER NOT IDENTIFIED
GRANT ALTER SESSION TO OLAP_USER;
GRANT CREATE DIMENSION TO OLAP_USER;
GRANT CREATE INDEXTYPE TO OLAP_USER;
GRANT CREATE PROCEDURE TO OLAP_USER;
GRANT CREATE PUBLIC SYNONYM TO OLAP_USER;
GRANT CREATE SNAPSHOT TO OLAP_USER;
GRANT CREATE SYNONYM TO OLAP_USER;
GRANT CREATE TABLE TO OLAP_USER;
GRANT CREATE TYPE TO OLAP_USER;
GRANT CREATE VIEW TO OLAP_USER;
GRANT GLOBAL QUERY REWRITE TO OLAP_USER;
GRANT QUERY REWRITE TO OLAP_USER;
GRANT RESUMABLE TO OLAP_USER;
GRANT DELETE ON OLAPSYS.CWM2$_AW_NEXT_PERM_CUST_MEAS TO OLAP_USER;
GRANT DELETE ON OLAPSYS.CWM2$_AW_NEXT_TEMP_CUST_MEAS TO OLAP_USER;
GRANT DELETE ON OLAPSYS.CWM2$_AW_PERM_CUST_MEAS_MAP TO OLAP_USER;
GRANT DELETE ON OLAPSYS.CWM2$_AW_TEMP_CUST_MEAS_MAP TO OLAP_USER;
GRANT DELETE ON OLAPSYS.CWM2$_TEMP_VALUES TO OLAP_USER;
GRANT DELETE ON OLAPSYS.OLAP_SESSION_CUBES TO OLAP_USER;
GRANT DELETE ON OLAPSYS.OLAP_SESSION_DIMS TO OLAP_USER;
GRANT DELETE ON OLAPSYS.OLAP_SESSION_OBJECTS TO OLAP_USER;
GRANT INSERT ON OLAPSYS.CWM2$_AW_NEXT_PERM_CUST_MEAS TO OLAP_USER;
GRANT INSERT ON OLAPSYS.CWM2$_AW_NEXT_TEMP_CUST_MEAS TO OLAP_USER;
GRANT INSERT ON OLAPSYS.CWM2$_AW_PERM_CUST_MEAS_MAP TO OLAP_USER;
GRANT INSERT ON OLAPSYS.CWM2$_AW_TEMP_CUST_MEAS_MAP TO OLAP_USER;
GRANT INSERT ON OLAPSYS.CWM2$_TEMP_VALUES TO OLAP_USER;
GRANT INSERT ON OLAPSYS.OLAP_SESSION_CUBES TO OLAP_USER;
GRANT INSERT ON OLAPSYS.OLAP_SESSION_DIMS TO OLAP_USER;
GRANT INSERT ON OLAPSYS.OLAP_SESSION_OBJECTS TO OLAP_USER;
GRANT SELECT ON OLAPSYS.CWM2$_AW_NEXT_PERM_CUST_MEAS TO OLAP_USER;
GRANT SELECT ON OLAPSYS.CWM2$_AW_NEXT_TEMP_CUST_MEAS TO OLAP_USER;
GRANT SELECT ON OLAPSYS.CWM2$_AW_PERM_CUST_MEAS_MAP TO OLAP_USER;
GRANT SELECT ON OLAPSYS.CWM2$_AW_TEMP_CUST_MEAS_MAP TO OLAP_USER;
GRANT SELECT ON OLAPSYS.CWM2$_TEMP_VALUES TO OLAP_USER;
GRANT SELECT ON OLAPSYS.OLAP_SESSION_CUBES TO OLAP_USER;
GRANT SELECT ON OLAPSYS.OLAP_SESSION_DIMS TO OLAP_USER;
GRANT SELECT ON OLAPSYS.OLAP_SESSION_OBJECTS TO OLAP_USER;
GRANT UPDATE ON OLAPSYS.CWM2$_AW_NEXT_PERM_CUST_MEAS TO OLAP_USER;
GRANT UPDATE ON OLAPSYS.CWM2$_AW_NEXT_TEMP_CUST_MEAS TO OLAP_USER;
GRANT UPDATE ON OLAPSYS.CWM2$_AW_PERM_CUST_MEAS_MAP TO OLAP_USER;
GRANT UPDATE ON OLAPSYS.CWM2$_AW_TEMP_CUST_MEAS_MAP TO OLAP_USER;
GRANT UPDATE ON OLAPSYS.CWM2$_TEMP_VALUES TO OLAP_USER;
GRANT UPDATE ON OLAPSYS.OLAP_SESSION_CUBES TO OLAP_USER;
GRANT UPDATE ON OLAPSYS.OLAP_SESSION_DIMS TO OLAP_USER;
GRANT UPDATE ON OLAPSYS.OLAP_SESSION_OBJECTS TO OLAP_USER;
GRANT CONNECT TO OLAP_USER;
GRANT OEM_MONITOR TO OLAP_USER;
GRANT RESOURCE TO OLAP_USER;
GRANT SELECT_CATALOG_ROLE TO OLAP_USER;
4) Assign the OLAP_USER role to any users that need to access the Oracle OLAP
catalog.
GRANT OLAP_USER to <user>;
5) If the user requires special access to a particular select privs on the
table (AW$...).
GRANT SELECT ON <AW$xxx> TO <user>;
Regards
S. Kalim

Similar Messages

  • Sample jsp servlet bean (MVC) code

    We want to look into the JSP/Servlet/Bean area for our next project. We wish to understand the technology and as such want to hand build simple applications, and as such do not want to use JDeveloper just yet.
    We have searched and searched for suitable material but cannot anywhere find a sample application that :
    A. Lists contents of a databse table
    B. Each item in trhe list is a link to a page that allows that item, to be edited.
    C. A new item can be added.
    D. Uses the MVC model of JSP/Servlet and bean (preferably with no custom tags)
    There are examples that are too simplistic and do not cover the whole picture. Having spent over 100 GBP on books lately, only to be disappointed with the examples provided, we need to see some sample code.
    The samples provided by Oracle are too simplistic. They should really have provided ones built around the EMP and DEPT tables.
    Anyone know where we can get hold of this sample code.

    At the risk of sounding really dumb the examples are just too complex. There does not appear to be anywhere on the web where I can find a simple JSP/servlet/bean example of the type I described. There is enouigh material describing each individual component, but what I need is an example to cement the ideas, but the ones suggested are too much for a newbie. Even the much vaunted Pet Store thingy causes my eyes to glaze over.
    I dont expect anyone to have written something with my exact requirements, but surely to goodness there must be something that:
    1. On entry presents a search form on a table (e.g. EMP)
    2. On submission list all rows in EMp matchiung the criteria.
    3. The user can either click the link 'Edit' which opens up a form dispalying the row allowing the user to edit and save the changes, or click the 'New' button to show a blank form to create a new EMP.
    All this via a Controller servlet, with the database logic handled by a java bean, and all the presentation done via JSP.
    To me this is the most obvious and instructive example of this technology, but after days of trawling the web, and looking through a number of books, I cannot find such a thing.
    CGI with Perl DBI/DBD was a breeze to work with compared to this stuff ..... maybe ASP with SQL/Server would be a more fruitful use of time.

  • Samples Code --- BI BEANS without Oracle OLAP

    We can not download Samples Code --- BI BEANS without Oracle OLAP from Oracle Ftp site.
    Thanks for help:)
    Who can send me the sample code.
    [email protected]

    The file has been reposted

  • Sampl code for service beans in OA framework

    hi,
    I am new to OA framework .if any one could pass me with sample code or link for sample code using Service beans it would be of great help .
    thanks.

    Ashwin,
    First clarify that ur working on OAF or ADF?If this is related to OAF, ur requirement seems to be a simple serilizable class in java which has getter/setter methods for emp data and u can make use of http session for the same.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Report Engine SDK sample code questions

    Hello,
    I've been able to view a boxi report in an iframe via the Enterprise SDK by modifying the sample code in the HowToViewWebiReports_VB example.
    I'm not totally happy with the way that's working, so I'm looking at using the Report Engine SDK, although I understand it's performance and scalability isn't quite as good as the Enterprise SDK.
    I'm a VB.NET guy, not a C# guy, and I'm not clear on how the wssdk_net2.0_portal_sample_12.0_en example is supposed to work.
    I don't have one and my CMS server is running Tomcat, not IIS so there's not going to be an ASP.NET web service running there.
    In the dsws.config for the wssdk_net2.0_portal_sample_12.0_en example I put the name of the CMS server, but it's looking for a web service at http://cmsservername:8080/dswsbobje/services/Session, but I get a 404 when i try to hit that. 
    I'm not familiar with Tomcat, but in searching around on the server, I see a dswsbobje directory under the webapps in my Tomcat installation, but I don't see a services or a Session folder underneath that.  In the dswsbobje folder I see the following folders:
    BOAR-INF
    META-INF
    WEB-INF
    xsd
    Is there something else that needs to be installed on the Tomcat server to get the web service running?
    -Eric

    It looks like I have something there.  When I launch launch http://servername:8080/dswsbobje,  I see:
    Apache-AXIS
    Hello! Welcome to Apache-Axis.
    What do you want to do today?
    Validate the local installation's configuration
    see below if this does not work.
    To enable the disabled features, uncomment the appropriate declarations in WEB-INF/web.xml in the webapplication and restart it.
    Validating Axis
    If the "happyaxis" validation page displays an exception instead of a status page, the likely cause is that you have multiple XML parsers in your classpath. Clean up your classpath by eliminating extraneous parsers.
    I clicked on the "Validate" link and I see:
    Axis Happiness Page
    Examining webapp configuration
    QaaWS Configuration
    QaaWS Servlet is not valid.
    ErrorServer servername not found or server may be down
    See Web Application log to get more info or read QaaWS v2 documentation starting with section
    Perhaps this environment needs some additional configuration?

  • Want detailed sample code(value list handler pattern) for my case

    I am trying to write a Session Facade Bean with getAllUsers() method which get Collection pased from my UserBean(entity), to get all my users info.and I have a helper class called UserInfo
    public class UserInfo implements java.io.Serializable
    public String userid;
    public String username;
    public String password;
         public UserInfo()
         public void setUserInfo(String userid,String username,String password)
              this.userid=userid;
              this.username=username;
              this.password=password;
    I dont' know How my ejb client(jsp maybe) to use value list handler pattern to implement getting all users shown.
    I found http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html the sample code is to complex.
    any one could help me figure out ...
    what helper class do i need .or maybe interface
    what is the best practice?
    thanks in advanced.

    Hi,
    For a J2EE system with session facades, I've implemented that pattern based on the DTO pattern.
    The idea is based on Sun's blueprint Pet Store implementation.
    For that' I've created a DTO called "ListChunk", which holds a chunk of the complete list. In the Pet Store
    application v1.3.2 it's called "Page".
    So, those facade methods that would possibly return a huge list (such as getAllXXX and findXXX)
    return a ListChunk. As arguments, those methods take start index and the maximum size.
    If you want a value-list handler to control the iteration on your client side, you code such a class that
    uses the facade method.
    Here's some code:
    public class ListChunk implements Serializable {
         private List list;
         private int startIndex;     // starts on '0'
         private int totalSize;
         public ListChunk(List list, int startIndex, int totalSize)  {
              this.list = list;
              this.startIndex = startIndex;
              this.totalSize = totalSize;
         public List getList()  {
              return list;
         public int size()  {
              return list.size();
         public boolean hasNext()  {
              return totalSize > (startIndex + list.size());
         public boolean hasPrevious()  {
              return startIndex > 0;
         public int getTotalSize()  {
              return totalSize;
    }And a method in the facade could look like this:
         public ListChunk getAllCoWorkers(int startIndex, int maxSize, CoWorkerSortBy sortBy) {...}

  • BI Beans Samples Problem

    Hi,
    I've installed BI Beans samples and they are working fine except servlet samples.
    Only bootstrap servlet example is working fine but other servlet samples generates errors. Custom query tool shows crosstab, but when i try to drill down, or try to change time and press go, then a got javascript error Object expected.
    In page source I can find link to javascript src file MarlinCoreA4.js, but a can't find this file on my HDD.
    Have any ideas.
    Thx.

    I would recommend upgrading if possible to JDev/BI Beans 10g as this new release has a lot of cool new features that make development a lot faster and easier. Included in JDev/BI Beans 10g Help System (this might also be present in the 904 documentation - sorry I cannot remember) are topics that should help you develop your servlet application.
    The Help system provides working code for the following areas:
    Building Servlet Applications
    Rendering HTML pages
    Handling thin beans events
    Using thin bean dialogs
    Preparing a dialog or wizard page in a Servlet
    Adding a graph or crosstab wizard to a Servlet
    Adding a PresentationBuilder to a Servlet
    Adding a Graph or Crosstab Wizard to a Servlet
    Adding a Presentation Wizard Page to a Servlet
    Managing state information
    Managing thin presentations
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • [b]Install bi beans samples on 10g :  Error when Migrating CS_OLAP.SHAW[/b]

    I have a problem to install the common schema. The problem occur when executing the script : 3_create_aw.sql
    which call the program _migrateaw.pro, the error is :
    The Analytic Workspace version is: 10.1.0.3.0
    Migrating CS_OLAP.SHAW...
    ERROR : SYS.AWXML!CONVERT_AW does not exist
    I tested installing the common schema on both versions 10.1.0.3 and 10.1.0.4, and I had the same problem.
    In Jdeveloper, I can't run bi beans samples because when I try to define the OLAP Datasource I have this message :
    Successfully connected to the Oracle database but failed to retrieve metadata (metadata in the OLAP Catalog is not valid and couldn't be retrieved). And I think it's due to the first problem in installing the common schema.
    Please can you help me to resolve this. Thanks

    I think the problem is your OLAP installation is currently incomplete SYS.AWXML is one of the standard OLAP packages and the error message you have listed indicates it is not present. This would imply that either you are not using an Enterprise Edition of the database or that your database does not have the OLAP option installed. This might be because you have upgraded the database from an earlier version prior to OLAP being part of the database.
    For 10.1.0.3 you must apply the additional OLAP patch:
    OLAP Patch, post 10.1.0.3.0 A (Windows)
    15-AUG-2004 (#3769360) http://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=3769360
    However, this is bundled into the 10.1.0.4 patchset.
    To check if OLAP is installed in your instance, make sure the account OLAPSYS is present and also unlocked, by default this account is locked when a new instance is first created. If the OLAPSYS account is not present then you can use the following Metalink note to manually add the OLAP option and its related accounts to your instance:
    Doc ID: Note:296187.1
    Subject: How To Manually Install Oracle OLAP into a 9i or 10g Database
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • How to run the sample code using the sdk?

    Hi,
    I want to run the jsp code from the enterprize sdk available in the sdn community. Can any one tell me how to execute these jsp sample codes and what is the pre-requisite regarding the set up.
    I already have the deployment ready.
    thanks
    AMar

    Hi Amar,
    To execute samples code, it is same what is required for normal J2EE application.
    Make sure add all the jars to your web application.
    These jars can be found on your BO server installation if windows.
    For BOE XI 3.x
    C:\Program Files\Business Objects\common\4.0\java\lib
    C:\Program Files\Business Objects\common\4.0\java\lib\external
    For BOE XI R2
    C:\Program Files\Business Objects\common\3.5\java\lib
    C:\Program Files\Business Objects\common\3.5\java\lib\external
    Thanks,
    Praveen.

  • ADC sample code MapLargeFile.c returns an error

    I need some help running sample code from the ADC web site. I'm running 10.5.6 on a Mac Pro with 6 GB of RAM.
    The example in question "Shows a technique for mapping files greater than 4GB into memory for faster access."
    I compile it like this:
    gcc MapLargeFile.c -o MapLargeFile
    Then I make a 6GB file like this:
    dd if=/dev/zero of=foobar.txt bs=1024 count=6291456
    Finally I run it like this:
    ./MapLargeFile foobar.txt
    The program fails with this warning:
    ./MapLargeFile: failed to mmap file at offset 0x0
    I get the same error message if I give it a nonexistent file name. Looking at the code I would think it would say it couldn't open the nonexistent file.
    What am I doing wrong?
    Here is the sample code from the Apple ADC site:
    File: MapLargeFile.c
    Description: Shows a technique for accessing files > 4GB in size.
    Copyright: © Copyright 2003 Apple Computer, Inc. All rights reserved.
    Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc.
    ("Apple") in consideration of your agreement to the following terms, and your
    use, installation, modification or redistribution of this Apple software
    constitutes acceptance of these terms. If you do not agree with these terms,
    please do not use, install, modify or redistribute this Apple software.
    In consideration of your agreement to abide by the following terms, and subject
    to these terms, Apple grants you a personal, non-exclusive license, under Apple's
    copyrights in this original Apple software (the "Apple Software"), to use,
    reproduce, modify and redistribute the Apple Software, with or without
    modifications, in source and/or binary forms; provided that if you redistribute
    the Apple Software in its entirety and without modifications, you must retain
    this notice and the following text and disclaimers in all such redistributions of
    the Apple Software. Neither the name, trademarks, service marks or logos of
    Apple Computer, Inc. may be used to endorse or promote products derived from the
    Apple Software without specific prior written permission from Apple. Except as
    expressly stated in this notice, no other rights or licenses, express or implied,
    are granted by Apple herein, including but not limited to any patent rights that
    may be infringed by your derivative works or by other works in which the Apple
    Software may be incorporated.
    The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
    WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
    WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
    COMBINATION WITH YOUR PRODUCTS.
    IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
    GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
    OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
    (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
    ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    Change History (most recent first):
    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    #include <sys/time.h>
    #include <unistd.h>
    #include <fcntl.h>
    #include <sys/types.h>
    #include <sys/mman.h>
    struct timeval lastTime, thisTime;
    This sample is set up to map a 6GB file into memory in 256MB chunks.
    #define kFileSize (0x180000000ULL) // size of file we expect to map = 6GB
    #define kBufferSize (0x10000000UL) // we will map it in 256MB chunks
    int main( int argc, const char *argv[] )
    int fd, cnt, loops;
    unsigned long long *buffer, sum;
    off_t offset;
    if ( argc != 2 )
    fprintf( stderr, "usage: %s filename
    ", argv[0] );
    return -1;
    // open the file
    fd = open( argv[1], O_RDONLY, 0 );
    if ( fd == 0 )
    fprintf( stderr, "%s: failed to open %s for read
    ", argv[0], argv[1] );
    return -1;
    sum = 0;
    offset = 0;
    loops = 9; // loop through the file 10 times
    gettimeofday( &lastTime, NULL );
    while ( 1 ) // loop for ever, loop exit is handled below
    // map in a kBufferSize segment of the file
    buffer = mmap( 0, kBufferSize, PROT_READ, MAP_FILE, fd, offset );
    if ( buffer == MAP_FAILED )
    fprintf( stderr, "%s: failed to mmap file at offset 0x%llx
    ", argv[0], offset );
    break;
    // touch every byte in this segment of the file.
    // this 'warms up' the pages in memory so that subsequent accesses will be much faster
    for ( cnt = 0; cnt < kBufferSize / sizeof(sum); cnt += 16 )
    sum += buffer[cnt + 0];
    sum += buffer[cnt + 1];
    sum += buffer[cnt + 2];
    sum += buffer[cnt + 3];
    sum += buffer[cnt + 4];
    sum += buffer[cnt + 5];
    sum += buffer[cnt + 6];
    sum += buffer[cnt + 7];
    sum += buffer[cnt + 8];
    sum += buffer[cnt + 9];
    sum += buffer[cnt + 10];
    sum += buffer[cnt + 11];
    sum += buffer[cnt + 12];
    sum += buffer[cnt + 13];
    sum += buffer[cnt + 14];
    sum += buffer[cnt + 15];
    // unmap the current segment of the file
    munmap( buffer, kBufferSize );
    // increment the offset into the file
    offset += kBufferSize;
    if ( offset >= kFileSize )
    offset = 0; // reset the offset if we're at the end of the file
    gettimeofday( &thisTime, NULL );
    printf( "Time = %u seconds, sum = %llx
    ", thisTime.tv_sec - lastTime.tv_sec, sum );
    if ( loops-- == 0 ) break; // exit if we've done all loops.
    lastTime = thisTime;
    close( fd ); // all done, close the file
    return 0;

    The short comment explains it:
    // touch every byte in this segment of the file.
    // this 'warms up' the pages in memory so that subsequent accesses will be much faster
    This is basically just buffered I/O. If you know you are going to need to read 10000 bytes, there is no need to read each byte one at a time. You read all 10000 bytes at once, then access each byte in memory instead of going to disk for it.

  • Message to Forms Product Management Sample codes

    Hi,
    Where do i get sample code for integration of forms with smart card, usbs, serial ports, scanner devices, rfid and many other similar technologies.
    regards

    Hi
    I have gone through your following site and seen lot of useful java beans usages in forms.
    http://forms.pjc.bean.over-blog.com
    Now, what i am looking is not availble on this site.
    I am sure, many of us must have felt need to work with usb/smart card, scanner
    integration with forms (web).
    But nobody has put any sample codes here.
    That's the reason i wanted to initiate.
    Currently, my requirement is to read the client machine repository and find out any usb device is connected to it, if yes then what type of device it is and how i can receive/transmit data to that device.
    for simplicity. i will take a small example.
    i want to know whether USB drive is connected to client machine, and what is the capacity, manufacturer, model number, device id and drive letter assign to that drive.
    i can do it easily using windows cscript and then reading the output into forms variable using webutil, but this opens a separate window, which i don't want
    regards.

  • Hotel AQ sample code error

    Have downloaded the Hotel reservation AQ sample code from OTN with 9.0.1.3 database, OC4J 903 and JDK 1.3. Everything deploys correctly, and when I open the AQEJBHOTELSAMPLE frameset page, I can see the hotel lists. However, when I try to click on either theb 'Hotel Details' or 'Room Availability' tabs, I get the following error in the OC4J journal (ORA-25228). According to the RequestAQHandler and ServiceAQHandler classes, the 'first_message' dequeue option is correctly set (this was a previous noted error in this area). Could someone please tell me what they think could be the problem here ? :-
    D:\OC4J-13\j2ee\home>java -jar D:\OC4J-13\j2ee\home\oc4j.jar -config D:\OC4J-13\j2ee\home\co
    nfig\server.xml -verbosity 10
    Application default (default) initialized...
    Binding EJB EJB Reservation System - The oracle.otnsamples.AQEJBHotelSample.ejb.Hotel sessio
    n bean to Hotel...
    Binding EJB EJB Reservation System - The oracle.otnsamples.AQEJBHotelSample.ejb.HotelSystem
    session bean to HotelSystem...
    Application AQEJBHotelSample (Hotel Reservation System - AQEJB Sample) initialized...
    Web-App default:defaultWebApp (0.0.0.0/0.0.0.0:8888) started...
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    Web-App AQEJBHotelSample:AQEJBHote[i]Long postings are being truncated to ~1 kB at this time.

    Have downloaded the Hotel reservation AQ sample code from OTN with 9.0.1.3 database, OC4J 903 and JDK 1.3. Everything deploys correctly, and when I open the AQEJBHOTELSAMPLE frameset page, I can see the hotel lists. However, when I try to click on either theb 'Hotel Details' or 'Room Availability' tabs, I get the following error in the OC4J journal (ORA-25228). According to the RequestAQHandler and ServiceAQHandler classes, the 'first_message' dequeue option is correctly set (this was a previous noted error in this area). Could someone please tell me what they think could be the problem here ? :-
    D:\OC4J-13\j2ee\home>java -jar D:\OC4J-13\j2ee\home\oc4j.jar -config D:\OC4J-13\j2ee\home\co
    nfig\server.xml -verbosity 10
    Application default (default) initialized...
    Binding EJB EJB Reservation System - The oracle.otnsamples.AQEJBHotelSample.ejb.Hotel sessio
    n bean to Hotel...
    Binding EJB EJB Reservation System - The oracle.otnsamples.AQEJBHotelSample.ejb.HotelSystem
    session bean to HotelSystem...
    Application AQEJBHotelSample (Hotel Reservation System - AQEJB Sample) initialized...
    Web-App default:defaultWebApp (0.0.0.0/0.0.0.0:8888) started...
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    Web-App AQEJBHotelSample:AQEJBHote[i]Long postings are being truncated to ~1 kB at this time.

  • How to Delete a Specific Cell in a Matrix + plz Give sample code for Lost F

    hello there !!!!
    i m in Great Trouble please help me out..
    i have to search for a specific Column n then i have to validate that portion, similarly after validating i have to add update delete all the fuction apply... so please help me i m very upset.
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim Count As Int32
                If FormUID.Equals("Allowance") Then
                    If (pVal.BeforeAction = True) And (pVal.ItemUID = "1") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                        If pVal.Row = 0 Then
                            'BubbleEvent = False
                        End If
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        Count = o_Matrix.RowCount()
                        SBO_Application1.MessageBox("Matrix Count is " & o_Matrix.RowCount)
                        Validate(pVal, EventEnum, FormUID, BubbleEvent)
                    End If
                End If
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
        Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim Row, ii As Integer
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            o_Matrix.FlushToDataSource()
            Try
                For Row = 2 To o_Matrix.RowCount
                    StrName = Convert.ToString(DBtable.GetValue("CardCode", Row - 1)).Trim()''' i got Error over there n rest of my code is also not working pls...
                    StrUId = Convert.ToString(DBtable.GetValue("U_AlwID", Row - 1)).Trim()
                    StrEnter = Convert.ToString(DBtable.GetValue("U_SupEnter", Row - 1)).Trim()
                    StrExist = Convert.ToString(DBtable.GetValue("U_SupExist", Row - 1)).Trim()
                    If Row - 1 < DBtable.Rows.Count - 1 Or (Not (StrName.Equals(String.Empty) And StrUId.Equals(String.Empty) And (StrEnter.Equals(String.Empty) Or StrExist.Equals(String.Empty))) And (Row - 1 = DBtable.Rows.Count - 1)) Then
                        If (Not StrName.Equals(String.Empty)) And ((StrUId.Equals(String.Empty) Or StrEnter.Equals(String.Empty)) Or StrExist.Trim.Equals(String.Empty)) Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                        For ii = Row To DBtable.Rows.Count - 1
                            If Convert.ToString(DBtable.GetValue("ColName", ii)).Trim().Equals(StrName.Trim()) Then
                                SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Duplication Not Allowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                                oForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
                                BubbleEvent = False
                                Exit Sub
                            End If
                        Next
                        If CDbl(StrName) < 0 Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                    End If
                Next Row
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

    Hello there
    sir i want to Add Update and delete these three basic operation onto the Matrix, Sir u game me a Sample code of Delete a specific Column...
    Sir can u do me a favour pls leave every thing n just told me how to update a matrix ,like i have to fill the matrix field through the DATABASE table now i want to update the DataBase table from the matrix..
    i just only know thta i have to fill back database table with the help of FLUSHTODATABASE()
    here is my Sample Code...n i have to update in the validate portion...
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim oCellValue As SAPbouiCOM.EditText
                If FormUID.Equals("Allowance") Then
                    If (pVal.ItemUID = "MatAllow") Then
                        If pVal.Row = 0 Then Exit Sub
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        If (pVal.Row > o_Matrix.RowCount) Then Exit Sub
                        oForm = SBO_Application1.Forms.Item(FormUID)
                        If (pVal.ItemUID = "1" Or EventEnum = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                            If pVal.ColUID = "ColName" And pVal.BeforeAction = True Then
                                If pVal.Row = 0 Then Exit Sub
                                oCellValue = CType(o_Matrix.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific(), SAPbouiCOM.EditText)
                                If (oCellValue.Value.Trim().Equals(String.Empty) And o_Matrix.RowCount <> pVal.Row) Then
                                    SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Blank Value Not Allowed", )
                                    oCellValue.Active = True
                                    BubbleEvent = False
                                    Exit Sub
                                End If
                            End If
                        End If
                    End If
                End If
                Validate(pVal, EventEnum, FormUID, BubbleEvent)
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
    Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim str, str1 As String
            Dim checkbox1, Checkbox2 As SAPbouiCOM.CheckBox
            Dim o_Matrix As SAPbouiCOM.Matrix
            Dim Sum As Integer
            Dim oRecordset As SAPbobsCOM.Recordset
            Dim Container As Integer
            Dim Count As Int32
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            oRecordset = o_CompanyObj.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            Try
                For Count = 0 To DBtable.Rows.Count - 1
                    CodeFill = Convert.ToString(DBtable.GetValue("Name", Count).Trme())
                    NameID = Convert.ToString(DBtable.GetValue("ColUID", Count).Trim())
                    Price = Convert.ToString(DBtable.GetValue("ColPrice", Count).Trim())
                    Quantity = Convert.ToString(DBtable.GetValue("ColQuant", Count).Trim())
                    Total = Convert.ToString(DBtable.GetValue("ColTotal", Count).Trim())
                    checkbox1 = o_Matrix.Columns.Item("ColSEnter").Cells.Item(Count).Specific
                    Checkbox2 = o_Matrix.Columns.Item("ColSExist").Cells.Item(Count).Specific
                    If (checkbox1.Checked = True) And (Checkbox2.Checked = True) Then
                        Dim Sql As String
                        Sql = "Update [@Supplier] Set U_Price=' " & Price & " ',U_ID=" & NameID & "Where Name ='" & CodeFill & " '"
                        oRecordset.DoQuery(Sql)
                    End If
                Next Count
                SBO_Application1.MessageBox("Record was Updated")
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

  • Error while running a sample code

    Hello,
    I 'm getting the following error while i'm trying to run a
    sample code which I have imported into Flex 3.
    ===================================================================
    Severity and Description Path Resource Location Creation Time
    Id
    unable to open 'C:\Documents and Settings\sn55179\My
    Documents\Flex Builder
    3\FlexForDummies_Chapter3_Code\libs'FlexForDummies_Chapter3_Code
    Unknown 1237909480511 215
    ===================================================================
    Can anyone help me in resolving this issue.
    Many thanks in advance.

    It's very frustrating that FB stops working when the libs
    folder is missing. If you are checking in project files to a source
    control app like Perforce, empty folders don't get added, so if you
    don't add an initial dummy file, the next time you do a clean sync,
    the libs folder may not be there, and even though there is nothing
    there, FB complains. :-(

  • Sample code for routine

    Hi all,
    This is what I want to achieve. I have an attribute for an IO, but the values for that has to be decided at the transfer structure level. I want to write a routine in the transfer rules to populate the field.
    I have another field that gets populated from R/3. I need to write a routine which would take this value and see if it falls in the range and have to decide the value and populate.
    I have gl_account coming in, and in the routine I need to take that value of the gl_account and see if it falls in the range of 1 – 5000 or 6700 - 8130 if so assign a + sign and if not assign a – sign to the new field.
    Any sample code would be appreciated and rewarded.
    Thanks,
    Sri

    Global code used by conversion rules
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    $$ begin of routine - insert your code only below this line        -
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
       Data:  temp1 TYPE RANGE OF TRAN_STRUCTURE-ZDEBITCREDIT,
       Data:  temp1_line LIKE LINE OF temp1.
       temp1_line-sign = 'I'.
       temp1_line-option = 'BT'.
       temp1_line-low = '001'.
       temp1_line-high = '5000'.
       APPEND temp1_line TO temp1
      Data:  temp2 TYPE RANGE OF TRAN_STRUCTURE-ZDEBITCREDIT,
       Data:  temp2_line LIKE LINE OF temp2.
       temp2_line-sign = 'I'.
       temp2_line-option = 'BT'.
       temp2_line-low = '5001'.
       temp2_line-high = '8000'.
       APPEND temp2_line TO temp2
    Data: temp(1) char.
    if TRAN_STRUCTURE-0glaccnt  IN temp1.
       temp3  = '+'.
    elseif TRAN_STRUCTURE-0glaccnt  IN temp2.
      temp 3= '-'.
    endif
      RESULT = temp3 .
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -

Maybe you are looking for