Dynamic Accordion, fetching node name instead of value. Is it possible?
Here is the xml.
<?xml-stylesheet type="text/xsl" href="myweb.xsl"?>
<client product="ppd" date="4/26/11 3:17 AM">
<system>
<osname>Linux
</osname>
<hostname>abhishek
</hostname>
<release>2.6.18-128.el5
</release>
<version>Red Hat Enterprise Linux Server release 5.3 (Tikanga)
</version>
<machine>ia64
</machine>
<bitmode>64
</bitmode>
<filesystem>
<file mount='Mounted' home='Filesystem' total='1K-blocks' free='Available' used='Used' percentage='Use%' />
<file mount='/' home='/dev/sda3' total='60300484' free='38305668' used='18882312' percentage='34%' />
<file mount='/boot/efi' home='/dev/sda1' total='1046516' free='1037912' used='8604' percentage='1%' />
<file mount='/dev/shm' home='tmpfs' total='4120800' free='4120800' used='0' percentage='0%' />
</filesystem>
</system>
</client>
my spry region. Using {systemData::osname} I can point to "Linux" but instead I would like to get osname itself. So basically I want to make a tree like structure using accordion where data within tree comes from this xml's node names.
<div spry:region="systemData">
<div id="Accordion1" class="Accordion" tabindex="0">
<div spry:repeat="systemData" class="AccordionPanel">
<div class="AccordionPanelTab">{systemData::osname}</div>
<div class="AccordionPanelContent">
{systemData::hostname}
</div>
</div>
</div>
<script type="text/javascript">
var a1 = new Spry.Widget.Accordion("Accordion1");
</script>
</div>
last but not least here is my spry dataset
var systemData=new Spry.Data.XMLDataSet("include/xml/clientabhishek.xml","client/system");
hehe. Sorry for not being so clear. I wanted to know whether there is a way I can get osname(node name) instead of Linux (node value) from my dataset. Like using {osname} I can get value of osname but I was wondering if osname itself can be fetched someway. Is there a way? Thanks for passing by
Similar Messages
-
Keynote data labels, can I show category names instead of data values?
I'd like to recreate the chart below in Keynote. The chart below is an excel line chart with the lines removed. In excel I can opt to show category names instead of values for the data labels. Can I do this in Keynote?
You can select member name or alias or both in the Dimension property while creating the form.
It is in the same window as explained earlier, you need to just select both the Member and its Aliase to be displayed on the form.
Thanks,
Ravi -
Hi all,
Is there some way I can access the node name of a node when I'm in an xsl, perhaps some kind of xpath statement, for example, I have the following:
<row>
<agreement>test</agreement>
<date>today</date>
</row>
When I access all the child nodes of the row element, how can I find out the name of each child node, like "agreement" and "date"? thanks in advance.I Think this will help u
<xsl:template match="/">
<xsl:for-each select='.//row'>
Node Name is : <xsl:value-of select="name()"/>
<xsl:for-each select='./@*'>
Attribute Name is :<xsl:value-of select="name()"/>
Attribute Value is :<xsl:value-of select="."/>
</xsl:for-each>
Node value is : <xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>
Regards
John Bruno
508-740-2696 -
Xml: how to get node value when pasing node name as a parameter
Hi,
I've got some xml:
var xmlData:XML =
<1stNode>
<buttonID>first child node value</buttonID>
<imageID>second child node value</imageID>
<labelID>third child node value</labelID>
</1stNode>
Then I want to read specific node value based on a value passed to a function. .
var buttonID = new Button;
var imageID = new Image;
var labelID = new Label;
getNodeValue(buttonID); //the value here is set dynamically
private function getNodeValue (nodeName:String):void {
trace (xmlData.nodeName) //doesn't work
var str:String = "xmlData." + nodeName;
var xml:XMLList = str as XMLList //doesn't work
I'm don't know how to get the value when node name is dynamically changed.use:
getNodeValue(buttonID); //the value here is set dynamically
private function getNodeValue (nodeName:String):void {
trace (xmlData[nodeName]) -
Text Variable(Customer Exit) displays variable name instead of its value.
Hi Gurus,
My requirement is to display the year(from variable) as the field name i.e Year end salary 2009.
I was using the fields name as hardcoded values like 2009 but as per my requirement i need to display it from the variable.
I tried using Text Variable using customer exit, but I'm getting variable name(zvariable) instead of value(2009).
Please help me out, many thanks in advance.
Regards,
AnkurHi,
Actually I tried to create a Text Variable with Replacement Path.
But here the problem is that we have a Characteristic Variable (Customer Exit) which is not listing in the selection box of Replacement Path.
Hence we tried to create another Text Variable (Customer Exit) and refering to the same Customer Exit code.
Regards,
Ankur -
How to fetch APPROVER NAME and approval date dynamically for an user
Hi all..
How to fetch approver name and approval date dynamicall for an user in an email template..
can any help me to sort out this pbm,i am new to IDM..
Thanks in advance..Access policies get a static value. You can't populate a field with an adapter. If you must do this, leave the field blank, and put an adapter on the process form for your field that must be populated using code or logic.
-Kevin -
Hierarchy Table - Parent/Child Value Pairs w/o Node Name
Hi,
Has any body worked with below senario to create a Hierarchy table through Import Manager. If so how did you do it? I followed and sucessfull with some senario's by refering the blog "MDM Import Manager: handling multiple formats of source data for hierarchy" by pandey but not with this one. This scenair is actually from help.sap.com
Parent Category
Printers
Printers Laser
Printers Inkjet
Inkjet B&W
Inkjet Color
Printers Dot Matrix
Dot Matrix 300 DPI
Dot Matrix 600 DPI
Dot Matrix 1200 DPI
Edited by: SDN POWERED on Jun 7, 2009 8:59 PMHi SDN Powered,
For Hierarchy Table - Parent/Child Value Pairs w/o Node Name just do as follows:
1) In the Source Hierarchy tree, select the Parent and Child field nodes which you want to use to build hierarchy.
2) Right-click on one of the nodes and choose Create Hierarchy Field from the context menu, or choose Source > Create Hierarchy Field from the main menu.
3) MDM opens the Create Hierarchy Field dialog box. This dialog box contains 4 feilds, viz Hierarchy Field Name, Parent Field, Child Field, and Node Name Field. In the Hierarchy Field Name, type the name for the new field.In the Parent Field, Child Field. For Parent/Child Value Pairs w/o Node Name , set the Node Name Field to None.
4) Click OK to close the Create Hierarchy Field dialog box. The MDM Import Manager creates Hierarchy using the values you have provided.
I hope I am able to solve your problem.
Thanks & Regards
Dilmit Chadha -
HOw to get parent node name value through its child node?
Hi,
Experts,
I am able to get child node name values but according to attribute name value i want to get its parent name value how to achieve that. For that i have used If_Ixml_element->Get_parent. Please pass some idea on it.
Thanks in advance,
Shabeer ahmed.Hello Shabeer
I think the coding should be straightforward:
DATA: lo_element TYPE REF TO if_ixml_element,
lo_child TYPE REF TO if_ixml_node,
lo_parent TYPE REF TO if_ixml_node.
" NOTE: LO_ELEMENT holds your child node
lo_child ?= lo_element.
lo_parent = lo_child->get_parent( ).
Regards
Uwe -
How to read a xml node name in xsl? Urgent!
Hi,
I've a dynamic xml which gets generated at runtime. The basic nodes remain same but the content and nodes vary.
- <root>
- <list>
- <row>
<courseStartDate></courseStartDate>
<courseEndDate></courseEndDate>
<courseName>ORACLE</courseName>
</row>
- </list>
</root>
I have an xsl which would read the values
as :
<xsl:value-of select="courseStartDate"/>
I would like to know if its possible to read the node name "courseStartDate" through xsl, which could be stored in a variable and then the corresponding value could be retrieved??
ThanksIf u want to display the name : value then u can do like this
<xsl:eval>this.selectSingleNode("name").nodeName</xsl:eval> : <xsl:value-of select="name" /> -
Dynamic accordion with dynamic datagrid
I’m trying to create a dynamic accordion with embedded
datagrids in each accordion area. I have the base working but have
2 problems I can’t seem to figure out.
Bases; the accordion uses a repeater and vbox with a custom
component from a webservice result set to create the accordion. The
custom component has another webservice that gets a value from the
repeater to pass it to the custom component.
My 2 problems:
1. how do I prevent the custom component from running the
webservice until the accordion item is clicked or the area is
visible? Otherwise I end up will a bunch of queries hitting the DB
and if there is several items for the accordion and many items from
the datagrid its slower.
2. how can I get the datagrid query to refresh when the
accordion item is clicked? Because the data may change I am not
able to see the updated data unless I reload the entire
application.
1 thing I did try. With the tab control you can use the
show() event and the data will refresh just fine, but with the
accordion, the show() event does not seem to fire. Its as if they
are all visible.
Any help here would be much appreciated, I’ve been
racking my brain for days now and I sure it is something simple
that I am missing. Thanks in advance.
See the example code below.
the application code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute"
width="100%"
height="100%"
initialize="ws.getMethod1.send()"
xmlns:output="com.comp.*">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
[Bindable]
public var thisWsdl:String = '
http://localhost/webservice/service.cfc?wsdl';
]]>
</mx:Script>
<mx:WebService id="ws"
wsdl="{thisWsdl}"
useProxy="false"
showBusyCursor="true"
fault="Alert.show(event.fault.faultString, 'Error');"
concurrency="multiple" requestTimeout="30">
<mx:operation name="getMethod1">
<mx:request>
<param1>{param1data}</param1>
<param2>{param2data}</param2>
<param3>{param3data}</param3>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:Accordion width="100%" height="100%"
fillColors="[#808080, #808080]">
<mx:Repeater id="rp"
dataProvider="{ws.getMethod1.lastResult}">
<mx:VBox label="{String(rp.currentItem.catname)}"
backgroundColor="#C0C0C0" width="100%" height="100%"
paddingRight="10">
<output:comp catid="{rp.currentItem.catid}"/>
</mx:VBox>
</mx:Repeater>
</mx:Accordion>
</mx:Application>
the component code:
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%"
height="100%"
focusIn="ws.getMethod.send()"
horizontalAlign="center"
backgroundColor="#FFFFFF">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
[Bindable]
public var thisWsdl:String = '
http://localhost/webservice/service.cfc?wsdl';
[Bindable]
public var catid:int;
]]>
</mx:Script>
<mx:WebService id="ws"
wsdl="{thisWsdl}"
useProxy="false"
showBusyCursor="true"
fault="Alert.show(event.fault.faultString, 'Error');"
concurrency="multiple" requestTimeout="30">
<mx:operation name="getMethod2">
<mx:request>
<catid>{catid}</catid>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:DataGrid id="itemGrid"
dataProvider="{ws.getMethod2.lastResult}" width="700"
height="250">
<mx:columns>
<mx:DataGridColumn width="100" dataField="itemid"
headerText="Item Id"/>
<mx:DataGridColumn wordWrap="true" dataField="itemname"
headerText="Item Name"/>
</mx:columns>
</mx:DataGrid>
</mx:VBox>Perhaps you could use the change event of the accordion, or
the show event of the child containers?
Tracy -
Oracle.xml.sql.OracleXMLSQLException: Expected name instead of .
Hi,
I'm using XDK in Tomcat to execute queries and get the XML result in the browser. I have written many queries but now I'm having problems in one of them.
The error output that I see in my browser is this one:
<ROOT>
<ERROR>
oracle.xml.sql.OracleXMLSQLException: Expected name instead of <.
</ERROR>
</ROOT>:
This error message is known as XML-20126 but it's not documented in the XML Developer's Kit Programmer's Guide, so I don't know what to do.
My XSQL query is the following:
<ROOT connection="xxxx_read" xmlns:xsql="urn:oracle-xsql">
<xsql:query>
SELECT XMLAGG(XMLELEMENT("NODE",
XMLELEMENT("name", b.nodename),
(SELECT XMLAGG(XMLELEMENT("SERVICE",
XMLATTRIBUTES(a.serviceabbr AS "type")
ORDER BY a.serviceabbr
FROM service a, serviceinstance c
WHERE c.isdeleted='N'
AND a.serviceid=c.serviceid
AND c.nodeid=b.nodeid
ORDER BY b.nodename
) AS "NODES"
FROM node b
WHERE b.isdeleted='N'
</xsql:query>
</ROOT>
That query executes fine in sqlplus, where I can see the XML result.
I think my problem could be related to the size of the XML output. In sqlplus, the output has around 38000 bytes size, which is nothing, so I don't really know why that should be a problem. Do you have any idea?
Thanks for your help,
DavidSo it seems there is a problem in fact:
XDB FUNCTION RESULTS ARE TRUNCATED WHEN USING XSQL
*** 02/25/04 08:28 am ***
Problem Description
There appears to be a limit on the content or characters that XSQL pages
handle when being passed data from XDB functions such as XMLAGG() and
XMLELEMENT().
If you have a xsql page of the form
< ?xml version="1.0"?>
< xsql:query xmlns:xsql="urn:oracle-xsql" connection="demo" >
select XMLAgg(XMLElement("Test", XMLAttributes(i.id as "Id_van_de_test",
i.name as "Name_van_de_test"))) as "Tests" from problem_xml i
< /xsql:query>
If the number of rows (or amount of data) in the table is low, the result
appears okay. However, if the data returned is large the data appears to
truncate giving xml parsing errors as if the xml returned is not well formed.
In the testcase provided, the error is as follows :-
Results from 10.1.0.2
< Line 2, Column 16354>: XML-20126: (Fatal Error) '< ' cannot appear in attribute value.
< Line 2, Column 16366>: XML-20190: (Fatal Error) Whitespace required.
< Line 2, Column 16366>: XML-20201: (Fatal Error) Expected name instead of 4.
< ?xml version = '1.0'?>
value.< /ERROR>
Results from 9.2.0.6
< Line 2, Column 16354>: XML-0126: (Fatal Error) '< ' cannot appear in attribute value.
< Line 2, Column 16368>: XML-0190: (Fatal Error) Whitespace required.
< Line 2, Column 16368>: XML-0201: (Fatal Error) Expected name instead of 3.
< Line 2, Column 16371>: XML-0122: (Fatal Error) '=' missing in attribute.
< Line 2, Column 16391>: XML-0190: (Fatal Error) Whitespace required.
< Line 2, Column 16396>: XML-0122: (Fatal Error) '=' missing in attribute.
< Line 2, Column 16397>: XML-0125: (Fatal Error) Attribute value should start with quote.
< ?xml version = '1.0'?>
value.< /ERROR>
And the workaround:
======================================================
The only workaround we have is to get the Document generated using
DBMS_XMLQUERY [with expanded entities].
_==Start===
create or replace procedure Query2XML(QueryString varchar2 default
'select col1 from xml_tab where r_id = ?') IS
XMLCtx number;
myXML clob;
myXMLLength number;
BEGIN
XMLCtx := DBMS_XMLQUERY.NEWCONTEXT(QueryString);
myXML := DBMS_XMLQUERY.GETXML(XMLCtx);
myXMLLength := DBMS_LOB.GETLENGTH(myXML);
DBMS_XMLQUERY.CLOSECONTEXT(XMLCtx);
END Query2XMLFile;
_==Start===
Currently, XDB uses a DOM based model for XSLT evaluation. It is not
possible to support disable-output-escaping constructs through this
evaluation. This might be supported in a future release when a different
model is implemented.
============================================================= -
Dynamic SQL : passing table name as parameter
Hi
I have a SQL query (a store procedure ) that i want to convert to PLSQL
This is a part of my SQL query that i am trying to to find a solution for it, because i cant convert it to oracle :
DECLARE lookupTableRow CURSOR FOR
SELECT TableName FROM SYS_LookUpTable
OPEN lookupTableRow
FETCH NEXT FROM lookupTableRow INTO @tableName
WHILE @@FETCH_STATUS=0
BEGIN
SET @sql='SELECT * FROM '+@tableName
EXECUTE sp_executesql @sql
IF @counter=0
BEGIN
INSERT INTO T_TABLE_MAPPING VALUES('P_MAIN_METADATA', 'Table', @tableName)
END
ELSE
BEGIN
INSERT INTO T_TABLE_MAPPING VALUES('P_MAIN_METADATA', 'Table'+CONVERT(NVARCHAR(10),@counter), @tableName)
END
SET @counter=@counter+1
FETCH NEXT FROM lookupTableRow INTO @tableName
END
CLOSE lookupTableRow
DEALLOCATE lookupTableRow
As i understand i can't use ORACLE dynamic sql (execute immediate) when the table name is a parameter
Furthermore when i execute this dynamic query in my SQL store procedure each SELECT statement return me as a result the relevant table rows , those result are different in each loop .
So i cant do this too with ORACLE dynamic sql .
Please advice for any solution
* how can i use dynamic sql with table name as parameter ?
* how can i use a "dynamic" cursor, in order to be able to display the dynamic results ?
Thanks for the adviceHi,
b003cf5e-e55d-4ff1-bdd2-f088a662d9f7 wrote:
Hi
I have a SQL query (a store procedure ) that i want to convert to PLSQL
This is a part of my SQL query that i am trying to to find a solution for it, because i cant convert it to oracle :
DECLARE lookupTableRow CURSOR FOR
SELECT TableName FROM SYS_LookUpTable
OPEN lookupTableRow
FETCH NEXT FROM lookupTableRow INTO @tableName
WHILE @@FETCH_STATUS=0
BEGIN
SET @sql='SELECT * FROM '+@tableName
EXECUTE sp_executesql @sql
IF @counter=0
BEGIN
INSERT INTO T_TABLE_MAPPING VALUES('P_MAIN_METADATA', 'Table', @tableName)
END
ELSE
BEGIN
INSERT INTO T_TABLE_MAPPING VALUES('P_MAIN_METADATA', 'Table'+CONVERT(NVARCHAR(10),@counter), @tableName)
END
SET @counter=@counter+1
FETCH NEXT FROM lookupTableRow INTO @tableName
END
CLOSE lookupTableRow
DEALLOCATE lookupTableRow
As i understand i can't use ORACLE dynamic sql (execute immediate) when the table name is a parameter
Furthermore when i execute this dynamic query in my SQL store procedure each SELECT statement return me as a result the relevant table rows , those result are different in each loop .
So i cant do this too with ORACLE dynamic sql .
Please advice for any solution
* how can i use dynamic sql with table name as parameter ?
* how can i use a "dynamic" cursor, in order to be able to display the dynamic results ?
Thanks for the advice
I have a SQL query (a store procedure ) that i want to convert to PLSQL
I doesn't help when you use one term to mean another thing.
SQL is a language used in both Oracle and other products, such as Microsoft's SQL Server. I don't know much about SQL Server, but Oracle (at least) doesn't support stored procedures in SQL itself; they have to be coded in some other language, such as PL/SQL.
As i understand i can't use ORACLE dynamic sql (execute immediate) when the table name is a parameter
If the table name is a parameter (or only known at run-time for any reason), that's exactly the kind of situation where you MUST use dynamic SQL.
The number of columns that a query produces (and their datatypes) is fixed when you compile a query, whether that query is dynamic or not. If you have multiple queries, that produce result sets with different numbers of columns, then you can't combine them into a single query. The best you can do with one query is to add NULL columns to some of the queries so they all produce the same number of columns.
If you're just displaying the results, there might not be any reason to combine separate result sets. Just display one result set after another.
Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
How to map the node id to the node name in database view just like "V$GES_RESOURCE"
i have a rac with 3 nodes,and the node id is from 1 to 3,i can check it with command olsnodes.
$ olsnodes -p -n -i
tdsdb1 1 tdsdb1-priv tdsdb1-vip
tdsdb2 2 tdsdb2-priv tdsdb2-vip
tdsdb3 3 tdsdb3-priv tdsdb3-vip
and i also can check it in gv$instance
SQL> select inst_id,instance_number,instance_name from gv$instance;
INST_ID INSTANCE_NUMBER INSTANCE_NAME
1 1 jftds1
3 3 jftds3
2 2 jftds2
but when i select the master node of some resource ,it shows some value of node id =0
SQL> select resource_name,master_node from v$ges_resource;
RESOURCE_NAME MASTER_NODE
[0xdcc9fa12][0x246658a5],[QQ] 2
[0x932][0x70c230e],[IV] 0
[0xd9fb][0x13181703],[IV] 0
[0xddae][0x0],[TM] 0
[0xb970fb05][0x729b596a],[LB] 2
[0xb580][0x70c2e1c],[IV] 0
[0x31ad56fb][0x7e4c3daa],[QQ] 2
[0x3][0x797609],[HW] 0
[0x2bf04627][0xf28b1575],[QI] 0
[0x19c89f33][0xd06ef447],[QQ] 0
[0x529ae82][0x86e25d46],[QQ] 0
it seems that the master node id is from 0 to 2
i want to get the node name from the node id from v$ges_resource,so i check the table cluster_nodes ,cluster_instances,but there are nothing.
SQL> select * from CLUSTER_NODES;
no rows selected
SQL> select * from CLUSTER_INSTANCES ;
no rows selected
how can i get the node name from the node id in the tables just like " v$ges_resource"? thank you .my cluster ware version is 10.2.0.5
database version is 10.2.0.5
and the source of rac is all online
$ crsctl query crs activeversion
CRS active version on the cluster is [10.2.0.5.0]
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
NLSRTL Version 10.2.0.5.0 - Production
$ crs_stat -t
Name Type Target State Host
ora.jftds.db application ONLINE ONLINE tdsdb2
ora....tds1.cs application ONLINE ONLINE tdsdb1
ora....s1.inst application ONLINE ONLINE tdsdb1
ora....ds1.srv application ONLINE ONLINE tdsdb1
ora....tds2.cs application ONLINE ONLINE tdsdb2
ora....s2.inst application ONLINE ONLINE tdsdb2
ora....ds2.srv application ONLINE ONLINE tdsdb1
ora....tds3.cs application ONLINE ONLINE tdsdb3
ora....s3.inst application ONLINE ONLINE tdsdb3
ora....ds3.srv application ONLINE ONLINE tdsdb3
ora....SM1.asm application ONLINE ONLINE tdsdb1
ora....B1.lsnr application ONLINE ONLINE tdsdb1
ora.tdsdb1.gsd application ONLINE ONLINE tdsdb1
ora.tdsdb1.ons application ONLINE ONLINE tdsdb1
ora.tdsdb1.vip application ONLINE ONLINE tdsdb1
ora....SM2.asm application ONLINE ONLINE tdsdb2
ora....B2.lsnr application ONLINE ONLINE tdsdb2
ora.tdsdb2.gsd application ONLINE ONLINE tdsdb2
ora.tdsdb2.ons application ONLINE ONLINE tdsdb2
ora.tdsdb2.vip application ONLINE ONLINE tdsdb2
ora....SM3.asm application ONLINE ONLINE tdsdb3
ora....B3.lsnr application ONLINE ONLINE tdsdb3
ora.tdsdb3.gsd application ONLINE ONLINE tdsdb3
ora.tdsdb3.ons application ONLINE ONLINE tdsdb3
ora.tdsdb3.vip application ONLINE ONLINE tdsdb3 -
ABAP MAPPING Querry - How to create Different Target NODE NAME as of Source
Hi,
In abap Mapping
<b>DATA READ FROM SOURCE XML NODE into <u>incode</u></b> ******
data: incode type ref to if_ixml_node_collection.
incode = idocument->get_elements_by_tag_name( 'BUSINESS_DAY' ).
<b>CREATE OUTPUT XML NODE WITH SAME NAME AS <u>'BUSINESS_DAY'</u></b> **
data: outcode type ref to if_ixml_node.
outcode = incode->get_item( index = 0 ).
data irc type i.
irc = msgtype->append_child( outcode ).
*<b>BUT TO CREATE OUTPUT XML NODE WITH <u>DIFFERENT NAME AS 'BUSS_DAY'</u></b>*
data: ws_val type string VALUE 'xyz'.
data: elementsender type ref to if_ixml_element.
elementsender = odocument->create_simple_element(
name = 'BUSS_DAY'
value = ws_val
parent = msgtype ).
<b>Please guide me how I can assign <u>incode</u> value to ws_val.
So that I can generate <u>OUTPUT XML NODE with different name as of SOURCE XML NODE</u></b>
i.e. How to create Different Target NODE NAME as of
Source with same Data
<Note>: I am using "How to... Use ABAP Mapping in XI 3.0 ver.1.00" and to create different NODE name as of source
is not given in it.
Thanks & Regards.Hi ABAPers,
Please Guide Me .....
<u>This is ABAP Mapping problem in XI.</u>
<b>How can I read data from incode into ws_val.</b>
data: <b>ws_val</b> type string
data: <b>incode</b> type ref to if_ixml_node_collection.
<b>incode</b> = idocument->get_elements_by_tag_name( 'BUSINESS_DAY' ).
Best Regards -
How to remove target node if source field value is empty SAP PI Mapping
Hello,
how to remove target node if source field value is empty in graphical Mapping.
Like if
MIddle name in source filed is empty, I would like to eliminate target field from out put XML.
Thank you
JohnHi Jhon,
If you want to remove all empty tags and you dont to complicate your message mapping, you can use a XSL, after the message mapping, to remove all the empty tags:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="*[not(@*|*|comment()|processing-instruction())
and normalize-space()='' ]"/>
</xsl:stylesheet>
Regards
Maybe you are looking for
-
Configuration RFC in Third-Party System?!
Hi, I try to connect a R/3 4.6c to the XI Server. I guess I configured the SLD right, but now i have to configure the RFC connection. My idea in SM59: Connectiontype: 3 target host: /H/1xx.xx.xx.xx/H/1xx.1xx.1xx.xx/H/ (external IP, Internal IP) --> a
-
Hi While loading Hierarchy data getting error The node for id 5478952 contains Invalid characters. Please update its urgent Thanks sunil Edited by: sunil chowdary on Aug 21, 2008 1:16 PM
-
Bing based federated result sources not returning any results for non-English languages
I have a result source with this query: http://www.bing.com/search?q={?searchterms} language:fr site:msdn.microsoft.com&format=rss&count=50&first={startIndex} This used to give me 40-50 results for common terms like download, blog etc. From today (7
-
Critical intercompany STO issue
Hello Together, We are facing a strange issue in Intercompany STO process. Supplying plant has done the goods issue ( movt type 643 ) against STO order and sent us the delivery document. Accordingly we have changed the Import STO Po & manintained the
-
How to find 'I Accept' response while pressing button 'Convert to Auction'
Hi Everybody, Can anybody tell me that Terms and conditions accept/decline by BIDDER after invoking Live Auction Cockpit (clicking Live Auction) for a Auction where system stores this response of accept/decline. I want this response. Please help me w