DACF,BC4J: How can i create RowSetInfo from VO generated by createViewObjectFromQuery

How can i create and publish RowSetInfo from VO generated by applicationModule.createViewObjectFromQuery()?
And how can i set named AttributeInfo for
that RowSetInfo?
I can't use VO w/o Entity object generated by wisard becouse in generated code my query will be enclosed to SELECT * FROM (...), and rowsetInfo.setQueryCondition
will add WHERE clause to enclosed select.
(i need to access to inner WHERE clause)
null

I got next exception
oracle.dacf.dataset.DataSourceOperationException: ResultSetInfo: ResultSet TestRS could not be opened because of problems opening one or more attributes.
with next message box:
JBO-25002: Definition SimpleJobber.TestVO of type View Definition not found
Details:
DAC-502: ResultSetInfo: ResultSet TestRS could not be opened because of problems opening one or more attributes.
JBO-25002: Definition SimpleJobber.TestVO of type View Definition not found
for next test code:
private void test() {
final String sql = "SELECT 1+1 X, 1+2 XX FROM dual";
final ColumnInfo x = new ColumnInfo(java.sql.Types.INTEGER),
xx = new ColumnInfo(java.sql.Types.INTEGER);
//at this point session allready has been published
final ViewObject vo = sessionInfo1.getApplicationModule().createViewObjectFromQueryStmt("TestVO",sql);
final RowSetInfo rsi = new RowSetInfo();
vo.remove();
x.setName("X");
xx.setName("XX");
rsi.setAttributeInfo( new ColumnInfo[] {x,xx} );
rsi.setQueryInfo(new QueryViewInfo("TestVO"));
rsi.setName("TestRS");
rsi.setSession(sessionInfo1);
rsi.publishRowSet();
null

Similar Messages

  • How can one create a paint color generated from a photo using Kuler?

    How can one create a paint color generated from a photo using Kuler?

    The best way to remove a pattern is to use a Fast Fourier Transform.  There's a free plugin (as well as examples and instructions) here:
    http://dl.dropboxusercontent.com/u/6795661/4N6site/improc/fftplugin/examples.htm
    Using the plugin requires editing the individual colour channels, which PSE does not natively allow.  You'll need the reasonably-priced Elements+ addin:
    http://elementsplus.net/
    Here's a crop at 100% of the result I got:
    The pattern is much reduced.  With some experimenting, you can probably do a little better.
    Ken

  • How can I create cd from IPhoto pictures

    How can I create a cd from my IPhoto pictures?

    Hello na59er,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iPhoto '11: Create your own photo CDs and DVDs
    http://support.apple.com/kb/PH2436
    Have a nice day,
    Mario

  • How can I create scripts from DBA studio??

    I just created about a bunch of tables, F&P keys, synonyms, etc using DBA studio. Now I'd like to extract that dictionary data to create scripts that I can run in the future to recreate the environment in production.
    How can I do this?
    THanks,
    Chris

    For some reason in my Oracle DBA Studio ( Oralce 8.1.6) table right click menu has no "Show object DDL" option. I run DBA Studio standalone, not from Oracle Enterpr Manager. Can this be the reason ?
    Also my database has 100+ tables.
    I also tried the import with indexfile option. It is gives me all a lot of ALTERs as they where applied to tables which looks UGLY. I need "clean" CREATE TABLE DDL.
    I's amaizing that Oracle has no simple way of doing this ???

  • How can I create midi from audio in LPX?

    LPX: How do I create a midi track from an audio track in LPX? I have looked everywhere in documentation and on the web and cannot find anything.
    This was easy in Logic 8.
    Thank you

    Use Flex Time on the Audio Region, go to Audio Track Editor, Open Edit Menu
    Create MIDI Track from Flex Pitch Data
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • How can I create connection from rule author using WebDAV

    Dear Experts,
    I am implementing Rule-Based application. While creating Rule author I am facing a problem. Under Repository tab I can find two options, 1. WebDAV 2. FileBased. I want to know what I have to specify in the URL part when I choose Repository type as "WebDAV". Or else I need to install WebDAV in my local machine. Please suggest me.
    What is the WebDAV url to create rule author connection.
    Thanks,
    Rajesh

    Hi Rajesh,
    You would be following : steps of enabling the WebDAV directory which is specified in
    http://download-east.oracle.com/docs/cd/B25221_03/web.1013/b15986/webdav.htm#CHDFHJGB
    Then created a directory called test_repository under ~Apache/htdocs folder : http://hostname:httpport/test_repository/
    Updated the moddav.conf file with below specified entry and restarted the HTTP server
    <Location /test_repository>
    DAV on
    ForceType text/plain
    </Location>
    Then, from the ruleauthor you should be able to connect to the WebDAV directory http://hostname:httpport/test_repository/
    Also, make sure that the Apache process can write to that WebDAV directory.
    Check the Apache's error_log to see what went wrong.
    Cheers
    Anirudh Pucha

  • How can I create files from Documents stored in a longraw via OLE

    Hello,
    we use forms 6 in client-server-mode and store documents (pdf, tif, doc ... all is possible) in a longraw using an OLE-container.
    Actually I develop a new application which has to exchange document-files with other servers.
    Is there a simple way to generate files from this long raw?
    What does this OLE do to my file before storing it in the long field.
    Is this OLE still a good format?
    The migration to webforms could be a good opportunity to change something ...
    Maybe we better store the files in the file-system and show them with the show_document procedure.
    Wolfram

    Set your export type to Hard Disk and export to a folder on your hard-drive, and optionally re-import those exported JPGs using a checkbox on the Export panel. 
    When I do exports like this I typically put them in a subfolder of the raw files rather than physically mixed into the raw files, themselves.  If I want to see the raws and jpgs mixed together I can just enable Show Photos in Subfolders.

  • How can I create Icon from byte[]

    I have such kind of task: program gets byte[] from DB (it's a *.png image bytes), after that I need to recreate icon from this bytes.
    Oleg.

    You could write the bytes to a temporary png file and load it with an ImageIcon. I'm not sure if ImageIcon handles png though...

  • How can you create a test plan generator using labview

    I am looking to create a testplan generator using labview to help RF Engineers translate test requirements into test parameters and wanted to know how i can go about it.

    Have you considered to use Teststand? Teststand organizes all the tests and allows to parameterize them.
    Creating a tool with a similar functionality will be more expensive than buying Teststand and modifing the operator interface.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • TS2756 How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )

    How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )
    i know its not a problem whit my carrier o data plan or sharing preferences on the ipone because when i use it un my laptop it works perfectly through
    the usb and even works on the Imac through wifi and bluethood tethering but NOT through usb!!.
    the problem is that trying to make it work i deleted the "profile" usb iphone on the network prefereces panel. Now i only have 3 options: ethernet / wifi / bluetooth
    but not the usb iPhone i used to have.
    And when i try to add a new one i dont get a USB option.
    can some one help me please??
    this is how it looks (after the bluetooth PAN i used to have USB iPhone option)

    The question would be more appropriate in the Mac forums as it is not really related to the iPhone.

  • How can I copy text from one card to another while creating cards using Iphoto?

    I created two cards with different pictures using Iphoto on Macnotebook. 
    I want to use the same text message.
    How can I copy text from one card to another?

    select the text and copy (edit menu ==> copy) tehn gpo to the next card and paste
    LN

  • How can I create a disk image of snow leopard installer disk from my Imac which runs it?

    how can I create a disk image of snow leopard installer disk from my Imac which runs it? It came without DVD installer, and I want to make a copy of it's OS installer but can't find out how.

    You need to have the disc in order to create disk image of snow leopard installer disc. What did your machine ship with? If something later than SL, then why? If earlier, then you can buy the SL installer disc and make the disk image.

  • How can I create a java.awt.Image from ...

    Hi all,
    How can I create a java.awt.Image from a drawing on a JPanel?
    Thanks.

    JPanel p;
    BufferedImage image =
        new BufferedImage(p.getWidth(), p.getHeight, BufferedImage.TYPE_INT_RGB);
    Graphics2D g = image.createGraphics();
    p.paint(g);
    g.dispose();

  • How can I create a single order from multiple quotations?

    How can I create a single order from multiple quotations that I have created by the transaction VA21 ?
    Thanks in advance for the answers.

    hi
    Go to transaction: /nva01
    Enter order type : ZOR
    Sale org :xxxx
    Dist.channel:xx
    Division :xx
    Press enter
    Click on “Sale document” and select Create with reference
    Then enter 1st quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation1 copy to order.
    Then,
    Click on “Sale document” and select Create with reference
    Then enter 2nd quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation2 copy to order.
    Then,
    Click on “Sale document” and select Create with reference
    Then enter 3rd quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation3 copy to order.
    Now save the sale document.
    Kindly give reward points
    Edited by: WISH on Mar 19, 2008 2:25 PM

  • How can I edit my website from another computer? and how can I create a new website next to the one, I have already? Can anyone help, please?

    How can I edit my website from another computer? and how can I create a new website next to the one, I already have? Can anyone help, please?

    Move the domain.sites file from one computer to the other.
    The file is located under User/Library/Application Support/iWeb/domain.sites.  Move this file to the same location on the other computer and double click and iWeb will open it.  Remember, it is your User Library that you want and not your System Library, as you will not find iWeb there.
    Just create a new site on the same domain file and it will appear below the other site.  If you want them side by side then duplicate your domain file and have one site per a domain file and they can then be side by side.

Maybe you are looking for