Change Variable in XML command
Hello,
I created an Simple transformation code and I'm trying to change the PARNR code in this command:
<Product ID="$CONT.PARNR" UserTypeID="ContactName">
It should be:
<Product ID="12345" UserTypeID="ContactName">
Is it possible in Simple Transformation? How can I change it?!
Thanks.
Andréa
Solved:
<Product UserTypeID="ContactName">
<tt:attribute name="ID" value-ref="$CUST.CUST_ID" />
Result:
<Product ID="Cust_A" UserTypeID="ContactName">
Similar Messages
-
Dear Team,
Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type. Could you please do needful. Thank youHello,
most recent patches for IGS and kernel installed. Now it works. -
Format for Predefined lists of repeated measurements with changing variables
Hi,
I am a scientist and trying to draw an instrument ("writing a script" sounded wrong for LabView ) that is supposed to perform repeated measurements in an imaging experiment.
I want to be able to give the instrument a list that defines the values for several variables for each repetition, because I want it to do different things in different episodes of the experiments and/or alternate different acquisition methods. In this way I can use the same script for a wide range of experimental paradigms.
I am trying to decide on the format in which I could write the sequence to LabView to read. I looked into XML, but the LabView scheme seems pretty useless. If I use a textfile I would have to program a parseing script myself. If I use binary files I need to program an editor.
I also thought about whether I want a line by line execution protocoll or just changing variables and leaving the execution protocoll integrated in the instrument. However, the latter would reduce the versatility.
What would you think is a good way to do it?
In general each measurement consists of:
0. wait for a defined time (always the same)
1. light on (different light sources)
2. acquire images (different durations, exposure times, frames numbers)
3. trigger a device (not in all repetitions, maybe changing devices in future)
4. turn on a channel (changing channels)
5. acquire images (different durations, exposure times, frames numbers - also different from step 2)
6. turn off the channel (same as in 4)
7. acquire images (different durations, exposure times, frames numbers - also different from step 2 and 5)
8. light off (same source as 1)
So there is basically a repetitive pattern. The image acquitisition 'epics' are performed by the same device, everything else is switching on and off channels of a NI PCI.
Dennis
P.S. I use LabView 2009I'm in agreement that your best bet would be a simple CSV or tab delimited file. You can edit these in Excel, which makes the writing a lot easier. There is the Read Spreadsheet File VI which can give you a 2D array for your steps and parameters.
So, to keep it simple, use a csv.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
TYPE and SIZE, 2 more columns to the variable in the Command behavior?
DW 8.02 added 2 more columns to the variable in the Command
behavior, TYPE and SIZE. What do you put in here?
What is the difference for Access text, Date/Time, number and
Memo columns.
The Dreamweaver DOCS don't cover this update and you can't OK
the COMMAND without these two columnsThis will be of some help:
http://www.w3schools.com/ado/ado_datatypes.asp
You should be able to gather the column size from the
database's table
definition. Typically, columns that hold text are one byte
per character
(two for Unicode), whereas integers are 4 bytes. Other
numeric types and
date types vary among database systems.
"lovewebdev" <[email protected]> wrote in
message
news:ec0it5$h20$[email protected]..
> DW 8.02 added 2 more columns to the variable in the
Command behavior, TYPE
> and
> SIZE. What do you put in here?
> What is the difference for Access text, Date/Time,
number and Memo
> columns.
>
> The Dreamweaver DOCS don't cover this update and you
can't OK the COMMAND
> without these two columns
> -
How to change fcalias www via command line & particular port performance status
how to change fcalias www via command line & particular port performance status
how to change fcalias www via command line & particular port performance status
-
BEx Analyzer Not showing report result in canceling "Change variable Icon"
Hi Experts,
Do we have any settings in BEx Analyzer for retrive the Result set even after I click 'Change variable Icon' in Toolbar and cancel the variable pop-up window??
Eg: My query Result is displayed in Analyzer selecting some vaues in Selection screen.And when I click the Change Variable Icon from 'Analyzer Toolbar' its showing me 'Select values for variable' window.If I select the cancel button in it, then Query result becom blank showing the message "There are variables; change variable values". Do Analyzer having an option or settings to keep the result even if i cancel the variable selection from "change variable icon".
Thanx in advance..Sari-
If SAP provides such a function, I have not found it. The way I understand it., the change variable value initiates the OLAP back end. This clears the Presentation Manager front end, and clears the 'results' that are displayed on your workbook. If you cancel the OLAP run, the front end clear still executes.
HOWEVER... if you turn OFF Automatic Refresh before clicking on Change Variable Values and then clicking on Cancel, the presentation manager will not write any changes to your workbook. So that is your best solution. -
Sql:variable and XML query performance
Can someone help with sql:variable() in xml queries? It seems that when I attempt to reference variables with the sql:variable(...) function in an xpath function (exist or nodes) it comes up with a totally different query plan, possibly ignoring
my secondary indices like the ones for VALUE, PATH.
But if I replace sql:variable("@p_ObjectIdentifierForReference") with the literal (ie. "ord/p/ord0616.p") then it uses secondary indices more consistently.
Below you will see an unsuccessful attempt to get the query to "OPTIMIZE FOR" a specific literal value of @p_ObjectIdentifierForReference. But this doesn't give work. It doesn't give me a plan using the secondary index I expect.
Ideally there would be a way to get the sql:variable(...) function to give the same query plan as a literal. Not sure why that isn't the default behavior.
DECLARE
@p_ObjectIdentifierForReference
varchar(500);
SET
@p_ObjectIdentifierForReference
= 'ord/p/ord0616.p';
WITH
XMLNAMESPACES ('uri:schemas-progress-com:XREFD:0004'
as D)
SELECT
XREF_FileDataReference.XREF_FileData
AS XrefFileData,
InnerRowNode.value('/D:Reference[1]/D:File-num[1]',
'int')
AS FileNumber,
InnerRowNode.value('/D:Reference[1]/D:Line-num[1]',
'int')
AS LineNumber
FROM
(SELECT
XREF.XREF_FileData.XREF_FileData,
XREF.XREF_FileData.XREF_FileEntry,
InnerRow.query('.')
AS InnerRowNode
FROM
XREF.XREF_FileData
OUTER APPLY
DataXref.nodes('/D:Cross-reference/D:Source/D:Reference[@Object-identifier = sql:variable("@p_ObjectIdentifierForReference")
and @Reference-type = "RUN"]')
as T(InnerRow)
WHERE DataXref.exist('/D:Cross-reference/D:Source/D:Reference[@Object-identifier
= sql:variable("@p_ObjectIdentifierForReference") and @Reference-type = "RUN"]')
= 1)
AS XREF_FileDataReference
INNER
JOIN XREF.XREF_MemberBuilt
ON XREF_MemberBuilt.XREF_FileData
= XREF_FileDataReference.XREF_FileData
INNER
JOIN XREF.XREF_FileEntry
ON XREF_FileEntry.XREF_FileEntry
= XREF_FileDataReference.XREF_FileEntry
WHERE
XREF_MemberBuilt.XREF_ProjectBuilt
= 69
OPTION(RECOMPILE,
OPTIMIZE FOR (@p_ObjectIdentifierForReference
= 'ord/p/ord0616.p')I tried to create a "repro" of your query so we can work on it and try and improve it, but I got the best results by just adding text() and [1] to it, eg
SELECT
XREF_FileDataReference.XREF_FileData AS XrefFileData,
InnerRowNode.value('(/D:Reference/D:File-num/text())[1]', 'int') AS FileNumber,
InnerRowNode.value('(/D:Reference/D:Line-num/text())[1]', 'int') AS LineNumber
FROM (
In my main repro, even with a large piece of xml with 100,000 elements, there still wasn't much difference between the queries:
USE tempdb
GO
IF NOT EXISTS ( SELECT * FROM sys.schemas WHERE name = 'XREF' )
EXEC( 'CREATE SCHEMA XREF' )
GO
IF OBJECT_ID('XREF.XREF_FileData') IS NOT NULL DROP TABLE XREF.XREF_FileData
CREATE TABLE XREF.XREF_FileData
rowId INT IDENTITY,
DataXref XML,
XREF_FileData INT,
XREF_FileEntry INT,
CONSTRAINT PK_XREF_FileData PRIMARY KEY ( rowId )
GO
IF OBJECT_ID('XREF.XREF_MemberBuilt') IS NOT NULL DROP TABLE XREF.XREF_MemberBuilt
CREATE TABLE XREF.XREF_MemberBuilt
XREF_ProjectBuilt INT,
XREF_FileData INT
GO
IF OBJECT_ID('XREF.XREF_FileEntry') IS NOT NULL DROP TABLE XREF.XREF_FileEntry
CREATE TABLE XREF.XREF_FileEntry
XREF_FileEntry INT
GO
-- Create larger piece of xml for repro
;WITH XMLNAMESPACES ( DEFAULT 'uri:schemas-progress-com:XREFD:0004' ), cte AS (
SELECT TOP 100000 ROW_NUMBER() OVER ( ORDER BY ( SELECT 1 ) ) rn
FROM master.sys.columns c1
CROSS JOIN master.sys.columns c2
CROSS JOIN master.sys.columns c3
INSERT INTO XREF.XREF_FileData ( DataXref, XREF_FileData, XREF_FileEntry )
SELECT
SELECT
CASE rn WHEN 9999 THEN 'ord/p/ord0616.p' ELSE CAST( rn AS VARCHAR(20) ) END AS "@Object-identifier",
'RUN' AS "@Reference-type",
SELECT
rn AS "File-num",
rn * 10 AS "Line-num"
FOR XML PATH(''), TYPE
) AS "*"
FROM cte
FOR XML PATH('Reference'), ROOT('Source'), TYPE
).query('<Cross-reference xmlns="uri:schemas-progress-com:XREFD:0004">{.}</Cross-reference>'), 1, 100
INSERT INTO XREF.XREF_FileEntry ( XREF_FileEntry )
VALUES ( 100 )
INSERT INTO XREF.XREF_MemberBuilt ( XREF_ProjectBuilt, XREF_FileData )
VALUES ( 69, 1 )
GO
--SELECT * FROM XREF.XREF_FileData
--SELECT * FROM XREF.XREF_FileEntry
--SELECT * FROM XREF.XREF_MemberBuilt
--GO
-- Add primary XML index
CREATE PRIMARY XML INDEX xidx_XREF_FileData ON XREF.XREF_FileData (DataXref)
GO
-- Add value, property and path xml indexes
CREATE XML INDEX xvalidx_XREF_FileData ON XREF.XREF_FileData (DataXref)
USING XML INDEX xidx_XREF_FileData FOR VALUE
CREATE XML INDEX xpthidx_XREF_FileData ON XREF.XREF_FileData (DataXref)
USING XML INDEX xidx_XREF_FileData FOR PATH
CREATE XML INDEX xprpidx_XREF_FileData ON XREF.XREF_FileData (DataXref)
USING XML INDEX xidx_XREF_FileData FOR PROPERTY
GO
:exit
DBCC DROPCLEANBUFFERS
DBCC FREEPROCCACHE
GO
DECLARE @p_ObjectIdentifierForReference varchar(500);
SET @p_ObjectIdentifierForReference = 'ord/p/ord0616.p';
;WITH XMLNAMESPACES ('uri:schemas-progress-com:XREFD:0004' as D)
SELECT
XREF_FileDataReference.XREF_FileData AS XrefFileData,
InnerRowNode.value('/D:Reference[1]/D:File-num[1]', 'int') AS FileNumber,
InnerRowNode.value('/D:Reference[1]/D:Line-num[1]', 'int') AS LineNumber
FROM (
SELECT
XREF.XREF_FileData.XREF_FileData,
XREF.XREF_FileData.XREF_FileEntry,
InnerRow.query('.') AS InnerRowNode
FROM XREF.XREF_FileData
OUTER APPLY DataXref.nodes('/D:Cross-reference/D:Source/D:Reference[@Object-identifier = sql:variable("@p_ObjectIdentifierForReference") and @Reference-type = "RUN"]') as T(InnerRow)
WHERE DataXref.exist('/D:Cross-reference/D:Source/D:Reference[@Object-identifier = sql:variable("@p_ObjectIdentifierForReference") and @Reference-type = "RUN"]') = 1
) AS XREF_FileDataReference
INNER JOIN XREF.XREF_MemberBuilt ON XREF_MemberBuilt.XREF_FileData = XREF_FileDataReference.XREF_FileData
INNER JOIN XREF.XREF_FileEntry ON XREF_FileEntry.XREF_FileEntry = XREF_FileDataReference.XREF_FileEntry
WHERE XREF_MemberBuilt.XREF_ProjectBuilt = 69
OPTION( RECOMPILE, OPTIMIZE FOR (@p_ObjectIdentifierForReference = 'ord/p/ord0616.p') )
GO
DBCC DROPCLEANBUFFERS
DBCC FREEPROCCACHE
GO
DECLARE @p_ObjectIdentifierForReference varchar(500);
SET @p_ObjectIdentifierForReference = 'ord/p/ord0616.p';
;WITH XMLNAMESPACES ('uri:schemas-progress-com:XREFD:0004' as D)
SELECT
XREF_FileDataReference.XREF_FileData AS XrefFileData,
InnerRowNode.value('(/D:Reference/D:File-num/text())[1]', 'int') AS FileNumber,
InnerRowNode.value('(/D:Reference/D:Line-num/text())[1]', 'int') AS LineNumber
FROM (
SELECT
XREF.XREF_FileData.XREF_FileData,
XREF.XREF_FileData.XREF_FileEntry,
InnerRow.query('.') AS InnerRowNode
FROM XREF.XREF_FileData
OUTER APPLY DataXref.nodes('/D:Cross-reference/D:Source/D:Reference[@Object-identifier = sql:variable("@p_ObjectIdentifierForReference") and @Reference-type = "RUN"]') as T(InnerRow)
WHERE DataXref.exist('/D:Cross-reference/D:Source/D:Reference[@Object-identifier = sql:variable("@p_ObjectIdentifierForReference") and @Reference-type = "RUN"]') = 1
) AS XREF_FileDataReference
INNER JOIN XREF.XREF_MemberBuilt ON XREF_MemberBuilt.XREF_FileData = XREF_FileDataReference.XREF_FileData
INNER JOIN XREF.XREF_FileEntry ON XREF_FileEntry.XREF_FileEntry = XREF_FileDataReference.XREF_FileEntry
WHERE XREF_MemberBuilt.XREF_ProjectBuilt = 69
OPTION( RECOMPILE, OPTIMIZE FOR (@p_ObjectIdentifierForReference = 'ord/p/ord0616.p') )
GO
So I guess I'm saying I cannot reproduce your problem on SQL 2008 R2 or SQL 2012. Does anything about this repro stand out as different from your situation?
Looking at your query I would say you might consider the following:
are you really seeing big differences in query duration?
pretty much ignore estimated plan costs for xml queries
consider breaking it up; eg carve off the xml then do the joins? If poor cardinality estimation is part of the problem this might help
Understand what PATH, PROPERTY and VALUE are for, then only create the ones you need
do you really have the range of queries that requires all three?
this is still a great article on xml indexes:
http://technet.microsoft.com/en-us/library/ms191497.aspx
What's performance like with the primary xml index only?
If performance is that important, consider materialising the columns permanently
I think the buffer_descriptors stuff is a distraction - mostly your cache is warm right?
plan forcing could be a last resort
Selective XML indexes in SQL 2012 onwards are great : ) much less storage required for example but much more specific -
Change variable from negative to postive
hallow
i wont top now how i change variable from negative to postive
like change -5 to 5
thankesHi Shnya,
You just multiply with " -1", it wil get converted from Positive to negative or vice versa.
Hope I answered your query.
Regards,
Sujatha -
How to define a changing variable in Broadcasting.
I would like to run bex web report in background using information broadcasting in bw 3.5. I setup all required settings and it is running fine. But I would want the broadcaster should take changing variable (example: date or fiscal period etc) based on the execution date or other condition. (please note that this is not for including date and time etc in description).
I want broadcaster should take current date or date range or fiscal period as variable (selection screen) while running the report. I have tried using filter variable tab in broadcaster. But it was taking only static dates.
pls suggest.
Thanks in advance.Could you please tell me in detail. Which user exit variable you have mentioned? I am already using user exits (code in CMOD) for variables in query and it is working fine.
Now, I want to run the same query in background using information broadcasting. When i run the query it asks for user input (for example: date etc). I enter the current date and execute the report. But I dont want to enter current date each time. Instead i want to execute them in backgroun and system should take values by itself.
Correct me if I am wrong. For this you suggested me write one more user variable where it will populate variable values for backgroun (not used in query)? pls reply.
Thanks, points assigned. -
Changing the custom XML for a flash chart dynamically
Hello
I am wondering if anyone has found a way to change the custom XML
for a flash chart dynamically.
For instance.
On the www.anychart.com website their is a gallery with charts.
I have studied one called "2Dlinetimechart. It has hours on the X-axis.
When I view the XML for this chart.
I found this enrty
- <block color="0x0080C0" border_color="0x0080C0" name="Sales dept.">
<set value="0" argument="0" name="00:00" />
<set value="1" argument="0" name="01:00" />
It uses the tag value to set the position on the X-axis. But the tag name to set the labels on the X-axis.
I have not found a way to do this in application express 3.0.
Therefore I wonder if I can change to XML dynamically, and build my own block based on the input I have.
Or even build a chart, based on a xml that I create first then sends to the object that renders the chart.
Hope this makes sence ?
Ulf
PS this is related to my question about
http://forums.oracle.com/forums/thread.jspa?messageID=1887210?
using dates on the x-axis.
But would by nice to know a general method to rebuild the xml-file dynamically so I can change the chart within the limits of the xml-definition.String value = ResultSet.getObject("myfield").toString();
String opvalue = "15";
<OPTION Value=15 <%=((opvalue.equals(value))?"selected":"")%>> -
Crystal Reports XI does not allow to change Table to SQL command?
I have report that has Table in Datasource and this table used in report and all fileds are mapped. I need to change table to SQL Command with the same result set of collumns. When I try to Update in Set Datasource Location - it does not work. CR XI allow to update Command to table but Table to Command just do nothing.
What I have to do or how I can do it?Alexander,
That's probably the "Best" way to do it, and long term you'll want to start adding BOE to your work flow.
If you want to get around it, here how:
1) MAKE A COPY OF YOUR REPORT AND WORK FROM THE COPY!!! This involves some a good deal of destruction before you get into reconstruction.
2) Once you have created your command, remove the table.
3) Now the fun part... Go through report and manually change all references to the 1st table...
report fields
formulas
selection criteria
groups
the whole 9 yards...
A short cut for the future... If you make all of your formula copies of all of your fields ( fCustomerName = {Table.CustomerName} ) and then only use the formula version of the field in the reports, you can make these changes very easily. (All you have to do is update the one set of formulas.)
Also as a side note before you get started... You may want to think twice before you mix commands with tables. You loose the server side filtering and grouping on the tables when you do that. So if you have several tables, you are better off doing the whole thing in one SQL command, do all of your filtering and sorting there and use it to replace ALL of your tables.
Basically, Graham's way is the easy way... Assuming you have access to the BOE.
Jason -
After Making Changes In Log4j.xml Application Needs Recompilation?
Hello,
I am using log4j in my jsp pages and for that I instantiating Logger class like this
Logger logger = Logger.getLogger("test.jsp");
{code}
And I have log4j.xml in the classpath.
I believe, priority levels can be changed and log level can be changed without re-compiling.
Change the log4j.xml and re-run jsp pages.
However I need to re-compile after making changes in log4j.xml file. Without re-compilation changes are not getting reflected.
Why I need to re-compile application in order to see the changes I have made in log4j.xml?
Appreciate any help in this regard.
RegardsThis is the contents of my log4j.xml, its under WEB-INF/lib
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- A1 is set to be a ConsoleAppender -->
<appender name="sout" class="org.apache.log4j.ConsoleAppender">
<!-- A1 uses PatternLayout -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%c] %p - %m%n"/>
</layout>
</appender>
<root>
<!-- Set root logger level to DEBUG and its only appender to A1 -->
<priority value="off"/>
<appender-ref ref="sout"/>
</root>
</log4j:configuration> -
Changes in the xml file AFTER submitting to store
hi,
I recently added a Podcast for BMWGroup.com to the iTunes store, which hasn't been released yet.
What I want to know is, whether changes in the xml file, that i made AFTER submitting it will be taken over when the feeds are going to be released.
For example a different categorie or image..
and if not? how can i change categorie or image later? does it update from the xml?
does anyone know?
thx,
best regards,
oliver
thx,Oliver:
The simple answer is yes. Any changes you make to your RSS feed file (xml file) will eventually be updated by ITMS. Usually ITMS updates feed changes within 24 hours. However, the most recent changes I made in my feed files took almost 8 days before ITMS refreshed my listing.
One issue is clear. If you make changes to your image file, there is a high probability that when ITMS updates your database record, your listing in ITMS will show the broken link image for awhile. I've changed my image file twice, and each time, my ITMS listing showed the broken link image. Eventually the new image shows up, but it does take a long time for this day and age.
Good luck! -
Making changes in web.xml dynamically
Hi all,
I have a requirement in which i need to redirect request to com site if it is from desktop browser and to WAP site if request for wap site or from a mobile device
Have servlet ready doing it but presently taking only to two harcoded URLS of .com and .mobile sites.in web.xml.
Now i want dynamic changes in web.xml through a servlet to changes those URLs to respective request.
Thanks in advance,
dcosta_haloThe web.xml file is only a data storage file. When a Java Web Server starts up, it read the web.xml file and creates the appropriate objects that live in the JVM and manage parts of the applications hosted by the server. Any changes to the web.xml data file while the server is running are lost once the server is turned off. You need to figure out another design, possibly having the servlet read a database table to get URL strings.
-
It appears that all xml docs go through the simple xml parser to look for xml commands. Why is the commands not namespace qualified?
I have no specific requirerment as of yet. I have jsut started working with iFS and like the xml commands. I think that a namespace here that qualifies specific elements and attributes would be beneficial. This way the simple parser would would key in on fully qualified names vs an element name. I think in the end it would give the developer much more extensibility.
Thanks
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mark_D_Drake():
Name space support is being considered for a future release of the product. Please identify what your requirements are.<HR></BLOCKQUOTE>
null
Maybe you are looking for
-
Delete credit card from account
Apple is betting me so made, because I not able fo delete my app store acount or my credit card informatikn?????!!! And why is that?
-
Can't edit song information in itunes
I suddenly have not been able to edit song information, using file, edit, get info. The areas to edit have been grayed out. Is there some setting i inadvertantly changed?
-
Running the same sql script in multiple databases
Hello, What is the method to run the same sql script in multiple databases? I want to write a unix script that would select from different databases and run a sql/plsql script in those different databases. What are the ways to write such a unix scrip
-
downloaded world explorer but does not appear on ipad nor found in search
-
When i type any letter on web search, earlier address appear. how to stop that?
when i open firefox there is an item on toolbar ie web search and before that there is some space in which one type any item to search on web. once that is finished and again when some other item is to be typed to search on web, we start with the fir