Passing Parameter/Variable into Dashboard URL
Hi,
Instead of having someone type in or search for a variable I was trying to determine a way to pass a variable directly into the URL
I have tried:
VARIABLE_SCREEN=X&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=XXXXXX&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=XXXXXXXXX
added to the dashboard URL:
pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=DASHBOARD
But any time I try this method it just refreshes the variable screen...
Am I missing something? Maybe I think its easier then it really is.
Thanks,
Mike,
Variable_screen=x will always force the variable screen to display.
Try just variable_Screen=&BI_command etc etc
Similar Messages
-
How to pass bind variable into oracle reports 6i - Parameter form
Hello All,
I want to pass bind variable into Oracle Reports 6I - Parameters.
I have tried out that but got the below error :-
rep-0781 : Bind variables are not allowed in the select statement
Kindly help me is there any option which allow me to pass bind variables into Oracle reports 6I.
Thanks
HARSH SHAHHi,
may be its not possible to use :P_PARAM1 in user parameter of oracle 6i reports
but u can full fill user requirement using oracle forms
create a form as like as report parameter window
then create parameter list and run report
PROCEDURE Run_Emp_Report IS
pl_id ParamList;
BEGIN
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
END;
thanks
mostafiz mitul
Dhaka Bangladesh -
Error while passing ODI variable in JNDI Url for JMS Queue XML
Hi,
Facing a weird problem while passing ODI variable in JNDI Url for JMS Queue XML.
Below is the JNDI Url configured under ODI Topology:
JNDI Url: t3://<host_location>?d=#TEST.SCHEMA_FILE&s=<schema_name>&JMS_DESTINATION=jms/<queue_name>
where,
#TEST.SCHEMA_FILE --> ODI variable storing xsd name and location
Issue Description:
If we restart ODI server then for the first run of any ODI interface using JMS Queue XML, it is unable to get the value for ODI variable present in JNDI Url (d=#TEST.SCHEMA_FILE).
It throws error message saying: No XSD found
Temporary Resolution:
As a temporary fix if we hard-code and pass the value in that ODI variable as shown below, it will successfully go through.
eg: JNDI Url: t3://<host_location>?d=C:\XSD\test.xsd&s=<schema_name>&JMS_DESTINATION=jms/<queue_name>
Reverting it back to variable later will have no issues and subsequent run will succeed.
But again anytime later if server is restarted then first run will have this issue.
Want to have permanent fix for it.
Any one having idea on it please share. Appreciate your help!What ODI version are you using? It could be related to the bug in the older version as described in support note Doc ID 1290326.1
-
How to pass a variable into a cfc?
prior to calling the cfinvoke, I have coding that determins a
variable "X"
I need to pass X into a cfc so it can complete the query held
there.
So I tried
<cfinvoke component="A"
method="AList"
returnvariable="AResults">
<cfinvokeargument name="x" value="#X#"
/></cfinvoke>
correct so far?
Now over on the cfc page is where I'm getting stuck
Inside my cffunction I'm adding <cfargument name="X" />
But how do I get the value in?I don't quite understand your question. Can you rephrase?
But before all that, bear in mind that one doesn't pass a
variables into a
*CFC*, one passes it into a function within the CFC. And as
with all
functions, one passes values into the function by passing it
as an
argument. But - of course - the function has to be coded to
expect the
argument.
Your own sample code demonstrates this in action:
<cfinvokeargument name="abbrCode"
value="#companyAbbrCode#" />
(NB: lose the trailing slash: this is CFML, not XML).
So you know how to do that.
Hence me not quite understanding what you're actually asking.
Adam -
Error while Passing shell variable into exec UTL_MAIL.SEND
Hello,
I am new in shell scripting, please help me to rectify, whats wrong in my code.
login='system/manager'
code=`
sqlplus -s $login <<EOF
set heading off
SELECT tablespace_name,(SUM(bytes/1024/1024)) FROM dba_free_space WHERE tablespace_name IN ('PIN00','PINX00','SYSTEM','SYSAUX','UNDOTBS1','STATSPACK') GROUP BY tablespace_name;
EOF`
exec UTL_MAIL.SEND(sender=>'[email protected]', recipients=>'[email protected]', cc =>'[email protected]' , subject=>'$ORACLE_SID BACKUP', message =>'$code')
exit;
EOF
echo "sqlplus exited"
ERROR:
ORA-01756: quoted string not properly terminated
SP2-0734: unknown command beginning "SYSTEM ..." - rest of line ignored.
SP2-0734: unknown command beginning "PIN00 ..." - rest of line ignored.
SP2-0734: unknown command beginning "PINX00 ..." - rest of line ignored.
SP2-0734: unknown command beginning "SYSAUX ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
Edited by: 929236 on Apr 21, 2012 12:46 AM
Edited by: 929236 on Apr 21, 2012 12:48 AMHello,
Thanks for your review.
But please look into below output i am getting after running below code
ORACLE_BASE=/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0.4/db_1; export ORACLE_HOME
ORACLE_SID=pindb; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
login='system/manager'
code=`
sqlplus -s $login <<EOF
set heading off
set feedback off
SELECT tablespace_name,(SUM(bytes/1024/1024)) FROM dba_free_space WHERE tablespace_name IN ('PIN00','PINX00','SYSTEM','SYSAUX','UNDOTBS1','STATSPACK') GROUP BY tablespace_name;
exit`
output:
PIN00 28287.1172 PINX00 93813.1367 STATSPACK 54.1875 SYSAUX 215.125 SYSTEM .1015625 UNDOTBS1 745.8125 6 rows selected.
Here its working very fine but when i am passing code variable to utl_mail.send procedure, its giving error same as i mentioned previous. I have put all the environment variable as well. But when i put utl_mail.send and pass CODE variable into it it gives error.
ORACLE_BASE=/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0.4/db_1; export ORACLE_HOME
ORACLE_SID=pindb; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
login='system/manager'
code=`
sqlplus -s $login <<EOF
set heading off
set feedback off
SELECT tablespace_name,(SUM(bytes/1024/1024)) FROM dba_free_space WHERE tablespace_name IN ('PIN00','PINX00','SYSTEM','SYSAUX','UNDOTBS1','STATSPACK') GROUP BY tablespace_name;
exit`
$ORACLE_HOME/bin/sqlplus -s /nolog << EOF
connect / as sysdba
exec UTL_MAIL.SEND(sender=>'[email protected]', recipients=>'[email protected]', cc =>'[email protected]' , subject=>'$ORACLE_SID BACKUP', message =>'$code')
exit;
EOF
echo "sqlplus exited"
ERROR:
ORA-01756: quoted string not properly terminated
SP2-0734: unknown command beginning "PIN00 ..." - rest of line ignored.
SP2-0734: unknown command beginning "PINX00 ..." - rest of line ignored.
SP2-0734: unknown command beginning "STATSPACK ..." - rest of line ignored.
SP2-0734: unknown command beginning "SYSAUX ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning "SYSTEM ..." - rest of line ignored.
SP2-0734: unknown command beginning "UNDOTBS1 ..." - rest of line ignored.
sqlplus exited
Thanks,
Ashish
Edited by: user13271251 on Apr 22, 2012 11:49 PM -
Passing a variable into workflow
I know u can pass variables from a form into a workflow using processInputs.....but let's say I have a update workflow and there's some attribute that has changed on the user that requires the update workflow to trigger the disable workflow.....let's say I use the disableUser workflow service does anyone know if it's possible for to pass a variable from the update workflow to the disable workflow??
you do it the same way you would in any other workflow. but if. In fact, I THINK that you dont even need to pass it. The external workflow should be available to all internal workflows.
otherwise define it in the disable and pass it in. We do this all the time. should work fine.
Dana Reed
AegisUSA
Denver, Co
773.412.3728 -
Passing parameter to a Dashboard prompt
Hi,
In this case i cant pass the number value to the target report.
P4=eq&P5="IsyeriTanimlari"."DWH_ISYERI_KOD"&P6="Isyeri"."IsyeriKodu"
Also when i use
P9='||CAST("Time"."GUN" AS char)||' when i right some more parameter after this cast it cant take the parameters that ones put this cast one:?
''||'Kampanya'||'<a>'Hi Tani,
Just to make sure, you're passing a parameter to a Dashboard and not Answers right?
Here's the syntax I've had success with:
http://localhost:9704/analytics/saw.dll?Dashboard&Action=Navigate&PORTALPAGE=<path of dashboard>&Page=<page path, this is optional>&col1=<full column name>&val1=<value>
In your case the following should work:
http://localhost:9704/analytics/saw.dll?Dashboard&Action=Navigate&PORTALPAGE=<path of dashboard>&col1="IsyeriTanimlari"."DWH_ISYERI_KOD"&val1=<value>&col2="Isyeri"."IsyeriKodu"&val2=<value>
Hope that helps!
-Joe -
BODI: Is it possible to pass parameter/variable value out of a data flow?
Hi All,
Is it possible to pass parameter value out of a data flow?
I've created a custom function in my query transform to get row count, this value would be used outside the data flow to perform another logic. It looks like I'm unable to modify the output schema at the function in the query transform to explicitly map it to a particular global/local variable.
Any ideas?
Thanks.Any ideas?
-
Passing Unix variable into sql
Hi,
I have a shell script with embedded SQL.
In the script I have a Unix variable that has a char value
id="P_test".
I need to pass this variable to a select in a where condition like
select * from table where camp1=$id.
The problem is $id returns P_test rather than 'P_test' so that the select can work.
Any ideea how to change the clause where to make the select work?
I could also change the variable id as to have id=" 'P_test' " , but this variable comes from a file parsed and I don't know how to get 'P_test' instead of P_test.
Thanksanother option may be like this example -
$OH10/bin/sqlplus -s > $CIGDEM_LOG_DIR/step1_$CIGDEM_DATE.log 2> $CIGDEM_LOG_DIR/step1_$CIGDEM_DATE.err <<EOF
$CIGDEM_USERNAME1/$CIGDEM_PASSWORD1@$OTNS10
@$CIGDEM_DIR/step1.sql $CIGDEM_EXP_DIR $CIGDEM_USERNAME3 $CIGDEM_PASSWORD3 $PERMANANT_TABLESPACE $TEMPORARY_TABLESPACE
exit ;
EOF
"@$CIGDEM_DIR/step1.sql $CIGDEM_EXP_DIR $CIGDEM_USERNAME3 $CIGDEM_PASSWORD3 $PERMANANT_TABLESPACE $TEMPORARY_TABLESPACE" here we call step1.sql with arguments, they will be used with &n symbol inside sql statement -
.. CREATE USER &2 IDENTIFIED by &3 TEMPORARY TABLESPACE &5 DEFAULT TABLESPACE &4 ; ..http://tonguc.wordpress.com/2007/11/29/linux-and-shell-scripting-part-2/ -
Pass a variable into a procedure as IN parameter
Need some help from an experienced Oracle Guru. I have a stored procedure, which accept a VARCHAR called fiber_ids as parameter, it will use that variable in a simple query like this:
select * FROM GEOTEL_SOURCE where ID IN (fiber_ids)
the value of fiber_ids could something like 'AMFR00102005','AMFR00102006','AMFR00102007','AMFR00102008','AMFR00102009','AMFR00102010','AMFR00102015','AMFR00102016','AMFR00102017','AMFR00102049'
The thing is that looks like the value of fiber_ids is not resolved into query. if I hardcode its real value there, it works, but it does not use its real value when running the procedure. I'm not an experience Oracle user, Please help. what's wrong with procedure? Thanks a lot!
TimProbably the variable value needs single quotes ('): if hard coding works then this must be the problem. Use a inner PL/SQL block instead of regular SQL statement to overcome the issue for selecting data based on varibale value.
-
Passing jsp variable into javascript.....
Hai friends,
Look this code.....
var mywindow= window.open( ......)
mywindow.<%= loc%>.style.visibility = "hidden";
loc is my jsp variable passing dyanamically to the script....
But it is not taking....
when i assign jsp var into javascript like
mywindow.somehardcodedvalue.style.visibility = <%= loc%>;
it is working fine ....
pl reply me.......Hi,
It is not working.My code is like....
String loc=(String)arrStr;
%>
<script language="JavaScript" type="text/JavaScript">
mywindow.<%= loc%>.style.visibility = "hidden";
</script>
<% -
Passing parameter/variable values to containers
What options are available to pass a value assiged as a prompted variable/parameter in a plan to a container to resolve a value for a variable/parameter defined in a container which is called by the plan?
Supposed the plan is defined as:
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated by N1 SPS -->
<executionPlan xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' name='setdb' version='5.1' xsi:schemaLocation='http://www.sun.com/schema/SPS plan.xsd' xmlns='http://www.sun.com/schema/SPS' path='/utilities'>
<paramList>
<param name='dbName'></param>
<param displayMode='BOOLEAN' prompt='install container xyz?' default='TRUE' name='do_container_param'></param>
</paramList>
<simpleSteps>
<execNative userToRunAs='root'>
<inputText><![CDATA[
:[dbName];
]]></inputText>
<exec cmd='sh'></exec>
</execNative>
</simpleSteps>
<inlineSubplan planName='install_container_xyz'>
<simpleSteps>
<if>
<condition>
<istrue value=':[do_container_param]'></istrue>
</condition>
<then>
<install blockName='default'>
<component name='xyz.cont' path='/someN1FolderPath'></component>
</install>
</then>
</if>
</simpleSteps>
</inlineSubplan>
</executionPlan>
How can I pass the value assigned to dbName to the container xyz.cont to be used to resolve a value for a variable/parameter in the xyz.cont?The new, soon-to-be-released 6.0 version of SPS handles this problem with Component Variables. With this feature, you can specify in the plan what variables to pass to the component blocks.
However, that doesn't help you in the meantime. The sample XML you list isn't quite accurate, but I think I understand what you're after. I cleaned it up a little to make it valid and took out the execNative step (not sure what the intent of that was).
Anyway, here's what I get for the plan:
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated by N1 SPS -->
<executionPlan xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' name='setdb' version='5.1' xsi:schemaLocation='http://www.sun.com/schema/SPS plan.xsd' xmlns='http://www.sun.com/schema/SPS' path='/utilities'>
<paramList>
<param name='dbName' prompt="database name"></param>
<param displayMode='BOOLEAN' prompt='install container xyz?' default='TRUE' name='do_container_param'></param>
</paramList>
<simpleSteps>
<if>
<condition>
<istrue value=':[do_container_param]'></istrue>
</condition>
<then>
<install blockName='newBlock'>
<argList dbName=":[dbName]"/>
<component name='xyz.cont' path='/someN1FolderPath'/>
</install>
</then>
</if>
</simpleSteps>
</executionPlan>
The component would look something like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated by N1 SPS -->
<component xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' name='xyz.cont' version='5.1' xsi:schemaLocation='http://www.sun.com/schema/SPS component.xsd' xmlns='http://www.sun.com/schema/SPS'>
<extends>
<type name='system#container'></type>
</extends>
<installList>
<installSteps returns='false' name='newBlock' requireLocking='true'>
<paramList>
<param name='dbName'></param>
</paramList>
<!-- some steps here -->
</installSteps>
</installList>
</component>
Note that you have to rename the block. You can't change the signature of an inherited component block (container component defines block "default". Either create a new block or use an untyped component). I think this is what you're trying to do. Please let me know if I missed. -
Is it possible to pass Presentation Variable into SQL code?
Is it possible to create a Prompts that can pass data inputted in the Prompt to a SQL statement?
Example
User inputs
Dashboard Prompt: Date Between today date AND yesterday's date
Which pass information to a measure and labels the the information:
CASE WHEN "Date.Datetable" = {@}DATE1 THEN 'Today' Else 'Yesterday' END FROM "TABLE_Example"You can pass a selected value from prompt to filter a measure or display it as a dynamic label/column header.
To set the label like a dynamic column header:
http://total-bi.com/2011/03/obiee-dynamic-column-headings/
If that is for the measure value then use presentation variable and use them in the formula of the column.
If that is to pass value to the physical layer or bmm layer then use session variable, set it using request variable in prompt and use the session variable in bmm or physical layer view.
Let me know if this helped.
Regards,
Jay -
Error while passing collection variable into procedure.
Hi Experts,
I'm facing errors while trying to pass the collection variables as in parameter to the procedure.
PLS-00306: wrong number or types of arguments in call
Please suggest me?
Thanks in advance....I'm facing errors while trying to pass the collection variables as in parameter to the procedure.
PLS-00306: wrong number or types of arguments in call
If you want help with code you need to POST THE CODE.
Post the DDL for the procedure that shows how the parameters are defined.
And post the code you are using to CALL that procedure that shows what parameters you are passing and the datatypes for those parameters. -
Discoverer -- Pass parameter to viewer in URL
I would like to pass a parameter to viewer via the URL. In plus this is possible using ¶m_. Is anything like this possible in viewer?
to viewer parameters are passed with "&qp_" (instead "¶m_").
Maybe you are looking for
-
Unable to see T60 on my network
I see others have reported a similar problem but none of the remedies work for me. I have a T60 and a Z61t. Initially, neither one could be seen on my network but they could see the other PCs. On the Z61t, turning off the Network Security settings i
-
How to get SAPRFC working on XAMPP 1.6.2? Try this.
Hi I have just managed to get SAPRFC working with XAMPP 1.6.2 (released on 29/05/2007). I noticed there was not much information on XAMPP in the PHP Development forum, so thought this might be useful for anyone who may wish to use it. I originally s
-
My mac book air camera doesn't work
I know this has been answered probably thousands of times, ive been trying to get this thing to work for a while, ive tried everything, I followed steps from other sites, reinstalled adobe flash and tried messing around with the flash settings. My ca
-
on march 24th i believe or recently i purchased the new KIP MOORE CD. and it is amazing. and been listening to it non stop ever since. well just last night when i was listening to the cd on my ipod i realized the first song kept getting skipped. so w
-
Render clouds won't accept different colors
CS6 won't render clouds in anything other than black and white, no matter what color foreground/background I select. Rendering clouds works fine using Elements 12 on same computer (Mac OS X Yosemite v10.10)