Can PAuserid be used in PL/SQL service
Hi all,
I would like to make the 9iAS username available to a PL/SQL procedure called in a service. Any suggestions would be very welcome. Can it be passed as one of the arguements ?.
Many Thanks
Hi....I've found the following information on online mobile studio (section building- applications) (http://studio.oraclemobile.com/studio/sites/otn/help/index.html).
I don't if this works for all the ASWE releases.
Mobile Scripting
To further personalize and enhance the functionality of your mobile applications, you can embed Mobile Scripting elements in your XML pages. The script syntax is:
%value <variable>%
where <variable> is one of many predefined variables, for example:
user.name - the user ID of the current user
user.displayname - the first and last name of the current user
home.url - the user's home directory
service.home.url - the current service's home page
Refer to the Oracle 9iAS Wireless platform documentation for additional variables and their meaning.
To use mobile script elements, simply embed them in your XML pages. For example:
<?xml version="1.0" encoding="UTF-8"?>
<SimpleResult>
<SimpleContainer>
<SimpleText>
<SimpleTextItem>Hello, %value user.displayname%!</SimpleTextItem>
</SimpleText>
</SimpleContainer>
</SimpleResult>
Similar Messages
-
Function which returns multiple values that can then be used in an SQL Sele
I'd like to create a function which returns multiple values that can then be used in an SQL Select statement's IN( ) clause
Currently, the select statement is like (well, this is a very simplified version):
select application, clientid
from tbl_apps, tbl_status
where tbl_apps.statusid = tbl_status.statusid
and tbl_status.approved > 0;
I'd like to pull the checking of the tbl_status into a PL/SQL function so my select would look something like :
select application, clientid
from tbl_apps
where tbl_apps.statusid in (myfunction);
So my function would be running this sql:
select statusid from tbl_status where approved > 0;
... will return values 1, 5, 15, 32 (and more)
... but I haven't been able to figure out how to return the results so they can be used in SQL.
Thanks for any help you can give me!!
Trisha GorrPerhaps take a look at pipelined functions:
Single column example:
SQL> CREATE OR REPLACE TYPE split_tbl IS TABLE OF VARCHAR2(32767);
2 /
Type created.
SQL> CREATE OR REPLACE FUNCTION split (p_list VARCHAR2, p_delim VARCHAR2:=' ') RETURN SPLIT_TBL PIPELINED IS
2 l_idx PLS_INTEGER;
3 l_list VARCHAR2(32767) := p_list;
4 l_value VARCHAR2(32767);
5 BEGIN
6 LOOP
7 l_idx := INSTR(l_list, p_delim);
8 IF l_idx > 0 THEN
9 PIPE ROW(SUBSTR(l_list, 1, l_idx-1));
10 l_list := SUBSTR(l_list, l_idx+LENGTH(p_delim));
11 ELSE
12 PIPE ROW(l_list);
13 EXIT;
14 END IF;
15 END LOOP;
16 RETURN;
17 END SPLIT;
18 /
Function created.
SQL> SELECT column_value
2 FROM TABLE(split('FRED,JIM,BOB,TED,MARK',','));
COLUMN_VALUE
FRED
JIM
BOB
TED
MARK
SQL> create table mytable (val VARCHAR2(20));
Table created.
SQL> insert into mytable
2 select column_value
3 from TABLE(split('FRED,JIM,BOB,TED,MARK',','));
5 rows created.
SQL> select * from mytable;
VAL
FRED
JIM
BOB
TED
MARK
SQL>Multiple column example:
SQL> CREATE OR REPLACE TYPE myrec AS OBJECT
2 ( col1 VARCHAR2(10),
3 col2 VARCHAR2(10)
4 )
5 /
Type created.
SQL>
SQL> CREATE OR REPLACE TYPE myrectable AS TABLE OF myrec
2 /
Type created.
SQL>
SQL> CREATE OR REPLACE FUNCTION pipedata(p_str IN VARCHAR2) RETURN myrectable PIPELINED IS
2 v_str VARCHAR2(4000) := REPLACE(REPLACE(p_str, '('),')');
3 v_obj myrec := myrec(NULL,NULL);
4 BEGIN
5 LOOP
6 EXIT WHEN v_str IS NULL;
7 v_obj.col1 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
8 v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
9 IF INSTR(v_str,',')>0 THEN
10 v_obj.col2 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
11 v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
12 ELSE
13 v_obj.col2 := v_str;
14 v_str := NULL;
15 END IF;
16 PIPE ROW (v_obj);
17 END LOOP;
18 RETURN;
19 END;
20 /
Function created.
SQL>
SQL> create table mytab (col1 varchar2(10), col2 varchar2(10));
Table created.
SQL>
SQL> insert into mytab (col1, col2) select col1, col2 from table(pipedata('(1,2),(2,3),(4,5)'));
3 rows created.
SQL>
SQL> select * from mytab;
COL1 COL2
1 2
2 3
4 5 -
I have a new Ipad and was trying to sync from Itune what is on my Iphone. It keeps saying "Ipad can't be used Apple Moble device service isn't started". ???? help I then tried to connect my phone to Itunes and it is saying the same thing??? Help what is going on?
Right click 'computer' in your PC/laptop (whichever). Click 'Manage', then 'Services and Applications', then 'Services', you should see 'Apple Mobile Device' running or stopped. If you couldn't find 'Apple Mobile Device', it means you haven't download iTunes into your PC/laptop (whichever).
Cheers -
Hi.
Could you please help me to resolve this issue.
I have SCOM 2012 installed to monitor environment with Exchnage 2010 SP3. There are 2 sites with Exchnage servers within the organization. There are 2 mailboxes being created to test both sites.
I am getting following alert:
Alert: WebServices connectivity (Internal) transaction failure - The credentials can't be used to test Web Services.
description: The test mailbox was not initialized. Run new-TestCasConnectivityUser.ps1 to ensure that the test mailbox is created.
Detailed information:
[Microsoft.Exchange.Monitoring.CasHealthUserNotFoundException]: The user wasn't found in Active Directory. UserPrincipalName: extest*****@****.local. Additional error information: [System.Security.SecurityException]:
Logon failure: unknown user name or bad password.
Diagnostic command: "Test-WebServicesConnectivity -MonitoringContext:$true -TrustAnySSLCertificate:$true -LightMode:$true"
EventSourceName: MSExchange Monitoring WebServicesConnectivity Internal
I have tried the next steps:
1. Verified that mailbox is exist and it's not locked (same for the second mailbox)
2. Deleted those mailboxes and created a new using new-TestCasConnectivityUser.ps1 verified that this mailbox is visible on all DC's accross the forest (both mailboxes)
and that temporary password was accepted;
3. Cleared the cache on the SCOM 2012;
4. Still getting the same alert
I will really appriciate any help.
Thanks.Hi,
Hope these posts help you:
http://thoughtsonopsmgr.blogspot.ca/2013/11/exchange-server-2010-mp-no-synthetic.html
https://social.technet.microsoft.com/Forums/systemcenter/en-US/437f2bbb-cd96-40c3-8c56-6d4d176a9520/exchange-2010-mp-constantly-throws-webservices-connectivity-internal-transaction-failure?forum=operationsmanagermgmtpacks
Natalya
### If my post helped you, please take a moment to Vote as Helpful and\or Mark as an Answer -
If I purchase a new IPAD can I still use my AT&T service?
If I purchase a new Ipad can i still use my existing AT&T service or do I have to sign up for a new service?
Ask AT&T. We are users like you. We don't know anything about your current plan, whether or not it supports iPads, whether or not it is transferable, if it will work with an iPad, etc.
iPad plans are different than iPhone plans. -
XDK APIs (C/C++/Java) and tools can also be used with MS SQL Server
I want to know if XDK APIs (Java or C/C++ APIs especially) and tools can be used with MS SQL Server or not?
I want to write a simple application that updates XML ( acordXML used for insurance) document into SQL Server tables. Of course I am assuming to transform into appropriate XSU APIs format.No. Use SQLXML instead on a SQL Server.
-
Can CRM be used to replace SM service desk?
I have this question for a long time that is whether it is possible to use CRM functionallity monitoring CHARM related
change requests since they are CRM type tickets.
We use txn crm_dno_monitor to access change requests (CR) so far. Can we use CRM web client OR other CRM txn to do them same thing, even replace the SM service desk?
Thanks!Not sure what CHARM is but that t-code CRM_DNO_MONITOR looks very much like data an agent can track in the CIC agent inbox.
There are many flavors of CIC's that have been created including for service. There is a small video in this url
http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/f0067aae-77a6-2b10-a4a8-c0ead7826cbd -
Hi all,
I have set up the preview for the new Azure SQL tiers on both of the subscriptions we have for Azure. The one under my MSDN subscription to and a pay as you go subscription
The pay as you go subscription works fine but when I try to upgrade an existing Azure sql database or create a new one on my MSDN subscription it doesn't give me the option of the new tiers.
Using the new portal it says I need to sign up to the preview, but I already have and when I go to try to add a new subscription to the preview for Azure SQL it says all my active subscriptions are on the preview.
Any idea what the issue could be?
Cheers
AshHi,
Apologies for the inconvenience.
I suggest you open a Billing Support Ticket. They will be able to check this for you.
http://azure.microsoft.com/en-us/support/options/
Regards,
Mekh. -
Can an ESB used as Request - Response service system
We have a requirement where a ESB should reply back.
Eg: If a value of given field is
A: route message SvcA to and return it reply to invoker
B: route message SvcB to and return it reply to invoker
Both these can be achived but other requirement is
If the value is neither A nor B then
Transform request to response schema and return to the invoker.This is exactly where you should use the esb for
route and filter the data.
so if understood you correctly, you should just add the routing rules to the routingservice, and depending on the content (so use a filter in the routing rule) you could either route and transform to either one of the svcdA/B -
Can BC4J be used with Hypersonic SQL?
Has anyone been sucessful using BC4J applications with Hypersonic SQL? If so, which versions of each.
Thanks in anticition,
Paul BandlerNo. Use SQLXML instead on a SQL Server.
-
this has begun happening as soon as i installed the new OS... anything will help thanks!
http://support.apple.com/kb/ts1567
-
Message Mapping in HRAS - can it be used for ESS ?
We came across this functionality for EHP2 (after activating business function HCM_ASR_CI_1)
called "message mapping" while implementing HCM processes and forms framework. It is available under HR Administrative services -->Tools in the IMG provided the business function is activated.
As per IMG documentation for this Message Mapping node --> "The tool for mapping messages can also be used in Employee Self-Services and applications of the Enterprise Service-Oriented Architecture"
Just wanted to check if anyone tried exploring this by mapping messages for ESS services outside of HCM Processes and forms framework? or Is this tool limited only for HCM P&F.I've seen the same thing. I suspect it "will" be possible but not fully implemented just yet. You could probably do a search on the mapping table and see if it is actully used in the newer ESS code at all. It looks like they have this in place as ESS transitions over more fully to Webdynpro ABAP and making use of the decoupled infotype framework.
-
Number of instances that can be installed in a single SQL Server R2 enterprise edition license
How many instances can we install using a single SQL Server 2008 Enterprise R2 license?
Hello,
This is a community forum for technical questions & issues.
For question regarding pricing / licensing please contact a Microsoft sales partner or licensing expert.
Call (1-800-426-9400), Monday through Friday, 6:00 AM to 6:00 PM PST to speak directly to Microsoft licensing specialist.
http://www.microsoft.com/en-us/server-cloud/products/sql-server/buy.aspx
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Introduction
In SQL Server Analysis Services (SSAS), you can create a calculated measure in SQL Server Data Tool (SSDT)/Boniness Integrated Development Studio (BIDS). Sometimes you may need to create calculated measure by using AMO in a C# or VB project.
In this article, I will demonstrate so how to create calculated measure using AMO in SSAS?
Prerequisites
Before create calculated measure using AMO, you need to ensure that the following components were installed in your server.
The multidimensional database AdventureWorks Multidimensional Model 2012
A SQL Server with SSIS and SSAS installed
The AMO libraries installed:
X86 Package (SQL_AS_AMO.msi)
X64 Package (SQL_AS_AMO.msi)
Solution
Here is the detail steps to create calculated measure using AMO in SSAS.
Open SSDT and create a new SSIS project.
Drag Script Task to the design surface.
Click SSIS-> Variables to open the Variables window and add two variables that used to connect to the server and database.
Create a connection to connect to SSAS server.
Rename the connection name to ssas.
Double click the Script Task to open Script Task Editor.
Add Connection and Database variables to ReadWriteVariables textbox and then click Edit Script button.
Add AMO reference in the Solution Explore window.
Copy the script below and paste it into the script.
Dim objServer As Server
Dim objDatabase As Database
Dim strDataBaseID As String
Dim objCube As Cube
Dim objMdxScript As MdxScript
Dim objCommand As Command
Dim strCommand As String
objServer = New Server
objServer.Connect("localhost")
objDatabase = objServer.Databases("AdventureWorksDW2012Multidimensional-EE2")
strDataBaseID = objDatabase.ID
If objDatabase.Cubes.Count > 0 Then
objCube = objDatabase.Cubes("Adventure Works")
If objCube.MdxScripts.Count > 0 Then
objMdxScript = objCube.MdxScripts("MdxScript")
objMdxScript = objCube.MdxScripts(0)
Else
objCube.MdxScripts.Add("MdxScript", "MdxScript")
objMdxScript = objCube.MdxScripts("MdxScript")
End If
objCommand = New Command
strCommand = "CREATE MEMBER CURRENTCUBE.[Measures].[Multipy Measures By 3]"
strCommand = strCommand & " AS [Measures].[Internet Sales Amount] * 3, "
strCommand = strCommand & " VISIBLE = 1 ; "
objCommand.Text = strCommand
objMdxScript.Commands.Add(objCommand)
objMdxScript.Update()
objCube.Update()
End If
objServer.Disconnect()
Then you can run this SSIS package to create the calculated measure.
Applies to
Microsoft SQL Server 2005
Microsoft SQL Server 2008
Microsoft SQL Server 2008 R2
Microsoft SQL Server 2012
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.Thanks,
Is this a supported scenario, or does it use unsupported features?
For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
in a supported way?
Thanks! Josh -
Hello All,
I am getting below error can you please help me
Error:-
The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.Perhaps this thread will help you out
http://stackoverflow.com/questions/11453066/error-the-transaction-associated-with-the-current-connection-has-completed-but
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence
Maybe you are looking for
-
User Exit/Badi to change the billing plan date when create sale order
Experts, Please advise which user exit/badi can be used to change the billing plan date wen create sale order. My requriement is based on some rules to dynamically change the line item billing plan start date and end date when create sales order. I t
-
How to refresh OLAP Cubes in AWM?
How to refresh OLAP Cubes in AWM?
-
After two steps of updates (third is not available fore my country) ALL previously saved photos are not findable on phone and previously working photo saving from internet is not working at all How I can get back all photos? And how I can get back po
-
Partial problem with song authorisation
Six or seven album purchases in my Itunes library recently started to give the error message that computer was not authorised to play them. The rest of my itunes purchases (bought with the same account) play fine. I have tried everythink I know, even
-
How can I customize the EmailText, in order to print the eROOMName
Dear In a eRoom, I created subscitpion for documents changes How can I customize the EmailText, in order to print the eROOMName? Which 'param name' is the eROOMName? Which file I have to change SUBSCRIPTION_en.xml or SUBSCRIPTION_EMAIL.xsl? Thanks a