How to retrieve project assets into file?

Hi All,
I wanted to retrieve all the assets which are present in a project through startSQLRepository.
Can I do this? How to do it? If No, is there any way I can do this?
Thanks in Advance.
Regards,
Ashish.

hi shanu,
the pbm is solved, now i m able to access XXX no. in action class & i m able to validate it. The only thing which i want to know is it ok to declare static ArrayList as i have done in this code. i mean will it affect the performance or functionality of the system.
pls have a look at the following code snippet.
public class XMLValidator {
static ArrayList strXXX = new ArrayList();
public void validate(){
factory.setValidating(true);
parser = factory.newSAXParser();
//all factory code is here only
parser.parse(xmlURI, new XMLErrorHandler());     
public void setXXX(String pstrXXX){          
strUpn.add(pstrXXX);
public ArrayList getXXX(){
return strXXX;
class XMLErrorHandler extends DefaultHandler {
String tagName = "";
String tagValue = "";
String applicationRefNo = "";
String XXXValue ="";
String XXXNo = "";          
XMLValidator objXmlValidator = new XMLValidator();
public void startElement(String uri, String name, String qName, Attributes atts) {
tagName = qName;
public void characters(char ch[], int start, int length) {
if ("Reference".equals(tagName)) {
tagValue = new String(ch, start, length).trim();
if (tagValue.length() > 0) {
RefNo = new String(ch, start, length);
if ("XXX".equals(tagName)) {
XXXValue = new String(ch, start, length).trim();
if (XXXValue.length() > 0) {
XXXNo = new String(ch, start, length);
public void endElement(String uri, String localName, String qName) throws SAXException {                    
if(qName.equalsIgnoreCase("XXX")) {     
objXmlValidator.setXXX(XXXNo);
thnx & Regards,
ritu

Similar Messages

  • How to retrieve value from xml file

    hi all,
    can somebody pls tell me how to retrieve value from xml file using SAXParser.
    I want to retrieve value of only one tag and have to perform some validation with that value.
    it's urgent .
    pls help me out
    thnx in adv.
    ritu

    hi shanu,
    the pbm is solved, now i m able to access XXX no. in action class & i m able to validate it. The only thing which i want to know is it ok to declare static ArrayList as i have done in this code. i mean will it affect the performance or functionality of the system.
    pls have a look at the following code snippet.
    public class XMLValidator {
    static ArrayList strXXX = new ArrayList();
    public void validate(){
    factory.setValidating(true);
    parser = factory.newSAXParser();
    //all factory code is here only
    parser.parse(xmlURI, new XMLErrorHandler());     
    public void setXXX(String pstrXXX){          
    strUpn.add(pstrXXX);
    public ArrayList getXXX(){
    return strXXX;
    class XMLErrorHandler extends DefaultHandler {
    String tagName = "";
    String tagValue = "";
    String applicationRefNo = "";
    String XXXValue ="";
    String XXXNo = "";          
    XMLValidator objXmlValidator = new XMLValidator();
    public void startElement(String uri, String name, String qName, Attributes atts) {
    tagName = qName;
    public void characters(char ch[], int start, int length) {
    if ("Reference".equals(tagName)) {
    tagValue = new String(ch, start, length).trim();
    if (tagValue.length() > 0) {
    RefNo = new String(ch, start, length);
    if ("XXX".equals(tagName)) {
    XXXValue = new String(ch, start, length).trim();
    if (XXXValue.length() > 0) {
    XXXNo = new String(ch, start, length);
    public void endElement(String uri, String localName, String qName) throws SAXException {                    
    if(qName.equalsIgnoreCase("XXX")) {     
    objXmlValidator.setXXX(XXXNo);
    thnx & Regards,
    ritu

  • HT1766 how to retrieve the back up files from the itunes

    how to retrieve the back up files from the itunes

    What are you trying to do...extract data from your backup? If so, you need something like this:
    http://www.iphonebackupextractor.com/

  • How to store xml data into file in xml format through java program?

    HI Friends,
    Please let me know
    How to store xml data into file in xml format through java program?
    thanks......
    can discuss further at messenger.....
    Avanish Kumar Singh
    Software Engineer,
    Samsung India Development Center,
    Bangalore--560001.
    [email protected]

    Hi i need to write the data from an XML file to a Microsoft SQL SErver database!
    i got a piece of code from the net which allows me to parse th file:
    import java.io.IOException;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import org.apache.xerces.parsers.SAXParser;
    import java.lang.*;
    public class MySaxParser extends DefaultHandler
    private static int INDENT = 4;
    private static String attList = "";
    public static void main(String[] argv)
    if (argv.length != 1)
    System.out.println("Usage: java MySaxParser [URI]");
    System.exit(0);
    String uri = argv[0];
    try
    XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    MySaxParser MySaxParserInstance = new MySaxParser();
    parser.setContentHandler(MySaxParserInstance);
    parser.parse(uri);
    catch(IOException ioe)
    ioe.printStackTrace();
    catch(SAXException saxe)
    saxe.printStackTrace();
    private int idx = 0;
    public void characters(char[] ch, int start, int length)
    throws SAXException
    String s = new String(ch, start, length);
    if (ch[0] == '\n')
    return;
    System.out.println(getIndent() + " Value: " + s);
    public void endDocument() throws SAXException
    idx -= INDENT;
    public void endElement(String uri, String localName, String qName) throws SAXException
    if (!attList.equals(""))
    System.out.println(getIndent() + " Attributes: " + attList);
    attList = "";
    System.out.println(getIndent() + "end document");
    idx -= INDENT;
    public void startDocument() throws SAXException
    idx += INDENT;
    public void startElement(String uri,
    String localName,
    String qName,
    Attributes attributes) throws SAXException
    idx += INDENT;
    System.out.println('\n' + getIndent() + "start element: " + localName);
    if (localName.compareTo("Machine") == 0)
    System.out.println("YES");
    if (attributes.getLength() > 0)
    idx += INDENT;
    for (int i = 0; i < attributes.getLength(); i++)
    attList = attList + attributes.getLocalName(i) + " = " + attributes.getValue(i);
    if (i < (attributes.getLength() - 1))
    attList = attList + ", ";
    idx-= INDENT;
    private String getIndent()
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < idx; i++)
    sb.append(" ");
    return sb.toString();
    }// END PRGM
    Now , am not a very good Java DEv. and i need to find a soln. to this prob within 1 week.
    The next step is to write the data to the DB.
    Am sending an example of my file:
    <Start>
    <Machine>
    <Hostname> IPCServer </Hostname>
    <HostID> 80c04499 </HostID>
    <MachineType> sun4u [ID 466748 kern.info] Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 360MHz) </MachineType>
    <CPU> UltraSPARC-IIi at 360 MHz </CPU>
    <Memory> RAM : 512 MB </Memory>
    <HostAdapter>
    <HA> kern.info] </HA>
    </HostAdapter>
    <Harddisks>
    <HD>
    <HD1> c0t0d0 ctrl kern.info] target 0 lun 0 </HD1>
    <HD2> ST38420A 8.2 GB </HD2>
    </HD>
    </Harddisks>
    <GraphicCard> m64B : PCI PGX 8-bit +Accel. </GraphicCard>
    <NetworkType> hme0 : Fast-Ethernet </NetworkType>
    <EthernetAddress> 09:00:30:C1:34:90 </EthernetAddress>
    <IPAddress> 149.51.23.140 </IPAddress>
    </Machine>
    </Start>
    Note that i can have more than 1 machines (meaning that i have to loop thru the file to be able to write to the DB)
    Cal u tellme what to do!
    Even better- do u have a piece of code that will help me understand and implement the database writing portion?
    I badly need help here.
    THANX

  • How to download project template into the SAP NetWeaver Developer Studio

    Hi,
          I want to download project template into the SAP NetWeaver Developer Studio related to invoice detail get detail,get list etc.
    How to do so?Actualy my requirement is to create an iView whcih contain the detail about the invoice.
    Thank,
    Kundan

    Hi
    If you have zip file of the project then unzip it into your project  location where all projects are there .then in NWDS go to file->import->multiple existing project into workspace->browse the file where you have saved it and select the comp folder inside the project folder->click finish.Now you are able to see the webdynpro project in the webdynpro explorer.If its not appearing then go to Navigatore and right click on project and click on open project, it will open the project in webDynpro explorer.
    Thanks
    Susmita

  • How to retrieve rows from .csv file

    Hi
    I need to retrieve rows from .csv file , anybody's kind support is greatly appreciated.
    Thanks in advance.
    Khiz_eng

    a .csv file is just a comma delimited text file. each row contains data separated by a comma. To read this information in, do as Hartmut suggested to your earlier post on this exact topic. "I would read that file with a FileReader / BufferedReader and parse each line with StringTokenizer. This would be quite the same like working through a result set." For more info on how to read text files, see any java book or browse through the i/o tutorial.
    Jamie

  • How to break report output into files

    Hi,
    I need to submit my report output into different files based on the Sales person name.
    When I submit my request from SRS window it asks the sales person name 'FROM' and 'To'parameters, if I choose the different sales person names then report output has to divide into files for each sales person. How can I do this? Do I nedd to add any code
    in my report.
    Could you help me in this?
    Thanks in advance

    This maybe helpful:
    Report Distribution

  • How to import Fixed Asset Master File

    Hi all expert,
    I used BAMasterDataImportFile to import the Fixed Asset. But the message as below appear :
    "Import end;Number of successfully imported assets: 0;Number of processed assets:2"
    After complete import the fixed asset master files still empty. May i know anybody can advise me for import fixed asset files?
    Thank for help.
    From:
    Eric Tan

    Hi Eric,
    Please refer your error with the possible reasons below (from SAP notes):
    Error message: "Import End; Number of imported assets:0; Number of processed asset:2"
    Reason: Note that there is no error. It is usually because of the conflict of Depr. Start Date , Use Life and Remaining Life.
    The following is a list of possible errors:
    1. Fixed Asset in Production Mode -- Make sure Fixed Asset is in Transfer mode before importing.
    2. The number of semicolons for each line is not 66 -- For each line, each field must be separated by a semicolon(, the number of separators( should be 66.  Number( = 66.
    3. Wrong Date Format DD-MM-YYYY or MM-DD-YYYY -- The correct date formats should be : YYYYMMDD, YYYY-MM-DD, YYYY.MM.DD or YYYY/MM/DD
    4. Asset Class unavailable -- The asset class in your csv file does not exist in Fixed Assets; make sure the used asset classes are defined in Fixed Assets before importing.
    5. Depr. Type unavailable -- The given depreciation type does not exist in Fixed Assets, make sure the used depreciation type is defined in Fixed Assets before importing.
    6. Depr. Area unavailable -- You entered data for a depreciation area that does not exist. If there are only 2 depreciation areas in Fixed Assets do not enter data for area 3 or 4.
    7. Depr. Area is inactive for asset class  -- You entered data in the csv file for an area that is not active for the given class in Fixed Assets.
    8. Life parameter is negative or the remaining life is greater than planned life -- All life parameters should be positive, the remaining life should be less than the planned life
    Life Parameters(Depr. Start Date, Useful Life and Remaining Life) are mathematically incorrect for one of the areas in csv. Remaining life = Useful life - (the difference between the first date of import year and depreciation start date). Note that it is not the difference between import date(the date you import Fixed Asset Master Data) and depreciation start date. You must calculate the remaining life correctly. For example, you want to import an asset in 2005, you import it on 2005-09-01 ,then the first date of the import year is 2005-01-01, Depr. Start Date = 2003-06-01, Useful Life = 60 months, then
          Remaining Life = 60 - (2005-01-01 - 2003-06-01) = 60 - 19 = 41 months.
          The following calculation is wrong:
          Remaining Life = 60 - (2005-09-01 - 2003-06-01) = 60 - 27 = 33 months
    Import Fixed Asset for the current fiscal year -- The fixed asset master data import function is designed for legacy data importing. We recommend you to import fixed asset master in the past years. If you insist on importing an asset for the current fiscal year, make sure the depreciation start date is the first date of current fiscal year and the Remaining Life is the same as the Useful Life.
    Year Values -- the sum of the accumulated depreciation (planned, unplanned and special depreciation) in the csv file is greater than the acquistion and production costs.
    Also, don't forget to change the fixed asset mode to transfer. Administration>System initialization>Company Details> Basic initialization tab.
    Hope this helps.
    Rogelio Elicor Jr.

  • How to fix "Project or Library file is corrupt"

    Last Time I close the my project, then I want to reopen it, but popup a window "Project or Library file is corrupt"
    Can this corrupt project file can be fix?
    Because It contain too much information of this project.
    By the way, the project file size is 1.4M
    and I use LabVIEW 8.2.1 and WinXP SP3
    Hope somebody can give the answer, and thank you very much.
    Qia
    http://www.vitst.com
    Virry Test & Control
    LabVIEW Certified Developer

    I cannot find the result about this topic.
    So I recreate a new project file
    Hope there is better solution for this problem
    thank you all
    QIA
    http://www.vitst.com
    Virry Test & Control
    LabVIEW Certified Developer

  • How do you put doc into files?

    I am new to Abode Reader and I can not organize my doc. W/o putting them into files.  Can anyone help me?

    You may find this tutorial helpful:
    http://forums.adobe.com/docs/DOC-2532
    It is slightly out of date, but most of the concepts still apply. Additionally, there is some information in the Getting Started document that comes with Adobe Reader.

  • How to retrieve data from xml file into obiee reports

    Hi all,
    I've got a situation here. A xml file is stored as blob in oracle database table. Now i need to retrieve data/info from that xml file into obiee reports. How am i supposed to proceed with this ?

    I will go for a table function:
    http://gerardnico.com/wiki/database/oracle/table_function
    In two words, you can create a function that behave as a table. Then you create a function to pick up your xml, you parse it and you send back the rows.
    I know that Oracle has also a library for XML files but I never use it until now.
    Success
    Nico

  • How to retrieve a message into an html page passed from a servelt?

    am new to servlet.
    i have a Login.html contains a form having username and a password field.when the form is submitted it goes to VerifyServlet for authentication.
    now if the user provide the correct username and password i authenticate him into a new servlet called UserhomeServlet which i have already done. but if the password is incorrect i wanted to take him back to the Login.html with a Error message printed on it passed from the VerifyServlet. i dont know how to do that.
    pls tell me if you have any idea.

    Hi ,
    Try the following in your VerifyServlet doPost / doGet method.
    //for simplicity i have defined name & pwd in the same file and compared values from the login.html //
    //you can implement your logic //
                     if (name.equals(login)&& pwd.equals(pass)){
              //redirect to UserhomeServlet
                          else {
                   out.println("Invalid Login");
                   RequestDispatcher rd = req.getRequestDispatcher("/html/login.html");
                   rd.include(req,res);
         }bye for now
    sat

  • How to retrieve arrays from a file.

    If i were to save 5 arrays to a file like this.....
    DataOutputStream output;
         DataInputStream input;
         Date today = new Date();
         String filename = "phonebook";
    private String name[] = {""};
         private String surname[] = {""};
         private String home[] = {""};
         private String work[] = {""};
         private String cell[] = {""};
         try
                   output = new DataOutputStream(new FileOutputStream(filename));
              catch(IOException io)
                   JOptionPane.showMessageDialog(null,"This program could not create a storage location. Please check the disk drive and the tun the program again.","Error",JOptionPane.ERROR_MESSAGE);
                   System.exit(1);
    public void save()
              try
                   for(int i=0; i < name.length; i++)
                        output.writeUTF(name);
                        output.writeUTF(surname[i]);
                        output.writeUTF(work[i]);
                        output.writeUTF(home[i]);
                        output.writeUTF(cell[i]);
                   JOptionPane.showMessageDialog(null,"Data succesfully saved to file.","Information message",JOptionPane.INFORMATION_MESSAGE);
              catch(IOException io)
                   System.exit(1);
         }And then I want to use them again on my startup. How would I go about initialising them back into thier origianl arrays. What i mean is I want the arrays to contain theier previous saved values. Is this possible.
    I tried to do it like this but it wont work. I get no errors. It just wont return and strings at all.try
                   input = new DataInputStream(new FileInputStream(filename));
              catch(IOException io)
                   JOptionPane.showMessageDialog(null,"Could not find the correct file to read data from.","Error",JOptionPane.ERROR_MESSAGE);
              try
                   for(int i=0; i< name.length; i++)
                        name[i]=input.readUTF();
                        surname[i]=input.readUTF();
                        work[i]=input.readUTF();
                        home[i]=input.readUTF();
              cell[i]=input.readUTF();
              catch(IOException io)
              }Or is it better to create a seperate file for each array?
    Edited by: Yucca on Mar 23, 2008 2:24 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Any help here please.
    Edited by: Yucca on Mar 23, 2008 6:34 PM

  • How do I move emails into file folders

    how to move mail into folders on the Mac pro

    Hi. When in your mail app you can click on the individual mail you wish to save in the mail header window. the top box not the content box. Then go to file /save and you get a drop down box where you can select where to save to and the click on save.

  • How to retrieve images from the file system in Portal Forms?

    Portal 3.0.9.8.0
    In a Portal form , there is a field named ID wherein a value is entered. Say the value entered is 5 , how can we get the image named 5.jpg
    from C:/images/ folder and get it displayed in the form ? The images are not stored in the database . Depending on the ID field value , we
    have to retrieve the image.
    Thanks .
    Neeti.

    Hi Neeti,
    This is what I did :-
    Steps:-
    1> I created a procedure named get_image in the application schema as :-
    create or replace procedure get_image
    p_id in integer default 1
    is
    begin
    htp.p('Image Id='||nvl(to_char(p_id),'No Image Id'));
    htp.br;
    if p_id is not null then
    htp.p('<img src="C:\images\'||p_id||'.jpg">');
    end if;
    end get_image;
    2> Created a form on the procedure get_image.
    3> Run the form and for p_id field, enter the image id, and click on Submit - the image will be displayed.
    Hope this helps.

Maybe you are looking for

  • Enterprise Manager on RedHat 6.0

    I have just installed the download version of 8i on a RedHat 6.0 system. The install went reasonably smooth once I found all the extra pieces (JRE, TCL rpm's etc) that were needed. My problem is that I can't get Enterprise Manager to work. Issuing an

  • IPhoto 6 slideshows not full screen!!!

    First of all, as this problem has not changed since iPhoto 5.02 on OS X 10.3.9, let me provide you with some background... http://discussions.apple.com/thread.jspa?messageID=1425902&#1425902 Now, let me detail the problem again. I have a Mac Mini 1.2

  • Lost iphoto on desktop

    When I try to open iphoto the main window does not appear, yet if I take a screen shot it appears in the shot that has been taken of the desktop. I've checked if hiding is on off etc. There is still 40 gbs of stuff in the application window when i cl

  • What's the JSP Book to start learning JSP?

    I urgently need to learn JSP and i've been searching but i need an advice on which book i should get. I want to learn as fast as possible, but i really want to learn good JSP... so i give more importance on the content than just learning basics in 3

  • Global database links

    I am using global database links with Oracle Names. I have about a hundred databases ranging from 7.3.4 to soon to be 9i. Will OID support global database links in my environment? Is there any documentation dealing with global database links & OID. T