Using jnet/jgantt with a generated XML file
Hello,
We want to display a gantt in a BSP page. For that we decided to use the JGantt object (from the graphics bsp extension, using the graphics:net tag).
From the documentation and examples I saw that to the information is displayed from an XML file in the MIME repository. I wanted to know if it's possible to instead give the XML string as a parameter to the graphics:net object somehow (since it's generated during runtime so I don't have a physical file in the repository). If not, maybe it's possible to create the XML file on the server and receive the URL (it should be a different URL each time because the data might be different).
I couldn't find any documentation for the properties of the graphics:net tag - maybe the answer is in there (I saw there's an attribute called use_local_mime_repository - what does it mean?).
Also, if you have other suggestions for showing a gantt it might also be helpful.
Thanks in advance.
Hello Udi,
If you need to pass the whole XML file to an abap variable, you can do it with the help of Ajax.
You can get back all the contents of a page into a javascript variable and then you will have to assign to a hidden field.
Then on a button click or any other event you can assign this value to the abap variable and use it where ever needed.
For learning Ajax in BSP you can refer my blog
/people/shashank.kapoor/blog/2009/03/09/ajax-in-bsp
I hope this helps.
Regards,
Shashank
Similar Messages
-
Using servlet to generate XML file
What I want to do is simple but can't work. Hope you guys can give me a hint.
I succesfully generate XML file in command line using Oracle XML parser and class generator. Then I was trying to do it using servlet. it compiles fine but generate NullPointer exception at the line:
Emp e1= new Emp(); //Emp is the root of XML
I suspect the Emp constructor can't correctly find the globalDTD in its superclass -CGDocument. Please note this only happens in servlet setting, not is command line setting. Any suggestion to get arounf this?
Another unrelated question is that when I create a XML file using the Oracle XML parser, it seems all the elements a file has to be added once, otherwise the compiler will compalain about the missing element. this will be inconvinient when I constructing a big XML file, which I 'd liek to split into small piece and add them up. Maybe there is a good way but I just don't know it.
my email: [email protected]Hi,
I'm running into the same problem deploying the classes generated by the class generator. Code works fine from JDeveloper, but had to put my DTD in the directory where my classes are. Deploying the classes with Apache's JServ gives me a NullPointer exception on the first addNode method. I guess it can't find the DTD. I tried to put the DTD in many locations but this didn't fix the problem. Any suggestions?
Steve,
Did you fix this problem? Thanx!
null -
Generate XML file from RFC using Web Services
Hi,
I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services.
I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service home page. But I need this to be done in the ABAP program itself. So If i run the RFC I could able to create,release web service and capture the Generated XML file by SOAP runtime.
Any FM available?
Thanks,
Ram Sanjeevwhich version of WAS you are on .
if you are on WAS6.40 check the following weblog on how to consume webservice using the wsdl file.
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
lower version of WAS use class cl_http_client.
if this case you have to manually build the soap message.
/people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
Regards
Raja -
i used form2xml in oracle 10 g suit to convert forms 5 .fmb to .xml . using the command:
frmf2xml.bat OVERWRITE=YES myform.fmb
The forms contains arabic character set, but the xml file is generated with character "????????? " , and the xml file is unusable
what can i do to keep arabic characters in the generated xml files.
Edit:
I run form2xml on windows xp SP3 with arabic support (codepage =1256)
The xml file is generated as UTF-8I resolved the problem.
step1: search in the registry for every NLS_Lang key and modify its value to codepage 1256 using regedit
step2: in control panel-Region and Language , I modified language to be Arabic
Now every thing is good -
Hello Guru,
could you please help with my issue with Fiori Installation.
We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option "install Add-on" as it written in Guide for ui add-on installation.
Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
Thanks in advance for any help!!!
Bets regards,
Natalia.Hello Guru,
could you please help with my issue with Fiori Installation.
We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option "install Add-on" as it written in Guide for ui add-on installation.
Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
Thanks in advance for any help!!!
Bets regards,
Natalia. -
Using a data file in jsp to generate xml file
hi
can anybody help me to
how to use a data file generated in unix in jsp to generate xml file.
by using beans i am able to generate the xml.
thanks in advance.You haven't provided adequate relevant information. If you need help provide proper relevant details.
-
How to generate XML file using select files manually option in MOPz
Hi Guru's!
Can someone tell me how can I generate XML file not using the calculate automatically option but using select files manually. thanks!Hi Maix,
You may manually add the files into download basket and then approve it.
Use the SCN document below for the steps.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10b14f0c-b9af-2e10-ba83-f05ebcfbc3c2?QuickLink=index&…
Hope this helps.
Regards,
Deepak Kori -
Error while generating XML file through RDF
Hi,
I wanted to generate a Report on some business case. For that I need to generate XML file first.
For generating XML file
1. I have built an RDF through Reports builder.
2. Saved the report to local machine with extension .rdf
3. Moved it to appltop/app/reports/US directory
4. Registered tha Report with Executable of type Oracle Reports
5. Defined Concurrent Program with OUTPUT as XML.
When I submmitted the program, it was giving an error as follows.
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
A semi colon character was expected. Error processing resource 'https://oaphrd.humana.com/OA_CGI/FNDWRR.exe?temp_id=2088989...
+<?xml version="1.0" encoding="&Encoding"?>+
But, when I tried to sane the report directly to a file (file - > generate file -> XML) the XML was generated successfully.
How to get rid of this. Some one please help me out.
Thanks !
Edited by: Rajasekhar Reddy on May 4, 2012 1:23 AMHi,
I found the issue and corrected it. :)
This was happened only because of the Version problem of Report Builder with Oracle Applications.
Reports Builder 10g is not compatiblie with Oracle Applications 11.5.10.
Oracle 11.5+ will always expect the RDF from Reports 6i version. Because of this, the endocing was damaged.
You can observe in the earlier post as encoding="&Endoding". Here +&Encoding should be replaced by some encoding mechanism like "UTF-8".+
Finally corrected the version and got the Output as expected.
Thanks ! -
Error while generating XML file from rdf report.
Hi All,
we are having a rdf report that displays images retrieved from data base. I need to convert this report to xml report(using rtf template).
when i tried to run the report after changing the output of the concurrent program to "XML", i am getting the below error.
REP-1295: Data format of column 'PK1_VALUE' is unsupported.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1295: Data format of column 'PK1_VALUE' is unsupported.
images are stored in BLOB type columns.
Can anyone help me on this..
thanks
gtungalaHi Hussein,
Thank you for the reply.. i was sure that i will get correct response with in a day..
you people made this as one of the best technical forums..no doubt in that..
need some more help from you...!
The metalink docs say that it is not possible to generate xml file as the image is BLOB.
Can you please tell me any solution for developing xml template(rtf) which can display images that are stored in data base BLOB columns. Even PL/SQL script will do.. I have tried with changing the BLOB to CLOB in rdf query(by calling a function that converts BLOB to CLOB). it didnt help.
thanks in advance..
gtungala -
Generating XML file from WORD file
hello
Everyboby.
I am trying to generate xml file from a word file.
but i am stucked with how to do it? any kind of help will be useful.
i think for doing this work i have to develop XSD file, because when i am creating the xml file, the hidden space within the word file is not catched.
please help me out.
waiting for reply
thanks
milindhello
after searching on the net i came to know that org.apache.poi.hwpf.* is used for reading word file and its contents. for converting it to xml i have to use org.exolab.castor.xml.*
now my problem is that POI is in its early beta version and there is no help or any sample examples for understanding the api.
so if you have any idea regarding it, please write to me.
waiting for your reply.
thanks
Milind -
How to generate XML file from a table without using UTL_FILE that too in local machine...
You downloaded the wrong XML Parser!
XSQL requires Java Parser. Well, there's a copy included with the XSQL package so you actually don't need to do another download.
You really don't need XSQL if you just want a XML file from DB, you just needed a XML SQL Utility. Download that and run the samples. -
Permission Denied error generating XML file
We’re using ODI to write out files to a Windows CIFS file system through an agent installed on the ODI Unix server. In order to do this, we had to create the agent using a user ID that had permission to write to the Windows file system. For writing out flat files, this worked great; we have no problems at all.
However, for writing out XML files to the file system, we’re getting an error that says Permission Denied. We do NOT get the error if we write the XML to a Unix directory, only if we attempt to write it to the CIFS file system. I have two questions:
1. Is ODI able to execute against a Windows CIFS file system from UNIX to generate XML files?
2. If so, is there a list of permissions required on the fileshare that the ODI needs to generate the XML?
Below is the exact error we’re getting:
0 : null : java.sql.SQLException: Could not save the file /mdm_conversion/TST/2.lsm because a class java.io.IOException occurred and said: Permission denied
Has anyone ever performed something like this or encountered a similar problem?Hi,
I found the issue and corrected it. :)
This was happened only because of the Version problem of Report Builder with Oracle Applications.
Reports Builder 10g is not compatiblie with Oracle Applications 11.5.10.
Oracle 11.5+ will always expect the RDF from Reports 6i version. Because of this, the endocing was damaged.
You can observe in the earlier post as encoding="&Endoding". Here +&Encoding should be replaced by some encoding mechanism like "UTF-8".+
Finally corrected the version and got the Output as expected.
Thanks ! -
Hi,
I must generate very big XML-Files(Size > 4GB)
Our datasoure are saved in relational tables.
From that tables we want to generate xml-Files.
We used DBMS_LOB but we have problems with clob-size about 4GB.
Our database version is 9.2.0.4.0
How I can save relational datas in a XML-File?
Thanks in advanced
MichaelYou can use the XMLSAXSerializer and XSU in the XDK Java package. You can use it to build SAX program to dump the result.
-
Oracle data to generate XML file
How can I extract Oracle data to generate XML file using pl/sql?
I am using the following version
Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
PL/SQL Release 8.1.5.0.0 - Production
CORE Version 8.1.3.0.0 - Production
TNS for Solaris: Version 8.1.5.0.0 - Production
NLSRTL Version 3.4.0.0.0 - ProductionI don't know if you already resolved this but here's a sample I got.
-- Akadia Create XML docs
-- (c) Akadia AG 2002
-- Requires Oracle 8i or 9i
-- For larger amounts of nodes use 8.1.7.3 with bug fix 2104071 or 9.2
-- Create XML docs using XMLDOM package.
CONNECT sys/manager@sid
GRANT javauserpriv to scott;
GRANT javasyspriv to scott;
GRANT EXECUTE ON xmldom TO scott;
CREATE SYNONYM scott.xmldom FOR SYS.xmldom;
CONNECT scott/tiger@sid
DECLARE
doc xmldom.DOMDocument;
main_node xmldom.DOMNode;
root_node xmldom.DOMNode;
user_node xmldom.DOMNode;
item_node xmldom.DOMNode;
root_elmt xmldom.DOMElement;
item_elmt xmldom.DOMElement;
item_text xmldom.DOMText;
CURSOR get_users(p_deptno NUMBER) IS
SELECT empno
, ename
, deptno
, rownum
FROM emp
WHERE deptno = p_deptno;
BEGIN
-- get document
doc := xmldom.newDOMDocument;
-- create root element
main_node := xmldom.makeNode(doc);
root_elmt := xmldom.createElement(
doc
, 'EMPSET'
-- xmldom.setAttribute(root_elmt, 'xmlns', 'http://www.akadia.com/xml/soug/xmldom');
-- xmldom.setAttribute(root_elmt, 'xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
-- xmldom.setAttribute(root_elmt, 'xsi:schemaLocation', 'http://www.akadia.com/xml/soug/xmldom/emp.xsd');
root_node := xmldom.appendChild(
main_node
, xmldom.makeNode(root_elmt)
FOR get_users_rec IN get_users(10) LOOP
-- create user element with rownum as attribute
item_elmt := xmldom.createElement(
doc
, 'EMP'
xmldom.setAttribute(
item_elmt
, 'num'
, get_users_rec.rownum
user_node := xmldom.appendChild(
root_node
, xmldom.makeNode(item_elmt)
-- create user element: EMP_NO
item_elmt := xmldom.createElement(
doc
, 'EMP_NO'
item_node := xmldom.appendChild(
user_node
, xmldom.makeNode(item_elmt)
item_text := xmldom.createTextNode(
doc
, get_users_rec.empno
item_node := xmldom.appendChild(
item_node
, xmldom.makeNode(item_text)
-- create user element: NAME
item_elmt := xmldom.createElement(
doc
, 'NAME'
item_node := xmldom.appendChild(
user_node
, xmldom.makeNode(item_elmt)
item_text := xmldom.createTextNode(
doc
, get_users_rec.ename
item_node := xmldom.appendChild(
item_node
, xmldom.makeNode(item_text)
-- create user element: DEPT_NO
item_elmt := xmldom.createElement(
doc
, 'DEPT_NO');
item_node := xmldom.appendChild(
user_node
, xmldom.makeNode(item_elmt)
item_text := xmldom.createTextNode(
doc
, get_users_rec.deptno
item_node := xmldom.appendChild(
item_node
, xmldom.makeNode(item_text)
END LOOP;
-- write document to file using default character set from database
xmldom.writeToFile(
doc
, '/tmp/xml/docSample.xml'
-- free resources
xmldom.freeDocument(doc);
END;
-- deal with exceptions
EXCEPTION
WHEN xmldom.INDEX_SIZE_ERR THEN
raise_application_error(-20120, 'Index Size error');
WHEN xmldom.DOMSTRING_SIZE_ERR THEN
raise_application_error(-20120, 'String Size error');
WHEN xmldom.HIERARCHY_REQUEST_ERR THEN
raise_application_error(-20120, 'Hierarchy request error');
WHEN xmldom.WRONG_DOCUMENT_ERR THEN
raise_application_error(-20120, 'Wrong doc error');
WHEN xmldom.INVALID_CHARACTER_ERR THEN
raise_application_error(-20120, 'Invalid Char error');
WHEN xmldom.NO_DATA_ALLOWED_ERR THEN
raise_application_error(-20120, 'Nod data allowed error');
WHEN xmldom.NO_MODIFICATION_ALLOWED_ERR THEN
raise_application_error(-20120, 'No mod allowed error');
WHEN xmldom.NOT_FOUND_ERR THEN
raise_application_error(-20120, 'Not found error');
WHEN xmldom.NOT_SUPPORTED_ERR THEN
raise_application_error(-20120, 'Not supported error');
WHEN xmldom.INUSE_ATTRIBUTE_ERR THEN
raise_application_error(-20120, 'In use attr error');
END;
/ -
How to generate XML file from SQL file !
I am new to XML publisher. I known one way to generate XML file is register one report file in concurrent manager.
But I want to generate XML file from sql file.
Could someone show me how to code in sql file, how to register is in concurrent manager.
Thanks !Hi
Phew ... not sure we have the space here. So I can point you in the right direction:
1. XML data generation - there are two packages in the db you can use with a plsql procedure, XMLGEN and SQL XML. You can also use java APIs too. Try checking the db documentation and search for the above methods.
2. Registering the report - the system administrators guide will provide this info. Hooking the program up with XMLP is covered here - http://www.oracle.com/technology/products/applications/publishing/resource/CM%20Whitepaper5.0.pdf
Regards, Tim
Maybe you are looking for
-
Question for Database EXPERTS about implementing an Embedded Database
One of my current projects is to implement a Embedded pure java database with a smaill subset of SQL. Since I estimate it will take me at least 400 man hours (based on my intial unfinished attempt) to build something robust and usable, I thought I'd
-
Problems with PDF on Internet site for Indian visitors
Hello, I'm administrator of a website with German und English contens (made with typo3). When I check my English sites online, everything is okay. But a visitor from India told me, he is not able to open the linked PDF-files. I checked the links and
-
VL01N / VL02 add header text
Hi All, My task is to create Goods Issue, Including a Header Text - A suboption called Text. In that for Deaparment description I want to add two lines of information. Any FM avilable. Any BAPI to create the Header Text. Advance Thanks, Balamurugan.R
-
Method to dump flat files (spool is slow)
Hey all, I have been using spool with a bunch of set commands and it works great, but performance is a bit slow. Especially for our partitioned tables. (4.2 Mill records) Is there a better way to dump flat files? I want to use sqlldr to import (faste
-
Do we support create report on test plan
My team is using OTM to manage test case/test plan, i have some question after used for some time. 1.I want to view test case coverage of a test plan, but i find can't create report on test plan. 2.In a release we would run several test plan, i want