BC4J; Domain; Number in Database, String in Domain

I have a field in the database that is stored as a number. I want the user to see it and enter it as a string.
In otherwords, the value is 1. The user should see A1. If they were to enter A2 the value in the database would be 2. If they were to enter 150 it would be out of range and they would get an error.
Is a domain the right thing to do here? If so how does one implement this?
Thanks,
Linda

Okay. It is a grid of say 3 X 3.
The first row, column 1 is 1,1, the id in the database is 1, and should be referred to as A1.
The second row, column 1 is 2,1, the id in the database is 4, and should be referred to as B1.
- 1 2 3
A 1 2 3
B 4 5 6
C 7 8 9
Still confused? Think of a spread sheet with a fixed amount of rows and columns. Each cell representing an id in the database only the user does not want to see the id only the mapping of the grid.
TIA
Linda
null

Similar Messages

  • Oracle OBJECTs and BC4J Domains

    In his HOW TO: on multiple data formats Steve Muench said that it was possible to use BC4J domains to implement "Oracle structs" (sic).
    I have a object with three attributes that I would like to show and validate in a JSP. Can anybody point me at documentation that tells me how to do this?
    Thanks, APC
    null

    Just use the Domain wizard to create a domain for your Oracle8i user-defined object type, and then you can create entity objects and/or view objects with your new domain type as the attribute.
    The domain will have getter and setter methods to get/set the object type's values.

  • Very Urgent: Invalid number in database

    We are getting an invalid number error on a date field in a Form that has run this procedure for two years. The query is something like select max(upload_date) from pfe_time_report where ssn = :block_update.ssn. We think that an invalid number has been inserted into the database but we can't find out where. Has anyone run into this situation before? This is a crucial enterprise application (3000 people won't get paid w/o it!)
    Thanks.

    Jeremy:
    I support a payroll app for 10000, I sympathize.
    I think that your bad data is in either whatever table you get :block_update.ssn from , or in pfe_time_report.ssn
    The invalid number error occurs when there is an implicit or explicit conversion from a string to a number, and the string contains alpha characters.
    If pfe_time_report.ssn is defined as numeric, I would look at the block_update source which may be char or varchar.
    Assuming that :block_update.ssn is VARCHAR2(10), you could use something like:
    SELECT ROWID,identifying_columns
    FROM block_update_source
    WHERE RPAD(TRANSLATE(ssn,'1234567890','$$$$$$$$$$'),10,'$') <> '$$$$$$$$$$'This will change all valid numbers in :block_update.ssn to 10 $'s. Any non-numeric characters will remain as they were.
    I hope everyone gets paid. Thanks for the advice. The table is pfe_time_report. SSN is a Varchar2(10) and upload_date is a date. The :block_update is based on this table. Would it be advisable to use the query you mentioned to update the table and correct any errors in these columns? I don't want to touch the query on the form because it is a client/server app and the customers are spread out all over the state of New Mexico.

  • What is the database string used in the connection box for sybase-merant?

    I am using report wizard of Reports Developer 9 to create report for Sybase database. Assume the Sybase database uses the following setting:
    user: sa
    password: password
    computer IP address: 10.0.187.30
    computer host name: development
    port number: 2468
    database name: TEST01
    If I use sybase-merant (JDBC Query) as the data connection, I need to input USERNAME, PASSWORD and DATABASE at the Connection Box. What should I input for the DATABASE? I have inputted "sa" as the USERNAME and "password" as the PASSWORD. When I inputted "10.0.187.30:2468:TEST01" as the DATABASE, I got error which indicated the data source cannot be connected. I have also tried "10.0.187.30,2468:TEST01", "10.0.187.30:2468", "10.0.187.30,2468" and "10.0.187.30", but none of them worked.
    Thank you.
    - Man Ip

    Hello,
    If you go through the link, mentioned above, an entry is needed to register a JDBC-Driver for your database(sybase).
    Driver entry contains a attibute "connectString", which contain the
    connection syntax to the datbase.
    connectString = "mainProtocol:subProtocol://databaseName"
    mainProtocol and subProtocol part of the connection String are defined in config file and "databaseName" has to be mentioned in JDBC Query Connection Diloag.
    Sample databasename : database:portnumber
    Here database refer to the sybase database user want to connect and portnumber : port on which its running(it will be normally 4100 or 5000).
    Please refer the comments in file ORACLE_HOME/reports/conf/JDBCPDS.CONF for more detail.
    With Regards
    Reports team.

  • Finding number in a string

    I am trying to find a number in a string from my database to replace it.  Here is my funciton:
    function findUserID($friendsString, $userToFind){
              echo $friendsString . " " . $userToFind;
              $pos = strpos($friendsString,$userToFind);
              if($pos){
                        return true;
              return false;
    it returns "25,29 25".  How can it not find 25 in that string?

    I understand that it starts at 0.  it should still work.  i had it working before.  i must've changed something. 
    here is my code for passing to the function:
    $query = mysql_query("SELECT friends, pendingFriendRequest
    FROM members
    WHERE username = '$userID'");
    if (mysql_affected_rows() > 0) {
              $row = mysql_fetch_array($query) or die(mysql_error());
              $friends = $row['friends'];
              $pendingFriends = $row['pendingFriendRequest'];
    // If the user exists in the waiting list, then
    //continue (we must confirm that they are first by checking the DB
    $test = findUserID($pendingFriends, "25");
    if($test){
              // If they are, then continue to add them
              $test = confirmFriend($pendingFriends, "25");
              if($test) {
                        echo "<br />You have confirmed " . findUserName(24) . "as a friend.";
              } else {
                        echo "<br />Error: Please try again, or contact us.";
    } else {
              echo "<br />Error: You either have this person as a friend already, or there was an internal error.";

  • How to Find the number of Databases in a server.

    HI,
    Please tell me how to find the number of Databases are in a server . when the DB is not up.
    ps -ef | grep ora_
    This i know whether our DB is up or not. But i want to know how many databases are in a server .If the database is down .
    Cheers,
    Gobi.

    Hi,
    [oracle@oralinux admin]$ lsnrctl status
    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 01-DEC-2006 16:25:41
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    TNS-01169: The listener has not recognized the password
    [oracle@oralinux admin]$
    Plz give me the solution.
    Cheers ,
    Gobi.

  • Number to fractional string not working correctly

    I am measuring some parameters from oscillsocpe. i need to write these values to text file for which i am using write to spreadsheet, but what is happening is it is always writing zero value to file, on debugging i found that while converting from number to string it is always writng zero to string indicator, then separately i used that number to fractional string indicator and it is always showing zero in string output , i dont why it is happening.
    Attached below is the code.
    Solved!
    Go to Solution.
    Attachments:
    Time meas sub.vi ‏31 KB

    Ranjeet Singh and Norbert_B
    Thanks for ther reply
    Ranjeet singh,
    number to fractional string is working correctly, there is some other problem, because inly when i am executing this code converting this rise time value to string then only it is showing zero, otherwise for any random number if i am checking this number to fractional string is working correctly.
    Norbert_B
    i dont need to convert it back to string that i am doing only to check why it is showing zero value on converting number to string , because when i was writing to spreadsheet file it was always writing zero value, so when checked that code it was observed that while converting from array of numbers to spreadsheet string it is always writing zero value that's why i am doing it here just to check why it is not converting to string, but your suggestion helped in focussing the string that i am gettong from VISA read, i can use that  in last case if i wont be able to find the solution but main problem is that why i am not able to convert it back to string, why it is showing zero because it is because of this only write to spreadsheet is always showing zero value .

  • SQ01 restricting the number of database accesses

    Hi,
    I created a report using SAP Query (SQ01). When I run the query a dialog box appears asking the maximum number of database accesses.
    The value entered here directly affects the result of the report. The user has to change the value manually in order to see the complete set of results, set it 999999 for example.
    I want to get rid of that dialog box. Is it possible?
    If not can I change the default value '100' to anything I want?
    Thanks...

    That is true, it is a bit loaded report. It includes additional fields, selections and another select statement for each record. I tried to keep it as simple as possible but that is the only way that I could think of.
    The joins are:
    VBAK - VBAP
    VBAP - VBUP
    VBAP - MARD
    VBAP - MARA
    The report basicly brings the stock amounts of open sales order items.  In addition the total consignment level for that item is also requested, so I wrote a select statement   in record processing which finds the total consignment level from the MKOL table for that item. I could not simply add MKOL to my join list because it than divides each item to the number of vendors that exists in the MKOL table. The user is not interested in the amount for each vendor, only the total amount.
    The performance is not that bad, but as I said before the result of the report is different for different limits of database accesses.
    Is there a way to omit the limit?

  • BerkeleyDB + Tomcat + large number of databases.

    Hi all,
    for my bioinformatics project, I'd like to transform a large number of SQL databases (see http://hgdownload.cse.ucsc.edu/goldenPath/hg18/database/ ) to a set of read only BerkeleyDB JE databases.
    In my web application , the Environment would be loaded in tomcat and one can imagine a servlet/jsp querying/browsing each database.
    Then I wonder what are the best practices ?
    Should I open each JE Database for each http request and close it at the end of the request ?
    Or should I just let each Database open once it has been opened ? Wouldn't it be a problem if all the database and secondary databases are all open ? Can I share one Database for some multiple threads ?
    Something else ?
    Many thanks for your help
    Thanks in advance
    Pierre

    Hi Pierre,
    Normally you should keep the Environment and all Databases open for the duration of the process, since opening and closing a database (and certainly an environment) per request is expensive and unnecessary. However, each open database takes some memory, so if you have an extremely large number of databases (thousands or more), you should consider opening and closing the databases at each request, or for better performance keeping a cache of open databases. Whether this is necessary depends on how much memory you have and how many databases.
    You'll find the answer to your multi-threading question in the getting started guide.
    Please read the docs and also search the forum.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Number to fractional string

    hi ....
    i am very new to the NI Labview, anybody help me to explain the  number to fractional string, which are used in following block diagram.
    what is the motto behind using the number to fractional sting and please do not suggest me to read context help on this topic. 
    Attachments:
    tab-grap1407.vi ‏152 KB

    23235573 wrote:
    hi ....
    ... please do not suggest me to read context help on this topic. 
    Hi 23235573,
    why not? The context help describes what this function do. You can convert a number to a fractional string.
    Mike

  • RE: Number if databases in Directory Server 5.2

    Hi,
    Im looking to find out what the maximum number of databases should be in Directory Server 5.2.
    I know that previously Sun had recommended that a certain number not be exceeded, but Im now looking for figures.
    If there is any other information available, please post it.
    thanks
    ndrb

    Just for the fun of testing, we did create more than 50 databases... The server works ok, but some operations start to be less responsive...
    I would not recommend to use this in real deployments if there is also a lot of entries in the databases.
    Regards
    Ludovic.

  • How I can log Sequence File version number to database?

    Hi,
    As in the subject.
    How I can log Sequence File version number to database?
    There is nothing like that under Logging object.

    Do you need it in a separate field in the databse?
    One option is to just add it as an additional result in a step in your sequence file. 
    RunState.SequenceFile.AsPropertyObjectFile.Version
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Javascript Error! Error number: 45 error string: Objects is invalid line: 387, Line 428

    I am running Indesign CS3 on an XP computer. I installed a plugin for barcodes from teacup Software, Barcodemaker for Indesign CS3 win and this has crashed my Indesign CS3.
    Everytime I startup I get this Javascript error! Error number: 45 Error string: objects is invalid line: 387 I hit enter and iget the same message line: 428.
    The adobe knowledge base has a message http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402389&sliceId=2
    I can't find the file Pluginconfig.txt on my computer to delte as suggested in this article. Can anyone help with this issue.
    I have uninstalled the plugin and I have try to repair/reinstall my copy of Indesigh CS3 version 5.0.4 but it still is not possible to use Indesign.
    Has anyone encoutered this problem? Can you tell me where to find this file Pluginconfig.txt.

    C:\Documents and Settings\[username]\Local Settings\Application Data\Adobe\InDesign\Version 5.0\Caches\InDesign Recovery
    This is a hidden folder, so you'll need to set Explorer to show hidden files if you haven't already. Start by just renaming the folder to _InDesign Recovery and it should rebuild on the next launch if this is going to work. If it doesn't work, you won't have lost anything.
    Might work even better if you were to try a system restore, however. Do you have a restore point from before the plugin was installed?
    Peter

  • Latency increase with large number of databases

    Hello,
    I'm testing how BDB performs on random updates as the number of databases increases. I'm seeing increase in latency as the number of databases goes up. and strace shows that more time is spent on futex() when there are more databases. Is this an expected behavior?
    Thanks!
    --Michi
    Set Up:
    <li> BDB version: db-5.1.19
    <li> Operating system: RHEL4
    <li> Number of records: 2.5M
    <li> Record key size: 32B
    <li> Record value size: 4KB
    <li> Page size: 32KB
    <li> Access method: BTREE
    <li> Records are inserted into a database based on the hash of the key.
    <li> BDB is accessed via RPC server
    <li> RPC server thread pool size: 64. All the threads share the same env and db handles.
    <li> Number of RPC client process: 64
    <li> Each client does random updates. Throughput is throttled to be about 250 requests/sec, which means each process does about 4 requests/sec.
    Flags used for env and db:
    ENV flag DB_THREAD | DB_RECOVER | DB_CREATE | DB_READ_COMMITTED | DB_INIT_TXN |
             DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL
    DB flag DB_AUTO_COMMIT | DB_CREATE | DB_THREADDB_CONFIG
    mutex_set_max 2000000
    set_cachesize 1 0 1
    set_lk_max_objects 2000
    set_lk_max_locks 10000
    set_lk_max_lockers 10000
    set_lg_regionmax 8388608
    set_lk_detect DB_LOCK_DEFAULT
    set_thread_count 20000
    set_lg_max 1073741824 Result
    Number of databases: 256
    Average latency: 52 milliseconds
    strace output
    % time     seconds  usecs/call     calls    errors syscall
    64.74  121.199645        1032    117398           recvfrom
    17.21   32.217921         487     66104      9335 futex
      8.76   16.409370        2724      6024           pread
      2.47    4.630256         813      5694           fdatasync
      2.19    4.102371         105     39162           sendto
    Number of databases: 512
    Average latency: 123 milliseconds
    strace output
    % time     seconds  usecs/call     calls    errors syscall
    58.33  121.384230         933    130158     20045 futex
    23.06   47.977408         383    125146           recvfrom
      4.41    9.167276        1425      6431           pread
      3.11    6.472676         155     41716           sendto
      3.08    6.414824         366     17506           sched_yield
    Number of databases: 1024
    Average latency: 133 milliseconds
    strace output
    % time     seconds  usecs/call     calls    errors syscall
    70.46  102.981390        1077     95656     14884 futex
      9.88   14.435594         169     85256           recvfrom
      5.48    8.008787        1825      4389           pread
      3.13    4.576880         368     12436           sched_yield
      2.98    4.351077         153     28415           sendto
    ...

    Hi James,
    Presently, we never evict a DB after it's opened or encountered during recovery. Each DB takes about 2,000 bytes. So if you have 16K DBs you need approximately 32MB of memory, assuming all of them could be opened or recovered during a process lifetime. Unfortunately, even closing them does not cause them to be evicted. If you encounter them during recovery, this will also pull them into memory.
    We have an FAQ entry on this:
    http://www.oracle.com/technology/products/berkeley-db/faq/je_faq.html#37
    So you will need a bigger cache size. If you are encountering this during recovery, then you could try a more frequent checkpoint interval.
    I hope this is useful.
    Regards,
    Charles Lamb

  • Regexp substr to select the max number out an string

    Hi all,
    I need a solution for a query.
    I,ve a query to select the lowest number in a string.
    select regexp_substr('9 - 10','\d+')
    from dual;
    9
    So this is the query I need to select the min number in he string.
    but now I need it to give me the highest nr in the string .
    the output that I need =10
    Can someone help me pleasse?
    My regards

    Caroline wrote:
    select regexp_substr('9 - 10','\d+')
    from dual;
    9
    So this is the query I need to select the min number in he string.Actually it only gives you the first number in the string, not the minimum number.
    SQL> select regexp_substr('9 - 10','\d+')
      2  from dual;
    R
    9If your string is the other way around it will give you 10 instead of 9.
    SQL> ed
    Wrote file afiedt.buf
      1  select regexp_substr('10 - 9','\d+')
      2* from dual
    SQL> /
    RE
    10You probably want something like...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select '9 - 10' as txt from dual)
      2  -- end of sample data
      3  select min(num) as min_num, max(num) as max_num
      4  from (
      5        select to_number(trim(REGEXP_SUBSTR (txt, '[^-]+', 1, level))) as num
      6        from t
      7        connect by level <= length(regexp_replace(txt,'[^-]*'))+1
      8*      )
    SQL> /
       MIN_NUM    MAX_NUM
             9         10
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select '10 - 9' as txt from dual)
      2  -- end of sample data
      3  select min(num) as min_num, max(num) as max_num
      4  from (
      5        select to_number(trim(REGEXP_SUBSTR (txt, '[^-]+', 1, level))) as num
      6        from t
      7        connect by level <= length(regexp_replace(txt,'[^-]*'))+1
      8*      )
    SQL> /
       MIN_NUM    MAX_NUM
             9         10
    SQL>

Maybe you are looking for

  • Your brand-new FCP HD editing suite!

    Hey I'm planning on building a new HD-editing suite, but I need to convince my boss to go the FCP way (instead of Avid). After showing the huge price-difference, he said I should build a complete editingsuite on paper. As I'm not all that experienced

  • Embedding Adobe TV

    Hey Fellow Flex'ers, I was just thinking how nice it would be to share share some of the adobe Tv media with my users, However I wa sthinking there could be problems,in using adobes tutorials,etc. Is it safe to embed the media player on my site,witho

  • How to pass the value to the screen through call transaction

    hi i have got an requirement for which i have to call MIGO tcode through call transaction command. But here one list box GODYNPRO-ACTION (screen field) contains list of values . my requirement is when i will call the tcode MIGO it should take default

  • Yosemite can't see connected iPhone in Finder

    After upgrading to Yosemite I cannot longer access the iPhone Pictures or Video from the device itself when connected via USB. Basically is nowhere to be found in  Finder. Am I missing something? Thanks for the help! -C

  • Workshop never connects to the WebLogic Server

    When I start WLS 7.02, the Workshop product with 7.02 does not show connected. Therefore, from Workshop, I can not deploy to or shutdown the WLS server. What am I missing? Thanks, DLG