M
Miguel Saez
Guest
Hi, An idea could be when you create a new record uploading the xml file, you could create an Object Script trigger with following code: /** In this example my RB object name is:test and xml_file the upload file */ var xml = rbv_api.getTextData("test", {!id}, "xml_file"); /* Move the content from xml file uploaded in a string var*/ var root = rbv_api.parseXML(xml); author = root.getElementsByTagName('author').item(0).getFirstChild().getNodeValue(); /* Get the xml value of author */ title = root.getElementsByTagName('title').item(0).getFirstChild().getNodeValue();/* Get the xml value of title*/ /*** You should repeat in the same way for the rest of your field in the xml file ***/ rbv_api.setFieldValue("test",{!id},'author',author); /** You can use this method to save the value in your RB fields**/ rbv_api.setFieldValue("test",{!id},'title',title); Hope this help, Miguel
Continue reading...
Continue reading...