How to update BLOB resource ???

Hi,
I've created BLOB resource successfully.
But after my attempt to update it using
UPDATE resource_view SET res=updatexml(res,'/Resource/Contents/*',blob_res)
WHERE any_path= '/path';
I get an error
ORA-06550: line 17, column 7: PL/SQL: ORA-00932: inconsistent datatypes: expected NUMBER got BLOB ORA-06550: line 15, column 3: PL/SQL: SQL Statement ignored
I need a help !!!
Thanks
Viacheslav

Please note that technically updating XDB$RESOURCE directly is not supported.....
open mdrake-lap 2100
user XDBTEST XDBTEST
cd /home/XDBTEST
ls -l
put "RedwoodShores.jpg" "RedwoodShores.jpg"
ls -l
get "RedwoodShores.jpg" "RedwoodShores.jpg.out"
quit
Connected to mdrake-lap.
220 mdrake-lap FTP Server (Oracle XML DB/Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc
331 pass required for XDBTEST
230 XDBTEST logged in
250 CWD Command successful
200 PORT Command successful
150 ASCII Data Connection
drw-r--r-- 2 XDBTEST oracle 0 MAR 22 10:13 xsd
226 ASCII Transfer Complete
ftp: 59 bytes received in 0.25Seconds 0.24Kbytes/sec.
200 PORT Command successful
150 ASCII Data Connection
226 ASCII Transfer Complete
ftp: 352071 bytes sent in 0.88Seconds 399.17Kbytes/sec.
200 PORT Command successful
150 ASCII Data Connection
-rw-r--r-- 1 XDBTEST oracle 352071 MAR 22 10:13 RedwoodShores.jpg
drw-r--r-- 2 XDBTEST oracle 0 MAR 22 10:13 xsd
226 ASCII Transfer Complete
ftp: 132 bytes received in 0.00Seconds 132000.00Kbytes/sec.
200 PORT Command successful
150 ASCII Data Connection
226 ASCII Transfer Complete
ftp: 352071 bytes received in 0.08Seconds 4400.89Kbytes/sec.
221 QUIT Goodbye.
open mdrake-lap 2100
user XDBTEST XDBTEST
cd /home/XDBTEST
ls -l
get "RedwoodShores.jpg" "output1.jpg"
quit
Connected to mdrake-lap.
220 mdrake-lap FTP Server (Oracle XML DB/Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc
331 pass required for XDBTEST
230 XDBTEST logged in
250 CWD Command successful
200 PORT Command successful
150 ASCII Data Connection
-rw-r--r-- 1 XDBTEST oracle 352071 MAR 22 10:13 RedwoodShores.jpg
drw-r--r-- 2 XDBTEST oracle 0 MAR 22 10:13 xsd
226 ASCII Transfer Complete
ftp: 132 bytes received in 0.00Seconds 132000.00Kbytes/sec.
200 PORT Command successful
150 ASCII Data Connection
226 ASCII Transfer Complete
ftp: 352071 bytes received in 0.18Seconds 1955.95Kbytes/sec.
221 QUIT Goodbye.
SQL*Plus: Release 10.1.0.2.0 - Production on Mon Mar 22 11:14:00 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> spool testcase.log
SQL> set trimspool on
SQL> --
SQL> set timing on
SQL> set long 10000
SQL> set pages 10000
SQL> set feedback on
SQL> set lines 132
SQL> --
SQL> connect sys/oracle as sysdba
Connected.
SQL> --
SQL> alter session set current_schema = XDB
2 /
Session altered.
Elapsed: 00:00:00.01
SQL> create or replace package XDB_EXAMPLES
2 AUTHID DEFINER
3 as
4 procedure updateResource(path VARCHAR2,content BLOB);
5 end;
6 /
Package created.
Elapsed: 00:00:00.12
SQL> show errors
No errors.
SQL> --
SQL> select * from all_errors where owner = 'XDB'
2 /
OWNER NAME TYPE SEQUENCE LINE POSITION
TEXT
ATTRIBUTE MESSAGE_NUMBER
XDB XDB_EXTENSIONS PACKAGE 1 4 42
PLS-00103: Encountered the symbol "(" when expecting one of the following:
:= . ) , @ % default character
The symbol ":=" was substituted for "(" to continue.
ERROR 103
1 row selected.
Elapsed: 00:00:00.03
SQL> create or replace package body XDB_EXAMPLES
2 as
3 --
4 procedure updateResource(path VARCHAR2,content BLOB)
5 is
6 RESID RAW(16);
7 begin
8 select RESID
9 into RESID
10 from RESOURCE_VIEW
11 where equals_path(res,path) = 1;
12 -- Not really supported...
13 update XDB.XDB$RESOURCE R
14 set R.XMLDATA.XMLLOB = content
15 where object_id = RESID;
16 commit;
17 end;
18 --
19 end;
20 /
Package body created.
Elapsed: 00:00:00.01
SQL> show errors
No errors.
SQL> --
SQL> select * from all_errors where owner = 'XDB'
2 /
OWNER NAME TYPE SEQUENCE LINE POSITION
TEXT
ATTRIBUTE MESSAGE_NUMBER
XDB XDB_EXTENSIONS PACKAGE 1 4 42
PLS-00103: Encountered the symbol "(" when expecting one of the following:
:= . ) , @ % default character
The symbol ":=" was substituted for "(" to continue.
ERROR 103
1 row selected.
Elapsed: 00:00:00.01
SQL> grant execute on XDB_EXAMPLES to public
2 /
Grant succeeded.
Elapsed: 00:00:00.03
SQL> create or replace public synonym XDB_EXAMPLES for XDB_EXAMPLES
2 /
Synonym created.
Elapsed: 00:00:00.00
SQL> connect &1/&2
Connected.
SQL> --
SQL> declare
2 targetFile BFILE;
3 content BLOB;
4 begin
5 targetFile := BFILENAME(USER,'&4');
6 DBMS_LOB.fileopen(targetFile, DBMS_LOB.file_readonly);
7 DBMS_LOB.createTemporary(content,true,DBMS_LOB.SESSION);
8 DBMS_LOB.loadFromFile(content,targetFile,dbms_lob.getLength(targetFile),1,1);
9 XDB_EXAMPLES.updateResource('/home/&1/&3',content);
10 DBMS_LOB.freeTemporary(content);
11 DBMS_LOB.fileclose(targetFile);
12 commit;
13 end;
14 /
old 5: targetFile := BFILENAME(USER,'&4');
new 5: targetFile := BFILENAME(USER,'Concorde.jpg');
old 9: XDB_EXAMPLES.updateResource('/home/&1/&3',content);
new 9: XDB_EXAMPLES.updateResource('/home/XDBTEST/RedwoodShores.jpg',content);
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.77
SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
open mdrake-lap 2100
user XDBTEST XDBTEST
cd /home/XDBTEST
ls -l
get "RedwoodShores.jpg" "output2.jpg"
quit
Connected to mdrake-lap.
220 mdrake-lap FTP Server (Oracle XML DB/Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc
331 pass required for XDBTEST
230 XDBTEST logged in
250 CWD Command successful
200 PORT Command successful
150 ASCII Data Connection
-rw-r--r-- 1 XDBTEST oracle 235782 MAR 22 10:13 RedwoodShores.jpg
drw-r--r-- 2 XDBTEST oracle 0 MAR 22 10:13 xsd
226 ASCII Transfer Complete
ftp: 132 bytes received in 0.00Seconds 132000.00Kbytes/sec.
200 PORT Command successful
150 ASCII Data Connection
226 ASCII Transfer Complete
ftp: 235782 bytes received in 0.22Seconds 1071.74Kbytes/sec.
221 QUIT Goodbye.
-rwxrwxrwa 1 mdrake None 235782 Aug 9 2003 Concorde.jpg
-rwxrwxrwa 1 mdrake None 352071 Aug 9 2003 RedwoodShores.jpg
-rwxrwxrwa 1 mdrake None 352071 Mar 22 11:14 output1.jpg
-rwxrwxrwa 1 mdrake None 235782 Mar 22 11:14 output2.jpg
$
$

Similar Messages

  • How to update binary resource from java?

    Oracle 9i release 2 xmldb
    What is the recommended way to update the contents of a binary resource via JDBC. Pointers to documentation would be very helpful. The XML DB User's Guide doesn't say much about binary resources, except for using WebDAV and FTP.
    The following executed normally but the database isn't affected.
    try
    conn = _project.getConnectionManager().getConnection();
    conn.setAutoCommit (false);
    stmt = conn.prepareStatement (
    "SELECT XDBUriType(?).getBlob() FROM PATH_VIEW WHERE PATH = ?"
    stmt.setString(1, _path);
    stmt.setString(2, _path);
    rset = stmt.executeQuery();
    rset.next();
    BLOB blob = ((OracleResultSet)rset).getBLOB(1);
    if (blob != null)
    OutputStream out = blob.getBinaryOutputStream();
    byte[] bytes = contents.getBytes();
    out.write(bytes);
    out.flush();
    out.close();
    else
    System.out.println("blob = null");
    conn.commit();
    conn.close();
    catch (java.sql.SQLException e)
    e.printStackTrace();

    Hi pooja123
    We have the code to append resource name "WriteBack" to the waveset.resources property, we can actually read the value from <ref>accounts[WriteBack].something<ref>. But we just can't write anything back.
    I heard from someone that there are not way to write back anything to resource from wrokflow. So I create an Java Clss to do the writeBack.

  • How to update resource content (XML Versioning)

    Hi,
    How to update resource content in the resource_view?
    I am trying to use XML Versioning. And not able to update the resource content using PL/SQL. Upon executing update, sql prompt says 1 row updated, but when I extract the same resource, it returns previous values. Is this a bug?
    I tired the following statements:
    --Create Resource
    declare
    bret boolean;
    begin
    bret := dbms_xdb.createresource('/public/test.xml','<Test>Version 1</Test>');
    end;
    --Update Resource
    update resource_view
    set res = updatexml(res, '/Resource/Contents/Test/text()', 'Version 2') where any_path = '/public/test.xml';
    --Extract the resource
    select extract(res, 'Resource/Contents') from resource_view where any_path = '/public/test.xml';
    EXTRACT(RES,'RESOURCE/CONTENTS')
    <Contents xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">
    <Test>Version 1</Test>
    </Contents>
    Any help appriciated.
    Thanks

    Hi,
    Update the whole 'Test' element itself with the new element and value.
    example:
    update resource_view
    set res = updatexml(res, '/Resource/Contents/*', '<Test>Version 2</Test>') where any_path = '/public/test.xml';
    Hope that helps.
    Savitha.

  • How to update a table containing BLOB?

    Hi,
    I'm trying to update two columns in a table.
    one is NUMBER and the other is BLOB
    Is there a way to do so in OCCI in a single operation ?
    the table looks like this:
    CREATE TABLE ACCUMULATORS
    (TARGET_SUBS NUMBER(9),
    ITERATOR NUMBER(9),
    NUMERATOR NUMBER(9),
    LARGE_DATA BLOB,
    PRIMARY KEY(TARGET_SUBS,ITERATOR));
    and the query is something like:
    UPDATE ACCUMULATORS SET NUMERATOR = :x1 , LARGE_DATA = :x2 WHERE (TARGET_SUBS = :x3) AND (ITERATOR = :x4);
    Thanks,
    Menachem

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) from another server ex: Transaction server?
    Set up steps so that inset, update or delete operation gets done correctly across servers.
    I was not sure about the answer, it would be great if someone please put some light on this and explain in details about this process in MS SQL Server 2008 R2.
    Also it would be very helpful if you please describe would it be different for SQL Server 2012? If so, then what are the steps?

  • How to update/change the value of elements in an xml file?

    Hi Everyone,
    Could any one of u tell me how to update the value of elements in an XML file, using java? The reason is i want to use an XML file as a data source (i.e. more or less like a database), without using any RDBMS, for simple applications such as to read a record and update the record. By the way, my XML file will have only one record, such as the current weather information, with fields such as temperature, humdity etc. for 1 city only.
    Thanks in advance.

    Here is a solution how to check a particular value or element name in an xml and update the changes e to an xml.
    Sample.xml
    <URLConstructor>
    <application name="cp_outage">
    <resource>hello</resource>
    <value>val</value>
    </application>
    <application name="cp_outage">
    <resource>hello</resource>
    <value>val</value>
    </application>
    </URLConstructor>
    XMLWriter.java
    package com;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.jdom.Document;
    import org.jdom.Element;
    import org.jdom.JDOMException;
    import org.jdom.input.DOMBuilder;
    import org.jdom.output.XMLOutputter;
    // used for printing
    import org.apache.xml.serialize.XMLSerializer;
    import org.jdom.output.XMLOutputter;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.util.Iterator;
    import java.util.List;
    class XMLWriter{
    public void update(File fileName)
    try {
              DOMBuilder domBuilder=new DOMBuilder();
              Document doc=domBuilder.build(fileName);
              Element element=doc.getRootElement();
              getChildren(element);
              writeToXML(doc,fileName);
              getChildren(element);
    } catch (Exception e) {
    e.printStackTrace();
         * @param doc
         private void writeToXML(Document document,File filePath)
                   XMLOutputter xmloutputter = new XMLOutputter();
                        try
                             FileOutputStream fileOutputStream = new FileOutputStream(filePath);
                             xmloutputter.output(document, fileOutputStream);
                             fileOutputStream.close();
                        catch (FileNotFoundException e)
                             e.printStackTrace();
                        catch (IOException e)
                             e.printStackTrace();
         public void getChildren(Element element)
                        if(!element.hasChildren())
                             return;
                        List childrenList = element.getChildren();
                        Iterator itr=childrenList.iterator();
                        while(itr.hasNext())
                             Element childElement=(Element) itr.next();
                             if(childElement.hasChildren())
                                       getChildren(childElement);
    //                                   System.out.println("Name "+childElement.getName());
    //                                   System.out.println("Value "+childElement.getText());
                                       if(childElement.getText().equals("hello") || (childElement.getName().equals("resource")))
                                            updateInfo(childElement,"New_Resource","AddedText");
         * @param childElement
         * @param string
         * @param string2
         private void updateInfo(Element element, String elementName, String value)
              element.setName(elementName);
              element.setText(value);          
    static public void main(String[] args)
    XMLWriter xmlWriter=new XMLWriter();
    xmlWriter.update(new File("c:/sample.xml"));
    After execution the file will be changed to
    <URLConstructor>
    <application name="cp_outage">
    <New_Resource>AddedText</New_Resource>
    <value>val</value>
    </application>
    <application name="cp_outage">
    <New_Resource>AddedText</New_Resource>
    <value>val</value>
    </application>
    </URLConstructor>
    Regards,
    Maheswar

  • How to show BLOB type Column ? In XE

    How to show BLOB type Column as image in APEX report area? (In XE)
    I did it with the following procedure
    create or replace PROCEDURE MY_IMAGE_DISPLAY (p_image_id IN NUMBER)
    AS
    l_mime VARCHAR2 (255);
    l_length NUMBER;
    l_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    BEGIN
    SELECT 'JPEG', MLOGO, 'IMAGE', DBMS_LOB.getlength (MLOGO)
    INTO l_mime, lob_loc, l_file_name, l_length
    FROM CARS_TABLE
    WHERE M_ID = p_image_id;
    OWA_UTIL.mime_header (NVL (l_mime, 'application/octet'), FALSE);
    HTP.p ('Content-length: ' || l_length);
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (lob_loc);
    END my_image_display;
    GRANT EXECUTE ON my_image_display TO PUBLIC;
    and executed the following command
    CREATE PUBLIC SYNONYM my_image_display FOR shema_name.my_image_display;
    but under XE , I can not see synonym? why?

    sakrami,
    Your question really belongs in the XE forum:
    Oracle Database Express Edition (XE)
    I think this posting addresses your question:
    Re: Handling of pictures changed? Item values not properly updated in Beta
    Joel

  • How to update paid apps in configurator

    how to update paid apps in configurator

    Are you a school or a business with many devices with similar configurations? If not, don't mess with it.
    If yes, Apple provides a number of resources. Here are a couple to get you started. Search the Apple support site for more.
    iPad Business & Education Support
    Tutorials - Intro to Apple Configurator

  • How to update a ScriptUIGraphics object?

    Hello,
    I've been able to use ScriptUIGraphics, but as far as I've seen there's no way to update / change any object, nor it seems possible to call the onDraw() handler but once if it contains either fillPath() or strokePath() - which usually does.
    For instance, the following test script pops up a panel with a red square in it. Fine. When you click the "Try" button, the onDraw() is fired again and should draw a smaller square, but stops with a very informative "cannot execute" error at some point within the onDraw():
    // ScriptUI graphics update issue
    // resource string
    var winRes = "dialog {  \
        text: 'ScriptUI Graphics test',  \
        margins: 15, \
        alignChildren: 'row', \
        canvas: Panel {  \
            preferredSize: [200, 200], \
            properties: {borderStyle: 'black'} , \
        buttonsGroup: Group{ \
            cancelButton: Button { text: 'Cancel', properties:{name:'cancel'} }, \
            tryButton: Button { text: 'Try', properties:{name:'try'},size: [40,24], alignment:['right', 'center'] }, \
    // Window
    var win = new Window(winRes);
    // define the graphic property
    canvasGraphics = win.canvas.graphics
    // do the drawing
    win.canvas.onDraw = function() {
              // creates a red filled square
              canvasGraphics.newPath()
              canvasGraphics.rectPath(10, 10, 200, 200)
              canvasGraphics.fillPath(canvasGraphics.newBrush(canvasGraphics.BrushType.SOLID_COLOR, [1,0,0,1], 1)) // HERE
    win.buttonsGroup.tryButton.onClick = function() {
              win.canvas.onDraw.call()
    win.show()
    When you run it, it works as expected; if you click the Try button, an error is fired when the script gets to the line ("HERE" in the code), that is: when it comes to fill the path.
    Strangely enough! Because it doesn't seem to be a problem with the onDraw second call (apparently the second square path is constructed, but can't be filled).
    Am I doing something wrong here? Should I first delete the original square (how?!), or somehow initialize it again? Are ScriptUIGraphics immutable somehow?
    --- Update ---
    Further experiments led me to understand that onDraw() (so the whole drawing) seem to be called just once - when the Window is shown. I've tried to remove and rebuild the canvas Panel altogether, but its own new onDraw() is never called - nor an explicit call works. Apparently you can't invoke win.show() again, nor hide and show it. Ouch!
    Thanks in advance for any suggestion
    Davide

    Sorry, I do not understand what do you really want (because of my bad english)
    Try to change the bg color of the panel in the dialog box by clicking on button? Something like this?
    // ScriptUI graphics update issue
    // resource string
    var winRes = "dialog {  \
        text: 'ScriptUI Graphics test',  \
        margins: 15, \
        alignChildren: 'row', \
        canvas: Panel {  \
            preferredSize: [200, 200], \
            properties: {borderStyle: 'black'} , \
        buttonsGroup: Group{ \
            cancelButton: Button { text: 'Cancel', properties:{name:'cancel'} }, \
            tryButton: Button { text: 'Try', properties:{name:'try'},size: [40,24], alignment:['right', 'center'] }, \
    // Window
    var win = new Window(winRes);
    // define the graphic property
    win.canvas.graphics.backgroundColor = win.canvas.graphics.newBrush (win.canvas.graphics.BrushType.SOLID_COLOR, [1,0,0],1);
    win.buttonsGroup.tryButton.onClick = function() { // change the graphic background property by click on Button [try]
    win.canvas.graphics.backgroundColor = win.canvas.graphics.newBrush (win.canvas.graphics.BrushType.SOLID_COLOR, [0,0,1],1);
    win.show()

  • Updating blob files

    can somebody help me, can mysql update blob data fields? or is there another way to change data i blob columns/...

    Hi,
    I've done this before in Oracle so not sure about mysql.
    In Oracle, we have to insert a row into the database with an empty BLOB using the empty_blob() function within Oracle.
    Then its a matter of calling a select on the row for UPDATE and streaming the BLOB into the database.
    eg.
    String sql = "INSERT into TABLE values (a,empty_blob());
    ... execute sql
    then select on the table like this
    String sql = "Select BLOB from TABLE where id = a for UPDATE; (Where BLOB is your Blob column name)
    execute sql and the BLOB value returned can be used
    BLOB blob = (BLOB)rs.getBlob(1);
    I had to cast from the java.sql.Blob type to the oracle.sql.BLOB type then get an output stream and stream your data in. I used a byte[] to do this.
    I'm not sure how you would go about this in mysql but maybe I've pointed you in the right direction.
    hope this helps

  • How to update UDF in OID11g(OIM 11g configured with LDAP SYNC)

    Hi All,
    I have configured OIM11g with LDAP SYNC and it is working fine. i have added some UDF on the user creation form and the same attributes has been created on OID as well. Now, when i create users on OIM with these custom attributes the values are not getting updated on OID resource, can anyone please let me know how to update these attributes on OID?
    Thanks in advance,

    to Update a UDF you must assign a copy value adpter in Lookup.USR_PROCESS_TRIGGERS(design console / lookup definition)
    eg.
    CODE --------------------------DECODE
    USR_UDF_MYATTR1----- Change MYATTR1
    USR_UDF_MYATTR2----- Change MYATTR2
    Edited by: Lighting Cui on 2011-8-3 上午12:25

  • How to (backward) integrate Resources from MRS (7.0) to CS-orders

    Hello All,
    Does anybody know how to (backward) integrate resources in CS-orders in MRS 7.0?
    solved

    First of all, Photoshop 7.x is out of the upgrade loop altogether, so you'll be paying full price for whatever you buy.  Incidentally, make sure you have applied the 7.0.1 update.  Nobody should be running 7.0 at all.
    Secondly, you need to specify on what machine you'll be running the new version.
    Then tell us whether you shoot RAW images or JPEGs, which in my judgment defines whether you absolutely need CS5.
    It may also be that Photoshop Elements may be enough for your needs (note that there is a dedicated Photoshop Elements forum, Elements is not Photoshop).  More info is needed from you.
    Wo Tai Lao Le
    我太老了

  • How to Updates High Availability Listener IP

    Hi,
    i have created SQL Server High Availability Group with listener.  Now Cluster, machine, and listener IP have changed.
    pls guide me step how to updated all IP Cluster, and HA availability listener.
    thx 
    iffi

    Hi imughal,
    As your description, you want to modify the listener IP address in high availability group and the IP address in cluster server.
    Firstly, you could modify a listener IP address on primary replica using the following statement:
    ALTER AVAILABILITY GROUP group_name
    MODIFY LISTENER ‘dns_name’
    ADD IP { (‘four_part_ipv4_address’,  ‘four_part_ipv4_mask’) | (‘dns_nameipv6_address’) }
    For more information about the process, please refer to the article:
    http://msdn.microsoft.com/en-us/library/ff878601.aspx
    Secondly, you could change the IP address of network adapters in cluster server following the steps below.
    1.Change the IP address of the network adapter on node A.
    2.Start Cluster Administrator and open a connection to the cluster.
    3.Double-click the IP Address resource to open its properties.
    4.On the Parameters tab in the IP Address resource properties, make sure that the Network to Use box contains the new network as the network to use.
    5.Fail all groups over to the functional node A and change the IP addresses for the network adapters in node B. Next, reboot the computer.
    6.When both nodes agree on the subnets, the old networks disappear and the new networks are created. You can rename the networks at this time.
    For more information about the process, please refer to the article:
    http://support2.microsoft.com/kb/230356/en-us?p=1
    Regards,
    Michelle Li

  • Update the resource attrubute

    Hi , Groovers
    I'm using IdM 5.5.
    I'd like to unlink to the resource after then write the resource attribute, when feedOp is delete in ActiveSync.
          <Field>
            <Disable>
              <neq>
                <ref>feedOp</ref>
                <s>delete</s>
              </neq>
            </Disable>
            <Field name='accounts[test_LDAP].SyncFlg'>
              <Expansion>
                <s>ture</s>
              </Expansion>
            </Field>
          </Field>     
          <Field>
            <Disable>
              <neq>
                <ref>feedOp</ref>
                <s>delete</s>
              </neq>
            </Disable>
            <Field name='resourceAccounts.currentResourceAccounts[test_LDAP].unlink'>
              <Expansion>
                <s>true</s>
              </Expansion>
              <Disable>
                <eq>
                  <ref>resourceAccounts.currentResourceAccounts[test_LDAP].exists</ref>
                  <s>no</s>
                </eq>
              </Disable>
            </Field>
          </Field>This code didn't work..and didn't update the resource attrubute(syncflg), and unlink the resource .
    How do I have to do?
    thanks.
    Micky

    Hello Karthi,
    Can you just preselct the business events from HRVPVA into an internal table then loop at the table as you are processing the RFC?  This would probably be a more efficient manner of processing the Resources then trying to use BDC logic to select each one.
    Jereme

  • How to update link and import data of relocated incx file into inca file?

    Subject : <br />how to update link and import data of relocated incx file into inca file.?<br />The incx file was originally part of the inca file and it has been relocated.<br />-------------------<br /><br />Hello All,<br /><br />I am working on InDesignCS2 and InCopyCS2.<br />From indesign I am creating an assignment file as well as incopy files.(.inca and .incx file created through exporing).<br />Now indesign hardcodes the path of the incx files in inca file.So if I put the incx files in different folder then after opening the inca file in InCopy , I am getting the alert stating that " The document doesn't consists of any incopy story" and all the linked story will flag a red question mark icon.<br />So I tried to recreate and update the links.<br />Below is my code for that<br /><br />//code start*****************************<br />//creating kDataLinkHelperBoss<br />InterfacePtr<IDataLinkHelper> dataLinkHelper(static_cast<IDataLinkHelper*><br />(CreateObject2<IDataLinkHelper>(kDataLinkHelperBoss)));<br /><br />/**<br />The newFileToBeLinkedPath is the path of the incx file which is relocated.<br />And it was previously part of the inca file.<br />eg. earlier it was c:\\test.incx now it is d:\\test.incx<br />*/<br />IDFile newIDFileToBeLinked(newFileToBeLinkedPath);<br /><br />//create the datelink<br />IDataLink * dlk = dataLinkHelper->CreateDataLink(newIDFileToBeLinked);<br /><br />NameInfo name;<br />PMString type;<br />uint32 fileType;<br /><br />dlk->GetNameInfo(&name,&type,&fileType);<br /><br />//relink the story     <br />InterfacePtr<ICommand> relinkCmd(CmdUtils::CreateCommand(kRestoreLinkCmdBoss)); <br /><br />InterfacePtr<IRestoreLinkCmdData> relinkCmdData(relinkCmd, IID_IRESTORELINKCMDDATA);<br /><br />relinkCmdData->Set(database, dataLinkUID, &name, &type, fileType, IDataLink::kLinkNormal); <br /><br />ErrorCode err = CmdUtils::ProcessCommand(relinkCmd); <br /><br />//Update the link now                         <br />InterfacePtr<IUpdateLink> updateLink(dataLinkHelper, UseDefaultIID()); <br />UID newLinkUID; <br />err = updateLink->DoUpdateLink(dl, &newLinkUID, kFullUI); <br />//code end*********************<br /><br />I am able to create the proper link.But the data which is there in the incx file is not getting imported in the linked story.But if I modify the newlinked story from the inca file,the incx file will be getting update.(all its previous content will be deleted.)<br />I tried using <br />Utils<IInCopyWorkflow>()->ImportStory()<br /> ,But its import the incx file in xml format.<br /><br />What is the solution of this then?<br />Kindly help me as I am terribly stuck since last few days.<br /><br />Thanks and Regards,<br />Yopangjo

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • How to update ADF VO object to refresh the data in ADF Pivot table

    I need to know how to update the View object so that the date in pivot table is refreshed/updated/filtered.
    here are the steps I performed to create ADF pivot table application using VO at design time.
    1) created a collection in a Data Control (ViewObject in an ApplicationModule) that provides the values I wanted to use for row and column labels as well the cell values (Used the SQL query)
    2) Dragged this collection to the page in which wanted to create the pivot table
    3) In the pivot table data binding editor specified the characteristics of the rows (which attribute(s) should be displayed in header), the columns (likewise) and the cells.
    Now, I have a requirement to update/filter the data in pivot table on click of check box and my question is how to I update the View object so that the date in pivot table is refreshed/updated/filtered.
    I have got this solution from one of the contact in which a WHERE clause on an underlying VO is updated based upon input from a Slider control. In essence, the value of the control is sent to a backing bean, and then the backing bean uses this input to call the "filterVO" method on the corresponding AppModule:
    but, I'm getting "operationBinding" object as NULL in following code. Please let me know what's wrong.
    here is the code
    Our slider component will look like
    <af:selectBooleanCheckbox label="Unit" value="#{PivotTableBean.dataValue}"
    autoSubmit="true" />
    The setDataValue() method in the backing bean will get a handle to AM and will execute the "filterVO" method in that, which takes the NumberRange as the input parameter.
    public void setDataValue(boolean value) {
    DataValue = value;
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("filterVO");
    Object result = operationBinding.execute();
    The filterVO method in the AMImpl.java will get the true or false and set the where Clause for the VO query to show values.
    public void filterVO(boolean value) {
    if (value != null) {
    ViewObjectImpl ibVO = getVO1();
    ibVO.setWhereClause("PRODUCT_TOTAL_REVENUE(+) where rownum < 10");
    ibVO.executeQuery();
    }

    Did you define a filterVO action in your pagedef.xml file?
    You might want to read on how to access service method from a JSF Web Application in the ADF Developer Guide for 10.1.3 chapter 8.5

Maybe you are looking for