Unable to perform for-each on quer-database() result
Hi
I am using the quer-database function in my XSLT which is returning more than 1 value.
when i try assigning these values I am only able to assign the first row of elements. When I try dragging the for-each activity and try using it with the qurey-database node set I get an error saying "An expression must have only one link to the Target schema".
Is there some way that I can achieve this in my XSLT?
<xsl:template match="/">
<xsl:for-each select="">
<client:processResponse>
<client:Name>
<xsl:value-of select="oraext:query-database(concat("select entryid from XXLF_CHARACTERS where item_number=","'",/ns0:Customer/ns0:CustomerInfo,"'"),false(),true(),"jdbc/devag")"/>
</client:Name>
<client:Name2>
<xsl:value-of select="oraext:query-database(concat("select entryvalue from XXLF_CHARACTERS where item_number=","'",/ns0:Customer/ns0:CustomerInfo,"'"),false(),true(),"jdbc/devag")"/>
</client:Name2>
</client:processResponse>
</xsl:for-each>
</xsl:template>
This is what my XSLT looks like
Thanks.
You have to use ROW and ROWSET to be able to able to get multiple elements... See the sample bellow...
http://neeraj-soa-tips.blogspot.com.au/2011/04/getting-xml-output-from-oraextquery.html
Cheers,
Vlad
Similar Messages
-
Create Store Procedure to Count Number of records in Database for each table
Hello,
I have created the code which counts the number of records for each table in database. However, I want create store procedure for this code this code that when ever use execute the Store Procedure can provide the database name to execute it and as a result
table will display number of records in each table.
Below you will find the code its working:
CREATE
TABLE #TEMPCOUNT
(TABLENAME
NVARCHAR(128),
RECORD_COUNT BIGINT)
-- Creating a TEMP table
EXEC
sp_msforeachtable
'insert #tempcount select ''?'', count(*) from ? with (nolock)'
SELECT
* FROM
#TEMPCOUNT
ORDER
BY TABLENAME
DROP
TABLE #TEMPCOUNT
This code need to be convert in store procedure and user can give database name when execute the procedure in order to count the records.
Looking forward for your support.
Thanks.
SharePoint_Consultant_EMEASomething like:
set quoted_identifier off
go
create procedure usp_TableCounts
@DBName as varchar(1000)
as
set nocount on
declare @SQLToExecute varchar(1000)
CREATE TABLE #TEMPCOUNT (TABLENAME NVARCHAR(128), RECORD_COUNT BIGINT) -- Creating a TEMP table
set @SQLToExecute = @DBName + ".dbo.sp_msforeachtable 'insert into #tempcount select ''?'', count(*) from ? with (nolock)'"
print @SQLToExecute
exec (@SQLToExecute)
SELECT * FROM #TEMPCOUNT
ORDER BY TABLENAME
DROP TABLE #TEMPCOUNT
GO
Satish Kartan www.sqlfood.com -
Select last value for each day from table
Hi!
I have a table that stores several measures for each day. I need two queries against this table and I am not quite sure how to write them.
The table stores these lines (sample data)
*DateCol1 Value Database*
27.09.2009 12:00:00 100 DB1
27.09.2009 20:00:00 150 DB1
27.09.2009 12:00:00 1000 DB2
27.09.2009 20:00:00 1100 DB2
28.09.2009 12:00:00 200 DB1
28.09.2009 20:00:00 220 DB1
28.09.2009 12:00:00 1500 DB2
28.09.2009 20:00:00 2000 DB2Explanation of data in the sample table:
We measure the size of the data files belonging to each database one or more times each day. The value column shows the size of the database files for each database at a given time (European format for date in DateCol1).
What I need:
Query 1:
The query should return the latest measurement for each day and database. Like this:
*DateCol1 Value Database*
27.09.2009 150 DB1
27.09.2009 1100 DB2
28.09.2009 220 DB1
28.09.2009 2000 DB2Query 2:
The query should return the average measurement for each day and database. Like this:
*DateCol1 Value Database*
27.09.2009 125 DB1
27.09.2009 1050 DB2
28.09.2009 210 DB1
28.09.2009 1750 DB2Could someone please help me to write these two queries?
Please let me know if you need further information.
Edited by: user7066552 on Sep 29, 2009 10:17 AM
Edited by: user7066552 on Sep 29, 2009 10:17 AMFor first query you can use analytic function and solve it.
with t
as
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss') dt, 100 val, 'DB1' db from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 150, 'DB1' from dual union all
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1000, 'DB2' from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1100, 'DB2' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 200, 'DB1' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 220, 'DB1' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1500, 'DB2' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 2000, 'DB2' from dual
select dt, val, db
from (
select row_number() over(partition by trunc(dt), db order by dt) rno,
count(*) over(partition by trunc(dt), db) cnt,
t.*
from t)
where rno = cntFor second you can just group by
with t
as
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss') dt, 100 val, 'DB1' db from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 150, 'DB1' from dual union all
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1000, 'DB2' from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1100, 'DB2' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 200, 'DB1' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 220, 'DB1' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1500, 'DB2' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 2000, 'DB2' from dual
select trunc(dt) dt, avg(val) val, db
from t
group by trunc(dt), db
order by trunc(dt) -
Using Aggregates for OraBI Server Queries
Hello!
How to refine data in aggregates tables (created by "create aggregates ..." script) after the data in corresponding database tables was updated?
ThanksHi
Aggregates will give a better performance for the BW queries.So you can use aggregates to increase the performance of the inout enabled queries also.
http://help.sap.com/saphelp_nw2004s/helpdata/en/44/70f4bb1ffb591ae10000000a1553f7/content.htm
Please refer note: 1083175.May be it could be helpful.
Regards, Hyma -
XSLT construct "for each" not working in transformation
Hi everyone I am using for each inside a transformation it was working fine until added parameters.After included parameters "for each" is not happening the db is invoked only once even if there are muliple nodes.
can anyone help me on this issue. How to perform for each if paramaters are includedThis is the transform I am using the element used for for each is of unbounded type (typens:getRoutingAndFrameJumpersResponse/typens:oServFrmJmprInfo/typens:oFrmJmpr/typens:item)
<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
<!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
<mapSources>
<source type="WSDL">
<schema location="x.wsdl"/>
<rootElement name="getRoutingAndFrameJumpersResponse" namespace="x.NetworkInstallations"/>
</source>
</mapSources>
<mapTargets>
<target type="XSD">
<schema location="IROBO_PR_UPDATE_INSERT_JUMPER_INFO.xsd"/>
<rootElement name="InputParameters" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/IROBO/PR_UPDATE_INSERT_JUMPER_INFO/"/>
</target>
</mapTargets>
<!-- GENERATED BY ORACLE XSL MAPPER 10.1.3.3.0(build 070615.0525) AT [TUE MAY 19 09:16:31 GMT+05:30 2009]. -->
?>
<xsl:stylesheet version="1.0"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
xmlns:typens="x.NetworkInstallations"
xmlns:ns0="http://www.w3.org/2001/XMLSchema"
xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/IROBO/PR_UPDATE_INSERT_JUMPER_INFO/"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:wsdlns="http://y.com/WSAI/STAA/"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
exclude-result-prefixes="xsl wsdl typens ns0 soap wsdlns db bpws ehdr hwf xp20 xref ora ids orcl">
<xsl:param name="MigrationId"/>
<xsl:param name="LineNumber"/>
<xsl:param name="DN"/>
<xsl:template match="/">
<xsl:for-each select=*"/typens:getRoutingAndFrameJumpersResponse/typens:oServFrmJmprInfo/typens:oFrmJmpr/typens:item"*>
<db:InputParameters>
<db:P_MIGRATION_ID>
<xsl:value-of select="$MigrationId"/>
</db:P_MIGRATION_ID>
<db:CCT_ID>
<xsl:value-of select="$DN"/>
</db:CCT_ID>
<db:FROM__FRAME_TERM_ID>
<xsl:value-of select="typens:frameTermID1"/>
</db:FROM__FRAME_TERM_ID>
<db:FROM_EXTRA>
<xsl:value-of select="typens:reformattedTermID1"/>
</db:FROM_EXTRA>
<db:FROM_MAP>
<xsl:value-of select="typens:locationIn"/>
</db:FROM_MAP>
<db:TO_FRAME_TERM_ID>
<xsl:value-of select="typens:frameTermID2"/>
</db:TO_FRAME_TERM_ID>
<db:TO_EXTRA>
<xsl:value-of select="typens:reformattedTermID2"/>
</db:TO_EXTRA>
<db:TO_MAP>
<xsl:value-of select="typens:locationOut"/>
</db:TO_MAP>
<db:TRANSACTION_ID>
<xsl:value-of select='substring-after(../../../typens:e2EData,"q=")'/>
</db:TRANSACTION_ID>
<db:SEQ_NO>
<xsl:value-of select="position()"/>
</db:SEQ_NO>
<db:LINE_NO>
<xsl:value-of select="$LineNumber"/>
</db:LINE_NO>
</db:InputParameters>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet> -
Roles for each Product in Oracle Apps 11i
Hi,
I have one requirement to create role for each product...
For example:
Inventory (INV)... I need to create a role, which will have select privileges on all tables of Inventory...like that for each production, I need to create...
I have one procedure:
(a) create role inv_read_role;
(b) spool the following statement
sql> spool inv_read.lst
sql> select 'grant select on INV.'||object_name||' '||'to INV_READ_ROLE;' from dba_objects where owner='INV' and object_type='TABLE';
sql> spool off
(c) Run the above spool file
Here we are done...
But, If I want to do this for all products in oracle apps 11.5.10.2..
is there any smarter way to do this????? any stored procedure???I want to give readonly access to AP Tables to one database user or more no of database users.....how can we give...for that , we are going to create seperate role for each module in database..assign that role to database user...then he will be able to select only on that module tables......
-
Sql query - Selecting last recorded values for each date in specified period
Hello,
Can someone please help me with my problem.
I'm trying to get last recorded balance for each day for specific box (1 or 2) in specified period of days from ms access database using ADOTool.
I'm trying to get that information with SQL query but so far unsuccessfully...
My table looks like this:
Table name: TestTable
Date Time Location Box Balance
20.10.2014. 06:00:00 1 1 345
20.10.2014. 12:00:00 1 1 7356
20.10.2014. 18:45:00 1 1 5678
20.10.2014. 23:54:00 1 1 9845
20.10.2014. 06:00:02 1 2 35
20.10.2014. 12:00:04 1 2 756
20.10.2014. 18:45:06 1 2 578
20.10.2014. 23:54:10 1 2 845
21.10.2014. 06:00:00 1 1 34
21.10.2014. 12:05:03 1 1 5789
21.10.2014. 15:00:34 1 1 1237
21.10.2014. 06:00:00 1 2 374
21.10.2014. 12:05:03 1 2 54789
21.10.2014. 15:00:34 1 2 13237
22.10.2014. 06:00:00 1 1 8562
22.10.2014. 10:00:00 1 1 1234
22.10.2014. 17:03:45 1 1 3415
22.10.2014. 22:00:00 1 1 6742
22.10.2014. 06:00:05 1 2 562
22.10.2014. 10:00:16 1 2 123
22.10.2014. 17:03:50 1 2 415
22.10.2014. 22:00:10 1 2 642
23.10.2014. 06:00:00 1 1 9876
23.10.2014. 09:13:00 1 1 223
23.10.2014. 13:50:17 1 1 7768
23.10.2014. 19:47:40 1 1 3456
23.10.2014. 21:30:00 1 1 789
23.10.2014. 23:57:12 1 1 25
23.10.2014. 06:00:07 1 2 976
23.10.2014. 09:13:45 1 2 223
23.10.2014. 13:50:40 1 2 78
23.10.2014. 19:47:55 1 2 346
23.10.2014. 21:30:03 1 2 89
23.10.2014. 23:57:18 1 2 25
24.10.2014. 06:00:55 1 1 346
24.10.2014. 12:30:22 1 1 8329
24.10.2014. 23:50:19 1 1 2225
24.10.2014. 06:01:00 1 2 3546
24.10.2014. 12:30:26 1 2 89
24.10.2014. 23:51:10 1 2 25
Let's say the period is 21.10.2014. - 23.10.2014. and I want to get last recorded balance for box 1. for each day. The result should look like this:
Date Time Location Box Balance
21.10.2014. 15:00:34 1 1 1237
22.10.2014. 22:00:00 1 1 6742
23.10.2014. 23:57:12 1 1 25
So far I've managed to write a query that gives me balance for ONLY ONE date (date with highest time in whole table), but I need balance for EVERY date in specific period.
My incorrect code (didn't manage to implement "BETWEEN" for dates...):
SELECT TestTable.[Date], TestTable.[Time], TestTable.[Location], TestTable.[Box], TestTable.[Balance]
FROM TestTable
WHERE Time=(SELECT MAX(Time)
FROM TestTable
WHERE Location=1 AND Box=1 );
Tnx!
Solved!
Go to Solution.For loop
following query keep day (here 24 in below query) Variable from ( 1 to 28-29/30/31 as per month)
SELECT TOP 1 TestTable.[Date], TestTable.[Time], TestTable.[Location], TestTable.[Box], TestTable.[Balance]
FROM Test Table.
WHERE Time=(SELECT MAX(Time) FROM TestTable WHERE Location=1 AND Box=1 )
AND DATE = "2014-10-24";
PBP (CLAD)
Labview 6.1 - 2014
KUDOS ARE WELCOMED.
If your problem get solved then mark as solution. -
i have 2 iphones and 1 ipod touch. i want to use the same itunes music database for each device. we did this before with our older ipods, by just sycing what was checked. does this work the same way with the new devices?
Have a read here...
https://discussions.apple.com/message/18409815?ac_cid=ha
And See Here...
http://support.apple.com/kb/HT1495 -
How to configure different listener for each database in 11gR2 RAC
Hi Friends,
Current Prod Setup :
11gR2 (11.2..0.2) RAC on RHEL 5.5 with 3 SCAN Listeners on default 1521 port.
Having 4 databases which are using SCAN-IP and listening on default port only.
As per policy, we have to create separate listeners (on different port) for each database.
like,
DB1 - 1522
DB2 - 1523
DB3 - 1524
DB4 - 1525
Even If I configure 4 listeners using NETCA, how my failover & load balancing will happen using SCAN & Newly Created Listeners ???
Thanks in advance..
Regards,
ManishHi,
I tried on 11gR2 TEST RAC Server to have different listener with different port (1529) for SCAN & Node Listener & tested failover, load-balancing which was successful.
[oracle@ravish5 admin]$ cat listener.ora
LISTENER_A=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_A)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_A=ON # line added by Agent
[oracle@ravish5 admin]$ ps -ef | grep lsnr
oracle 1985 1 0 00:46 ? 00:00:00 /11g_crs/11.2.0.2/product/home/bin/tnslsnr LISTENER -inherit
oracle 1988 1 0 00:46 ? 00:00:00 /11g_database/11.2.0.2/product/home_1/bin/tnslsnr LISTENER_A -inherit
oracle 2928 1 0 01:00 ? 00:00:00 /11g_crs/11.2.0.2/product/home/bin/tnslsnr LISTENER_SCAN1 -inherit
[oracle@ravish5 admin]$ lsnrctl status LISTENER_A
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 02-MAY-2012 03:19:35
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_A)))
STATUS of the LISTENER
Alias LISTENER_A
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 02-MAY-2012 00:46:42
Uptime 0 days 2 hr. 32 min. 54 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /11g_database/11.2.0.2/product/home_1/network/admin/listener.ora
Listener Log File /11g_database/11.2.0.2/diag/tnslsnr/ravish5/listener_a/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_A)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.5)(PORT=1529)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.16)(PORT=1529)))
Services Summary...
Service "TEST" has 1 instance(s).
Instance "TEST2", status READY, has 1 handler(s) for this service...
Service "TESTXDB" has 1 instance(s).
Instance "TEST2", status READY, has 1 handler(s) for this service...
Service "srvc_test.clover.com" has 1 instance(s).
Instance "TEST2", status READY, has 1 handler(s) for this service...
The command completed successfully
SQL> show parameter listen
NAME TYPE VALUE
listener_networks string
local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=192.
168.3.16)(PORT=1529))))
remote_listener string ravish-scan:1529
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@ravish5 admin]$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521,1529
[oracle@ravish5 admin]$ srvctl config scan
SCAN name: ravish-scan, Network: 1/192.168.3.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /ravish-scan.clover.com/192.168.3.22
[oracle@ravish5 admin]$ srvctl config listener
Name: LISTENER
Network: 1, Owner: oracle
Home: <CRS home>
End points: TCP:1521
Name: LISTENER_A
Network: 1, Owner: oracle
Home: /11g_database/11.2.0.2/product/home_1
End points: TCP:1529
[oracle@ravish5 admin]$ srvctl config service -d TEST -s srvc_test.clover.com
Service name: srvc_test.clover.com
Service is enabled
Server pool: TEST_srvc_test.clover.com
Cardinality: 2
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: true
Failover type: SELECT
Failover method: BASIC
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: TEST1,TEST2
Available instances:
TEST_NEW =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ravish-scan.clover.com)(PORT = 1529))
(LOAD_BALANCE = yes)
(FAILOVER = ON)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = srvc_test.clover.com)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
Actually different ports for different databases are required to have separation of duties. Once Firewall enabled betwen Client & DB Server only privileged users would have access to particular database.
Regards,
Manish -
HI, I have Forefront 2010 for Exchange installed for an Exchange 2007 SP2 running on Windows 2003 x64 SP2. Exchange has all roles installed on the same server.
When I try to save any change on Forefront I got the following message:
Microsoft Forefront 2010 for Exchange is unable to perform the requested function. This may be because Forefront services are unavailable. Ensure that all Microsoft Forefront services are running and that WindowsPower Shell is functional
Well, our FF services are running and PowerShell is functional. I checked some forums and found some problems when there is entries in the IP Allow / Block lists in Exchange UI. I removed those entries but problem remains.
Any ideas would be appreciated.
Xavier VillafuerteIn my case, I was able to work around this issue by using PowerShell directly. For example, to run an on-demand scan for all mailboxes, this worked:
#open EMS
$aliases = (get-mailbox -result unlimited).alias
Add-PsSnapin FSSPSSnapin
set-FseOnDemandScan -MailboxList $aliases
Start-FseOnDemandScan -EnableVirusScan $true
Windows 2008 R2 SP1
Exchange 2010 SP3, RU9
PowerShell 4.0 present on the machine (though EMS runs PS 2.0)
Forefront PowerShell cmdlets:
https://technet.microsoft.com/en-us/library/cc482986.aspx
Mike Crowley | MVP
My Blog --
Baseline Technologies -
Microsoft forefront protection 2010 for exchange server is unable to perform the requested function
I get the following error any time I try and change any setting:
Microsoft Forefront Protection 2010 for Exchange Server is unable to perform the requested function. This may be becuase Microsoft ForeFront services are unavailable. Ensure that all Microsoft ForeFront services are running and that Windows Powershell is
functional.
I have installed the latest rollup for SEP. Rollup 5 I think. I have rebooted the server. I have checked the permissions and they are correct.
Any thoughts?I posted a PowerShell-based workaround in the other thread:
https://social.technet.microsoft.com/Forums/forefront/en-US/1ccb9a5e-4b08-4f6b-a4bd-32cf5f2cd2b0/cannot-save-any-changes-microsoft-forefront-2010-for-exchange-is-unable-to-perform-the-requested?forum=FSENext
Mike Crowley | MVP
My Blog --
Baseline Technologies -
Using for-each for input into a database adapter
As input to a Web service I have an XSD that has parent elements and two unbounded child elements. I want to use XSLT to loop through the child elements to include them as comma separated strings for use in an IN clause in the query of the database adapter. I have the following XSLT in the input to database adapter XSL:
<db:child_elements>
<xsl:attribute name="xsi:nil">
<xsl:value-of select="/inp1:path/inp1:to/inp1:child_elements/@xsi:nil"/>
</xsl:attribute>
<xsl:for-each select="/inp1:path/inp1:to/inp1:child_elements/inpl:child_elements">
<xsl:value-of select="."/>
<xsl:if test="position() != last()">
<xsl:text>,</xsl:text>
</xsl:if>
</xsl:for-each>
</db:child_elements>I am getting three error:
1) Error: Invalid Usage of <for-each> Element
2) Error: Invalid Usage of <if> Element
3) Error: This node is already mapped, repeating nodes not supported : "/db:databaseAdapterInput/db:child_elements"
Any idea of what the problem is here? Are for-each loops and if statements simply not allowed in Oracle SOA Suite? Thanks in advance!For SQL Server 2005+ you can use the OUTPUT clause. E.g.
DECLARE @Source TABLE ( ID INT, Payload INT );
DECLARE @Destination TABLE
ID INT IDENTITY ,
Payload INT
DECLARE @IdentityValues TABLE ( ID INT );
INSERT INTO @Source
VALUES ( 1, 1 ),
( 2, 2 ),
( 3, 3 );
INSERT INTO @Destination
( Payload )
VALUES ( 0 );
INSERT INTO @Destination
( Payload )
OUTPUT INSERTED.ID
INTO @IdentityValues
SELECT S.Payload
FROM @Source S;
SELECT D.ID ,
D.Payload
FROM @Destination D;
SELECT IV.ID
FROM @IdentityValues IV; -
Unable to set GL Account for each ItemGroup in Inventory
Hi,
I am Using SAP b1 2005b Patch level 27.
I created one database with "Chart of Accounts INDIA." then I got Default Chart of Accounts.
I want to set GL Account for each ItemGroup in Inventory.
How to assign the Perticular GL Account for Particular Item Group? where can i find this provision in SAP b1?
I am trying from past 2 days, I did not get the way to assign the GL Account for each Item Group.
Plz help me asap.
Regards,
Nagababu.Hello,
you can set it in the module administration --> setup --> inventory --> item group --> tab accounting. But first you must define the name of item group. it is still in the same form.
let me know if problem still persists. G'luck.
Rgds, -
Why Do My Tiger iMac G4s Fail to perform as Target Disks For Each Other
When Needed, My two Flat Screen iMac G4s could perform as Target Disks for each other, but only before becoming Tiger iMacs.
When starting out (at 10.4.6) as Tiger iMacs, they each appeared to be Tiger Target Disks when so instructed, each producing a screen saver and opening the Option Key LOCK when given the proper password.
iMac G4 Flat Screen Mac OS X (10.4.9) Ethernet connection to 2nd iMac G4 Flat Screen Continues to Workgarbogie, welcome to Apple Discussions.
Can you explain what you want to do?
Are you depressing the "t" key to activate the Target Disk mode on startup? See How to Use Firewire Target Disk Mode
http://docs.info.apple.com/article.html?artnum=58583 Target Disk mode works in OS 9 & OS X.
The Target Disk mode is to transfer files from one Mac to another that is booted normally. You don't put both in the Target Disk mode.
Cheers, Tom -
Re-writing the same queries for each universe?
Hello
For our Xcelsius dashboards, we have 6 customers with the same universe stucture. Our dashboard uses 15 queries (QaaWs).
Now, for each customer, I have had to duplicate each query then change the universe. This is a pain and I feel there must be a better way. If I need to change a query for example, I have to change 6, one per customer, even though I am only changing the universe.
Is there any way around this?
Thanks
EddieEddie,
What I feel is that you need to link all these universes into one single universe and build those 15 queries.
Thanks,
Karthik
Maybe you are looking for
-
3/14/2013 - Flash Player 11.7 Beta
Flash Player Beta Channel Update The weekly Flash Player Beta update, 11.7.700.141, is now available for direct download and automatic installation via Background Update. To improve Flash Player security, we are making changes in Flash Player 11.7 th
-
Flash player problems with PDF that has multi-media content (voice recordings).
Hi - I created a presentation in Presenter 9 that contains audio recordings, published it as a pdf and sent it to my client's offices all over the U.S., as well as Japan, Belgium, Germany, South America and France. No one has had an issue viewing/he
-
My iphone 3G only gets wifi if its within 1 ft of the router. I have had the antenna replaced but its no better. I have restored to factory through iTunes but still not working. 3G signal is good
-
Importing P3 Files in to Primavera release 8.2 , is turned off , even if P3
Importing P3 Files in to Primavera release 8.2 ,botton is turned off , even if P3 Program is intalled. Please advise why i intalled p3 and after that i installed p 8.2 and still this botton dont want to turn on.
-
Urgent Help needed! ADSI can't add local user to local group when there are variables
Hi friends it about 8 hours i am working on following simple code but no result. i feel i am loosing my eyes i need to use a code within my PS script to add a Local user to the built-in "Users" Local Group in windows 7 , 8, 2012.... the following cod