Extract cluster element names and values automatically
Dear Labview forum,
I would like to extract cluster element names and values automatically
without prior knowledge of the cluster element size or contents.
I am able to extract the names but have some trouble with the values. (see attached VI)
I wish to write each the cluster element name and value in a string, and then write the string to a new line in a file.
Regards,
Jamie
Using Labview version 8.0
Attachments:
extract cluster element names and values automatically.vi 14 KB
This can become arbitrarily complex, because a cluster can contain many types of data, even other clusters, arrays, typedefs, etc. So getting a "value" of an element is not as easy as you might think. There is a reason you get a variant.
If all cluster elements are simple numerics you can use "variant to data" with the correct type. The attached shows a few possibilities. Modify as needed.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
extract_cluster_element_names_and_values_automaticallyMOD.vi 23 KB
Similar Messages
-
How to extract the element name of an XML Document
This is how my xml file looks like:
<?xml version="1.0" encoding="UTF-8" ?>
- <nsiData>
- <instance timestamp="2011-05-25 19:01:00">
<AECI>47.00</AECI>
<EEI>-553.00</EEI>
<EES>-91.00</EES>
<EKPC>-22.00</EKPC>
<LGEE>-140.00</LGEE>
<MHEB>-1376.00</MHEB>
<MISO>-4725.00</MISO>
<MOWR>55.00</MOWR>
<ONT>-872.00</ONT>
<OVEC>-144.00</OVEC>
<PJM>-1438.00</PJM>
<SPA>-55.00</SPA>
<SPC>20.00</SPC>
<SWPP>69.00</SWPP>
<TVA>-69.00</TVA>
<WAUE>-158.00</WAUE>
</instance>
- <instance timestamp="2011-05-25 19:02:00">
<AECI>47.00</AECI>
<EEI>-555.00</EEI>
<EES>-91.00</EES>
<EKPC>-22.00</EKPC>
<LGEE>-148.00</LGEE>
<MHEB>-1375.00</MHEB>
<MISO>-4709.00</MISO>
<MOWR>55.00</MOWR>
<ONT>-871.00</ONT>
<OVEC>-144.00</OVEC>
<PJM>-1426.00</PJM>
<SPA>-55.00</SPA>
<SPC>20.00</SPC>
<SWPP>82.00</SWPP>
<TVA>-69.00</TVA>
<WAUE>-158.00</WAUE>
</instance>
</nsiData>
I want to extract the element name and the element value from this file. I was trying to do it this way:
SELECT datetime,
loc.aeci_value,
loc.eei_value
FROM temp_xmltype txml,
XMLTABLE ('/nsiData' PASSING xmldata) misolmp,
XMLTABLE ('/nsiData/instance' PASSING misolmp.object_value
COLUMNS
datetime VARCHAR2(100) PATH '/instance/@timestamp') misodt,
XMLTABLE ('/nsiData/instance' PASSING misolmp.object_value
COLUMNS
aeci_value VARCHAR2(100) PATH '/instance/AECI',
eei_value VARCHAR2(100) PATH '/instance/EEI') loc
WHERE txml.feed_id = 127
But doing it this way does not get me AECI as a column value. Is there any way to get the element name as a column value.
I am on 11gR2The SQL statement you wrote returns 4 rows and there is only two AECI values in there. The corrected version of what you wrote should really be
SELECT loc.datetime,
loc.aeci_value,
loc.eei_value
FROM temp_xmltype txml,
XMLTABLE ('/nsiData/instance' PASSING txml.xmldata
COLUMNS
datetime VARCHAR2(100) PATH '@timestamp',
aeci_value VARCHAR2(100) PATH 'AECI',
eei_value VARCHAR2(100) PATH 'EEI') loc
WHERE txml.feed_id = 127;If you know the element name and want it returned as a column name, why not just hard code it in the SQL statement, such as
SELECT loc.datetime,
'AECI' as AECI,
loc.aeci_value,
'EEI' AS EEI,
loc.eei_value
FROM temp_xmltype txml,
XMLTABLE ('/nsiData/instance' PASSING txml.xmldata
COLUMNS
datetime VARCHAR2(100) PATH '@timestamp',
aeci_value VARCHAR2(100) PATH 'AECI',
eei_value VARCHAR2(100) PATH 'EEI') loc
WHERE txml.feed_id = 127;I suspect you are really looking for something like {message:id=9535532}
Note: See the FAQ (under your sign-in name) for how to use the code tag to format code as shown above. -
How to get the name and value of an attribute on a node/element that is not a child
Hello,
Can someone shed some wisdom on how I can compare 2 xml nodes for differences.
My main challenge is I need to use the attributes/values of 'ProductDescription' and 'Features' as 'key' to identify the same node in
another doc with the same layout, but different content.
I am having trouble getting the name of the attribute on the node, 'ProductDescription' and 'Features'. I can only seem to get the node names, but not the attributes on the node. I need the name, because it can be different from doc to doc, so
I can't hardcode this.
Can someone please help with how to retrieve an attribute name/value on a node that is not a child. Here's an example of what
my xml looks like:
DECLARE
@myDoc1 xml
,@mydoc2 xml
DECLARE
@ProdID int
SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
<Features featureID = "1" featureName = "body">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
</Features>
<features featureID = "2" featureName = "seat">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
</Features>
</ProductDescription>
SET @myDoc2 ='<ProductDescription ProductID="1" ProductName="Road Bike">
<Features featureID = "1" featureName = "body">
<Warranty>2 year parts and labor</Warranty>
<Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
</Features>
<features featureID = "2" featureName = "wheel">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
</Features>
</ProductDescription>
I need to compare the attributes of 'ProductDescription' and 'Features' from @mydoc1 against @mydoc2 to see if they are the same based on those 2 nodes first. If they are, then i want to show the difference in the child elements.
This will eventually be an outer join to give me the differences betw the 2 docs based on those key values (node attributes).
I used node('//*') for the path, and value('local-name(../.)', 'varchar(50)') as element
,value('.[not(@xsi:nil = "true")]','VARCHAR(255)') AS new_value
...etc...
but that only gives me the node names, and the child elements. It does not give me back the attribute names and values from the node itself.
Thanks in advance for your help.
ceeAre you looking for something like this:
DECLARE @myDoc1 xml
SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
<Features featureID = "1" featureName = "body">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
</Features>
<Features featureID = "2" featureName = "seat">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
</Features>
</ProductDescription>'
SELECT T.c.value('local-name(.)', 'nvarchar(50)') AS name,
T.c.value('.', 'nvarchar(50)') AS value
FROM @myDoc1.nodes('ProductDescription/@*') AS T(c)
Erland Sommarskog, SQL Server MVP, [email protected] -
Help in retrieving the element attribute name and value..
Hi have to retrieve the attribute name and value from the element.....
requirement is like this
<ws:GetRightNowProductViewByDivisionResponse xmlns:ws="http://ws.sage.co.uk/">
<ws:GetRightNowProductViewByDivisionResult ProductID=" " RightNowProductView=""/>
</ws:GetRightNowProductViewByDivisionResponse>
i should get all the element attbutes names as attributes in above mentioned format ..using xquery...
here is the respone ....
<sage:sageRequestResponse xmlns:sage="http://www.sage.com">
<env:EaiEnvelope xmlns:env="http://www.sage.com/Envelope">
<env:Domain>string</env:Domain>
<env:Service>RightNowBroker</env:Service>
<env:UserId>string</env:UserId>
<env:OperationName>GetRightNowProductViewByDivision</env:OperationName>
<env:Payload>
<ws:GetRightNowProductViewByDivisionResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.sage.co.uk/">
<xs:schema id="NewDataSet" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="RightNowProductView" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="RightNowProductView">
<xs:complexType>
<xs:sequence>
<xs:element name="ProductId" type="xs:short"/>
<xs:element name="Product" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//RightNowProductView"/>
<xs:field xpath="ProductId"/>
</xs:unique>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"/>
</ws:GetRightNowProductViewByDivisionResult>
</env:Payload>
</env:EaiEnvelope>
</sage:sageRequestResponse>Hi
Just as an aside to the comments above, a scenario we see occasionally is where a desk provides an internal function (e.g. a helpdesk) and you really just want to get the name display (as seen on the handsets) onto the CAD display.
You can do this by doing a reverse lookup over HTTP against CUCM. There are a number of posts around, these should get you started :
https://supportforums.cisco.com/thread/2065114
https://supportforums.cisco.com/message/3024617
A couple of notes:
- It looks up against the directory, NOT the actual calling line. So you can add stuff to the directory to get external callers to show up by name, but should expect the unexpected when you have shared lines (e.g. multipel directory entries with one tel number for whatever reason)
- If you want to do different lookups (i.e. get names back in a different format, get the actual line display name from CUCM, or lookup elsewhere) then you would need to either:
1) Do it via SOAP or another technology from the UCCX script engine
2) Put in a small external web service to do the lookups and allow UCCX to query via simple HTTP
3) Use a DB for the numbers so you can read/write to it from UCCX and regularly update the data from wherever you like
Regards
Aaron HarrisonPrincipal Engineer at Logicalis UK
Please rate helpful posts... -
All listing element must have index,name and value?
when i trying to convert a fmb file to xml, it shows a warning.
All listing element must have index,name and value...
how to resolve this..
Edited by: skud on Mar 9, 2011 6:03 AMwhen i trying to convert a fmb file to xml, it shows a warning.
All listing element must have index,name and value...
how to resolve this..
Edited by: skud on Mar 9, 2011 6:03 AM -
Send name and value of control to subvi
Hi all
I am trying to send the names and values of controls to a subvi.
I know that I can extract the name and value of the control using a property node, but I was looking for a way to make is easy to use for the programmer.
I am thinking of some kind of bundle function, it saves the name and value of the control, but I would like the programmer to be able to connect a random number
of controls to this subvi without having to specify the number of controls anywer.
I know there is configuration file stuff in labview, but it looks a bit more complex then what I want to do.
Also i know that I can use the OpenG toolkit, but I'll rather not use any add-ons to labview, as this VI might be running on many different computers.
Hope I made my problem clear enough!
Have a nice day
Regards
Tommy
Running LabVIEW 2009 32bit SP1 on Windows 7 64Bit
Solved!
Go to Solution.tombech wrote:
Hi all
I am trying to send the names and values of controls to a subvi.
I know that I can extract the name and value of the control using a property node, but I was looking for a way to make is easy to use for the programmer.
I am thinking of some kind of bundle function, it saves the name and value of the control, but I would like the programmer to be able to connect a random number
of controls to this subvi without having to specify the number of controls anywer.
I know there is configuration file stuff in labview, but it looks a bit more complex then what I want to do.
Also i know that I can use the OpenG toolkit, but I'll rather not use any add-ons to labview, as this VI might be running on many different computers.
Hope I made my problem clear enough!
Have a nice day
Regards
Tommy
I am not sure what you have in mind Tommy but lets rule out the rediculous.
You can find a Nugget I wrote here that explains how I managed to write an Save/Restore function that will automatically adapt to a type-def'd cluster. THat Nugget include my original source code as well as a full description of what where why and how.
I have used that code in multiple applications and it has demonstrated that it works.
No not all data types are supported! I left that as an exercise for the reader.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
How to specify pairs of variabel names and values in OdiInvoke
Hi,
If you start the scenario from a web service, you are invoking the service OdiInvoke. When you look at the WSDL for this Web Service, you will notice that beyond the scenario name, version and the execution context, you can specify pairs of variable names and values. The WSDL for the web service as following:
<xsd:complexType name="SessionRequestType">
<xsd:sequence>
<xsd:element minOccurs="0" default="true" type="xsd:boolean" name="Synchronous"/>
<xsd:element minOccurs="1" type="xsd:long" name="SessionId"/>
<xsd:element minOccurs="0" default="true" type="xsd:boolean" name="KeepVariables"/>
<xsd:element minOccurs="0" type="VariableType" name="Variables" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="VariableType">
<xsd:all>
<xsd:element type="xsd:string" name="Name"/>
<xsd:element type="xsd:string" name="Value"/>
</xsd:all>
</xsd:complexType>..........
If i call this OdiInvoke web service from BPEL, From BPEL assign activity, how can i specify pairs of variable names and values? Example: i have variable 1 and value1, variable 2 and value2, how to assign them to pairs if variable names and values. so that after the assignment, the payload for assign activity in BPEL can be become as following:
<Variables>
<Name>variable1</Name>
<Value>value1</Value>
<Name>variable2</Name>
<Value>value2</Value>
</Variables>
Thanks!
SusanTry this way,
In the expression builder copy the xml fragment to the target node. This will result in the below assign action in the bpel code
<assign name="Assign1">
<copy>
<from expression="<Variables><Name>variable1</Name><Value>value1</Value><Name>variable2</Name><Value>value2</Value></Variables>"/>
<to variable="outputVaribable"/>
</copy>
</assign> -
What is the key column name and value column name in JDBC Adapter parameter
Hi
Can any one please tell me what is the Key Column Name and Key Column Value in JDBC adatper parameters. If i dont mention those parameters i am getting the following error
<b> Value missing for mandatory configuration attribute tableEOColumnNameId</b>
Please help me
Best Regards
Ravi Shankar BHi
I am doing DataBase Lookup in XI
First i have created a Table in Database( CheckUser) which has two fields UserName and PhoneNumber and then i have created
I have created one Communication Channel For Reciever Adapter .
I have given the parameters like this
JDBC Driver : com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection : jdbc:microsoft:sqlserver://10.7.1.43:1433;DatabaseName=Ravi;
UserName.... sa
password.... sa
persistence : Database
Database Table Name : CheckUser
Key column name and Value column name i left blank and activated
and then
I have created
Data Types : Source ...... UserName
Destination.... PhoneNumber
Message Types
Message Interfaces
In Message Mapping
I have created one User Defined function DBProcessing_SpecialAPI().This method will get the data from the database....
In this function i have written the following code
//write your code here
String query = " ";
Channel channel = null;
DataBaseAccessor accessor = null;
DataBaseResult resultSet = null;
query = "select Password from CheckUser where UserName = ' " +UserName[0]+ " ' ";
try {
channel = LookupService.getChannel("Ravi","CC_JDBC");
accessor = LookupService.getDataBaseAccessor(channel);
resultSet = accessor.execute(query);
for(Iterator rows = resultSet.getRows();rows.hasNext();){
Map rowMap = (Map)rows.next();
result.addValue((String)rowMap.get("Password"));
catch(Exception e){
result.addValue(e.getMessage());
finally{
try{
if(accessor != null)
accessor.close();
}catch(Exception e){
result.addValue(e.getMessage());
And the i have mapped like this
UserName -
> DBProcessing_SpecialAPI----
>PhoneNumber
when i am testing this mapping i am getting the following error
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Dest_JDBC_MT xmlns:ns0="http://filetofilescenario.com/ilg"><phoneNumber>Plain exception:Problem when calling an adapter by using communication channel CC_JDBC (Party: , Service: Ravi, Object ID: c360bc139a403293afbc49d5c46e4478) Check whether the communication channel exists in the Integration Directory; also check the cache notifications for the instance Integration Server (central Adapter-Engine) Channel object with Id Channel:c360bc139a403293afbc49d5c46e4478 not available in CPA Cache.
com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel CC_JDBC (Party: , Service: Ravi, Object ID: c360bc139a403293afbc49d5c46e4478) Check whether the communication channel exists in the Integration Directory; also check the cache notifications for the instance Integration Server (central Adapter-Engine) Channel object with Id Channel:c360bc139a403293afbc49d5c46e4478 not available in CPA Cache.
at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.<init>(AdapterProxyLocal.java:61)
at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.getProxy(SystemAccessorInternal.java:98)
at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.<init>(SystemAccessorInternal.java:38)
at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.getConnection(SystemAccessorHmiServer.java:270)
at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:70)
at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169)
at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:296)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:211)
at com.sap.aii.utilxi.hmis.web.workers.HmisInternalClient.doWork(HmisInternalClient.java:70)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
</phoneNumber></ns0:Dest_JDBC_MT>
In RWB i have checked the status of JDBC driver its showing the following error
<b>Value missing for mandatory configuration attribute tableEOColumnNameId</b>
Best Regards
Ravi Shankar B
Message was edited by:
RaviShankar B -
Additional Results Custom Step using Variables in Name and Value to Log expressions?
I am trying to create a Custom Step Type for logging additional results - requiring a single Name and Value data pair included in the step.
I want to pass the name and value data in using two specific variables.
This functionality can of course be explicitly coded on a test step without problem, but I can't find a way to create a custom test step which inserts such a step i.e. automatically inserting the correct variable names into Name and Value to Log fields.
Any ideas how to accomplish this? I don't want the custom step users to have to type in the variable names every time they use it.
I am using TestStand 4.1.1
Message Edited by CIM1 on 04-20-2009 07:26 AMHi CIM1,
There are a few ways of doing this.
The simplest one would be to configure the expression in the Pre-Expression or Post-Expression (depending on whether you would like the Step Type to use the value in the variables or write the value to the variables) and then from here you can lock away the expressions from being edited. The caveat with this method is that you are obviously restricing the Pre/Post-Expressions for the step type.
Another Method would be to code some code modules to Write to/Read from the Variables and then calling these in the Steps Pre-Step SubStep or Post-Step Substep. The advantages of this method would be that you can search for the Variable, and if the variable is not present, you could create it before writing to it.
Hope this Helps.
Best Regards,
Steve H -
How to get all property names and values of an bean instance at runtime?
How can I get all property names and values of an bean instance at runtime?
(The class of the bean instance is dynamic and I can not know before I write the code .)Look at Class. It has a way to get at all public methods and attributes.
If you need to get to private attributes you can do what the Introspector does and expect the methods to follow the Bean pattern and pull the attributes out based upon that. Privates are all hidden from direct access but through the Bean Pattern they can be figured out. -
Get the attributes NAME and VALUE from an XML
I really love this forum :)
I load an XML an populate a Tree, from which I start to drag
items.
the xml looks like this:
<myTag attrName="attrValue"
otherAttrName="otherAttrValue"/>
var ds:DragSource = event.dragSource;
var var1:String =(event.dragInitiator as
Tree).value.@attrName;
-> the var1 variable has now: "attrValue"
my question is.. how can I get all the attributes' names? in
this example: attrName and otherAttrName (suppose I don't know the
structure of that xml node)
what about attributes values?
thank you!The snippet below takes an xml node(nodeCur), loops over the
attributes list and builds an array that contains the attribute
name and value for each attribute. It comes from a sample app that
allows you to edit an xml file.
Sorry that the forum will remove the formatting
var aDPAttributes:Array = new Array();
var xlAttributes:XMLList = nodeCur.@*;
var attribute:Attribute;
for ( var i:int = 0; i < xlAttributes.length(); i++) {
aDPAttributes.push({name:xlAttributes [ i ]
.name(),value:xlAttributes [ i ] });
dgAttributes.dataProvider = aDPAttributes; //set the property
sheet dataProvider
Tracy -
Flat file should have source field name and value
Hi Friends
I have a scenario of Idoc to Flat file , where in the target structure the field name and value should be present, generally only the value is available in a flat file.The target structure is as below:
for e.g RECTYPE is the Field Name and A is the value.
RECTYPE,A
DATEH,20111101
TIMEH,173125
RECTYPE,B
ORDNUM,4500054536
ORDITM,150
SUPDAT,20090218
PLNQTY,000000006
MATNR,14B300
BATCH,5697
PLANT,3026
DELIVTYPE,PO
SUPPLIER,0000023305
SUPNAME,Deutsche BP AG
SUPADRS,Erkelenzer Strasse 20
SUPCITY,Monchengladbach
SUPPOST,41179
SUPCOUN,DE
TRUCK_NBR,7589
BOND_FLG,X
STG_LOC,PLCL
LINE_ACTION,CRE
RECTYPE,B
ORDNUM,4500056721
ORDITM,10
SUPDAT,20090218
PLNQTY,000000013
MATNR,116703
BATCH,6589
PLANT,3026
DELIVTYPE,PO
SUPPLIER,0000023380
SUPNAME,DOW Belgium NV
SUPADRS,Havenlaan 7
SUPCITY,Tessenderlo
SUPPOST,3980
SUPCOUN,BE
TRUCK_NBR,7589
BOND_FLG,X
STG_LOC,PLCL
LINE_ACTION,CHG
RECTYPE,X
DATEH,20111101
TIMEH,173125
RECORDS,3Hi,
NameA.addHeaderLine
Specify whether the text file will have a header line with column names. The following values are permitted:
■ 0 u2013 No header line
■ 1 u2013 Header line with column names from the XML document
■ 2 u2013 As for 1, followed by a blank line
■ 3 u2013 Header line is stored as NameA.headerLine in the configuration and is applied
■ 4 u2013 As for 3, followed by a blank line
This specification is only permitted if exactly one structure is defined.
regards,
ganesh. -
How to pass tag name and value dynamically in the output of PCo notification?
Hi,
I have a requirement to develop such a scenario where there can be multiple no of tags in PCo (Say 10) but there will be single notification to push the tag name when the value got changed and the changed value to MII. for any value change for any of the tag, the notification will be trigger. So As per my knowledge I have to pass the tag name and value dynamically in the "output" tab of the notification. But need your support to find out how to pass them dynamically.
Thanks in advance.
Regards,
SumanHi Suman/Jeedesh,
As per Pco notification, it will trigger whenever any of the tag value changes in Agent instance subscription items.
For above issue, My suggestion
1. Create DB table name TAGLIST with 200 tags as rows in columns (Tagname, TagValue)
2. Based on notification trigger, create a transaction and update values w.r.t TagNames in above table
3. Next time, when notification trigger with fresh value for any of the tag, cross check with existing TagName with Value and update in DB table.
4. And in the mean time, send those Tag details vie mail trigger or as per requirement
Instead of creating 200 notification, above is a just alternate way suggestion to achieve dynamic tag value change notification.
Hope it might solve your problem
Regards,
Praveen Reddy -
How to get Cookie Name and Value Using HttpGetterCallback - CE 7.3
Hi All,
We are migrating from Netweaver 7.0 to 7.3. We are facing a issue when migrating the custom login module from 7.0 to 7.3.
Since WebCallback is deprecated and not to be used in Netweaver 7.3, we are finding difficulties in getting the cookie name and value. Please find below our coding for getting the cookie value using HttpGetterCallback. We are not getting the cookie name and value, Kindly let us know if we are implementing the HttpGetterCallback correctly.
HttpGetterCallback httpGetCookieCallback = new HttpGetterCallback();
httpGetCookieCallback.setType(HttpCallback.COOKIE);
Callback] callbks = new Callback[ { httpGetUrlCallback, httpGetCookieCallback };
callbackHandler.handle(callbks);
requestUrl = (String) httpGetUrlCallback.getValue();
Cookie] cookies = (Cookie [) httpGetCookieCallback.getValue();
if (cookies != null) {
for (int i = 0; i < cookies.length; i++) {
location.debugT("Cookies name " + cookies.getName()
+ " - value "
+ cookies.getValue());
Thanks and Regards,
SaravananTry This-
Cookie cookiesArray[] = request.getCookies();
Cookie currentCookie = null;
String currentCookieName = "";
String cookieValue = "dummycookie";
int cookieArrayLength = cookiesArray.length;
for (int i = 0; i < cookieArrayLength; i++) {
currentCookie = cookiesArray<i>;
currentCookieName = currentCookie.getName();
cookieValue = currentCookie.getValue();
Regards,
Atul -
Local name and value to test report?
Hello!
I have a local variable in MainSequence which name and value I want to include to test report. How can this be done?
BR,
Jick
Solved!
Go to Solution.You could also use the Additional Results step or Additional Results for any step.
See Attachment
Regards,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~
Attachments:
AdditionalResult.png 12 KB
Maybe you are looking for
-
My Network extender just currently stopped working out of the blue. My WAN light is not coming on at all, my ethernet cable is plugged in correctly. I even switched out the cable just in case the cable went bad. I have reset the system and still no W
-
GetOCIHandles() method on OracleConnection - Does it exist?
It seems that XMLType class wants to call this method but it cannot be found in any jdbc driver jars that come with Oracle 9.2.0.1.0 ??? This forces me to use XMLType only with the thin drivers. I would like to be able to use OCI drivers but after wa
-
Are logic boards interchangeable - such as the 3 early 2005 power mac comp
Hello all, I have another question similar to the one about whether or not different cases can be interchanged. My "new" question is this: Are the 3 "early 2005" Power Mac logic boards interchangeable? In other words, could one use a dual 2.0 or 2.3
-
Installation Elements 12 sous windows 8.1
L'organiseur s'installe corectement , mais pas l'éditeur.
-
My T420S suddenly has turned of (no warning or BSOD). No recorded for this in the Windows Event Viewer. Should I ask for a motherboard replacement? (my dad's T400 once suffered from this issue and it was resolved with a motherboard replacement). BTW: