Using a treemap for lookup in a jsp grid

Hi
          I am trying to use a treemap to lookup the names for id´s in a table.
          for example.
          Lookup table:
          ID.....Name
          1......carrot
          2......bananna
          the main table looks like this:
          row....id
          1.......2
          2.......1
          3.......1
          4.......2
          in my jsp page I want it to look like this:
          row....id
          1......bananna
          2......carrot
          3......carrot
          4......bananna
          I have the lookup table loaded into a treemap in the begin part of my pageflow.
          is there a special way that I can refer to the treemap in a grid view, for example, with a netui-data:expressionColumn ?
          thanks for any help.
          /Nigel
          Message was edited by NigelGuest at Feb 3, 2005 2:34 AM

hi,
          important here to aknowledge that the {} databinding are compile time. This implies a whole lot of restrictions. The scenario below works for me:
          - getLookupMap in the pageflow returns the lookup map
          - getList in the pageflow returns the list
          The following code then works for me
          <!-- in the heading of my JSP -->
          // get the lookup map into pagecontext
          <netui-data:getData resultId="lookup"
          value="{pageFlow.lookupMap}"/>
          // pull down as a new page attribute
          <%
          Map lookup = (Map)pageContext.getAttribute("lookup");
          %>
          Now, in my repeater ( of gridview ) I implement the column showing the actual mapped value like this:
          // to get the item key
          <netui-data:getData resultId="key"
          value="{container.item}"/>
          // to set the mapped attribute value
          <%
          pageContext.setAttribute(
          "lookupValue",
          lookup.get(pageContext.getAttribute("key")));
          %>
          // to render the mapped attribute value
          <netui:label value="{pageContext.lookupValue}"
          defaultValue=" " />
          Probably not exactly what you asked for, but hopefully close enough to guide you in the right direction.
          - Anders M.

Similar Messages

  • Using GoldenGate SQLEXEC For Lookup Queries

    My target table T is the rsult of joining two source tables - S1 and S2. For each new row in S1 I need to look up S2 attributes and apply combined result to T.
    I am not able to find any extamples of this functionality inplemented on the source. All examples I have seen are implemented in the MAP statement on the target.
    I was able to use SQLEXEC on the target to call lookup proc on the source via dblink. That seems backwards.
    Is there a better way to do this?

    Looks like the solution is to resolve mapping on the source.
    After I configured mapping on the source the data is no longer replicating.
    The extract is running without complaints and correctly reports DMLs and successful EXECSQL calls.
    The replicat is also running without complaints, it just sits there as if it has nothing to do.
    What am I doing wrong?
    Attaching reports.
    GGSCI (pkdb5) 1> view report ext1
    Oracle GoldenGate Capture for Oracle
    Version 11.1.1.0.0 Build 078
    HP/UX, IA64, 64bit (optimized), Oracle 10 on Jul 28 2010 15:49:30
    Copyright (C) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
    Starting at 2011-03-30 14:39:47
    Operating System Version:
    HP-UX
    Version U, Release B.11.31
    Node: pkdb5
    Machine: ia64
    soft limit hard limit
    Address Space Size : unlimited unlimited
    Heap Size : 4294967296 4294967296
    File Size : unlimited unlimited
    CPU Time : unlimited unlimited
    Process id: 1412
    Description:
    ** Running with the following parameters **
    EXTRACT ext1
    TARGETDEFS /u02/GG/source/dirsql/testdef.sql
    USERID ggs_owner, PASSWORD *********
    RMTHOST pkdb6, MGRPORT 7809
    RMTTRAIL /u01/GG/source/dirdat/rt
    TRANLOGOPTIONS ASMUSER goldgatesys@PK5_ASM, ASMPASSWORD ***********
    TABLE atrifonov.test1, SQLEXEC (SPNAME get_lkp, PARAMS (p_col1 = col1)), COLMAP (col1 = col1, col2 = col2, col3 = get_lkp.p_col2), TARG
    ET dwh.test1;
    2011-03-30 14:39:47 INFO OGG-01635 BOUNDED RECOVERY: reset to initial or altered checkpoint.
    Bounded Recovery Parameter:
    Options = BRRESET
    BRINTERVAL = 4HOURS
    BRDIR = /u02/GG/source
    CACHEMGR virtual memory values (may have been adjusted)
    CACHEBUFFERSIZE: 64K
    CACHESIZE: 8G
    CACHEBUFFERSIZE (soft max): 4M
    CACHEPAGEOUTSIZE (normal): 4M
    PROCESS VM AVAIL FROM OS (min): 16G
    CACHESIZEMAX (strict force to disk): 13.99G
    Database Version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for HPUX: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Database Language and Character Set:
    NLS_LANG environment variable specified has invalid format, default value will be used.
    NLS_LANG environment variable not set, using default value AMERICAN_AMERICA.US7ASCII.
    NLS_LANGUAGE = "AMERICAN"
    NLS_TERRITORY = "AMERICA"
    NLS_CHARACTERSET = "UTF8"
    Warning: your NLS_LANG setting does not match database server language setting.
    Please refer to user manual for more information.
    Maximum supported ASM read buffer size is 28 KB
    Maximum supported ASM read buffer size is 28 KB
    2011-03-30 14:39:48 INFO OGG-00546 Default thread stack size: 262144.
    2011-03-30 14:39:48 INFO OGG-00547 Increasing thread stack size from 262144 to 1048576.
    2011-03-30 14:39:48 INFO OGG-01515 Positioning to begin time Mar 30, 2011 2:39:38 PM.
    2011-03-30 14:40:10 INFO OGG-01516 Positioned to (Thread 1) Sequence 11498, RBA 326680592, SCN 0.0, Mar 30, 2011 2:39:38 PM.
    2011-03-30 14:40:10 INFO OGG-01515 Positioning to begin time Mar 30, 2011 2:39:38 PM.
    2011-03-30 14:40:32 INFO OGG-01516 Positioned to (Thread 2) Sequence 10747, RBA 343953424, SCN 0.0, Mar 30, 2011 2:39:38 PM.
    2011-03-30 14:40:32 INFO OGG-01517 Position of first record processed for Thread 2, Sequence 10747, RBA 343953424, SCN 4.269826912
    1, Mar 30, 2011 2:39:40 PM.
    2011-03-30 14:40:32 INFO OGG-01517 Position of first record processed for Thread 1, Sequence 11498, RBA 326680592, SCN 4.269826912
    2, Mar 30, 2011 2:39:41 PM.
    2011-03-30 14:40:37 INFO OGG-01226 Socket buffer size set to 27985 (flush size 27985).
    2011-03-30 14:40:37 INFO OGG-01055 Recovery initialization completed for target file /u01/GG/source/dirdat/rt000022, at RBA 1233.
    2011-03-30 14:40:37 INFO OGG-01478 Output file /u01/GG/source/dirdat/rt is using format RELEASE 10.4/11.1.
    2011-03-30 14:40:37 INFO OGG-01026 Rolling over remote file /u01/GG/source/dirdat/rt000023.
    2011-03-30 14:40:37 INFO OGG-01053 Recovery completed for target file /u01/GG/source/dirdat/rt000023, at RBA 872.
    2011-03-30 14:40:37 INFO OGG-01057 Recovery completed for all targets.
    ** Run Time Messages **
    TABLE resolved (entry ATRIFONOV.TEST1):
    TABLE ATRIFONOV.TEST1, SQLEXEC (SPNAME get_lkp, PARAMS (p_col1 = col1)), COLMAP (col1 = col1, col2 = col2, col3 = get_lkp.p_col2), TA
    RGET dwh.test1;
    Using the following key columns for source table ATRIFONOV.TEST1: COL1.
    2011-03-30 14:43:02 INFO OGG-01021 Command received from GGSCI: STOP.
    * ** Run Time Statistics ** *
    Report at 2011-03-30 14:43:04 (activity since 2011-03-30 14:41:53)
    Output to /u01/GG/source/dirdat/rt:
    From Table ATRIFONOV.TEST1 to DWH.TEST1:
    # inserts: 1
    # updates: 0
    # deletes: 0
    # discards: 0
    Stored procedure get_lkp:
    attempts: 1
    successful: 1
    REDO Queue Statistics
    -- Write Operations ------------------ -- Read Operations -------------------
    Queue Name Size Count Waited Signaled Count Waited Signaled
    +++consumer 1 Control 128 0 0 0 0 0 0
    coordinator Control 128 1 0 0 1 0 0
    coordinator Records 2048 1 0 0 1 122 1
    Redo Thread 1 Control 128 1 0 0 1 0 0
    Redo Thread 1 Records 2048 1 0 0 1 44 1
    Redo Thread 2 Control 128 1 0 0 1 0 0
    Redo Thread 2 Records 2048 0 0 0 0 149 0
    CACHE OBJECT MANAGER statistics
    CACHE MANAGER VM USAGE
    vm current = 64K vm anon queues = 64K
    vm anon in use = 0 vm file = 0
    vm used max = 64K ==> CACHE BALANCED
    CACHE CONFIGURATION
    cache size = 8G cache force paging = 13.99G
    buffer min = 64K buffer highwater = 4M
    pageout eligible size = 4M
    CACHE Transaction Stats
    trans active = 0 max concurrent = 5
    non-zero total = 2.89K trans total = 2.89K
    CACHE File Caching
    disk current = 0 disk total = 0
    disk caching = 0 file cached = 0
    file retrieves = 0
    CACHE MANAGEMENT
    buffer links = 0 anon gets = 0
    forced unmaps = 0 cnnbl try = 0
    cached out = 0 force out = 0
    Allocation Request Distribution
    < 128B: 0
    128B: 1 0 | 512B: 0 0
    2K: 0 0 | 8K: 0 0
    32K: 0 0 | 128K: 0 0
    512K: 0 0 | 2M: 0 0
    8M: 0 0 | 32M: 0 0
    128M: 0 0 | 512M: 0 0
    2G: 0 0 | 8G: 0
    Cached Transaction Size Distribution
    0: 2.89K
    < 4K: 1
    4K: 0 0 | 16K: 0 0
    64K: 0 0 | 256K: 0 0
    1M: 0 0 | 4M: 0 0
    16M: 0 0 | 64M: 0 0
    256M: 0 0 | 1G: 0 0
    4G: 0 0 | 16G: 0 0
    64G: 0 0 | 256G: 0 0
    1T: 0 0 | 4T: 0 0
    16T: 0 0 | 64T: 0 0
    256T: 0 0 |1024T: 0 0
    QUEUE Statistics:
    num queues = 15 default index = 0
    cur len = 0 max len = 0
    q vm current = 0 vm max = 0
    q hits = 0 q misses = 1
    queue size q hits curlen maxlen cannibalized
    0 64K 0 1 1 0
    1 128K 0 0 0 0
    2 256K 0 0 0 0
    3 512K 0 0 0 0
    4 1M 0 0 0 0
    5 2M 0 0 0 0
    6 4M 0 0 0 0
    7 8M 0 0 0 0
    8 16M 0 0 0 0
    9 32M 0 0 0 0
    10 64M 0 0 0 0
    11 128M 0 0 0 0
    12 256M 0 0 0 0
    13 512M 0 0 0 0
    14 1G 0 0 0 0
    ================================================================================
    CACHE POOL #0
    POOL INFO group: ext1 id: p1412_Redo Thread 2 instance: 2 tid: 0000000000000007
    trans active = 0 trans concurrent (max) = 3
    trans total = 2.18K (2230 )
    flag = 0x00000005
    last error = (0=<none>)
    Allocation Request Distribution
    < 128B: 0
    128B: 0 0 | 512B: 0 0
    2K: 0 0 | 8K: 0 0
    32K: 0 0 | 128K: 0 0
    512K: 0 0 | 2M: 0 0
    8M: 0 0 | 32M: 0 0
    128M: 0 0 | 512M: 0 0
    2G: 0 0 | 8G: 0
    ================================================================================
    CACHE POOL #1
    POOL INFO group: ext1 id: p1412_Redo Thread 1 instance: 1 tid: 0000000000000006
    trans active = 0 trans concurrent (max) = 3
    trans total = 724 (724 )
    flag = 0x00000005
    last error = (0=<none>)
    Allocation Request Distribution
    < 128B: 0
    128B: 1 0 | 512B: 0 0
    2K: 0 0 | 8K: 0 0
    32K: 0 0 | 128K: 0 0
    512K: 0 0 | 2M: 0 0
    8M: 0 0 | 32M: 0 0
    128M: 0 0 | 512M: 0 0
    2G: 0 0 | 8G: 0
    ================================================================================
    CACHE POOL #2
    POOL INFO group: ext1 id: p1412_ORA-LOB-MEMPOOL instance: 0 tid: 0000000000000000
    trans active = 0 trans concurrent (max) = 0
    trans total = 0 (0 )
    flag = 0x00000009
    last error = (0=<none>)
    Allocation Request Distribution
    < 128B: 0
    128B: 0 0 | 512B: 0 0
    2K: 0 0 | 8K: 0 0
    32K: 0 0 | 128K: 0 0
    512K: 0 0 | 2M: 0 0
    8M: 0 0 | 32M: 0 0
    128M: 0 0 | 512M: 0 0
    2G: 0 0 | 8G: 0
    ================================================================================
    CACHE POOL #3
    POOL INFO group: ext1 id: p1412_BLOB instance: 0 tid: 0000000000000000
    trans active = 0 trans concurrent (max) = 0
    trans total = 0 (0 )
    flag = 0x00000000
    last error = (0=<none>)
    Allocation Request Distribution
    < 128B: 0
    128B: 0 0 | 512B: 0 0
    2K: 0 0 | 8K: 0 0
    32K: 0 0 | 128K: 0 0
    512K: 0 0 | 2M: 0 0
    8M: 0 0 | 32M: 0 0
    128M: 0 0 | 512M: 0 0
    2G: 0 0 | 8G: 0
    QUEUE Statistics:
    num queues = 15 default index = 0
    cur len = 0 max len = 0
    q vm current = 0 vm max = 0
    q hits = 0 q misses = 1
    queue size q hits curlen maxlen cannibalized
    0 64K 0 1 1 0
    1 128K 0 0 0 0
    2 256K 0 0 0 0
    3 512K 0 0 0 0
    4 1M 0 0 0 0
    5 2M 0 0 0 0
    6 4M 0 0 0 0
    7 8M 0 0 0 0
    8 16M 0 0 0 0
    9 32M 0 0 0 0
    10 64M 0 0 0 0
    11 128M 0 0 0 0
    12 256M 0 0 0 0
    13 512M 0 0 0 0
    14 1G 0 0 0 0
    ================================================================================
    CACHE POOL #0
    POOL INFO group: ext1 id: p1412_Redo Thread 2 instance: 2 tid: 0000000000000007
    trans active = 0 trans concurrent (max) = 3
    trans total = 2.18K (2230 )
    flag = 0x00000005
    last error = (0=<none>)
    Allocation Request Distribution
    < 128B: 0
    128B: 0 0 | 512B: 0 0
    2K: 0 0 | 8K: 0 0
    32K: 0 0 | 128K: 0 0
    512K: 0 0 | 2M: 0 0
    8M: 0 0 | 32M: 0 0
    128M: 0 0 | 512M: 0 0
    2G: 0 0 | 8G: 0
    ================================================================================
    CACHE POOL #1
    POOL INFO group: ext1 id: p1412_Redo Thread 1 instance: 1 tid: 0000000000000006
    trans active = 0 trans concurrent (max) = 3
    trans total = 724 (724 )
    flag = 0x00000005
    last error = (0=<none>)
    Allocation Request Distribution
    < 128B: 0
    128B: 1 0 | 512B: 0 0
    2K: 0 0 | 8K: 0 0
    32K: 0 0 | 128K: 0 0
    512K: 0 0 | 2M: 0 0
    8M: 0 0 | 32M: 0 0
    128M: 0 0 | 512M: 0 0
    2G: 0 0 | 8G: 0
    ================================================================================
    CACHE POOL #2
    POOL INFO group: ext1 id: p1412_ORA-LOB-MEMPOOL instance: 0 tid: 0000000000000000
    trans active = 0 trans concurrent (max) = 0
    trans total = 0 (0 )
    flag = 0x00000009
    last error = (0=<none>)
    Allocation Request Distribution
    < 128B: 0
    128B: 0 0 | 512B: 0 0
    2K: 0 0 | 8K: 0 0
    32K: 0 0 | 128K: 0 0
    512K: 0 0 | 2M: 0 0
    8M: 0 0 | 32M: 0 0
    128M: 0 0 | 512M: 0 0
    2G: 0 0 | 8G: 0
    ================================================================================
    CACHE POOL #3
    POOL INFO group: ext1 id: p1412_BLOB instance: 0 tid: 0000000000000000
    trans active = 0 trans concurrent (max) = 0
    trans total = 0 (0 )
    flag = 0x00000000
    last error = (0=<none>)
    Allocation Request Distribution
    < 128B: 0
    128B: 0 0 | 512B: 0 0
    2K: 0 0 | 8K: 0 0
    32K: 0 0 | 128K: 0 0
    512K: 0 0 | 2M: 0 0
    8M: 0 0 | 32M: 0 0
    128M: 0 0 | 512M: 0 0
    2G: 0 0 | 8G: 0
    EXT1.rpt: END
    GGSCI (pkdb6) 1> view report rep2
    Oracle GoldenGate Delivery for Oracle
    Version 11.1.1.0.0 Build 078
    HP/UX, IA64, 64bit (optimized), Oracle 11 on Jul 28 2010 16:09:58
    Copyright (C) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
    Starting at 2011-03-30 14:40:39
    Operating System Version:
    HP-UX
    Version U, Release B.11.31
    Node: pkdb6
    Machine: ia64
    soft limit hard limit
    Address Space Size : unlimited unlimited
    Heap Size : 4294967296 4294967296
    File Size : unlimited unlimited
    CPU Time : unlimited unlimited
    ...skipping...
    Oracle GoldenGate Delivery for Oracle
    Version 11.1.1.0.0 Build 078
    HP/UX, IA64, 64bit (optimized), Oracle 11 on Jul 28 2010 16:09:58
    Copyright (C) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
    Starting at 2011-03-30 14:40:39
    Operating System Version:
    HP-UX
    Version U, Release B.11.31
    Node: pkdb6
    Machine: ia64
    soft limit hard limit
    Address Space Size : unlimited unlimited
    Heap Size : 4294967296 4294967296
    File Size : unlimited unlimited
    CPU Time : unlimited unlimited
    Process id: 29967
    Description:
    ** Running with the following parameters **
    REPLICAT rep2
    ASSUMETARGETDEFS
    USERID ggs_owner, PASSWORD *********
    MAP atrifonov.test1, TARGET dwh.test1, KEYCOLS (col1);
    CACHEMGR virtual memory values (may have been adjusted)
    CACHEBUFFERSIZE: 64K
    CACHESIZE: 512M
    CACHEBUFFERSIZE (soft max): 4M
    CACHEPAGEOUTSIZE (normal): 4M
    PROCESS VM AVAIL FROM OS (min): 1G
    CACHESIZEMAX (strict force to disk): 881M
    Database Version:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for HPUX: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Database Language and Character Set:
    NLS_LANG environment variable specified has invalid format, default value will be used.
    NLS_LANG environment variable not set, using default value AMERICAN_AMERICA.US7ASCII.
    NLS_LANGUAGE = "AMERICAN"
    NLS_TERRITORY = "AMERICA"
    NLS_CHARACTERSET = "AL32UTF8"
    Warning: your NLS_LANG setting does not match database server language setting.
    Please refer to user manual for more information.
    Opened trail file /u01/GG/source/dirdat/rt000022 at 2011-03-30 14:40:39
    Switching to next trail file /u01/GG/source/dirdat/rt000023 at 2011-03-30 14:40:39 due to EOF, with current RBA 1233
    Opened trail file /u01/GG/source/dirdat/rt000023 at 2011-03-30 14:40:39
    2011-03-30 14:40:39 INFO OGG-01014 Positioning with begin time: Mar 30, 2011 2:40:23 PM, starting record time: Mar 3
    0, 2011 2:40:37 PM at extseqno 23, extrba 872.
    ** Run Time Messages **
    Opened trail file /u01/GG/source/dirdat/rt000023 at 2011-03-30 14:40:39
    Processed extract process graceful restart record at seq 23, rba 872.
    2011-03-30 14:43:10 INFO OGG-01021 Command received from GGSCI: STOP.
    * ** Run Time Statistics ** *
    Last record for the last committed transaction is the following:
    Trail name : /u01/GG/source/dirdat/rt000023
    Hdr-Ind : E (x45) Partition : . (x04)
    UndoFlag : . (x00) BeforeAfter: A (x41)
    RecLength : 30 (x001e) IO Time : 2011-03-30 14:41:50.000095
    IOType : 5 (x05) OrigNode : 255 (xff)
    TransInd : . (x03) FormatType : R (x52)
    SyskeyLen : 0 (x00) Incomplete : . (x00)
    AuditRBA : 11498 AuditPos : 327552200
    Continued : N (x00) RecCount : 1 (x01)
    2011-03-30 14:41:50.000095 Insert Len 30 RBA 931
    Name: DWH.TEST1
    Reading /u01/GG/source/dirdat/rt000023, current RBA 1080, 0 records
    Report at 2011-03-30 14:43:10 (activity since 2011-03-30 14:40:39)
    No records were replicated.
    Last log location read:
    FILE: /u01/GG/source/dirdat/rt000023
    SEQNO: 23
    RBA: 1080
    TIMESTAMP: Not Available
    EOF: YES
    READERR: 400
    CACHE OBJECT MANAGER statistics
    CACHE MANAGER VM USAGE
    vm current = 0 vm anon queues = 0
    vm anon in use = 0 vm file = 0
    vm used max = 0 ==> CACHE BALANCED
    CACHE CONFIGURATION
    cache size = 512M cache force paging = 881M
    buffer min = 64K buffer highwater = 4M
    pageout eligible size = 4M
    CACHE Transaction Stats
    trans active = 0 max concurrent = 0
    non-zero total = 0 trans total = 0
    CACHE File Caching
    disk current = 0 disk total = 0
    disk caching = 0 file cached = 0
    file retrieves = 0
    CACHE MANAGEMENT
    buffer links = 0 anon gets = 0
    forced unmaps = 0 cnnbl try = 0
    cached out = 0 force out = 0
    Allocation Request Distribution
    < 128B: 0
    128B: 0 0 | 512B: 0 0
    2K: 0 0 | 8K: 0 0
    32K: 0 0 | 128K: 0 0
    512K: 0 0 | 2M: 0 0
    8M: 0 0 | 32M: 0 0
    128M: 0 0 | 512M: 0 0
    2G: 0 0 | 8G: 0
    Cached Transaction Size Distribution
    0: 0
    < 4K: 0
    4K: 0 0 | 16K: 0 0
    64K: 0 0 | 256K: 0 0
    1M: 0 0 | 4M: 0 0
    16M: 0 0 | 64M: 0 0
    256M: 0 0 | 1G: 0 0
    4G: 0 0 | 16G: 0 0
    64G: 0 0 | 256G: 0 0
    1T: 0 0 | 4T: 0 0
    16T: 0 0 | 64T: 0 0
    256T: 0 0 |1024T: 0 0
    QUEUE Statistics:
    num queues = 15 default index = 0
    cur len = 0 max len = 0
    q vm current = 0 vm max = 0
    q hits = 0 q misses = 0
    queue size q hits curlen maxlen cannibalized
    0 64K 0 0 0 0
    1 128K 0 0 0 0
    2 256K 0 0 0 0
    3 512K 0 0 0 0
    4 1M 0 0 0 0
    5 2M 0 0 0 0
    6 4M 0 0 0 0
    7 8M 0 0 0 0
    8 16M 0 0 0 0
    9 32M 0 0 0 0
    10 64M 0 0 0 0
    11 128M 0 0 0 0
    12 256M 0 0 0 0
    13 512M 0 0 0 0
    14 1G 0 0 0 0
    ================================================================================
    CACHE POOL #0
    POOL INFO group: rep2 id: p29967_BLOB
    trans active = 0 trans concurrent (max) = 0
    trans total = 0 (0 )
    flag = 0x00000000
    last error = (0=<none>)
    Allocation Request Distribution
    < 128B: 0
    128B: 0 0 | 512B: 0 0
    2K: 0 0 | 8K: 0 0
    32K: 0 0 | 128K: 0 0
    512K: 0 0 | 2M: 0 0
    8M: 0 0 | 32M: 0 0
    128M: 0 0 | 512M: 0 0
    2G: 0 0 | 8G: 0

  • Create key mapping using import manager for lookup table FROM EXCEL file

    hello,
    i would like create key mapping while importing the values via excel file.
    the source file containing the key, but how do i map it to the lookup table?
    the properties of the table has enable the creation of mapping key. but during the mapping in import manager, i cant find any way to map the key mapping..
    eg
    lookup table contains:
    Material Group
    Code
    excel file contain
    MatGroup1  Code   System
    Thanks!
    Shanti

    Hi Shanti,
    Assuming you have already defined below listed points
    1)  Key Mapping "Yes" to your lookup table in MDM Console
    2) Created a New Remote System in MDM console
    3) proper rights for your account for updating the remote key values in to data manager through import manager.
    Your sample file can have Material Group and Code alone which can be exported from Data Manager by File-> Export To -> Excel, if you have  data already in Data Manager.
    Open your sample file through Import Manager by selecting  the remote system for which you want to import the Key mapping.
    (Do Not select MDM as Remote System, which do not allows you to maintain key mapping values) and also the file type as Excel
    Now select your Soruce and Destination tables, under the destination fields you will be seeing a new field called [Remote Key]
    Map you source and destination fields correspondingly and Clone your source field code by right clicking on code in the source hierarchy and map it to Remote Key if you want the code to be in the remote key values.
    And in the matching criteria select destination field code as a Matching field and change the default import action to Update NULL fields or UPDATED MAPPED FIELDS as required,
    After sucessfull import you can check the Remote Key values in Data Manager.
    Hope this helps
    Thanks
    Sowseel

  • How to use custumer DataTagsLibrary for BC4J in the JSP's with Struts Suppo

    I've been looking for a good tutorial to learn very well
    BC4J, DataTags Library for JSP , all with struts support.
    But it's dificult to join all this topics.
    Can someone help.
    If you have any answer for me, plesea send an e-mail to
    [email protected]

    Try these links:
    http://radio.weblogs.com/0118231/ - Look for the Toy Store demo.
    http://otn.oracle.com/sample_code/tutorials/bc4jvsm/content.html - The new Shopping Mall tutorial.
    http://otn.oracle.com/products/jdev/howtos/content.html - The JDeveloper how to list.
    Also, check frequently on the JDeveloper forum here on OTN.
    HTH.
    Thanks, George

  • I have always used Appleworks Drawing for making the frames and grid for my lesson plans. Any suggestions of what to use now?

    Please help!

    This depends on whether you need to open previously created AppleWorks documents. The only programs which can do this are EazyDraw (right) and Intaglio (though when I tested the demo it wouldn't open complex drawings such as the one below). If you are dealing with complex technical drawings EazyDraw is probably the best choice: it's about the same cost as the whole of iWork (when downloaded, and rather more expensive on a CD), but cheaper than some other vector based programs, and seems to handle the whole process well - though it does operate somewhat differently from AppleWorks. There is a much cheaper version available on the Mac App Store, but note that it does not open AppleWorks Draw Documents: neither does the latest version from their website (4.1.x) - for this you need 4.0.x 'Retro', also available from the website.
    If you are only concerned with making new documents, then you can do a certain amount in Pages: but a better bet might be Swift Publisher 2, which is a layout program with a library of clip-art. I use it in preference to Pages for layout, though not for word processing - it isn't really designed for that.
    EasyDraw is also a powerful drawing program: if you're not concerned with opening old AppleWorks documents the version from the Mac App Store is the one to go for.

  • Read data from MDM For Lookup and Flat table using MDM ABAP API

    Hi,
    I have requriment to read data from MDM from FLAT and Lookup table using MDM ABAP API. My design  is like this ,
    I have one ITEMS (Main table in MDM) and inside that i have one Lookup flat table ITEM_TYPE , my requriment is to read Item number and its related Item type.
    From ABAP.
    Please help if any body has any idea.
    Regards,
    Shyam

    HI Guys,
    I found my solution by myself. Below is the solution , hope this will help others:-
    Retrieve data from MDM  using MDM ABAP API.
    Step- 1. Create structure in SAP with the same name as that of MDM field code for MDM Main table.
    Step-2. Create another structure in SAP having all  lookup fields of MDM , fieldname in ECC must be same as that of MDM field
    code.
    Step-3.Create structure in SAP for  individual lookup field(Single Field only)   with the same name as MDM Field code.
    Step-4.
    DATA: IT_QUERY            TYPE STANDARD TABLE OF MDM_QUERY,  "MDM_QUERY_TABLE,
          WA_QUERY            TYPE  MDM_QUERY,
          WA_CDT_TEXT         TYPE  MDM_CDT_TEXT,
          IT_RESULT_SET_KEY   TYPE  MDM_SEARCH_RESULT_TABLE,
          WA_RESULT_SET_KEY   TYPE  MDM_SEARCH_RESULT,
          WA_STRING           TYPE  STRING.
    DATA:<Internal table> TYPE STANDARD TABLE OF <SAP Str Having all LOOKup Fields>    
    DATA: :<Internal table>TYPE STANDARD TABLE OF <SAP Str one LOOKup field>,
         <Workarea> LIKE LINE OF :<Internal table>.
    *PASS LOGICAL OBJECT NAME.
    V_LOG_OBJECT_NAME = 'Logical object name defined in Customization'.
    Define logon language, country & region for server
    WA_LANGUAGE-LANGUAGE = 'eng'.
    WA_LANGUAGE-COUNTRY = 'US'.
    WA_LANGUAGE-REGION = 'USA'.
    TRY.
        CREATE OBJECT LR_API
          EXPORTING
            IV_LOG_OBJECT_NAME = V_LOG_OBJECT_NAME.
    ENDTRY.
    CONNECT to repository. Apply particular logon language info
    CALL METHOD LR_API->MO_ACCESSOR->CONNECT
      EXPORTING
        IS_REPOSITORY_LANGUAGE = WA_LANGUAGE.
    *NOW PASS ITEM NO AND GET KEY FROM MDM.
    CLEAR WA_QUERY.
    WA_QUERY-PARAMETER_CODE  = <MDM FIELD CODE>. "Field code
    WA_QUERY-OPERATOR        = 'EQ'. "Contains
    WA_QUERY-DIMENSION_TYPE  = 1. "Field search
    WA_QUERY-CONSTRAINT_TYPE = 8. "Text search
    WA_STRING                = <Field Value>.
    GET REFERENCE OF WA_STRING INTO WA_QUERY-VALUE_LOW.
    APPEND WA_QUERY TO IT_QUERY.
    CLEAR WA_QUERY.
    *PASS ITEM NUMBER AND GET RELATED KEY FROM MDM.
    TRY.
        CALL METHOD LR_API->MO_CORE_SERVICE->QUERY
          EXPORTING
            IV_OBJECT_TYPE_CODE = <MDM Main Table>
            IT_QUERY            = IT_QUERY
          IMPORTING
            ET_RESULT_SET       = IT_RESULT_SET_KEY.
      CATCH CX_MDM_COMMUNICATION_FAILURE .
      CATCH CX_MDM_KERNEL .
      CATCH CX_MDM_NOT_SUPPORTED .
      CATCH CX_MDM_USAGE_ERROR .
      CATCH CX_MDM_PROVIDER .
      CATCH CX_MDM_SERVER_RC_CODE .
    ENDTRY.
    Pass record id into keys.
    LOOP AT IT_RESULT_SET_KEY INTO WA_RESULT_SET_KEY.
      WA_KEYS = WA_RESULT_SET_KEY-RECORD_IDS.
    ENDLOOP.
    WA_RESULT_SET_DEFINITION-FIELD_NAME = <Look field name>.
    APPEND WA_RESULT_SET_DEFINITION TO IT_RESULT_SET_DEFINITION.
    CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE
      EXPORTING
        IV_OBJECT_TYPE_CODE      = <MDM Main Table>
        IT_RESULT_SET_DEFINITION = IT_RESULT_SET_DEFINITION
        IT_KEYS                  = WA_KEYS
      IMPORTING
        ET_RESULT_SET            = IT_RESULT_SET.
    LOOP AT IT_RESULT_SET INTO
            WA_RESULT_SET.
    *PASS KEYS INTO MAIN TABLE TO GET Structure for FALT or Look up Table
      TRY.
          CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
            EXPORTING
              IV_OBJECT_TYPE_CODE = <MDM Main Table>
              IT_KEYS             = WA_KEYS
            IMPORTING
              ET_DDIC_STRUCTURE =<SAP Strct having all Look up fileds of MDM>         
      ENDTRY.
      LOOP AT <SAP Strct having all Look up fileds of MDM> INTO <Work area>.
        CLEAR WA_KEYS.
        APPEND <Work area>-field name TO WA_KEYS.
        CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
          EXPORTING
            IV_OBJECT_TYPE_CODE = <MDM Lookup table name>
            IT_KEYS             = WA_KEYS
          IMPORTING
            ET_DDIC_STRUCTURE   = <Single Structure in SAP For Lookup field>.
        READ TABLE <Single Structure in SAP For Lookup field>. INTO <Work Area> INDEX 1.
    Here you can get the value of realted lookup fields associated with main table data.
      ENDLOOP.
    ENDLOOP.
    LR_API->MO_ACCESSOR->DISCONNECT( ).
    Edited by: Shyam Babu Sah on Nov 24, 2009 4:52 AM

  • Reg : Checking for userLogin in each JSP using Filters

    Hi,
    To check for UserLogin in each JSP page i am using a filter.
    1) -downloaded accessflt.jar
    2) added the below in web.xml
    <filter>
    <filter-name>AccessFilter</filter-name>
    <filter-class>com.cj.accessflt.AccessFilter</filter-class>
    <init-param>
    <param-name>attribute</param-name>
    <param-value>OK</param-value>
    </init-param>
    <init-param>
    <param-name>redirect</param-name>
    <param-value>/index.jsp</param-value>
    </init-param>
    <init-param>
    <param-name>except</param-name>
    <param-value>/index.jsp</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>AccessFilter</filter-name>
    <url-pattern>/faces/*.jsp</url-pattern>
    </filter-mapping>
    3) when User logged in Setting
    session.setAttribute("OK","yes");
    I am getting the below error
    javax.servlet.jsp.JspException: Cannot find FacesContext
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:427)
         at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:125)
    Can anybody help me please,
    i will appreciate your help.
    Thanks,
    Sudha.

    Hi,
    I am doing any fundamental mistake??
    please anybody help or can u please tell me how to handle this situation
    when user hits any JSP needs to check wether he logged in or not.
    if he is not login needs to redirect to Login URL.
    read the previous posts but i am not clear
    please anybody help me
    Thanks,
    Arthi

  • What to use for web tier? JSP vs. UIX vs. uiXML

    Hi all,
    I am looking at the various options for rapid development using JDev. The target application is a standard web based app accessing an Oracle DB. It looks like BC4J is the way to go for the business & persistence layers. My question now is what should I use for the front-end? I am keen to start with a wizard of some sort and drop to code level (of whatever type) when required. But for starters I can see at least 4 options:
    - JSP for BC4J
    - Strut-Based JSP for BC4J
    - UIX JSP for BC4J
    - uiXML for BC4J
    All seem to generate (1st pass) something useful and appear to have a multitude of other virtues. But I'm sure some are better than others...Can anyone give some clear advice on these choices?
    Cheers.
    Anton.

    The ToyStore application seems "clearly" MVC architected, but it is unclear how much of that is accomplished via Wizards or other JDeveloper 'supporting technologies'The MVC comes automatically by using Struts. So this has nothing to do with wizards.
    ....or if the bulk of the application is hand-coded, and then packaged into Jdev projects etc. For example, are the JSP pages written from a Wizard skeleton, or from scratch? How about the struts-config.xml and struts action classes?I think ToyStore has large handcoded Parts. The wizard generated JSP skeleton does not really help you (except I you like to save to work of adding the "body" tag ;-) ). Same with struts-config and struts action classes. If your Application is a bit more complicated than a very simple "Show Data / Edit-Data - Application you will find you quickly writing your own actions / JSPs and so on. BTW: I do not think that this is really difficult..., once you have understood how.
    The implication is that BC4J Wizards and Struts Wizards (Struts or "Struts based JSP for Business Components") are useful starting points, but we are at a loss about how to combine them effectively.Use the to understand the concept, but do not rely on them.
    Is the primary utility of JDeveloper in BC4J Wizards?Some Wizards are really good and necessary (the simpler ones) and some are nice to give you some hints. JDeveloper will not write your application for you (and will not free you from reading a lot of documentation).
    Frank Brandstetter

  • Dreamweaver cs4 or mx2004 may built .war or .jar files for deployment in a jsp server (Tomcat) ? If no, and use Dreamweaver  how do these files ?

    Dreamweaver cs4 or mx2004 may built .war or .jar files for deployment in a jsp server (Tomcat) ? If no, and use Dreamweaver  how do these files ?

    if I use Eclipse IDE for compilation[make *.war & *.jar files from *.java like claimBeans.java], I must use also Eclipse for upload/deploy ? Or for upload ONLY I may use and dreamweaver ? The jsp section of dreamweaver, is for app not require compilation, like from Code from:JSP STANDARD TAG LIBRARY , only ?
    Basically whatever I may do with "JavaBeans", "Servlets" etc (*.java files) needed to get compiled, I may also do it with JSP STANDARD TAG LIBRARY etc NOT NEEDED Compilation, so if I do not understand how to compile&deploy *.war & *.jar files , I may use instead the latter way ?

  • JNDI lookup from a JSP page (URGENT)

    Hello,
    In my JSP I was using the "conn = DriverManager.getConnection("URL","username", "password")" scheme
    to connect to the database. I want to change this to use the JNDI for the database lookup in the same JSP.
    After creating this JSP i am using the include directive to include this JSP in all my other JSPs so that I can get the connection on other JSPs too.
    My included JSP where I use the JNDI look up is:
    <%@ page import="javax.naming.*,javax.sql.DataSource,java.sql.*" %>
    <%!
    static Connection conn;
    static Statement statement;
    static DataSource dataSource;
    %>
    try{
         Context ctx = new InitialContext();
         dataSource = (DataSource)ctx.lookup("MY_JNDI_NAME");
         conn = dataSource.getConnection();
         statement = conn.createStatement();
    }catch (Exception excep){
         out.println("Exception occurred "+excep);
    %>
    After I include this JSP in my main JSP, i get some error:
    188: Type expected. } catch (Throwable t) { ^ 1 error
    Can anyone here please help how to fix this.
    Thanks

    <%@ page import="javax.naming.*,javax.sql.DataSource,java.sql.*" %>
    <%!
    static Connection conn;
    static Statement statement;
    static DataSource dataSource;
    %><% // <-- you were missing a "<%" here
    try{
    Context ctx = new InitialContext();
    dataSource = (DataSource)ctx.lookup("MY_JNDI_NAME");
    conn = dataSource.getConnection();
    statement = conn.createStatement();
    }catch (Exception excep){
    out.println("Exception occurred "+excep);
    %>If I run that code in tomcat I get "Exception occurred javax.naming.NameNotFoundException: Name MY_JNDI_NAME is not bound in this Context". Which is what I would expect.
    btw: You really shouldn't be doing this stuff in a jsp.

  • Fund transfer module for online banking in jsp

    i am working on safe and secured internet banking project . currently working on fund transfer module. any particular user can transfer money from his/her account to any account.my first jsp file for this is:- fundtrans.jsp
    in this jsp page there are 2 comboboxes :- from account and to account , i m getting accounts in these comboboxes from database.in my case i m using saving table where all information about user's saving account is placed.
    fundtrans.jsp:-
    <%@ page import="java.util.*, java.lang.*, java.sql.*" %>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <table width="1024" border="0" cellpadding="0" cellspacing="0">
    <!--DWLayoutTable-->
    <tr>
    <td width="119" height="164"></td>
    <td width="152"></td>
    <td width="162"></td>
    <td width="147"></td>
    <td width="444"></td>
    </tr>
    <tr>
    <td height="32"></td>
    <td valign="top">From Account</td>
    <td></td>
    <td valign="top">
    <form name="form1" method="post" action="">
    <label>
    // combobox 1 which gets account_no from database from which transfer to be made
    <select name="select2">
                   <%
              // code for getting account_no from database table saving     
              try     {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection con = DriverManager.getConnection("jdbc:mysql://mridul:3306/bank","root" ,"root");
    PreparedStatement ps;
    Statement st=con.createStatement();
    ResultSet rs = st.executeQuery("select * from saving where saving.username = '" + session.getAttribute( "theName" ) + "'");
    %>     
    <%
         while(rs.next())
         String Account =rs.getString("account_no"); %>
    <option value=""> <%= Account %> </option>
    <%}%>
    <%
    rs.close();
    st.close();
    con.close();
    }%><%      
    catch(Exception e)
    e.printStackTrace();     
    %>
    </select>
    </label>
    </form> </td>
    <td></td>
    </tr>
    <tr>
    <td height="81"></td>
    <td> </td>
    <td></td>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td height="34"></td>
    <td valign="top">To Account </td>
    <td></td>
    <td valign="top"><form name="form2" method="post" action="">
    <label>
    // combobox 2 which gets account_no from database to which transfer is made
    <select name="select">
              <%
    //this gets account_no from database table saving and placed in combobox          
    try     {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
         Connection con = DriverManager.getConnection("jdbc:mysql://mridul:3306/bank","root" ,"root");
         Statement st=con.createStatement();
         PreparedStatement ps1 = con.prepareStatement("select distinct account_no from saving");
    ResultSet rs=ps1.executeQuery();
         System.out.println("SECOND Succesfully Executed");
    %>     
    <%
         while(rs.next())
         String Accountno = rs.getString("account_no"); %>
    <option value=""> <%=Accountno %> </option>
    <%}%>
    <%
         rs.close();
    st.close();
    con.close();
    }%><%      
    catch(Exception e)
    e.printStackTrace();     
    %>
    </select>
    </label>
    </form> </td>
    <td></td>
    </tr>
    <tr>
    <td height="52"></td>
    <td> </td>
    <td></td>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td height="34"></td>
    <td valign="top">Amount</td>
    <td></td>
    <td valign="top"><form name="form3" method="post" action="">
    <label>
    // this is text box in which user gives amount to be transfered
    <input type="text" name="bal">
    </label>
    </form> </td>
    <td></td>
    </tr>
    <tr>
    <td height="83"></td>
    <td> </td>
    <td> </td>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td height="37"></td>
    <td> </td>
    //this is a submitt type button which goes to the update.jsp for further processing
    <td valign="top"><form name="form4" method="post" action="update.jsp">
    <label>
    <input type="submit" name="b4" value="continue">
    </label>
    </form>
    </td>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td height="467"></td>
    <td> </td>
    <td> </td>
    <td></td>
    <td></td>
    </tr>
    </table>
    </body>
    </html>
    update.jsp:- in this file i wrote sql query for fund transfer. in this i m subtracting balance from one account_no and want to show updated saving table. i m not using query for addition of balance in another account_no becoz i m getting problem here.
    <%@ page import="java.util.*, java.lang.*, java.sql.*" %>
    <%
    String name,pwd;
    boolean found=false;
    String acc= request.getParameter("select2");
    String acc1= request.getParameter("select");
    String ammount= request.getParameter("bal");
    Integer ammount1 = Integer.valueOf((String)session.getAttribute("bal"));
         //Establish connection
         try
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection con = DriverManager.getConnection("jdbc:mysql://mridul:3306/bank","root" ,"root");
         Statement st=con.createStatement();
    // ResultSet rs = st.executeQuery("update saving set balance = balance-ammount1 where saving.account_no = '" + acc +"'");
         ResultSet rs = st.executeQuery("select * from saving");
         while ( rs.next() ) {%>
         <tr>
    <td valign="top" height="43"><%=rs.getString(1) %></td>
    <td valign="top"> <%=rs.getString(2) %></td>
    <td valign="top"> <%= rs.getString(3) %></td>
    <td valign="top"> <%=rs.getString(4) %></td>
    <td valign="top"> <%=rs.getString(5) %></td>
    <td></td>
    </tr>
    <%}
              rs.close();
                   st.close();
              con.close();
    catch(Exception e)
    e.printStackTrace();     
    %>
    my prob is i m not able to print updated saving table i found 1 blank page or sometimes i find "sever is not capable for fulfilling the request". i m able to understand that whether my sql query is wrong or i m getting value from combobox via request.getParameter. please help me as soon as possible.

    can u give me table name with attribute.
    because i couldn't get it <%=rs.getString(1) %>
    Edited by: prakash83 on Mar 8, 2008 9:22 PM

  • Using user parameter for

    Hello,
    I have created a report using an xml pds. I am using a servlet for the xml data stream source. Everything works great with the url to the servlet hard-coded between the <xml></xml> tags (ex. <xml>http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet</xml>) but when I try using a user parameter between the tags (so I will be able to dynamically change the url to this servlet) it bombs. Please see my source code and error message below. Any help would be greatly appreciated, I've been stuck on this for days! Thanks!
    <rw:report id="recoveryCenterScheduleReport" parameters="server=myreportserver&userid=ssstage/ssstage@DEVL&p_xmlDataURL=http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet">
    <rw:objects id="objects">
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <report name="XMLscheduleReport" DTDVersion="9.0.2.0.0">
    <xmlSettings xmlTag="XMLSCHEDULEREPORT" xmlPrologType="text">
    <![CDATA[<?xml version="1.0" encoding="&Encoding"?>]]>
    </xmlSettings>
    <data>
    <userParameter name="XML_HTTPS" datatype="character"
    pluginClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    width="255" defaultWidth="0" defaultHeight="0" display="no"/>
    <userParameter name="p_xmlDataURL" datatype="character" width="100"
    precision="10" defaultWidth="0" defaultHeight="0"/>
    <dataSource name="QP_1">
    <plugin
    factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    majorVersionNumber="1" minorVersionNumber="2"
    signOnParameter="XML_HTTPS">
    <![CDATA[<xmlpds DTDVersion=" 1.0">
    <dtd>null</dtd>
    <schema>file:///C:/Practic Workspace/Practice/WEB-INF/xsd/scheduleReport.xsd</schema>
    <XSQLschema>null</XSQLschema>
    <XSQLWithDTD>false</XSQLWithDTD>
    <type>false</type>
    <xmlWritten>true</xmlWritten>
    <validate>true</validate>
    <xml>&<[b]p_xmlDataURL></xml>
    <xsl>null</xsl>
    javax.servlet.jsp.JspException: rwlib-1: REP-0002: Unable to retrieve a string from the report builder message file.
    REP-0069: Internal error
    XMLPDS-63004:Generic error while parsing the URL stream name instead of <.
    REP-4111: Fail to create pluggable data source 'QP_1'
         at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
         at jsp.reports._schedule._XMLscheduleReport._jspService(_XMLscheduleReport.java:87)
    ....

    Never mind, I discovered the problem. I wasn't using the necessary xml escape characters for the user parameter embedded in the xml.

  • HT3354 how can i use one table for reference to another

    how can i use a table for a referance to another eg when i type a word in a cell, i will like it to match the word with another table then return the information in the cell i am using

    you can use vlookup() (or any of the lookup family of functions) to locate an item based on a key value:
    Here is an example of something you can do with two tables:
    The table on the right is title "Data" and stores a list of names with age and favorite color.
    The table on the left uses the value in the first column to lookup up information in the table Data
    in the table on the left:
    B2=IFERROR(A2&" is " & VLOOKUP(A2, Data :: A:D, 2, 0)&" years old and likes the color "& VLOOKUP(A2, Data :: A:D, 3, 0), "NOT FOUND")
    I know this look complicated.  so I'll break it up into smalled pieces:
    first the "&" is called the concatenate operator and joins two strings.  like this:
    a string is a set of characters between double quotes.
    so "string 1" & "string 2" becomes "string 1string2"  or "Sam " & "Jones" becomes "Sam Jones"
    you can use cell references instead of strings directly in which case the concatenation is performed on the contents of the cells.
    so if cell A1 contains "Hi " and the cell A2 contains "There"  then A1 & A2 will result in "Hi There"
    so you could add the formula
    A3=A1 & A2
    this is short hand for select cell A3 then type everything including the A3 so that A3 contains "=A1 & A2" (omit the double quote)
    OK.  So the formula I provided concatenates several items together:
    it concatenates A2, then the string " is " then a formula, then the string " years old and likes the color " then a formula
    the two formulas (highlighted in blue) perform a lookup of the value in cell A2 in columns A thru D of the table named "Data".  If if finds the value in cell A2 in the first column of the lookup range in the table Data (column A) then it returns the value from the same row but in the second or third column.
    all that is in a function calld iserror() to trap the condition where the calue you enter in A2 does not exist in the table Data:
    You will find the Numbers users guide and function reference helpful.  You can download then from Apple here:
    http://support.apple.com/manuals/#productivitysoftware

  • How can I use jbo:InputSelect for a char type filed?

    How can I use <jbo:InputSelect for a char type filed?
    I have two tables. One is room (primary key is room(type is char)), another table is responsibility (foreign ker is room(type is char)). Both tables have same length for room column.
    There is a problem:
    If I use (in the "DataEditComponent.jsp" file)
    <jbo:InputSelect multiple="false" datasource="dsEdit" displaydatasource="roomData" displaydataitem="ROOM" displayvaluedataitem="ROOM" ></jbo:InputSelect>
    to get the room input for responsibility from combobox(Datasource roomData is from room table). In the form the room field cannot bind the data in combobox, alway select the first item. And if I select one item and click the update button.There is an error message:
    Error Message: JBO-27010: Attribute set with value H409 for Room in Responsibility has invalid precision/scale
    I found If I changed the field type from char to varchar2 in database also change the entity objects, it works well. I wonder if there are any diffrence using <jbo:InputSelect tag in char and varchar2 type. How can I use <jbo:InputSelect for a char type filed as i don't want to change my datatype in database at this stage.
    I try this in JDeveloper 9.03, 9.034, 9.04. The result is the same.

    If I were in your shoes, here's how I would do it:
    <%-- Assuming you have dsRoom and dsResponsibility --%>
    <%-- Select is an HTML tag --%>
    <select name="ROOM" size="1">
    <% char roomID =""; // Init your character var
    // Open a rowsetIterator to get the records and add them to the LOV
    <jbo:RowsetIterate datasource="dsResponsibility" changecurrentrow="true" >
    <% roomID = (char)dsResponsibility.getRowSet().getCurrentRow().getAttribute("ROOM"); // Grab the char value
    // add the value to the LOV
    %>
    <option value="<%=roomID%>"><%=roomID%></option>
    </jbo:RowsetIterate>
    </select>
    If you are using this as part of an edit page you may want to utilize the "selected" option of the <option> tag. In one instance I am doing this on an edit page because the use may open an existing record. If I don't account for it, then it will change the DB to contain the first value from the list! You can do a simple check like:
    //Set the current record's char
    char curRecord = (char)rowEdit.getAttribute("ROOM");
    // inside the iterate:
    if (curRecord == roomID) {
    <option value="<%=roomID%>" selected><%=roomID%></option>
    } else {
    <option value="<%=roomID%>" ><%=roomID%></option>
    Hope that helps!

  • How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap?

    How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap? Currently my program reads the data from several text files in a directory and the saves that information in a text file called output.txt. I would like to cache this data in order to use it later. How can I do this using the TreeMap Class? These are the keys,values: TreeMap The data I'd like to Cache is (date from the file, time of the file, current time).
    import java.io.*;
    public class CacheData {
      public static void main(String[] args) throws IOException {
      String target_dir = "C:\\Files";
      String output = "C:\\Files\output.txt";
      File dir = new File(target_dir);
      File[] files = dir.listFiles();
      // open the Printwriter before your loop
      PrintWriter outputStream = new PrintWriter(output);
      for (File textfiles : files) {
      if (textfiles.isFile() && textfiles.getName().endsWith(".txt")) {
      BufferedReader inputStream = null;
      // close the outputstream after the loop
      outputStream.close();
      try {
      inputStream = new BufferedReader(new FileReader(textfiles));
      String line;
      while ((line = inputStream.readLine()) != null) {
      System.out.println(line);
      // Write Content
      outputStream.println(line);
      } finally {
      if (inputStream != null) {
      inputStream.close();

    How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap? Currently my program reads the data from several text files in a directory and the saves that information in a text file called output.txt. I would like to cache this data in order to use it later. How can I do this using the TreeMap Class?
    I don't understand your question.
    If you don't know how to use TreeMap why do you think a TreeMap is the correct solution for what you want to do?
    If you are just asking how to use TreeMap then there are PLENTY of tutorials on the internet and the Java API provides the methods that area available.
    TreeMap (Java Platform SE 7 )
    Are you sure you want a map and not a tree instead?
    https://docs.oracle.com/javase/tutorial/uiswing/components/tree.html

Maybe you are looking for

  • How can I get my iPhone 4 repaired while away from home?

    I will be working in Manila in the Philippines for the next few months. My iPhone 4 has developed a hardware fault and needs to be repaired. It is out of warranty, but I am willing to pay for the cost of the repair myself. The Apple Authorized Servic

  • Acrobat plugin Build with SDK6 not Showing in Acrobat X and XI

    I'm working on an old Plugin build for Acrobat (not reader) using SDK v6. This plugin worked fine, upto Acobat 9. (it is only used in Windows) Now some users tell me it is not showing in Acrobat X. So I installed a trial verison of Acrobat XI. After

  • Help with Group Left Report

    Hi everyone, I created a Group left report with 4 grouping columns.Everthing is working fine but i am getting some problem with the order of the 3rd column(varchar).It is doing ascending order(As the Break order Propoerty of that column is ascending)

  • Client Proxy(WSDL file) via Se80

    Hello We have a client proxy created against a WSDL file (http/url) in SE80 and we are using it currently it. Now the WSDL file is going to change a little. I want to use the same client proxy and only change the  WSDL file with the new WSDL file? Ho

  • Resize Column Heading Dynamically

    I have an AdvancedDataGrid for which the user can separately and independently set the font size used in the column headings and the rows. Upon saving the form, if the font size used in the rows changes, I call the function setRowFont() (shown below)