Unable to create VO based on SQL statment without PK and display using JSF.

What I am looking to do is create a view object that returns distinct records from a column in database table.
Example: select disntict phone_no from USER;
where the primary key is composed of ID & NAME columns for the USER table.
I already have a view object for the USER table, when creating the view object for the the SQL query writtten above. I am forced to have the Primay key in the view object SQL without which I cannot create the view object. Having the composite primary key instead or returning me the 8 disntcht records that are there returns a lot mroe records.
I was able to define the view with only one of the columns of the composite primary key. But when I try to display the phone_no in a JSF JSP drop downlist nothing shows up. Everything shows up as blank. Any suggestions?

Hi,
I think we can decouple the list from the business service issue: If you run the ViewObject that you make the list data source of the select box in the ADF BC tester, does it contain data? If it does then the problem is in the way you created the list box, in which case we need to look into how you created it
Frank

Similar Messages

  • Unable to create a connection in SQL developer

    hii
    I'm unable to create a connection in SQL developer..it says I/O Exception, Network Adapter could not establish a connection...i provided the username and password which i used for SQL*Plus, which is working fine. And i gave the host as localhost. I don't know how to fill the connection name field..can anyone help me in connecting to the database...By the way I'm using Oracle 11g. Thankssssss

    you could try to change the connection type to TNS and pick the database name available to you in the Network Alias drop-down list.
    Edited by: Alex Nuijten on Sep 5, 2008 10:13 AM

  • Bug - unable to create new connections on SQL Developer 4.0.0.13

    Upgraded to SQL Developer 4.0 and we are unable to create new connections in the Connections pane on the left hand side.
    Clciking the green plus button and right clicking Connections and 'New Connection' doesn't bring up the New Database Connection dialog box.

    Sounds like an 'install' problem.
    Can you extract the zip to a new directory and try again? You did extract v4 to a fresh directory, yes?

  • How to create graph based on sql query

    Hi all,
    I am using jdev 10.1.3.3
    My requirement is need to ctreate graph(pie chart) based on sql query ex: select count(empno) from emp group by deptno;
    and also i need to give link on graph. If i click 10 deptno part in pie chart only 10 deptno employee list need to display.
    Please help meeeeeee
    Thanks
    NR

    Hi,
    just non click able graph in ADF 10g using BI Graph: http://www.freewebalbum.com/blogs/faces/bjanko/blogs.jsp?blog=bjanko20070629162305
    regards,
    Branislav

  • How to create a database in SQL Server Express 2014 to be used with LV Database Toolkit

    I use LV Database Toolkit, which by default uses Jet database. Now I want to use SQL database with LV Database Toolkit. I have downloaded and installed "SQL Server 2014 Express with Tools" in my Labview Laptop. Now I want to create a database in SQL Server, because I think it is a requirement for creating a "udl connection file" (*.udl file). Please help me!
    Solved!
    Go to Solution.

    I made a database whose path is: C:\Program Files\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\depot1
    I tried to make .udl connection file, but when I click on "test connection" with the provider: "OLEDB Provider for Microsoft SQL Server" I get the Error "UDL Connection File Failure" (attached below)
    When I tried to make the .udl connection file with the provider "Microsoft SQL native Client 11.0" and when I click on "Test Connection" I get the Error" UDL Native Client_1"& " UDL Native Client_2".
    Please help!
    Thanks!
    Attachments:
    UDL Connection File Failure.png ‏78 KB
    UDL with Native Client_1.png ‏702 KB
    UDL with Native Client_2.png ‏714 KB

  • Unable to create filesystem (mkfs.ext4) on large 2TB GPT virtual disk using Linux VM.

    I am unable to create a file system on a large (> 2TB disk) virtual disk for a Linux VM.  I can create the disk, attach it to the VM, partition it with "parted", but I cannot run mkfs.ext4.  Details below.
    Hyper-V 2012 Core (w/ all Windows/Microsoft updates as of 4/19).
    CentOS 6.4 VM w/ 4 virtual processors, 4GB RAM, and 3 dynamic drives: 
    /dev/sda  100GB IDE dynamic vhdx
    /dev/sdb  75GB IDE dynamic vhdx
    /dev/sdc  10TB SCSI dynamic vhdx
    Using parted, created 500GB partition on the 10TB drive (/dev/sdc1). 
    (parted) select /dev/sdc
    Using /dev/sdc
    (parted) print
    Model: Msft Virtual Disk (scsi)
    Disk /dev/sdc: 11.0TB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Number  Start   End    Size   File system  Name                Flags
     1      1049kB  500GB  500GB               production_archive
    then run: mkfs.ext4 /dev/sdc1
    repeating error on console from mkfs.ext4:
    INFO: task mkfs.ext4:2581 blocked for more than 120 seconds
    "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    Runaway error in var/log/messages until my /var system filled up - 25G worth of it:
    -rw-------. 1 root root 25085329408 Apr 19 23:15 messages
    Apr 19 17:39:28 nfs2 kernel: sd 4:0:0:0: [sdc] Sense Key : No Sense [current]
    Apr 19 17:39:28 nfs2 kernel: sd 4:0:0:0: [sdc] Add. Sense: No additional sense information
    Apr 19 17:39:28 nfs2 kernel: hv_storvsc vmbus_0_13: cmd 0x93 scsi status 0x2 srb status 0x6
    Same problem happens when running "mkfs.ext4 -E lazy_itable_init=1 /dev/sdc1"

    Hi,
    Thank you for your post.
    I am trying to involve someone familiar with this topic to further look at this issue.
    Lawrence
    TechNet Community Support

  • Create an image of my current PC laptop and them use as Bootcamp image...

    I currently have a Dell laptop that I've had for almost two years, running Win XP. I've installed tons of software over that time. I would love to be able to create an "image" of this laptop, and then use it as a Bootcamp partition. I can imagine that this is very difficult, due to the different hardware, if nothing else, if it's possible at all.
    Is this possible? If so, how?

    And not transferable unless you used retail copy.
    http://www.apple.com/support/bootcamp

  • Unable to create function based spatial index

    Maybe someone can help me. I can't seem to find the answer for what I'm doing here.
    I'm trying to create a function based spatial index - so that I can utilize coordinates in tables when I have no SDO_GEOMETRY column.
    Is there a fundamental problem with trying to do this or is it something syntactical?
    Executing the following sql is giving me this error, while I'm trying to create the spatial index:
    --create some table
    CREATE TABLE "ZZ_ACTIVITIES"
    ( "DESCRIPTION" VARCHAR2(50 BYTE),
    "CREW" VARCHAR2(50 BYTE),
    "LATITUDE" NUMBER DEFAULT 0.0,
    "LONGITUDE" NUMBER DEFAULT 0.0
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "MAP_NA_Q406" ;
    --create the function that takes an srid, and x/y and returns an SDO_GEOMETRY
    create or replace function get_geometry(p_srid in number,
    p_x in number,
    p_y in number)
    return mdsys.sdo_geometry deterministic;
    Is
    Begin
    Return MDSYS.SDO_GEOMETRY(2001,p_srid,mdsys.sdo_point_type(p_x,p_y,NULL),NULL,NULL);
    End observation;
    --insert sdo metadata
    INSERT INTO USER_SDO_GEOM_METADATA(
    TABLE_NAME,
    COLUMN_NAME,
    DIMINFO,
    SRID
    ) VALUES (
    'ZZ_ACTIVITIES',
    'GET_GEOMETRY(8307,LATITUDE,LONGITUDE)',
    MDSYS.SDO_DIM_ARRAY(
    SDO_DIM_ELEMENT
    'LONGITUDE',
    -180,
    180,
    0.5
    SDO_DIM_ELEMENT
    'LATITUDE',
    -90,
    90,
    0.5
    8307
    --create the index. (THIS IS WHERE THE ERROR IS THROWN)
    CREATE INDEX zz_activities_location_sidx ON ZZ_ACTIVITIES(GET_GEOMETRY(8307,LATITUDE,LONGITUDE)) INDEXTYPE IS MDSYS.SPATIAL_INDEX parameters('layer_gtype=POINT');
    The error returned is;
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10

    Hi,
    To follow up, the below code resolved the issue:
    create index EQX_OKC_K_LINES_B_N4 on okc_k_lines_b(apps.eqx_oklb_term_date_nvl(date_terminated))
    logging
    tablespace eqixdata
    noparallel;
    -- qualifying the custom function name with schema name resolved the issue.
    Thanks,
    Rahul

  • Unable to create function based Index

    Hi All,
    I created a function as below:
    create or replace function eqx_oklb_term_date_nvl(pin_term_date date)
    return date
    deterministic
    is
    l_sub_date date := sysdate+1;
    l_return_value date := l_sub_date;
    begin
    l_return_value := nvl(pin_term_date, l_sub_date);
    return l_return_value;
    exception
    when others
    then
    l_return_value := l_sub_date;
    return l_return_value;
    end eqx_oklb_term_date_nvl;
    Now trying to create a function based index using below code:
    create index EQX_OKC_K_LINES_B_N4 on OKC.OKC_K_LINES_B(EQX_OKLB_TERM_DATE_NVL(DATE_TERMINATED))
    logging
    tablespace EQIXDATA
    noparallel;
    Encountered Error:
    SQL Error: ORA-00904: "EQX_OKLB_TERM_DATE_NVL": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:   
    *Action:
    I can successfully query dba_objects for the function.
    Owner Object_name object_id object_type last_ddl_time status
    APPS     EQX_OKLB_TERM_DATE_NVL     11764623     FUNCTION     3/4/2013 9:44:57 PM     VALID
    I can also query the function using dual.
    select eqx_oklb_term_date_nvl(null) nvl_date from dual;
    nvl_date
    3/5/2013 9:53:59 PM
    I have given grants of the function to both schemas APPS/OKC
    grant all on eqx_oklb_term_date_nvl to okc;
    grant all on eqx_oklb_term_date_nvl to apps;
    The column date_terminated in table okc_k_lines_b is a date. I've checked that.
    Stuck here. Please help.
    Thanks in advance,
    Rahul

    Hi,
    To follow up, the below code resolved the issue:
    create index EQX_OKC_K_LINES_B_N4 on okc_k_lines_b(apps.eqx_oklb_term_date_nvl(date_terminated))
    logging
    tablespace eqixdata
    noparallel;
    -- qualifying the custom function name with schema name resolved the issue.
    Thanks,
    Rahul

  • New Trial Account - Now unable to create even a BASIC SQL Database...

    Hey,
    I signed up for a 30-day trial account on Azure, and in the first 24 hours managed to successfully set up a Windows VM, and a SQL Database.
    Over several hours, I then used the Azure SQL Database Migration tools to import a large test database from an on-premises SQL Server.
    All went fine, until suddenly, during the data migration, all connections to the Azure SQL Database were lost, both from my local machine, and from the Azure VM.
    I was unable to re-establish a connection to the Azure SQL Database.
    In desperation, I deleted the Azure SQL database, and attempted to create another.
    But every attempt failed. 
    I have tried from both the old and new Azure portals, and get the message after a few seconds "Error creating SQL Database".
    I have attempted creating databases both at "Basic" and "Standard" levels, but get the same result.
    There is still 99%+ left of the credit balance that came with the trial account, so I am at a loss as to what has happened, or what to do next.
    Can anyone help?
    Thanks

    Hi,
    Thank you for reporting this issue. I need a way to identify your account or subscription to look into what's going on. Please email me your server name or subscription id to olignat at microsoft dot com.
    Thanks,
      Oleg

  • Unable to create TNS connection in SQL Developer

    This is my first time install SQL Developer 1.5 on my computer and when I try to create a connection using TNS Connection Type to connect to Oracle database, I get this error message:
    Status: Failure -lo exception: SO exception was generated.
    Do you know how to resolve this error?
    Thanks,
    Lily

    Hi Lily,
    This error is due to a tns entry that is unusual/malformed.
    Note that
    1/sqldeveloper picks up tnsnames.[a variety of endings not just ora] rather than just tnsnames.ora .
    2/We recently released 1.5.1[.54.40] is that the release you are using
    Can you post the 'problem' tns entry with ip and service name replaced by a stub?
    ie something like:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = my.machine)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = my_service_name)
    -Turloch

  • Unable to create image-based pop-up menu

    Working in FW MX (yes, I know I'm behind the times!).
    Created a pop-up menu; want to experiment with image-based
    options, rather than html. When I choose IMAGE on the Appearance
    tab of the pop-up editor, no styles are available in the style
    choosers for up/over states. (And there ARE styles in the
    assets--including some that I've just created.) Furthermore, when I
    click through the NEXT buttons to DONE, then return to edit this
    pop-up menu, it's defaulted back to html. Image just won't stick.
    The documentation says this should be simple and
    straightforward, but it ain't. I've spent several hours struggling
    with this.

    Okay, on the suggestion of one tech support person, I logged
    in as a different Windows user. Whaddaya know, the style options
    were there! However, when the file is exported, all I get is the
    html version, no image/style-based popup. Same when I preview it in
    browser (IE7, FireFox). But the preview in the pop-up editor does
    show the styles applied--they just don't make it to publication for
    some reason.

  • Unable to create XML based interface while using Interactiveform UIelement

    Dear All,
    I have a node under a subnode which is of a structure type.
    This structure has three components each of which is assigned a table type.
    While generating the XML based interface, message 'unsupported types wont be generated' comes and in the following From layout, I find the data entries for this particular node are invisible.
    Can you suggest a way to achieve the functionality?
    Thank You.
    Regards,
    Prosenjit.

    We should use only data elements and ABAP table structures while working with XML interfaces.

  • Unable to create a JMS Message bridge between Weblogic 12c and Weblogic 8.1

    Hi,
    I am unable to successfully create a Message Bridge between Weblogic 12.1.1.0 and Weblogic 8.1. The error message being received is:
    eis/jms/WLSConnectionFactoryJNDINoTX > ResourceAllocationException generated by resource adapter on call to ManagedConnectionFactory.createManagedConnection(): "javax.resource.ResourceException: ConnectionFactory: failed to get initial context (InitialContextFactory =weblogic.jndi.WLInitialContextFactory, url = t3://localhost:8001, user name = System) ">
    The error on the monitoring tab is WARN: failed to connect to target.
    Both domains are deployed on one box for testing purposes. The bridge itself is deployed on Weblogic 12c. The areas of config that may be of interest are:
    <server>
    <name>AdminServer</name>
    <listen-address></listen-address>
    </server>
    <messaging-bridge>
    <name>Bridge</name>
    <target>AdminServer</target>
    <source-destination>JMSBridgeSource12c</source-destination>
    <target-destination>JMSBridgeTarget81</target-destination>
    <selector>Test</selector>
    <quality-of-service>Exactly-once</quality-of-service>
    <qos-degradation-allowed>false</qos-degradation-allowed>
    <durability-enabled>true</durability-enabled>
    <idle-time-maximum>60</idle-time-maximum>
    <async-enabled>true</async-enabled>
    <started>true</started>
    <preserve-msg-property>false</preserve-msg-property>
    </messaging-bridge>
    <app-deployment>
    <name>jms-xa-adp</name>
    <target>AdminServer</target>
    <module-type>rar</module-type>
    <source-path>D:\ORACLE~3\WLSERV~1.1\server\lib\jms-xa-adp.rar</source-path>
    <security-dd-model>DDOnly</security-dd-model>
    </app-deployment>
    <jms-bridge-destination>
    <name>JMSBridgeSource12c</name>
    <adapter-jndi-name>eis.jms.WLSConnectionFactoryJNDIXA</adapter-jndi-name>
    <user-name>System</user-name>
    <user-password-encrypted>{AES}nfFzhs+0J/O2Cenf0g4zDsDyvIKENMF7cZ5sAVUehX0=</user-password-encrypted>
    <classpath></classpath>
    <connection-factory-jndi-name>JMSConnectionFactory12c</connection-factory-jndi-name>
    <connection-url>t3://localhost:7001</connection-url>
    <destination-jndi-name>JMSQueue12c</destination-jndi-name>
    </jms-bridge-destination>
    <jms-bridge-destination>
    <name>JMSBridgeTarget81</name>
    <adapter-jndi-name>eis.jms.WLSConnectionFactoryJNDIXA</adapter-jndi-name>
    <user-name>System</user-name>
    <user-password-encrypted>{AES}eBkO46cHvtrzEraOMIOdXow6WvEAtA4NCUDTQ4mC+9w=</user-password-encrypted>
    <classpath></classpath>
    <connection-factory-jndi-name>JMSConnectionFactory81</connection-factory-jndi-name>
    <connection-url>t3://localhost:8001</connection-url>
    <destination-jndi-name>JMSQueue81</destination-jndi-name>
    </jms-bridge-destination>
    I have enforced global trust between the two domains. I have disabled the guest user on the 8.1 domain but can’t see where to do this on 12c.
    Any suggestions would be much appreciated.
    Regards
    John
    Edited by: 958336 on 13-Sep-2012 03:11

    Thanks for the recommendation. Unfortunately it did not help solve the problem.
    I have managed to get a JMS bridge working between 12c and 8.1 by including the 8.1 weblogic.jar on the classpath. This setup was using eis.jms.WLSConnectionFactoryJNDINoTX.
    After trying to use the adapter that supports transactions, WLSConnectionFactoryJNDIXA I received the following error:
    java.lang.IllegalStateException: can only be called from server
    Is this because the Weblogic 12c server now views the 8.1 server as being foreign?

  • Creating webservice for pl/sql API without using BPEL

    Hi All,
    Using BPEL, We have created partner links using DB Adapter for accessing our pl/sql API's.
    Is there any way to create a web service for a pl/sql API having complex datatype parameters like (Record, table of records etc) using DB Adapter or any other tool without using BPEL?
    Thanks,
    Uma.

    We introduced the use of JPublisher to automate the generation of wrappers for PL/SQL procedures that use types such as boolean, record and table. The wizard will invoke JPub and generate artifacts that the partnerlink will use to invoke the wrapper instead of the original API. Boolean is replaced by INT, record is replaced by an object type and table is replaced by a nested table. The wrapper will invoke the original API. JPub also takes care of converting between the different types (i.e. record <-> object).

Maybe you are looking for

  • Edit Audio with pencil tool not working LP8

    I am using Logic Pro 8.0.2. I am trying to edit an audio track in the "sample editor" window to remove a couple of clicks. -I am highlighting an audio track, and then opening the sample editor -When I get to the spot that I want to edit - I am draggi

  • Creating a view for a datasource

    Hi experts, I'm kinda new in BW and ABAP, but I have a requirement to get a datasource that contains data between SAP Tables. The scenario should be like this : 1. Get all Personal Number from PA9038 (Customized Infotype) within a period ( ENDDA & BE

  • How can I put one "shape" on top of another in pages?

    Hi all: I'm trying to do something pretty simple.  I made some shapes using the "shapes" tool in the toolbar.  I want to put one shape on top of (or in front of) another but it gives me the masking tool instead.  I tried putting a shap in the backgro

  • Create class in java. package

    Not good practice, I know, but is it it possible to do. It seems as the VM (1.3) does not bother about if I set up the RuntimePermissions to be able to access and define Class In Package java.net. I still get a prohibited package name exception. Anyo

  • Internal error at method Method 521 after CC static checker is run.

    After running the static checker on my solution, does all the usual hoo hah, and then throws internal error at method Method 521 at me. any idea what causes this? It seems intermittent at times. But occurs quite often nonetheless. here's the output f