Read XML function for Microprocessor SDK
From reading the LabVIEW Microprocessor SDK known issues list (http://digital.ni.com/public.nsf/allkb/B5E8F0B663417AB8862574600058459E) it seems that any File I/O functions (and therefore "read xml") are unsupported for targets other than Windows/Unix. Does anyone have any workarounds or know if there is any progress being made on this issue? I need to build for VxWorks 6.6.
Thanks!
Bill
Hey Bill,
R&D does not belive the Read from XML File vi will work because one of the inputs to the VI is the input file path. No file system--> no file path.
Regards,
Claire Reid
National Instruments
Similar Messages
-
Read XML function - can't get it to work correctly to set metadata
I've been working with the Read XML function in order to set metadata on assets with no avail. I'm using the following simple XML file in a Watcher folder with a poll watcher setup every 5 seconds, that then references a Read XML Response named "Update Asset Metadata" - to read the XML file and update the asset metadata. Nothing really happens even though the FCS Log file shows that the process is taking place to "update" the asset metadata. Any advice is appreciated. Thanks!
FILE:
<?xml version="1.0" encoding="UTF-8"?>
<FinalCutServer>
<request reqId="setMd" entityId="/asset/10">
<params>
<mdValue fieldName="Title" dataType="string">Text Info Change</mdValue>
</params>
</request>
</FinalCutServer>I got the answer. You must type “*.xml” (that is, asterisk-dot-xml) in the Value field of Wildcard Include Filter for it to work correctly.
-
Are there SQL/XML functions for XML-to-SQLtable direction?
When I look on the descriptions and samples shown here:
http://www.oracle.com/technology/oramag/oracle/03-may/o33xml.html
I can see only one direction: SQLrecords->XML
Are there functions for the opposite direction as well?
Read: I send XML docs to Oracle DB and they are (atomatically) INSERTED into existing relational tables ?
If yes: Where are these function described/samples shown?
Thank you
PeterPlease read the FAQ
-
Read Xml file for Sender and Receiver Info
Hi
Is it possible to customize B2B to read Sender/Receiver/Document Information from the xml file which is supposed to be transmitted?
I do NOT the option to specify this information in channel configuration under file name since file name will not have this information.
But I am fine with writing any plug to set this information somewhere to achieve the same.
Regards
PunitFor outbound transactions, file name is the only option available currently if you are using Generic File internal listening channel. You may use any other transport like JMS/AQ/Fabric and partner and document information can be set in headers.
Can you let us know the complete use case?
Regards,
Anuj -
Reading XML from Oracle directory to generate charts
Hi,
I have a requirement create graphs, charts and maps based on data from a data warehouse (dw). As I see things, there are two possibilities:
Graphs, charts and maps based on an XML file
Graphs, charts and maps based on Oracle tables
Both would contain small data sets that will allow for quick response. The intent of these graphs, charts and maps is to generate a dashboard that would allow the user to quickly drill down to the desired warehouse data.
The proof of concept has already been validated using the Oracle table scenario. My question is whether or not this could be accomplished reading xml files for generating the same set of dashboard items?
My Oracle database and APEX environments configuration are as follows:
NLSRTL 11.2.0.1.0 Production
Oracle Database 11g Enterprise Edition 11.2.0.1.0 64bit Production
PL/SQL 11.2.0.1.0 Production
TNS for Solaris: 11.2.0.1.0 Production
Application Express 4.2.2.00.11
APEX Listener Release 2.0.2. / Tomcat
An Oracle database directory has been setup and is accessible to our APEX application.
Any suggestions/help is appreciated.
Thanks,
CharlesAn Oracle Directory has an underlying OS directory associated with it, Oracle just overlays it's control structure onto an existing folder in the OS. You can manipulate the files with stored procedures in Oracle or at the OS level from outside of Oracle.
If you manipulate the files from the OS level, outside of Oracle, you may need a refresh of the Oracle Directory structure. -
� XML Api for 1.3 java version?
Hello friends!! I need a little help...
I always have work in my programms with jbuilder, using java 1.3 version. The programs after will be installed in pc's where have de jre 1.3 or the 1.4 java version.
I need now to do a module wich need to work with XML.. exactly read xml only, for take some information.
I tried to use an famous api i have discover by "google":
import org.xml.sax.*But it not works in java 1.3!! Only for 1.4 or supperior...
Do you know any api for work with xml compatible with 1.3? I've tried to look this for google.com but it's a very complicated for me...
Thanks, all i need is the name : )If you need to work with java 1.3 you can use the Xerces XML parser
http://xerces.apache.org/xerces2-j
You only have to download it and add the jars to your classpath (see the xerces documentation for details)
Xerces-J also contains the org.xml.sax.* package
http://xerces.apache.org/xerces2-j/javadocs/api/index.html -
Hi All,
How SAP reads a xml file ?
Any function module , or code that can read xml file .
Please let me know .
ThanksHI abijit,
See the below code.
PARAMETERS: p_filnam TYPE localfile OBLIGATORY
*DEFAULT 'C:\Documents and Settings\test.xml'.
DEFAULT 'D:\xx.xml'.
parameters : r1 radiobutton group r1,
r2 radiobutton group r1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filnam.
DATA: l_v_fieldname TYPE dynfnam.
l_v_fieldname = p_filnam.
START-OF-SELECTION.
TYPES : BEGIN OF ys_xml_line,
data(256) TYPE x,
END OF ys_xml_line.
TYPES: yt_xml_table TYPE TABLE OF ys_xml_line.
DATA: tab_raw_data TYPE yt_xml_table.
TYPES: t_xml_line(1024) TYPE x.
DATA: l_xml_table TYPE TABLE OF t_xml_line.
CALL FUNCTION 'TEXT_CONVERT_XML_TO_SAP'
EXPORTING
* I_FIELD_SEPERATOR = ';'
* I_LINE_HEADER =
i_tab_raw_data = tab_raw_data
* I_FILENAME =
i_totalsize = 10000
tables
i_tab_converted_data = l_xml_table
* EXCEPTIONS
* CONVERSION_FAILED = 1
* OTHERS = 2
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Oracle XML functions return tags for null columns.
I am currently writing a SOAP Message base on a SQL statement formatted as XML. However, I am having problems with Oracle XML functions not returning tags for null columns as seen in my example below. Is the a way to get Oracle XML functions to return empty tags for null column?
CREATE TABLE FOREXAMPLE_TABLE (COLUMN_1 VARCHAR2 (4000),
COLUMN_2 VARCHAR2 (4000),
COLUMN_3 VARCHAR2 (4000));
INSERT INTO FOREXAMPLE_TABLE (COLUMN_2)
VALUES ('This column is not null');
COMMIT;
SELECT XMLELEMENT ( "soap:Envelope",
XMLATTRIBUTES ( 'http://schemas.xmlsoap.org/soap/envelope/' AS "xmlns:soap"),
XMLELEMENT ( "soap:Body",
XMLATTRIBUTES ( 'http://Custom_Column/types/' AS "xmlns:ns1"),
XMLELEMENT ( "ns1:New_Instance",
XMLELEMENT ( "ns1:Input_XMLDoc",
XMLFOREST(fe.COLUMN_1 as "Column_1",
fe.COLUMN_2 as "Column_2",
fe.COLUMN_3 as "Column_3"))))) as xml
FROM FOREXAMPLE_TABLE fe
The results returned from the select statement.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://Custom_Column/types/"><ns1:New_Instance>
<ns1:Input_XMLDoc><Column_2>This column is not null</Column_2>
</ns1:Input_XMLDoc></ns1:New_Instance></soap:Body></soap:Envelope>
The desired results for the select statement.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://Custom_Column/types/"><ns1:New_Instance>
<ns1:Input_XMLDoc><Column_1></Column_1>
<Column_2>This column is not null</Column_2><Column_3></Column_3>
</ns1:Input_XMLDoc></ns1:New_Instance></soap:Body></soap:Envelope>
jeemanAn alternative may be be to use xmlconcat instead of xmlforest:
Time Start: 30.06.2007 18:52:41
PL/SQL procedure successfully completed.
michaels> select xmlelement
("soap:Envelope",
xmlattributes
('http://schemas.xmlsoap.org/soap/envelope/' as "xmlns:soap"),
xmlelement
("soap:Body",
xmlattributes ('http://Custom_Column/types/' as "xmlns:ns1"),
xmlelement ("ns1:New_Instance",
xmlelement ("ns1:Input_XMLDoc",
xmlconcat (xmlelement("Column_1", fe.column_1),
xmlelement("Column_2", fe.column_2),
xmlelement("Column_3", fe.column_3)
).extract('.').getstringval() as xml
from (select null column_1, 'This column is not null' column_2,
null column_3
from dual) fe
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://Custom_Column/types/">
<ns1:New_Instance>
<ns1:Input_XMLDoc>
<Column_1/>
<Column_2>This column is not null</Column_2>
<Column_3/>
</ns1:Input_XMLDoc>
</ns1:New_Instance>
</soap:Body>
</soap:Envelope> -
Function module to read xml files from application server
Hi experts,
I need to read xml files from application server to sap. Is the any siutable function moldule for that?Hi Cenosure,
Donno about FM which will upload data directly to SAP, I think you have to do some mapping for it so that it will suit the SAP format. Again it depends on your requirement..
Please elaborate more about your requirement.
Please have a look on below FM
TEXT_CONVERT_XML_TO_SAP
Also search on SCN there are many threads on the same topic available.
http://abapreports.blogspot.com/2008/09/upload-xml-file-from-application-server.html
This is the link which will give you the Code
http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_RMTIWARI_XML_TO_ABAP_46C.html
Use this XML file to Upload the same, this Program will work for your XML file also,
http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/input_xml.xml
See the below thread also
Upload XML to internal table and vice versa in SAP 4.6C
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
Revision: 20696
Revision: 20696
Author: [email protected]
Date: 2011-03-08 14:09:49 -0800 (Tue, 08 Mar 2011)
Log Message:
update build.properties values that are used for flex-sdk-description.xml. release.version = 4.5.1 release = Superhero
QE notes: no
Doc notes: no
Bugs: no
Reviewer: lauren
Tests run: no
Is noteworthy for integration: most likely FB will have to be aware of this
Modified Paths:
flex/sdk/trunk/build.propertiesThats good news.
-
Best practice for read-only functionality
Hi,
I'm part of the development team of a system with about 100 screens. The customer would like us to add some read-only functionality to the system, so that certain users are able to access the screens but not change any of the data on them. We already have policies in place on the database level that keeps read-only users from saving data, but it's not very user friendly to allow users to change data on a screen, only to tell them that they're not allowed to save those changes once they try to do so. It would clearly be better if all components are rendered as read-only components for read-only users, making them unable to make any data changes in the first place.
User privileges in the system are controlled by roles defined and set in the system (not ADF roles or Weblogic roles). At any given time and place, it's possible to check whether the current user has a certain role. We already use this in a number of places to make it possible to control which user has access to which screens. In a few places we even control which functionality should be enabled for the current user within a screen, but mostly the access control is currently on the screen level. With read-only users getting access to all screens, it seems we will need lot of extra in-screen access control to keep these users from changing anything.
But what's the best practice here? One way to go would be to add some logic to every single active component on every single screen, to determine whether it should be rendered as active or disabled/read-only. But that would require a lot of extra coding.
So my question is: Is there a smarter way to do this? Maybe something done through skinning? Or something else?
(I'm not sure how relevant this is for this sort of question, but we're currently using JDev 11.1.1.4.0, and expect to upgrade to 11.1.1.6.0 within the next 6 months)
Best regards,
AndreasHi Guna, Puthanampatti and Don,
Thanks a lot for your replies. I'm currently looking into implementing something along the lines of what Guna has suggested:
Our application consists of a number of individual work spaces that are deployed as adflibs which have all been added to a "master application work space", and the master application is deployed as an .ear file. Most of the individual work spaces are for all the different functional areas of the application, with their own task flows, page fragments etc. The rest are work spaces with common functionality, like datamodel (entity definitions), utility methods, page templates, and framework extensions. In the latter, we have defined custom classes for all the base classes (somewhat similar to what Don describes, I believe).
In our custom class for ViewRowImpl, I have added an isAttributeUpdateable method, and in our custom class for ApplicationModuleImpl I have added an isReadOnlyUser method. The isAttributeUpdateable method uses the isReadOnlyUser method to determine if the current user is a read-only user or not; if the user is a read-only user the isAttributeUpdateable method will return false, otherwise true. The isReadOnlyUser method in our base class is just a dummy method that always returns true. But in the ApplicationModuleImpl classes of our individual work spaces, i've written an override for isReadOnlyUser, giving the answer that is relevant for the work space in question (for instance, whether or not the current user has the role "User Administrator").
That pretty much takes care of all input fields in tables and forms, which is a big step in the right direction. This still leaves some work to be done for components that are not directly linked to view object attributes (like buttons), but I guess that can't be helped. Also, there are a few of the work spaces that contain a number of pages that are related to different user privileges (as in: page 1 requires user privilege A, and page 2 requires user privilege B); in these cases I will have to do something different than just writing an override in the "local" ApplicationModuleImpl class.
@Don: What you describe seems to be pretty close in functionality to what we already have, though your implementation is different from ours. You have used your custom base ApplicationModuleImpl class to keep read-only users from committing changes. We use Virtual Private Database and database policies to the same end: If a user without the required full-access role tries to commit data it will cause a database error, which we then handle in the application (so the user gets a message like "You don't have the required privileges to changes this data", rather than an ORA message). Unfortunately, our customers are not content with this. They want a solution where all input fields and most of the buttons etc. are disabled for read-only users, and that's why I'm looking into the best/smartest way to do this.
@Puthanampatti: We already use something similar to what you're suggesting. The challenge I'm currently facing is how best to disable/enable components based on the current user's roles, not how to determine and store those roles.
Best regards,
Andreas -
Need help for Export to XML Functionality
Hi All ,
I have developed a report in Apex2.2 to export the data into XML format .
I have used "export to XML" functionality and "HTF.escape_sc" function to escape special characters.The query is as follows..
select
HTF.escape_sc(replace (e.EVENT_NAME,'''','&'||'apos;')) AS EVENT_NAME ,
HTF.escape_sc(replace (e.VENUE_NAME,'''','&'||'apos;')) AS VENUE_NAME ,
HTF.escape_sc(replace (e.VENUE_ADDR,'''','&'||'apos;')) AS VENUE_ADDR ,
HTF.escape_sc(replace (e.DESCRIPTION,'''','&'||'apos;')) AS DESCRIPTION ,
HTF.escape_sc(replace (e.TRACKING_URL,'''','&'||'apos;')) AS TRACKING_URL ,
HTF.escape_sc(replace (d.primary_product,'''','&'||'apos;')) AS primary_product
from events e ,d_01 d
where
d.event_id = to_char(e.event_id)
and e.publish = 'external'
and e.searchable = 'Y'
The output result in XML in APEX2.2 is absolutely fine , but when i moved the application to apex.oracle.com the XML report instead of '&' it is displaying "%26amp" .
Is there any problem with APEX3.3 .
Appreciate your quick response.
Thanks
JyotiJyoti,
Replacing special characters from where? Report? Replacing by what?
The code for the package is open. You may use the part in the package body:
FOR i IN 1 .. CEIL (v_xml_l / 4000)
LOOP
v_xml_cut := SUBSTR (v_xml, v_count, 4000);
HTP.prn (v_xml_cut);
v_count := v_count + 4000;
END LOOP;
...and do something like
HTP.prn (REPLACE(v_xml_cut, '&', '&lt;'));
...Denes Kubicek -
Give me some examples for functions for read POST, write POST, modify POST
Give me some examples for functions for read POST, write POST, modify POST, create and delete theme in forum. This functions have to be make like Remote Methods
Give me some examples for functions for read POST, write POST, modify POST, create and delete theme in forum. This functions have to be make like Remote Methods
-
An official site incometaxindiaefiling.gov.in requires .XML files to be uploaded. When .XML files are uploaded without digital signatures there is no problem. When digital signatures are required for signing the same a message 'CANNOT READ THE FILE FOR SIGNING" is displaced. It happens with CHROME and IE also. The solution which I have devised is that I copy the .XML files in a folder called FAKEPATH in C: drive and pick the file for signing from this folder. The browser allows the file to sign with digital signatures. What is the solution.
Ashish GoelAshish,
You might want to submit this feedback at https://incometaxindiaefiling.gov.in/e-Filing/Services/Feedback.html instead. -
Function Module or table to read all EQUI for one KUNNR
Hello,
i need to read all Equipments for one specific KUNNR (endcustomer).
Is there a function module which could be used?
Or what is a good select for this?
Thanks a lot.
Kind regards
ManfredHi,
EQBS table will be getting updated based on the Delivery document or while creating equipment for Material & Serial no combination.
How you are maintaining End Customer in your Equipment Master?
You can maintain in Partner Function or Sort Field or through automatic equipment creation.
Based on that, you have to find the logic.
Regards,
Maheswaran.
Maybe you are looking for
-
Is there a way to prevent iCloud from duplicating songs downloaded if I manually sync my iPhone with my PC?
-
Why does my sound when watching a movie in itunes fall behind?
Im running Windows 7 64bit and when I watch movies in iTunes, the sound starts running slow. It gets so bad that it starts cutting out. If I pause it and hit play again, it goes right for a minute and then starts over again. Thoughts?
-
XML VALIDATION WITH EXTERNAL DTD
I've the following problem: I've stored a dtd into the xdb repository(with createresource function) and all seems work. In this DTD i've declared some element and one entity in this way : <!ENTITY emsp " " ><!--=em space--> When i try to store or ext
-
Hi, Leaving this list of faults/bugs which I hope Blackberry/RIM Will pick up on as there does not appear to be an official way to submit faults/requests:- 1) It is possible to adjust master volume when phone is locked. This should only be adjustabl
-
This should be a simple formula but for some reason I am having a mental block. Any I deas why this is not working? if {?ROW DATE} In Calendar1stQtr then "M01" else if {?ROW DATE} In Calendar2ndQtr then "M02" else if {?ROW DATE} In Calendar3rdQtr the