XML update a query?

Hey, I'm trying to get an xml query to work which when you click a button will load the next items on the xml structure.
so like
private var currentQueryNumber : uint = 0;
private function updateQuery(no:uint){
     {currentQueryNumber + 1};}
isn't right...
Anyone able to help me in what I should be putting.

I think we need more details, and simplified yet "complete" code.
How is currentQueryNumber used to update the query?
Need more details.

Similar Messages

  • How to update the Query of an existing WEBI document's dataprovider, through the RESTful Web service SDK.

    Hi,
    I am trying to update the Query of an existing WEBI document's dataprovider, through the RESTful Web service SDK.
    For this, first i will get the Dataprovider information,
    Example:
    URI: http://localhost:6405/biprws/raylight/v1/documents/11111/dataproviders/DP0
    Expected result;
    <dataprovider>
         <id>DP0</id>
         <name>Query 1</name>
         <dataSourceId>1234</dataSourceId>
         <updated>2014-04-18T11:55:21.000-08:00</updated>
         <duration>1</duration>
         <isPartial>false</isPartial>
         <rowCount>113</rowCount>
         <flowCount>11</flowCount>
         <dictionary>
              <expression qualification="Dimension" dataType="String">
                   <id>DP0.DO1</id>
                    <name>EmpID</name>
                   <description>Employee ID.</description>
                    <dataSourceObjectId>DS0.DO1</dataSourceObjectId>
              </expression>
              <expression qualification="Dimension" dataType="String">
                   <id>DP0.DO2</id>
                   <name>EmpName</name>
                   <description>Employee Name.</description>
                   <dataSourceObjectId>DS0.DO2</dataSourceObjectId>
              </expression>
         </dictionary>
         <query>SELECT Employee.EmpID, Employee.EmpName FROM Employee</query>
    </dataprovider>
    Then Changing the above dataprovider's Query to some thing like below,
    <query>SELECT Employee.EmpID, Employee.EmpName FROM Employee where Upper(Employee.EmpName)='RAJ'</query>
    Please let me know the RESTful Call required to do this.
    Thanks in advance.
    Thanks,
    Mahendra.

    FYI, the output of this call returns something like:
    <?xml version="1.0" encoding="UTF-8"?> 
    <queryplan>
        <union>
            <fullOuterJoin>
                <statement index="1">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="2">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.nb_guests) FROM SALES, INVOICE_LINE, SERVICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) AND ( SERVICE.SL_ID=SERVICE_LINE.SL_ID ) AND ( SERVICE_LINE.service_line = 'Accommodation' ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
            <fullOuterJoin>
                <statement index="3">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="4">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.days * INVOICE_LINE.nb_guests * SERVICE.price) FROM SALES, INVOICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
        </union>
    </queryplan>

  • Conditionally disabling record updation after query

    Dear members
    I've a single record block and I wanna conditionaly disable records updation after query has fetched data. Problem is that if I disable the record updation in Post-Query trigger then it checks the condition for the very first fetched record and it the condition is true, then Updation is disabled for all the fetched records, even if the next records dont meet the condition. I'm using forms-10g. Can u give a better solution??? thanx.

    you have to use SET_ITEM_INSTANCE_PROPERTY to modify only one record:
    BEGIN
        IF ... <your_condition> THEN
            SET_ITEM_INSTANCE_PROPERTY('YOUR_BLOCK.YOUR_ITEM1', UPDATE_ALLOWED, PROPERTY_FALSE);
        ELSE
            SET_ITEM_INSTANCE_PROPERTY('YOUR_BLOCK.YOUR_ITEM1', UPDATE_ALLOWED, PROPERTY_TRUE);
        END IF;
    END;

  • How to generate XML from SQL query

    possible ways to generate XML from SQL qury.
    i want to generate XML of following query. "Select * from emp,dep wher emp.deptno=dept.deptno"

    Hello.
    Can you try:
    SQL> set pages 0
    SQL> set linesize 150
    SQL> set long 9999999
    SQL> set head off
    SQL> select dbms_xmlgen.getxml('Select * from emp,dep wher emp.deptno=dept.deptno') from dual;
    It works fine for me.
    Octavio

  • UPDATING the query in materialized view

    Hi,
    i have a little doubt in Materialized view. i created a materialized view and log with the following query,
    create table test_mv (a number ,b number )
    alter table test_mv add constraint t_pk primary key ( a );
    insert into test_mv values (1,2);
    insert into test_mv values(2,2);
    insert into test_mv values(3,2);
    insert into test_mv values(4,2);
    insert into test_mv values(5,2);
    commit;
    CREATE MATERIALIZED VIEW LOG ON test_mv
    WITH SEQUENCE, ROWID
    *(a,b)*
    INCLUDING NEW VALUES;
    CREATE MATERIALIZED VIEW product_sales_mv
    ENABLE QUERY REWRITE
    AS SELECT  b  from test_mv;
    Now i want to update the query in the MV as 'Select a from test_mv' . for that i tried with
    *'ALTER MATERIALIZED VIEW product_sales_mv AS SELECT a from test_mv;'*
    But it throwing error,
    Error starting at line 5 in command:
    alter  MATERIALIZED VIEW product_sales_mv   AS SELECT  b  from test_mv
    Error report:
    SQL Error: ORA-00933: SQL command not properly ended
    +00933. 00000 - "SQL command not properly ended"+
    *Cause:+   
    *Action:+
    i guess i am doing wrong. kindly help me here. i want to update it without drop and recreate.
    thanks,
    Jeevanand.Ke

    Hi Jeeva,
    No. you cannot add or drop columns to the materialized view using the ALTER Statement.
    To Change the Structure of the view , drop and re-create the materialized view.
    To Alter a materialized view log, You can use the ALTER MATERIALIZED VIEW LOG. By this,
    You can add new columns to a materialized view log.
    ALTER MATERIALIZED VIEW LOG ON sggi_mrps.emp ADD(deptno);Thanks,
    Shankar
    Edited by: Shankar Viji on Aug 24, 2012 2:11 AM

  • Is it possible to update a query with another query?

    I'm trying to update a query with another query (see attached
    code). Here's my setup: I've got a table in an Access database in
    which I enter a string into a form and update. This string
    corresponds to a single record in another table of the same
    datasource. The first table has only one record to provide the
    second, which has many and will have more. Basically what I'm
    wondering is: Is this a valid thing to do in coldfusion? If not
    please help with an alterate method. I'm still a novice at
    coldfusion.
    The overall effect I'm going for is to display the one record
    as a featured truck profile on the web site:
    www.truckerstoystore.net.
    I currently get an error when I try to display the page with the
    current query setup.
    Check this page to see the error:
    www.truckerstoystore.net/currentTOW2.cfm
    Help on this issue is very much appreciated.
    ------------------------------------------------------------------------------------------ -----------------------------------------------------------------------

    I think this is what you are after
    <!--- this query will get all the records from the DB
    --->
    <cfquery name="cTOW" datasource="tow">
    SELECT *
    FROM currentTOW
    <!--- Do you need to find a particular record in the
    database --->
    <!--- If so, then you need a 'where' clause in here
    --->
    </cfquery>
    <!-- Loop the cTOW query for each record returned -->
    <cfloop query="cTOW">
    <!--- For the record returned from the cTOW query you now
    need to update the table --->
    <!-- Update the table -->
    <cfquery name="currentTOW" datasource="tow">
    UPDATE Your tblName
    SET
    Dataname = cTOW.DataValue
    </cfquery>
    </cfloop>
    thats it
    PS: I think your original query needs modifying. To return
    the exact records that you want to update from the original table.
    ie: Primary and foreign key relationship

  • ERROR: Updatable SQL Query already exists on page 20.

    Hello,
    I created a tabular form, then added a where clause and started getting the following error:
    Error in mru internal routine: ORA-20001: no data found in tabular form
    So I deleted all components of the tabular form (region, buttons, branches and process) and started building it again from scratch. This is a strategy that has worked for me a number of times in HTML DB. Unfortunately now I get the following error when trying to build a new tabular form:
    Updatable SQL Query already exists on page 20.You can only add one updatable SQL query per page. Select a different page.
    What is the logic that throws this error. I'm 99% convinced I've cleared the page of any updatable SQL, is there something on the application level I should also clear out?
    Thanks!

    Ignore this, problem solved. It seems I do have SQL reports that are marked as updatable even though they are just plain reports.
    Sorry.

  • EXPDP update in Query

    hello,
    RDBMS : Oracle 10g
    I am using expdp to dump my data.I want to know that is it possible to use update in query clause?
    I want to update a column value while exporting. e.g.
    table =tab1
    column=passwd
    I want that when I export the table data, column passwd's value may change to some default value given by me.
    Regards,
    tanveer

    tanveerhaider wrote:
    hello,
    RDBMS : Oracle 10g
    I am using expdp to dump my data.I want to know that is it possible to use update in query clause?
    I want to update a column value while exporting. e.g.
    table =tab1
    column=passwd
    I want that when I export the table data, column passwd's value may change to some default value given by me.
    Regards,
    tanveerIn Oracle, you can only read consistent data so you can't read anything which is inconsistennt. Why can't you change the value and than do the export?
    HTH
    Aman....

  • Re:XML update

    Hello Gurus ,
    i want to write a procedure for xml update ,
    consider,
    a table department consisting depart_no,depart_name,emp_Personal_info here emp_personal_info is a column of xmltype
    having data like (for a single department)(FOR DEPTNO 5801)
    <EMP>
      <EMPPERSONALINFO>
        <id>1</id>
        <name>x1</name>
        <join_date>12/2/2013</join_date>
        <work_station_no>LYH043897</work_station_no>
        <date_of_birth>2/2/1982</date_of_birth>
      </EMPPERSONALINFO>
      <EMPPERSONALINFO>
        <id>2</id>
        <name>x2</name>
        <join_date>2/5/2013</join_date>
        <work_station_no>LYH043898</work_station_no>
        <date_of_birth>30/5/1982</date_of_birth>
      </EMPPERSONALINFO>
    </EMP>a each department is holding information of over 100 employees(up to <id>100</id>)
    now i want to update emppersonal info with a new attribute <mainbranch>with a default data based on department number
    required output:
    <EMP>
      <EMPPERSONALINFO>
        <id>1</id>
        <name>x1</name>
        <join_date>12/2/2013</join_date>
        <work_station_no>LYH043897</work_station_no>
        <date_of_birth>2/2/1982'</date_of_birth>
        <mainbranch>CZDS</MAINBRANCH>
      </EMPPERSONALINFO>
      <EMPPERSONALINFO>
        <id>2</id>
        <name>x2</name>
        <join_date>2/5/2013</join_date>
        <work_station_no>LYH043898</work_station_no>
        <date_of_birth>30/5/1982</date_of_birth>
      <mainbranch>CZDS</MAINBRANCH>
      </EMPPERSONALINFO>
    </EMP>kindly guide me,
    regards,
    friend

    Hi,
    What's the database version?
    You've posted enough here to know how to properly ask a question.
    now i want to update emppersonal info with a new attribute <mainbranch>with a default data based on department numberYou wouldn't have such issue if the data model was correctly designed in the first place, using 3rd NF, i.e. with a separate child table to hold employee information.
    You can use insertchildXML or appendChildXML functions :
    SQL> update department t
      2  set t.emp_personal_info =
      3      insertchildxml(
      4        t.emp_personal_info
      5      , '/EMP/EMPPERSONALINFO'
      6      , 'mainbranch'
      7      , xmlelement("mainbranch", 'D' || t.dept_no)
      8      )
      9  where t.dept_no = 5801 ;
    1 row updated
    SQL> set long 5000
    SQL> select xmlserialize(document emp_personal_info indent) from department;
    XMLSERIALIZE(DOCUMENTEMP_PERSO
    <EMP>
      <EMPPERSONALINFO>
        <id>1</id>
        <name>x1</name>
        <join_date>12/2/2013</join_date>
        <work_station_no>LYH043897</work_station_no>
        <date_of_birth>2/2/1982</date_of_birth>
        <mainbranch>D5801</mainbranch>
      </EMPPERSONALINFO>
      <EMPPERSONALINFO>
        <id>2</id>
        <name>x2</name>
        <join_date>2/5/2013</join_date>
        <work_station_no>LYH043898</work_station_no>
        <date_of_birth>30/5/1982</date_of_birth>
        <mainbranch>D5801</mainbranch>
      </EMPPERSONALINFO>
    </EMP>
    These XML DML functions are deprecated as of 11.2.0.3 in favor of XQuery Update.

  • What do i need to produce XML from a query

    I am confused to what HTML DB, IAS, Portal products I need to have the database produce XML from a query. I want to write a simple query like select firstname, lastname from emp where username like 'someone'; and get XML from oracle
    <queryresults>
    <row index="1"><firstname>scott</firstname><lastname>tiger</lastname></row>
    </queryresults>
    Do I have to write custom procedures for each query or is there a neat out-of-the-box feature I can use here.

    Adobe Flash if the content is Flash based. It's a free download from Adobe's website. If you do download it, restart the computer after for the install to take effect.

  • ITunes tantrum - xml update, lost songs, data1.cab errors

    Hi All,
    In the last couple of days my iTunes has thrown a real tantrum.
    When I switched on iTunes on the PC two days ago, it didn't come up straight away, instead it said it was updating the XML. This went on for ages, so thinking it was just one of those wonky start-ups, I hit cancel and loaded it again - the result half my songs were missing - about 3500 gone.
    I had a back-up of the xml & library so I brought those in and ran iTunes again - this time when it did its xml update I let it finish.
    The result was that all the songs added in the last month were gone - so I re-added them.
    The next day I opened it up and the new songs were gone. (It's a 40gb iPod photo, with about 30gb used).
    I decided to update iTunes from v6 to v7 to see if that helped.
    The upload kept failing (sulking about the iTunes & Quicktime .cab files), but after repeated tries it eventually went through.
    I was able to use it that night and re-loaded most of the songs.
    I tried to open iTunes this morning and it tells me that I haven't got Quicktime v7.1.3 installed only v7.1 - however I have checked and I do have v7.1.3 installed.
    I've tried to re-download the 34mb iTunes 7 setup exe from the Apple site and all it sends is an uncertified file of varying size between 70 & 700mb, which can't run anyway.
    I tried loading the original iTunes software from the disk, but it's kicked out straight away due to a later version being in place.
    Please help, I've tried all the options my tiny brain can offer.
    Thanks,
    Paul

    Paul,
    Whilst it's possible you may get help in this Forum, you have a much better chance if you re post in the iTunes/Windows forum which is here.
    http://discussions.apple.com/forum.jspa?forumID=792
    There are experts there who rarely visit the iPod forums.

  • ITunes tantrum - xml update, lost songs, not recognising new Quicktime

    Hi All,
    In the last couple of days my iTunes has thrown a real tantrum.
    When I switched on iTunes on the PC two days ago, it didn't come up straight away, instead it said it was updating the XML. This went on for ages, so thinking it was just one of those wonky start-ups, I hit cancel and loaded it again - the result half my songs were missing - about 3500 gone.
    I had a back-up of the xml & library so I brought those in and ran iTunes again - this time when it did its xml update I let it finish.
    The result was that all the songs added in the last month were gone - so I re-added them.
    The next day I opened it up and the new songs were gone. (It's a 40gb iPod photo, with about 30gb used).
    I decided to update iTunes from v6 to v7 to see if that helped.
    The upload kept failing (sulking about the iTunes & Quicktime .cab files), but after repeated tries it eventually went through.
    I was able to use it that night and re-loaded most of the songs.
    I tried to open iTunes this morning and it tells me that I haven't got Quicktime v7.1.3 installed only v7.1 - however I have checked and I do have v7.1.3 installed.
    I've tried to re-download the 34mb iTunes 7 setup exe from the Apple site and all it sends is an uncertified file of varying size between 70 & 700mb, which can't run anyway.
    I tried loading the original iTunes software from the disk, but it's kicked out straight away due to a later version being in place.
    Please help, I've tried all the options my tiny brain can offer.
    Thanks,
    Paul

    Paul,
    Whilst it's possible you may get help in this Forum, you have a much better chance if you re post in the iTunes/Windows forum which is here.
    http://discussions.apple.com/forum.jspa?forumID=792
    There are experts there who rarely visit the iPod forums.

  • How to update combobox that with xml source binding when xml updated in Powershell

    I'm just newbie to WPF & Powershell. Currently have a Powershell program with XAML UI. Herein a combobox control binding a xml file. The problem lays in how can I update the combobox once xml updated? Thanks in advance!

    Hello sihat,
    I've read some articles about using PowerShell and WPF:
    https://msdn.microsoft.com/en-us/magazine/hh288074.aspx
    http://blogs.technet.com/b/heyscriptingguy/archive/2014/04/06/weekend-scripter-build-a-clock-widget-by-using-powershell-and-wpf.aspx
    It seems the steps are all related to using PowerShell to create WPF UI. As the script comes from PowerShell I would think that PowerShell related forum may much better.
    I will introduce things in WPF, if you want to make UI update based on your source,  the source must implement a suitable property change notification mechanism such as
    INotifyPropertyChanged. See
    How to: Implement Property Change Notification for an example of an
    INotifyPropertyChanged implementation.
    For more details about this WPF scenario, please see WPF databinding:
    https://msdn.microsoft.com/en-us/library/ms752347(v=vs.110).aspx
    If you want to do the same in PowerShell, please consider to post on PowerShell related forum to ask how you can write the same script.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Update an query using a loop valuee

    here is what i am doing?
    getting the result from the query: showing the form as:
    thereafter the updation is performed as:
    <cfquery datasource="#DSN#">
    UPDATE answer SET
    answer = '#Form.ans1[idx]#'
    where ID = #Form.G_Q#
    </cfquery>
    on new page, use of array or structure will be role playing
    here, but i am confused how this is achieved..

    In the example code you posted, you would have wound up with
    4 form fields, all named "ans1". This would have resulted in a
    comma-delimited list of your answers on the form's action page.
    this is probably not a great solution, especially since you are
    dealing with text that may contain commas. By creating a new
    numbered field for each answer, you can separate out the answer
    text and process it on the next page.
    For the update, you can loop over the fields you created
    using CF's scope structure notation: Form["MyVar"]. Using
    <cfqueryparam> will speed up your query also give you some
    protection against SQL injection.
    In the future, its very helpful to use <cfdump
    var="#Form#"> on the form processing page to see what form data
    is being passed and what fields are available.

  • Exhange Rate updation at query Level

    Dear Experts,
    While running SAP query choosing currency translation option "Conversion type on posting date", all the data takes effect with latest exchange rates.
    Ex. Data for the period May-08 takes effect of exchange rate of the month of Jan-09 i.e. USD =48.90000 instead of exchange rate 40.50000 which is for May-08.
    We want figures takes effect with respective months' exchange rate. We are updating exchange rate on periodic basis in BI. Pls suggest.
    Thanks,
    MMSl

    Hi,
    check this link
    http://space.itpub.net/15232446/viewspace-521037
    Thanks
    Hema

Maybe you are looking for

  • Oracle Tools Download and Price

    Please I need to know where do I get the following software (For example, OWB comes with DS (Developer Suilte)), and what's the price of each one: OMS (Oracle Management Server) - (Solaris) Oracle Enterprise Manager Console - (Windows) OWF (Oracle Wo

  • Does PreparedStatement use setDate method?

    Hello, Does PreparedStatement use setDate method? ex: pstmt.setDate(1, my_date); (pstmt is PreparedStatement, and my_date is java.sql.Date) When I run it, I found it will throw a SQLException. (I use DB is SQL Server) It seems that it couldn't write

  • Aggregation calc 'tipping point'

    I've observed an aggregation script anomaly that I'm hoping someone can shed some light on. I have a test cube with a test dataset with the following aggregation script: FIX("Scenario1","Scenario2","US Dollar", "Local Currency") ___Agg ("Product","Lo

  • Can't run iTunes off-network

    I have my laptop hooked into my company's network. When I remove my laptop from the network, iTunes won't open, saying it cannot find the iTunes folder. I can only run iTunes when I am hooked into my network settings. It would not even install on my

  • Install LR CC on several computers

    Is it possible to install LR CC on my job-Mac, my home-Mac and my Macbook pro? But just be "online" with my mobile apps from my job-Mac and have just the updated version on the other computers?