Execute the view created with createViewObjectFromQueryStmt

I have create a view like this:
String sql = "select count(*) from........."
ApplicationModule am = (ApplicationModule)ctx.getBindingContext().findDataControl("AppModuleDataControl").getDataProvider();
ViewObject vo = am.createViewObjectFromQueryStmt("VuName", sql);
How do you get the count from the view. Pls help me.
Thanks.

Thanks Frank.
My question is "not the row count", but to get the value of count from the query. Pls let me know how to do it. Its urgent and I'm stuck here.
Thanks.

Similar Messages

  • Grant access to all the views created in user schema to another schema

    How to grant access for all the views created in own HAGGIS schema to comqdhb schema on the HAGGIS database.
    Oracle Grant Privileges
    ===============
    Object privileges assign the right to perform a particular operation on a specific object
    I read that we can use select 'grant select on' ||view_name||'HAGGIS' user_views where owner='COMQDHB'
    Is this right
    Oracle System Privileges
    ===============
    System privileges should be used in only cases where security isnt important,because a single grant statement could remove all security from the table
    Role based security
    ============
    Role security allows you to gather related grants into a collection-since the role is a predefined collection of privileges that are grouped together.privileges are easier to assign to users.
    [http://www.dba-oracle.com/art_builder_grant_sec.htm]
    can we grant select update to all the views at a time to the other schema.
    Are there any other ways to secure the data other than creating users and assigning roles.
    Thank you
    Edited by: Trooper on Dec 23, 2008 9:24 AM

    I think what was suggested was that you use SQL to generate the grants on each and every view, that is, you use SQL to generate SQL where the SQL being generated is "grant select on view_name to role'"
    If you users to connect to Oracle you have to create usernames for them though if the users only connect via an application the application might run just as one user and access to the application is controled via application security. The control on the application can be via Directory Services such as OID or MS Active Directory. User access to Oracle can also be controlled via OID.
    To connect to Oracle you can use OS authenication (not recommended), usernames with passwords, or via Advanced Security Option which supports single sign-on products like Kebros or Oracle Internet Directory etc....
    Example using SQL to generate SQL
    How do I find out which users have the rights, or privileges, to access a given object ?
    http://www.jlcomp.demon.co.uk/faq/privileges.html
    HTH -- Mark D Powell --

  • How to see the views created on a table

    Dear all,
    Please let me know the procedure to find out "the views created on a perticular table"

    CKPT wrote:
    Did OP mentioned ? :(
    change the query as
    select a.view_name,b.table_name from dba_views a, dba_tables b where a.owner='user1' b.owner='user2' and b.table_name='table' and a.owner='user';simpleWhat is that query supposed to return ?
    <s>It will do a scalar product between DBA_VIEWS and DBA_TABLES returning one single table name for every single view over your db without any link together except they have the same owner. Very useful, very helpful.</s><br>
    I misread the query, it is even worse than I thought, the query will return nothing. Nothing because a.owner cannot be equal to user1 and to user in the same time.
    I think Girish give a much better solution with DBA_DEPENDENCIES.
    Nicolas.
    Edited by: N Gasparotto on Aug 12, 2010 12:48 PM

  • Can we delete the views created for a user in Oracle BPM J2EE WL

    I am using Oracle BPM 10.3 MP2 Enterprise Edition
    Version: 10.3.2
    Build: #100486
    Can we delete the views created for a user in workspace?
    Usually we are using the filter option within workspace and then saving it as view.
    Would like to know if we can delete such views and create again.
    These views are user specifc
    Thanks in Advance.
    -Sree

    I usually use this scripts to clean the workspace user custom seetings:
    delete from fuego_objclassinst where fuego_objclassname = 'bea.albpm.workspace.layout';
    delete from fuego_strprops where (fuego_category = 'fuego-view' OR fuego_category= 'fuego-presentations');
    delete from fuego_strprops where (fuego_category = 'WAM' );
    Hope this help.
    Regards

  • How to find the views created on a table..?

    Hi all,
    I am having one table name, EMP. I want to know what are the views created on this table. Is there any SQL query is there for this or any another
    way to find it.
    Thanks in advance.
    Pal

    You can use ALL_DEPENDENCIES for that:
    SQL> create view emp_v as select * from emp;
    View created.
    SQL> select name
      2  ,      referenced_name
      3  ,      referenced_type
      4  from   all_dependencies
      5  where  name = 'EMP_V';
    NAME                           REFERENCED_NAME                                                  REFERENCED_TYPE
    EMP_V                          EMP                                                              TABLE
    1 row selected.
    SQL> select name
      2  ,      referenced_name
      3  ,      referenced_type
      4  from   all_dependencies
      5  where referenced_name = 'EMP';
    NAME                           REFERENCED_NAME                                                  REFERENCED_TYPE
    EMP_V                          EMP                                                              TABLE
    EMP_TRG                        EMP                                                              TABLE
    2 rows selected.
    SQL> Keep in mind that it matters whether you restrict on NAME or on REFERENCED_NAME.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1041.htm#sthref935
    edit
    Ah, spoonfeeding!
    Don't you want him to learn something, and to become independent?Now you made me feel guilty ;) ( don't know what Saubhik posted originally, but anyway...)
    I blame my currently terribly slow connection for that...
    Anyway, OP, always start a quick search from the docs first.
    Chances are you'll find your answer yourself.
    Homes:
    http://www.oracle.com/pls/db102/homepage
    http://www.oracle.com/pls/db112/homepage
    Edited by: hoek on Oct 15, 2010 2:53 PM

  • Client wanted  to delete the document created with the wrong GL with the WB

    Dear All,
    The user had by mistake posted the the document in a wrong GL with with WBS element under the Project.
    We have tried to reverse it through a reversal posting. But it could not be done.
    Client wanted  to delete the document created with the wrong GL with the WBS element.
    How this can be set right?
    Please advice.
    Regards
    Bijudas

    document cannot be deleted in SAP
    reverse the document and then report

  • Client wanted to delete the document created with the wrong GL with the WBS

    Dear All,
    The user had by mistake posted the the document in a wrong GL with with WBS element under the Project.
    We have tried to reverse it through a reversal posting. But it could not be done.
    Client wanted to delete the document created with the wrong GL with the WBS element.
    How this can be set right?
    Please advice.
    Regards

    document cannot be deleted in SAP
    reverse the document and then report

  • Reg: PO release notification needs to send to the PR Creater with PO num

    HI Gurus,
    Iam new to workfow. I have one senario in workflow.
    Requirement: when ever PO release notification needs to send to the PR Creater with PO number and corresponding PR number.
    Please guide how to do this .
    My questions :
    1.How can we can get the PR Creater user id to send notification mail
    Thanks & Regards
    Ramesh

    Hi Ramesh ,
    Which workflow you are using for PO . If it is the standard one , there is a rule used in the worklfow called 20000027.
    In this there is an USer exit . In this exit , you can write your code for sending the workitem to the PR creator.
    If you are using a custom workflow for this , then create a new rule and in that write the code for fetching the PR Creator and assign the user ro the actor tab. Incluse this rule in ur task .
    This will solve your problem.

  • Trial version problem with the wrie Create with the trial version

    help me
    trial version problem with the write Create with the trial version
    i wanna delete the Create with the trail version

    Publication on businCata I am sorry I do not understand your inquiry.  Can you please restate your question?  What Adobe software or service is your inquiry in relation too?

  • Would like to re-create the webpages created with iWeb to iCloud and post

    Would like to re-create the webpages created with iWeb to iCloud and post to the internet

    Unfortunately, iCloud does not support the hosting of webpages. You will need to find a 3rd party web host in order to publish your web sites.
    Depending on the version of iWeb you are using you have a couple of publishing options:
    iWeb '09 (3.0.4) you can publish to an FTP Server or a local folder. ( With the built in FTP in iWeb you will end up with an address like "www.YourDomain.com/sitename/Home.html )
    iWeb '08 you can publish your website to a local folder. Then upload to your host with an FTP application like CyberDuck
    I have been using IX Webhosting for several years with little to no problems "usually the problem was something I did" and they have been quick to solve any issue I have come across. The have plans that start at $3.95 a mo (USD) and their customer service is top notch.
    http://jeffnitschke.com/IXWebHosting.html
    http://jeffnitschke.com/wordpress/2012/06/how-do-i-move-my-mobileme-site-ix-web- hosting-blog/
    "I may receive some form of compensation from my recommendation or link."

  • View created with NUMBER(126) type instead of using the underlying datatype

    I have a view that needs to be updated with one additional field. The view combines the contents of three different tables with the same fields using UNIONs and some logic to filter out certain contents from each table. I created the new field in each of the three underlying tables with a type of NUMBER(4), then added it to the view and it had a type of NUMBER(126). This caused errors to be generated by queries (PLS-216).
    I don't know how relevant this is, but if I use the version of the view that I pulled out of our source repository, which was written for 9i, EVERY number field shows up as NUMBER(126) in the 10g database whether I include the new field or not. That script has the following format:
    CREATE OR REPLACE VIEW <viewname> (<field1>, <field2> ... ) AS select <field1>, <field2> ... from
    <select 1>
    UNION ALL
    <select 2>
    UNION ALL
    <select 3>
    ) a
    LEFT JOIN <table4> ON field = field
    I used dbms_metadata.get_ddl to pull the DDL out of an existing 10g production DB, and it was more or less the same except it began:
    CREATE OR REPLACE VIEW <viewname> ("<field1>", "<field2>" ... )
    That is, all of the field names were in quotes. When I ran THAT on a different 10g instance, all of the NUMBER fields pulled their size from the underlying tables; when I modified that script to include the new field, it was the only field that was a NUMBER(126)

    Strangely, I was able to get the correct datatype by moving the new field to the beginning of the view. Metalink indicates that this is a bug in Oracle.

  • ADF question: re-executing the view iterator which returns different rows

    Hi,
    I am terribly stuck in building one of my demos for
    an ADF seminar.
    I happened to created a view object which queries with
    rows showing up random lists such that:
    select a, b, c
    from sometable
    order by mod(DBMS_RANDOM.Random,50)+50
    and the result shows up fine. I wanted to display
    only one row, so I set up fetch size max to 1.
    in this way, I would get a random selection whenever
    I executed query to this view object.
    I created a data page where the results would show up.
    ok, so far so good. But I happened to notice that
    the randomly selected row would not change once it is
    loaded (pressing reload button on my browser did not
    refreshed the random selection). I knew this behavior,
    that the view object would cache the query once it
    is executed and not updated.
    So, I put an action event to invoke the 'Execute' method
    to this view object iterator. The selection now seems
    to be working randomly, but I also got error messages
    that says:
    You must correct the following error(s) before proceeding:
    JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33035: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[2 ]
    JBO-33035: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[2 ]
    I suspect this was because the newly selected row has different Key(primary key) to that of previously selected row, but I want to override this.
    is there any way that I may clear up the selection cache
    to tell ADF that the newly selected row is the current
    key in the row?
    Any suggestions are gladly welcomed.
    Regards,
    Howard Yoo

    repost

  • Unwanted events are also logged in the view created for a specific target from the rules created using its base target

    I have created Event or Alert view using a target "My.Target" which is derived from a base target "Windows Server".
    All the events or alerts are captured correctly from the servers discovered by "My.Target" but the same view also shows the events and alerts from other servers which has a rule created with a base target "Windows Server".
    Is there any option to filter the base target at view level other than using a custom field as it doesn't work for the alerts generated using "Monitors".
    Any help would be greatly appreciated.
    Thanks in advance.

    There is a class "My.Servers" derived from "Microsoft.Windows.Server.Computer" as below -
      <TypeDefinitions>
        <EntityTypes>
          <ClassTypes>
            <ClassType ID="My.Servers" Accessibility="Public" Abstract="false" Base="MicrosoftWindowsLibrary!Microsoft.Windows.Server.Computer" Hosted="false" Singleton="false" Extension="false">
              <Property ID="Name" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />          
            </ClassType>
          </ClassTypes>
        </EntityTypes>
      </TypeDefinitions>
    There is a discovery "MyServersDiscovery" to discover servers with presence of some registry key as below -
    <Monitoring>
        <Discoveries>
          <Discovery ID="MyServersDiscovery" Enabled="true" Target="MicrosoftWindowsLibrary!Microsoft.Windows.Server.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
            <Category>Discovery</Category>
            <DiscoveryTypes>
              <DiscoveryClass TypeID="My.Servers">
                <Property TypeID="My.Servers" PropertyID="Name" />
              </DiscoveryClass>
            </DiscoveryTypes>
            <DataSource ID="Name.AttributeDiscovery" TypeID="MicrosoftWindowsLibrary!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
              <ComputerName>$Target/Property[Type="MicrosoftWindowsLibrary!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
              <RegistryAttributeDefinitions>
                <RegistryAttributeDefinition>
                  <AttributeName>Name</AttributeName>
                  <Path>SOFTWARE\MyRegKey</Path>
                  <PathType>0</PathType>
                  <AttributeType>0</AttributeType>
                </RegistryAttributeDefinition>
              </RegistryAttributeDefinitions>
              <Frequency>300</Frequency>
              <ClassId>$MPElement[Name="My.Servers"]$</ClassId>
              <InstanceSettings>
                <Settings>
                  <Setting>
                    <Name>$MPElement[Name="MicrosoftWindowsLibrary!Microsoft.Windows.Computer"]/PrincipalName$</Name>
                    <Value>$Target/Property[Type="MicrosoftWindowsLibrary!Microsoft.Windows.Computer"]/PrincipalName$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="SystemLibrary!System.Entity"]/DisplayName$</Name>
                    <Value>$Target/Property[Type="SystemLibrary!System.Entity"]/DisplayName$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="My.Servers"]/Name$</Name>
                    <Value>$Data/Values/Name$</Value>
                  </Setting>
                </Settings>
              </InstanceSettings>
              </Expression>         
            </DataSource>
          </Discovery>
    </Monitoring>
    Created 2 views "My.Alert.View" and "My.Event.View" with Target "My.Servers" as below -
     <Presentation>
        <Views>
          <View ID="My.Alert.View" Accessibility="Public" Enabled="true" Target="My.Servers" TypeID="SystemCenter!Microsoft.SystemCenter.AlertViewType" Visible="true">
            <Category>Operations</Category>
          </View>
          <View ID="My.Event.View" Accessibility="Public" Enabled="true" Target="My.Servers" TypeID="SystemCenter!Microsoft.SystemCenter.EventViewType" Visible="true">
            <Category>Operations</Category>
          </View>
    </Views>
    </Presentation>
    The above views display events and alerts generated by rules targeted on the serves discovered with "MyServersDiscovery" correctly.
    The major issue here is - if there is a rule in same or any other management pack for which the target is "Windows Server", the alert or event generated by that rule is also shown in these views which is not expected.
    It seems it is because the target for "My.Alert.View" and "My.Event.View" is "My.Servers" which is dervied from "Microsoft.Windows.Server.Computer" so by default all the rules targeted on its base class "Microsoft.Windows.Server.Computer" are also visible
    here.
    Is there any way to avoid this?

  • Skip first screen of the VIEW (V_T052) with FM VIEW_MAINTENANCE_CALL-

    Hi at all,
    i use the Functionmodul "VIEW_MAINTENANCE_CALL" and call the View "V_T052".
    But i need the second screen of this View, to add new Payment Terms.
    How can I skip the first screen of the View "V_T052" ?
      DATA: view_name TYPE dd02v-tabname VALUE 'V_T052'.
      DATA: dba_sellist TYPE STANDARD TABLE OF vimsellist WITH HEADER LINE.
      DATA: action TYPE c.
        action = 'U'.
      CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
        EXPORTING
          action                       = action
          view_name                    = view_name
        TABLES
          excl_cua_funct               = t_exl_func
        EXCEPTIONS
          client_reference             = 1
          foreign_lock                 = 2
          invalid_action               = 3
          no_clientindependent_auth    = 4
          no_database_function         = 5
          no_editor_function           = 6
          no_show_auth                 = 7
          no_tvdir_entry               = 8
          no_upd_auth                  = 9
          only_show_allowed            = 10
          system_failure               = 11
          unknown_field_in_dba_sellist = 12
          view_not_found               = 13
          maintenance_prohibited       = 14
          OTHERS                       = 15.
    Thank you forward for your helps.
    Erwin
    Edited by: Matt on Jul 20, 2010 12:33 PM - fixed subject corruption, added  tags

    try using view "V_T052_V" instead of "V_T052".

  • How to know the PO  Created with RFQ or Not..??

    Hi MM Gurus,
    How to know the purchase order created with one quotation or not. because when i am trying to create PO with /ME21N through DOcumen Overview on. there is list of Quotation. i created PO with XYZ quotation. and after creation of PO i am trying to create another PO with another quotation but in that list still XYZ quotation is Displying. so how to knows once PO cretd with Quotation or not. . and I dont wanted to disply quotation once created Po.
    Thanks in Advance.
    N.A.Reddy

    Hi Pradeep. Thanks for the mail.
    the problem is ....with *quotation...*
    How to know the purchase order created with one quotation or not.
    because when i am trying to create PO with /ME21N through DOcumen Overview on. there is list of Quotation.
    I created PO with XYZ quotation. and after creation of PO i am trying to create another PO with another quotation but in that list still XYZ quotation is Displying.
    so how to knows once PO cretd with Quotation or not. .
    and I dont wanted to disply quotation once created Po.
    Thanks in Advance.
    N.A.Reddy

Maybe you are looking for

  • CTe em Ambiente de Homologação

    Olá Pessoal, Estamos fazendo as configurações do CTe Outbound, e nos deparamos com o erro 646. Ele diz que temos que mandar: CT-E EMITIDO EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL para alguns campos. Na NFe tinha essa questão também, mas lá fizem

  • GetImage() throws nullpointerException in Netscape (but not IE)

    1. Does getImage work on Netscape Navigator? When I load pictures to my applet, NN's java console doesn't say anything. After creating a new Panel that actually uses the Images, applet gives a nullPointerException because of the images. The same code

  • Cover photo/icon in iMovie

    iMovie 10 has picked an inappropriate photo for the 'cover shot' or icon of my new iMovie. I'd like to change it but am not sure how. Cheers Brad

  • Exit /BTE in F110 transaction

    Hi Experts,    My requirement is when we complete the payment run process using F110. In Assignment field of the payment document I need to populate the  "payment document numbercompany codefiscal year".    I tried this using the substitution but the

  • How to create blocks on Procedures? How does one handle I/U/D on the block?

    Hello Gurus, How to create blocks on Procedures? How does one handle I/U/D on the block? Please give an example. Thank You,