Reg :  vo.writeXML() how to filter the data before generating the xml data

Hi team,
I have table region with multi selection option.
My requirement is to fetch the data and generate the xml data for the selected rows.
By using : writeXML() --> it is fetching all the data.
What are the methods i need to use,so i can fetch only the selected data ?
Any pointers ?
-Sridhar

Hi Peddi,
i tried the way u mentioned :
But the new VO2 (Target) VO is having an extra row, iam not understanding how that is getting stored in VO2.
Can you please review the below query and let me know if any issue.
public void copyVO()
int rowCount=0 ;
OAFXMLVOImpl vo1 = getOAFXMLVO1(); //source
OAFXMLVOImpl vo2 = getOAFXMLVO2(); //destination
OAFXMLVORowImpl row2= null ;
OAFXMLVORowImpl row1 =null;
if(vo2!=null && vo2.hasNext())
{ vo2.first();
do
vo2.getCurrentRow().remove();
vo2.next();
while (vo2.hasNext());
oracle.jbo.Row[] rows = (oracle.jbo.Row[]) vo1.getFilteredRows("check", "Y");
rowCount = rows.length;
if(rowCount>0)
vo2.setMaxFetchSize(0);
for(int i=0;i<rowCount;i++)
row1 = (OAFXMLVORowImpl)rows;
System.out.println("User ID-->"+ row1.getUserId());
System.out.println("Checked -->"+ row1.getcheck() );
row2 = (OAFXMLVORowImpl) vo2.createRow();
row2.setUserId(row1.getUserId());
row2.setcheck(row1.getcheck());
vo2.insertRow(row2);
row2.setNewRowState(row2.STATUS_INITIALIZED);
} //end of if
-Sridhar

Similar Messages

  • I purchased a new iphone (the 4) and the old phone was the 3.  I used the 4 before syncing the data from the 3. Lost all my data that was stored in the 4! how can I get it back?

    Hi all,
    I purchased a iphone 4 and replaced my iphone 3.  I started using the 4 before syncing the 3 because I didn't know how to do this.  I just figured out how to sync and was successful however, I have now lost all data (list of to do's, calendar, photos (etc...) that went on the 4 before the sync.  How can I get the data back?
    Best!
    Suzanne (TribalEnergy)

    YOur data maybe gone, unless you did a backup of your phone, which doesn't sound like you did.

  • How can read BOM component date before save the production order??

    Hi Experts,
    In our company, we need to develop a program to read the BOM component data of the production order
    before we save the production order.
    That for example ,when we create and release a production order , before we save the production
    order,we want a porgram to read the BOM component data. If some component data can meet our
    requriement (may be if there is material requirement quantity>100 EA),then the system will pop up a
    small dialog box to remind us.
    There is user exit PPCO0007 and PPCO0007.But it seems they only can read the head data of the
    production order before we save the production order. And the BOM component data of the production
    order are saved in the RESB(Reservation Table).So if we do not save the production order,all the BOM
    component data are not saved in the RESB table.
    So how can slove the problem??
    How can read component date before save the production order??
    Are there any other user exit we can use???

    Hi Just wanted to check am I right that you are trying to check if you have enough Materials Available before you release or Save the order right ? if this is your business objective then when you create order you have material availability tab which checks and gives error if shortage is there. Please let me know if is this wht you asking for ?

  • How to return multipart HTTP response containing image data as well as xml data

    Hi,
    My web service accepts
    request as string and returns response as string. Being new to ASP.Net, please clarify my below doubts.
    a)  How
    can i provide multipart response of the below format while returning response in string format.. How to implement multi-part response where I need to return Image data as well as xml data also.
    HTTP/1.0 200 OK
    Date: Wed, 03 Mar 2004 14:45:11 GMT
    Server: xxx
    Connection: close
    Content-Type: application/xxx-multipart
    Content-Length: 6851
    Content-Type: image/jpeg
    Content-Length: 5123
    CommandID: asset14521
    <5123 bytes of jpeg data>
    Content-Type: xxx-xml
    Content-Length: 1523
    <?xml...
    Thanks,
    Divya

    Hi MeetDivya,
    I suggestion you post the question in the ASP.NET forums at
    http://forums.asp.net/. It is appropriate and more experts will assist you.
    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.

  • How to convert a data set into a xml data and vice versa

    i am new to oracle with xml..
    my aim is to convert a data set into a xml data and vice versa..
    my work is as follows...
    my query:
    select rggpk,rggcode,rggname from ms_regiongeo
    to convert a data set into a xml*
    select XMLType(trim(replace(dbms_xmlgen.getXML('select rggpk,rggcode, rggname from ms_regiongeo'),'<?xml version="1.0"?>',''))) XML_DATA from dual;
    (this works fine and output of this query is as follows..)
    <ROWSET>
    <ROW>
      <RGGPK>201</RGGPK>
      <RGGCODE>Asia</RGGCODE>
      <RGGNAME>Asia</RGGNAME>
    </ROW>
    <ROW>
      <RGGPK>1</RGGPK>
      <RGGCODE>OTH</RGGCODE>
      <RGGNAME>Others</RGGNAME>
    </ROW>
    <ROW>
      <RGGPK>21</RGGPK>
      <RGGCODE>COB</RGGCODE>
      <RGGNAME>Africa and Yemen</RGGNAME>
    </ROW>
    <ROW>
      <RGGPK>2</RGGPK>
      <RGGCODE>AUS</RGGCODE>
      <RGGNAME>Australia</RGGNAME>
    </ROW>
    <ROW>
      <RGGPK>23</RGGPK>
      <RGGCODE>IND</RGGCODE>
      <RGGNAME>Indian Sub Continent</RGGNAME>
    </ROW>
    <ROW>
      <RGGPK>24</RGGPK>
      <RGGCODE>TVM</RGGCODE>
      <RGGNAME>North America</RGGNAME>
    </ROW>
    </ROWSET>
    and to reverse this process, I tried a query like this..*
    select EXTRACTVALUE (XML_DATA,'ROWSET/ROW/RGGPK') as EMP_ID
    from(
            select XMLType(trim(replace(dbms_xmlgen.getXML('select rggpk,rggcode, rggname from ms_regiongeo'),'<?xml version="1.0"?>',''))) XML_DATA from dual
    )tab1but failed.. and raised with an eror: ORA-19025
    help me..
    regards,
    john

    Hi-
    my aim is to convert a data set into a xml data  You can refer to the below posts
    Adding namespace to XML output
    Re: how to convert table data in xml format based on the xsd.

  • The uploaded file CPSIDRPT.xml is invalid. The file should be in XML-DATA-T

    can someone explain me why am I getting following error message when I'm trying to upload a data defination file?
    The uploaded file CPSIDRPT.xml is invalid. The file should be in XML-DATA-TEMPLATE format.
    thanks........
    ketki----

    Based on the detail (or lack of) that you have provided, your file is not in the right format.
    Can you open the file in a internet browser? Is it well-formed XML?
    Edited by: SIyer on Dec 1, 2009 4:33 PM

  • The file should be in XML-DATA-TEMPLATE format

    Hi,
    When I am trying to upload the Data Definition file in XML publisher with EBS 11.5.10.2, I got "The uploaded file GLPAYBDXDO.xml is invalid. The file should be in XML-DATA-TEMPLATE format". I have tried changing the file name to different names including XML-DATA-TEMPLATE but I could not succeed. I appreciate for any help.
    Thanks,
    Ram.

    What is the content of your xml file. Is this sample xml file or Data Template.

  • I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpaid the first before pairing the second. How do I unpair?

    I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpair the first before pairing the second. If this is true, how do I unpair? If not, what can I do?

    I was premature in posting the question. I found the answer in andother posting, and it was successful.
    Thanks, and sorry for the false alarm.

  • TS1702 How to delete the game before off the Ipad?

    How to delete the game before off the Ipad?

    If you want to delete a game from your iPad, hold down its icon until all the icons begin to jiggle, and then tap the (x) button attached to the game you want to delete. Confirm the deletion and then press Home to stop the jiggling.

  • Can I back up the files before doing the recovery?

    Hello
    If using the recovery disk to load windows (I have Windows Vista 32-bit) is it possible to save files (pictures, etc...) before wiping out these files on the hard drive?
    I have not backed up some files and cannot access windows to do this now...am wondering if I can back up the files before doing the recovery?
    Any help would be appreciated : )

    Hello
    You can try to start Vista in Safe mode. Start your notebook and press F8. Choose option to start OS in safe mode. When Vista starts connect external HDD or USB memory stick and copy all your data there.
    I have done this three weeks ago. I was not able to start Vista properly due to blue screen.

  • Total number of pages before generating the PDF - OMR

    Dear all,
    We are facing the following problem. We want to apply OMR (optical mark recognition) barcoding on a batch of invoices.
    Basically there are two steps in the proces:
    - Fetch the batch of invoices created during the day, let's say 1000 invoices.
    - Calculate for this batch of invoices the total number of pages per customer. 1 customer can have multiple invoices per day.
    - If the number of pages per customer > 12, remove the invoices from the total batch (1000 invoices become then 800 for example).
    - Apply OMR logic on the remaining 800.
    My question is regarding step 2. The calculation of the total number of pages per customer. Is it possible to get the total number of pages before generating the PDF? Or do we have to 'simulate' the PDF to get to this number?
    Another question I have, does anybody have experience implementing OMR using adobe forms? Any experience to share?
    Thanks for your feedback
    Simon

    Hi Philippe,
    we can only determine the page size when its already loaded with data and its published/sent by ADS.
    i.e., the no of pages increases based on the data you feed to the form which mean by the time the form/script determines the number of pages it has published dynamically data is already there. so your requirement cannot be solved in that approach.
    the next approach which I can think of is as follows.
    lets say you display the invoices data as a table in the form.
    so then lets specify the row height to .5" which mean in a form with content area size of 15" we can display 30 records.
    so in the interface or the source program count the number of records per customer if they are < (12pages X 30 records = 360) leave them as they are else remove them for the list and process the data for other customers.
    As per your other query of having OMR on the form I have no Idea, I never worked on that but if its just any other type of barcode that shouldn't have any problem.
    Hope this helps you,
    Cheers,
    Sai

  • IV date Befor Service entry sheet date

    Hi.
    Can somebody help me to restrict user to  enter  IV date before service entry sheet date?

    Hi,
    Use t.code: OBA5, enter Application area  F5 and in next screen go for New Entries
    Enter  message no 149  & set as  Error & save.
    Now try ur transaction,
    If the above message setting not worked  then set  message no 149 as Error in Application area F5  in OBMSG t.code.
    Regards,
    Biju K

  • Cannot build the query or generate the report. WIS 30351

    I am trying to create a docuemtn using SDK. I have created a document and when I try to add dataprovider and update the document, I am facing the below error
    Cannot build the query or generate the report. WIS 30351
    http://help.sap.com/saphelpiis_sbo41sp5wi-sdk/frameset.htm?ec5645bc6fdb101497906a7cb0e91070.html
    Any help would be appreciated...

    Hi Pirabu,
    here's the required steps for what you described:
    1. Create a new report in folder with ID 12345:
         POST ../raylight/v1/documents
         request body:
            <document>
            <name>My New Doc</name>
            <folderId>12345</folderId>
            </document>
          response:
            <success>
            <message>The resource of type "Document" with identifier "54321" has been successfully created.</message>
            <id>54321</id>
            </success>
    2. use the new document ID when adding a data provider (ie universe ID is 5543)
          POST ../raylight/v1/documents/54321/dataproviders
          request body:
            <dataprovider>
            <name>Query 1</name>
            <dataSourceId>5543</dataSourceId>
            </dataprovider>
          response:
            <success>
            <message>The resource of type "Data provider" with identifier "DP0" has been successfully created.</message>
            <id>DP0</id>
            </success>
    If you are doing something different, please provide the steps you are using and the type of datasource you are adding (unv, unx, Bex query etc).
    Is the error when adding the data provider, or do you have an additional step updating the document?
    Also, what version of BI4 are you working with?
    Dan

  • Can the sd order generates the cs service order automaticlly?

    Hi,All
    I have a querry regarding the integration of sd and cs module.can the sd order generates the cs service order automaticlly?
    if can,how to set the sd order to actualize the function?
    thanks in advance!

    Hi,
    Actually in Case u r using repair order then
    U first create service notification IW51
    then u nned to create a repair order (Config setting is in SPRO --- Folowon actions in Service notifcation, fn modules assigned here)
    After u create a repair order
    U get repair service metrial via mat determination
    maintain in VB11 -- u nnede to maintain service product and task list for it and this linked to main tiem in mat det
    Now u get repair order with mat
    then do PGR via VRRE
    then u can goto sales order and rasie a service order...
    Customising maintained for Service order types in Customising
    U can run std in SAp and c , then check the  onfig settings
    Reward if useful
    Krishna

  • I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?

    I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?  Help!

    If the scan is in B&W, then play with the Threshold setting here
    If it's in Color, then you will have to open the scan in a Raster editing software (like Photoshop) and play with the Brightness/Contrast settings to make the lines bolder.

Maybe you are looking for

  • "iTunes has encountered an error.." Help! I've tried EVERYTHING.

    I am running WIndows XP Media Center SP3 on an aging HP PC (Pentium 4). In the past, iTunes (v. 7, I believe) worked just fine on my PC with no problems.  For a long time, I did not have a 'need' to upgrade the software because it worked fine the way

  • Why I'm not able to create my account?

    Hi, I'm trying to create my account for Itunes, It just don't work. I From Brasil and I have an international credit card. But I just can't type my address. It force me to give an American Address. So I try to create my pay-pal account, and I have th

  • Blocking query in SSMS(SQL Server Management Studio)

    I am a Fresher in writing queries. I wrote following a query to block the A/P invoice, if price added in A/P invoice and the Price in Price list is different. and this invoice should not be able to add by users other than UserSign = 5,6. IF (@transac

  • WHEN I SIGN IN TO MY ITUNES, SOMEONE ELSES PLAYLISTS/MUSIC COMES UP!

    THIS IS DRIVING ME ABSOLUTELY MAD! ME & MY DAUGHTER BOTH HAVE IPHONES & ITUNES ACCOUNTS. THE PROBLEM IS, WHEN I SIGN IN TO MY ACCOUNT, HER MUSIC PLAYLISTS COME UP & MINE HAVE DISAPPEARED! I HAVE BEING TRYING TO RESOLVE THIS FOR DAYS NOW. WHY CAN'T I

  • Installing Photoshop cs6 on second computer

    How do I install Photoshop cs6 on a second computer (mac) when I don't have the cd anymore?  I originally bought the student version off of Amazon and I registered it with Adobe. I looked up my serial code on my adobe profile, but I don't know the pr