How to instantiate OADataBoundValueFireActionURL with encrypted parameter
I have found in the Developer guide that to set a fire action on a webbean programmatically we need to use the below SPEL.
Could anyone suggest what would be the syntax to instantiate OADataBoundValueFireActionURL with an encrypted parameter ?
Declarative:
${oa<viewInstanceName>.<viewAttributeName>}
Programmatic:
new OADataBoundValueFireActionURL(webBean, "{$Sequence}"));
Declarative:
${oa.encrypt.<ViewInstanceName>.<ViewAttributeName>}
Programmatic:
Appreciate you help !!
Thanks
The custom requirement is to enable/disable update icon in Qualifications Summary page in Self service based on the qualification type. I have tried to include a switcher programmatically to show the enabled and disabled update icon. To add the fire action for the enabled update icon I am using the OADataBoundValueFireActionURL as below.
OAImageBean UpdEnabledIconBean = (OAImageBean)createWebBean(pageContext, OAWebBeanConstants.IMAGE_BEAN, null, "UpdEnabledIcon");
UpdEnabledIconBean.setSource(OAWebBeanConstants.APPS_MEDIA_DIRECTORY + "updateicon_enabled.gif");
Hashtable hashtableParams = new Hashtable(1);
hashtableParams.put ("_SSHRFORMEVENT","Edit");
Hashtable hashtableParamsWithBinds = new Hashtable(1);
hashtableParamsWithBinds.put ("HrQuaDummyTextSs",new OADataBoundValueFireActionURL(UpdEnabledIconBean, "{$QualificationId}"));
UpdEnabledIconBean.setFireActionForSubmit("update", hashtableParams, hashtableParamsWithBinds, false,false);
The seeded controller which is having the event handler code is using pageContext.getDecryptedParameter() to read the parameter and throwing an error.
So need to encrypt the parameter whiie instantiating OADataBoundValueFireActionURL.
For this, I am looking at the programmatic approach for ${oa.encrypt.<ViewInstanceName>.<ViewAttributeName>}
I have tried to use pageContext.encrypt as workaround but pageContext.getDecryptedParameter() is returing blank.
Appreciate any help !
Thanks
Similar Messages
-
How to instantiate MovieClips with sequence names
Hi all,
I'm rewriting a game that came from AS2, and passing it to
AS3.
The problem is that I have several different MovieClips in
the Library, with a sequence name ("s_0", "s_1,...).
The question is... how can I use the addChild to instantiate
these movieclips, using these names, sequencially, using a FOR
loop?
I'm trying to get a way, that I don't have the remake all
movieclips, or else I'll be stuck on the desk for a week :P
ThanksI found the answer on other blog.
You have to dinamically make new MovieClips, with a name that
can be a dynamic String.
So the result is the following code.
Make sure you import the wright class to to this
import flash.utils.getDefinitionByName; -
How to get value with two parameter fro sharepoint list in SSRS reporting
Hi
I am using Sharepoint list and fetching data in SSRS.
Using three parameter as Department,Section and subsection.
with filter everything working fine,but if i use category All and Sub category all for particular department,unable to get record.
please let me know how to implement.
Help will be appreciated.
Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
|
| TwitterHi Hasan,
Per my understanding you want to add mutilple value parameters to filter the data in the sharpoint list datasource report, right?
I have a test based on the step by step details information in below link and all works fine which will make the multiple value parameter works fine:
https://audministrator.wordpress.com/2014/02/17/sharepoint-list-add-distinct-parameter-value/
Add the custom code from above link
Parem1 is the parameter which get values from a query and with all the values(duplicate value),please setting as below:
Param2 is the parameter which will display in the report have done the deduplication, check the "Allow Multiple values" and then Specify the available value and default value using below expression:
=Split(Code.RemoveDups(JOIN(Parameters!Param1.Value, ",")), ",")
Add the filter and preview.
Similar thread below for your reference:
SSRS reporting with sharepoint list using Distinct and Multivalue
parameters
If i have some misunderstanding, please try yto provide more details information about your requirements.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
How to call rfc with byte[] parameter?
I am building a middleware using SAP.NET connector but Im having a problem with a particular rfc. I am using C# and my problem basically is abut PIDs( persistent instance id, call list id). PIDs are composed of 32 characters(hexstring), 16 bytes in hexadecimal format. (e.g. A42103E78DCAD54A9EB09D5921C76F06). The rfc crm_call_list_get_calls requires a PID input of byte[] datatype (byte[] Iv_Call_List_ID). I've tried converting the hexstring into an array of bytes (C# format) for the said rfc (A42103E78DCAD54A9EB09D5921C76F06----> byte[] PID={0xA4, 0x21, 0x03, 0xE7, 0x8D, 0xCA, 0xD5, 0x4A, 0x9E, 0xB0, 0x9D, 0x59, 0x21, 0xC7, 0x6F, 0x06} but ive been getting the following error:
System exception thrown while marshaling RFCTYPE_XMLDATAto .NET type.
Unhandled Exception: SAP.Connector.RfcMarshalException: System exception thrown while marshaling RFCTYPE_XMLDATAto .NET type. ---> System.Xml.Xsl.XsltException: 'Byte[]' is an invalid QName.
Also a part of the generated code for the same rfc returns an error for missing array initialization.
(public override object CreateNewRow()
return new byte[]();
Ive modified the code to: return new byte[]{}
and I dont know if it will work for all situations. Please advise.
Thanks in advance.
Message was edited by: Kenny MartinezSome Years later I have the same Problem.
As discripet in the post before - first I've got an error in the Method "CreateNewRow()" where the Method wants to return "return new byte[]()". Well I don't know why the .Net-Connector creates that code - but it looks strange to me.
The origin Code is:
/// <summary>
/// Creates an empty new row of type byte[].
/// </summary>
/// <returns>The newbyte[].</returns>
public override object CreateNewRow()
return new byte[]();;
With Changing that method I've got the same Error as in the post before:
System exception thrown while marshaling RFCTYPE_XMLDATAto .NET type.
Does someone has found a solution for that kind of Problem? -
How to recover partition (with encrypted sparse bundle disk image) that won't mount?
I have a Late 2013 27" iMac running OS X 10.9.4. I have an external drive that I use for Time Machine backups which also has an encrypted sparse bundle disk image. Yesterday, the drive stopped showing up in Finder, so I went to Disk Utility and tried to mount it. No go. So I tried repairing it, and it said it couldn't. I'm not worried about the Time Machine backup since my iMac is find so I can just make a backup to a new external drive. However, the encrypted sparse bundle disk image has some files in it that I don't have elsewhere. Is there a way to recover these files without sending it in to a drive recovery service (since those would cost a LOT of money)?
No such options. As I mentioned in the post title and in my first post, the partition won't mount.
-
How to make export with sensitive user data encrypted?
My organization need a backup dump of prod database sent to a customer, but want me to encrypt some user's password, and some data.
Which expdp parameter can do that?
Or any way I can do that ?
Thanks in advance.To show you how export and import be encrypted at very basic level here is an example of exporting schema rmanencrypt from database orcl (source) to devorcl (target database)
Encrypted export of schema "rmanencrypt"
Source Database
[oracle@localhost ~]$ expdp \'/as sysdba\' DIRECTORY=DATA_PUMP_DIR DUMPFILE=encrypted.dmp schemas=rmanencrypt LOGFILE=encrypted.log ENCRYPTION=ALL ENCRYPTION_PASSWORD=foobar
Export: Release 11.2.0.3.0 - Production on Wed Jan 11 11:21:47 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYS"."SYS_EXPORT_SCHEMA_01": "/******** AS SYSDBA" DIRECTORY=DATA_PUMP_DIR DUMPFILE=encrypted.dmp schemas=rmanencrypt LOGFILE=encrypted.log ENCRYPTION=ALL ENCRYPTION_PASSWORD=********
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 128 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
. . exported "RMANENCRYPT"."D" 5.945 KB 4 rows
. . exported "RMANENCRYPT"."E" 8.578 KB 14 rows
Master table "SYS"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
Dump file set for SYS.SYS_EXPORT_SCHEMA_01 is:
/home/oracle/app/oracle/admin/orcl/dpdump/encrypted.dmp
Job "SYS"."SYS_EXPORT_SCHEMA_01" successfully completed at 11:22:36At Target Database this schema doesn't exists.
SQL> r
1 select username from dba_users
2* where username='RMANENCRYPT'
no rows selectedNow importing the backup first by giving a wrong password.
[oracle@localhost dpdump]$ impdp \'/as sysdba\' DIRECTORY=DATA_PUMP_DIR DUMPFILE=encrypted.dmp ENCRYPTION_PASSWORD=fooba
Import: Release 11.2.0.3.0 - Production on Wed Jan 11 11:27:31 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39176: Encryption password is incorrect.Now with correct password
[oracle@localhost dpdump]$ impdp \'/as sysdba\' DIRECTORY=DATA_PUMP_DIR DUMPFILE=encrypted.dmp ENCRYPTION_PASSWORD=foobar
Import: Release 11.2.0.3.0 - Production on Wed Jan 11 11:27:47 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYS"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_FULL_01": "/******** AS SYSDBA" DIRECTORY=DATA_PUMP_DIR DUMPFILE=encrypted.dmp ENCRYPTION_PASSWORD=********
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "RMANENCRYPT"."D" 5.945 KB 4 rows
. . imported "RMANENCRYPT"."E" 8.578 KB 14 rows
Job "SYS"."SYS_IMPORT_FULL_01" successfully completed at 11:27:58
SQL> conn rmanencrypt/rmanencrypt
Connected.
SQL> select * from tab;
TNAME TABTYPE CLUSTERID
D TABLE
E TABLEHTH.
Regards,
NC -
How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?
How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader? Get error "There was an error opening this document. Access denied". Disabling Protected Mode in Reader doesn’t always work.
McAfee: https://kc.mcafee.com/corporate/index?page=content&id=KB74299&actp=search&viewlocale=en_US &searchid=1240943327683If Reader ISN'T in the list of prpgrams to open with, click "Browse"
In the "Browse window" go to C/Program files [or Program Files (x86)]/Adobe/Reader 11/Reader
Select "AcroRd32.exe" and click "Open"
Make sure "Always use the selected program to open this kind of file" is checked and click "OK". -
I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
parameter to report parameter i need to pass distinct values. How can i resolve thisHi nancharaiah,
If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
None
Specify values
Get values from a query
If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
sample is for your reference:
Select distinct field_name from table_name
If you have any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to use INVOKE function with INT parameter types
Can you tell me how to use invoke function with int parameter type ?
Pass the int as an Integer.
-
How to use mathscript node in server side with the parameter from the client side
I tried to develop a server/client system with some algorithms written in matlab. So I included a mathscript node on the server side. The client will send the parameter to the server. According to these parameters, the sever will call the matlab functions to do some computings and then send the results back to the client. The server has to wait for all parameters received before the computings. How do I know this since I only connect the parameter variables to the inputs of mathscript node on the server. The sever cannot know whethere these parameters are the new ones or old ones since the client may send parameters multiple times?
It seems to me you have two perfectly good options to start with. You could send all possible parameters in a single packet from the client to the server. This could be in the form of a cluster or an array of values. If by server/client you mean you are sending data over the network, then you could flatten this data to string before sending and unflatten it on the other side. Since all parameters come in one packet, you know all the data is valid every time you send data.
The other option is to send the parameters individually, but include some extra information such as a timestamp or iteration count. The server keeps reading and storing parameter values until a packet arrives with the next timestamp. Alternatively, you could include some information such as an end-of-parameter-list boolean that is sent with every parameter. It would be false until the last parameter packet.
Give it a thought. There are lots of solutions.
Jarrod S.
National Instruments -
How to call a Store Procedure with IN PARAMETER
Hi, im new using Oracle 10G with Oracle SQL Developer, my cuestion is how to call a Store Procedure with IN PARAMETER, I tried the following without results
SELECT * FROM procedure_name(parameter);
PROCEDURE procedure_name(parameter);
EXEC procedure_name(parameter);
CALL procedure_name(parameter);
Please help me....Hi,
As Beijing said,
EXEC procedure_name(parameter);
CALL procedure_name(parameter);work for me.
So does
BEGIN
procedure_name(parameter);
END;Can you be more specific about what you're doing? That is, are you testing it in SQL Developer? Where are you entering the commands? Where are you looking for output? Do you get error messages? Does anything else (like "SELECT SYSDATE FROM dual;") work? -
How to turn a stored procedure with a parameter into table function?
Could someone please let me know how to turn the SP below into table-value function? I want to be able to run this function by using SELECT statements with the parameter. Thanks
CREATE
PROCEDURE
[dbo].[Transformation](@year
varchar(4))
AS
BEGIN
Declare@Q1
Varchar(100)=
'['+@year+'Q1'+']'
Declare@Q2
Varchar(100)=
'['+@year+'Q2'+']'
Declare@Q3
Varchar(100)=
'['+@year+'Q3'+']'
Declare@Q4
Varchar(100)=
'['+@year+'Q4'+']'
Declare@StrQuery
Varchar(1000)
Set@StrQuery
= 'Select Date, Job, [Cost Elements],Units,
'+@Q1+'+'+'+'+@Q2+'+'+'+'+@Q3+'+'+'+'+@Q4+'
as [Amounts], ''Update'' as [Description] From Export with (nolock)'
--Print @StrQuery
Exec(@StrQuery)
ENDYou cannot use dynamic SQL in user-defined functions.
Work around (not an ideal solution, it has problems): OPENQUERY.
Blog: http://www.sqlusa.com/bestpractices2005/selectfromsproc/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Sum Encrypt does not recognize a copy of a file through linux to Mac 0S9. How decrypt this file with Sum Encrypt?
Hello, and welcome to Apple Support Communities!
I am not familiar with the program that you list, however files in OS 9 use things called Resource Forks (rather than file extensions) for filetype and creator.
If you sent a file through Linux these resource forks probably got stripped and now the file is nothing to your Macintosh.
It is best to BinHex your files (.hqx) before leaving the HFS file system so that their resource forks are preserved.
Regards,
Ryan -
.How to instantiate the innerclass from another class with coded eg.
How to instantiate the innerclass from another class(both for static & non static) please give me an eg with coding.
It's just a preference, but I like writing factory methods:
public class Outer {
public class Inner {}
public static class StaticInner {}
public Inner innerInstance() {
return new Inner();
public static StaticInner staticInnerInstance() {
return new StaticInner();
public static void main(String[] args) {
Outer.StaticInner si = Outer.staticInnerInstance();
Outer outer = new Outer();
Outer.Inner i = outer.innerInstance();
}Often, for me, the inner class implements an interface, and the factory method
lets you hide the implementation class:
public class Outer {
private class Inner implements Runnable {
public void run() {}
public Runnable runnerInstance() {
return new Inner();
public static void main(String[] args) {
Outer outer = new Outer();
Runnable r = outer.runnerInstance();
} -
How to write a shell script to execute a procedure with out parameter
Hi,
How to write a shell script to execute a procedure with out parameter.
here is my procedure
PROCEDURE sample(invar1 VARCHAR2,
invar2 VARCHAR2,
invar3 VARCHAR2,
invar4 VARCHAR2,
ecode out number);
Any example really helpfull
Thanks in advanceOr if we're passing values in, maybe something like:
Test procedure:
CREATE OR REPLACE PROCEDURE p (myin IN VARCHAR2, myout OUT VARCHAR2)
AS
BEGIN
myout :=
CASE myin
WHEN 'A' THEN 'APPLE'
WHEN 'B' THEN 'BANANA'
ELSE 'STARFRUIT'
END;
END;Shell script:
#!/bin/bash
my_shell_variable=$1
unset ORACLE_PATH
sqlplus -s un/pw@db <<-EOF
set feedback off pause off
set pagesize 0
set autoprint off
VAR out varchar2(30)
VAR myin varchar2(30)
exec :myin := '${my_shell_variable}'
BEGIN
p(:myin, :out);
END;
print out
exit
EOFTest:
/Users/williamr: xx A
APPLE
/Users/williamr: xx B
BANANA
/Users/williamr: xx
STARFRUITObviously in a real script you would not hardcode the password or let it show in a "ps" listing.
Message was edited by:
William Robertson
Maybe you are looking for
-
Can I use an iPad and a ipad2 with the same iTunes in my computer? I want to use both
Can I use an iPad and a ipad2 with the same iTunes in my computer? I want to use both. Want to give one to wife.do I need to open a new iTunes account for her?
-
Profit center substitution rule
hi ,i am wondering is it possible to assign profit center substitution rule by sales org,instead controlling area?
-
UOM replicated form 1st R/3 system overwritten by replication for 2nd R/3
Dear Experts, I face a problem regarding the replication of data from R/3 to SRM (7.0, Classic). We have two R/3 systems connected to SRM. Both of these R/3 systems have their own UOMs, that need to be replicated to SRM. Here, it is also important to
-
How do I get credit for wrong I-Tunes Store download?
In the I-Tunes Store, I clicked "BUY" for one song not realizing it will download whatever song you are previewing rather than the one you instruct to buy. How to get credit for the unwanted song? Thanks! Never mind. Found the answer
-
I can't see some of the pictures in iOS 7
The missing photos appear with the text JPG, but not all of them are gone. Does anybody know what's wrong??