Using a variable as URL
I am trying to pass w path from an XML file to a URL path so that Flash will load in an image. I have it reading into Flash from the XML file but I dont know how to convert it to a URL.
This loads the XML into a varialbe.
var imageList:XMLList = organInput.organ.(@name==organName).imagePath;
var imagePath:String = imageList;
Then I want to use it as a relative url.
var request:URLRequest = new URLRequest(imagePath);
But it throws an errror. If i put the relative path in manual it works. Anyone know what I am doing wrong?
Thanks.
ok I am going to post the code I am using and hope it helps because I am still having trouble. Thank you for looking at this.
import flash.display.MovieClip;
//Button Listeners//
organtrak.esophagus_btn.addEventListener(MouseEvent.CLICK, esophagusButtonCLICK);
organtrak.esophagus_btn.addEventListener(MouseEvent.ROLL_OVER, esohpagusMouseOver);
organtrak.esophagus_btn.addEventListener(MouseEvent.ROLL_OUT, esohpagusMouseOut);
function closewindow(e:MouseEvent):void
trace("Close Activity Window");
questions.gotoAndStop("empty");
function esophagusButtonCLICK(e:MouseEvent):void
trace("esophagus_btn CLICKED!");
questions.gotoAndStop("esophagus");
questions.curtain.play();
organName = "esophagus";
ParseBooks(organList);
imageloader(organName);
questions.close_btn.addEventListener(MouseEvent.CLICK,closewindow);
function esohpagusMouseOver(e:MouseEvent):void
trace("MouseOver Esophagus");
organtrak.esophagus.scaleX = 2;
organtrak.esophagus.scaleY = 2;
organtrak.esophagus.alpha = 1.0; //100% Alpha
organtrak.setChildIndex(organtrak.esophagus, 3);
function esohpagusMouseOut(e:MouseEvent):void
trace("MouseOut Esophagus");
organtrak.esophagus.scaleX = 1;
organtrak.esophagus.scaleY = 1;
organtrak.esophagus.alpha = .5; //50% Alpha
//Image loader function
function imageloader(organName):void
questions.image_window.status_txt.visible = true;
var request:URLRequest = new URLRequest(imagePath);
questions.image_window.UILoader.scaleContent = true;
questions.image_window.UILoader.addEventListener(Event.COMPLETE, completeHandler);
questions.image_window.UILoader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
questions.image_window.UILoader.load(request);
function progressHandler(event:ProgressEvent):void
questions.image_window.status_txt.text = "Percentage Loaded: " + Math.round(event.target.percentLoaded);
//trace("Loading");
function completeHandler(event:Event):void
questions.image_window.status_txt.text = "Image is loaded";
//trace("Loading Done");
questions.image_window.status_txt.visible = false;
//XMLLoader Script//
import flash.net.URLVariables;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("XML/organtext.xml"));
//organName = "esophogas";
function LoadXML(e:Event):void
XML.ignoreWhitespace = true;
var organList:XML = new XML(e.target.data);
function ParseBooks(organInput:XML):void
trace("XML Output");
trace("------------------------");
var organList:XMLList = organInput.organ.(@name==organName).name;
var descriptionList:XMLList = organInput.organ.(@name==organName).descriptions;
var imageList:XMLList = organInput.organ.(@name==organName).imagePath;
var image2List:XMLList = organInput.organ.(@name==organName).imagePath2;
var videoList:XMLList = organInput.organ.(@name==organName).videoPath;
var imagePath:String = imageList;
trace(imagePath);
Similar Messages
-
I have a text file from which I load a variable XML_path
using:
loadVariablesNum ("get_xml_path.lasso", 0, "POST");
A dynamic text field on the stage with var set to XML_path
displays the variable: 90ZESJAN06
However, when I try:
var my_url = ("
http://myurl.com/flash/" +
XML_path + ".xml");
trace (my_url);
I get:
http://myurl.com/flash/.xml
What am I doing wrong?
Thanksif you've a dynamic text field called XML_Path, try
var my_url = ("
http://myurl.com/flash/" +
XML_path.text + ".xml"); -
Use SESSION variable in URL from HTML region
Hello,
I have what looks like a simple question but i've been struggling with it for three days now, and i need your help!
I have a page, with an HTML region. I want to display some links to other pages within the application, so i thought i'd use this:
a href="http://server.xxxx.com:7777/pls/htmldb/f?p=114:13:&SESSION"
But the session ID is not interpreted, and the link doesn;t work. Any idea what's wrong here? or how i should create links with the session id in it?
Thanks!!!! Matt
Message was edited by:
matt_amsterdamMatt,
You've missed off the period (.) off the end, use &SESSION. instead -
Using a variable as part of a url
Hi
Thanks for checking in!. I am trying to define one folder in
a url as a variable
//Here is what my code looks like before I try to use a
variable as part of the url. And this works just fine.
var nextImage:String = "events/1.jpg";
this.loaderTarget_mc.loadMovie("loader.swf")
//But when I try define the events folder as a variable I am
having no luck.
var gallery:String = "events";
var nextImage:String = "(gallery)/1.jpg";
this.loaderTarget_mc.loadMovie("loader.swf")
I am hoping what I am doing wrong here will be obvious to
someone who knows more than I do. Any ideas?
Thanks again
ScottUsing variable inside a String Delimeter will make it as
String. So put the variable out side the double code.
var nextImage:String = gallery + "/1.jpg"; -
I have created a php storing values in a mysql database. I animate I call this php using window.open:
window.open("http://localhost/send_and_update.php?Tid=26&dBA=78 ", "_self");
This works fine, the dataset 26 78 is saved in the database. But now I want to send values from variables in i animate. I try this:
Var time=22
window.open("http://localhost/send_and_update.php?Tid=time&dBA=78 ", "_self");
This won't work. Any suggestion?
Svein-ToreHi Darell!
Now I have tried it, unfortunately it won't work..... The browser gives me
the followoing error:
Unknown column 'time' in 'field list'
This is in fact an error from php, not from animate..... Maybe I have to
do this in a totally different way? Anyone who know how to write data from
animate to a mysql database?
Svein-Tore
2014-02-20 1:39 GMT+01:00 heathrowe <[email protected]>:
Re: Using variables in url created by heathrowe<http://forums.adobe.com/people/heathrowe>in *Edge
Animate CC* - View the full discussion<http://forums.adobe.com/message/6137980#6137980 -
Set "url" in HTTPService using String variable
Hi,
How can I set "url" in HTTPService using String variable (see below). I've tried different formats of string & variable concatenations.
privtate var myurl:String = "http://localhost/";
<mx:HTTPService id="post_submit_service"
url="{myurl+'test.php'}"
method="POST"
resultFormat="text"
result="result_handler(event)"
fault="fault_handler(event)">
<mx:request xmlns="">
</mx:request>
</mx:HTTPService>
Thanks,
ASMtry following:
url="{myurl}test.php" -
Using a variable as a value in jsp:param
I was wondering, I have a String variable, vid_1, and want to use a jsp:include and pass that in as one of the parameters. How can I do this? I have to do some testing to make sure vid_1 is valid and set a default if not. It contains a number referring to which video needs to be displayed.
Is there anyway I can get this value to be used in jsp:param value?
JohnRahulSharna wrote:
Well,First thing you haven't pharsed your question properly.
Anyways as per my understading.
The first thing is make use of in this case as your defined requirement states you need to make use of variables of both the JSP's which need compile time include not at the runtime.use of
<%@ include file="url" %>would be more appropriate as you want to use the variable of parent jsp to the child one.
Anyways if you are thinking to apply a solution using <jsp:include/>
<jsp:include page="url">
<jsp:param name="paramName" value="<%=stringVariable>"/>
</jsp:include>and extract the paramName's corresponding value as a request parameter in other JSP.
Hope that might answer your question :)
REGARDS,
RaHuLRaHul,
Thanks for the reply. The second example you gave is what I was trying to do. I thought I did exactly what you have there and it was not working. I will check it over again and post back on here when I have a chance.
For now I was trying to use c:set to save the variable in the request and then using the EL expression ${requestScope.variable} to put it in the <jsp:param> element. I had some things working and others not when I quit. Hopefully tomorrow I can give you a full report and we can get this worked out.
Maybe my problem is something else? Look at this post of mine:
http://forum.java.sun.com/thread.jspa?threadID=5236252&tstart=10
Thanks so much for the help.
John -
Using a variable in Struts config, to redirect
In the struts-config file,
to redirect to a different site, I can use
redirect="true"
and mention full path, in my <forward path=
variable.
1. Is there a better way to do it?
2. Since I have to do it in multiple places, is it possible to use a variable? I mean, something like this
<forward
name="success"
path="URL/abc.html" />
Where URL is a variable name that the site path? This way, I can reuse the variable to redirect to other pages too (xyz.html, for example)Hi there,
I don't know...is there only one URL you are using ore are there more than one? Because if it's the same path everytime you can try using this:
<forward
name="success"
path="./abc.html" />
./ // This is the shortcut for the directory you are currently using.
../ // This is the shortcut for the directory above the one you are currently using.This code should do it. If not, try to create a var named for example "vpath" and put it like this:
<forward
name="success"
path=vpath+"abc.html" />Try and tell if it worked ;)
X--spYro--X -
Hello,
Below I have posted code that I have on two different PHP files, tsearch12.php and votes12.php. The code works great. The file "tsearch12.php" uses AJAX to go to votes12.php to perform some functions. However, the first page has a variable called "find." These two pages only work together when the variable "find" equals "santafe." I would like them to work together regardless of what "find" equals. In other words, I would like to replace the table name "santafe" in votes12.php with the variable "find," but I want the variable "find" to equal the same value in both tsearch12.php and votes12.php. The variable "find" is going to tsearch12.php from another file, which has a simple HTML form with "<form action="tsearch12.php" method="post">" and "<input type="text" name="find" size="55"/>". Anyway, how do I use the variable "find" in votes12.php?
Thanks in advance,
John
On tsearch12.php, I have:
# <head>
# <script type='text/javascript' src='jquery.pack.js'></script>
# <script type='text/javascript'>
# $(function(){
# $("a.cell1").click(function(){
# //get the id
# the_id = $(this).attr('id');
# // show the spinner
# $(this).parent().html("<img src='images/spinner.gif'/>");
# //fadeout the vote-count
# $("span#votes_count"+the_id).fadeOut("fast");
# //the main ajax request
# $.ajax({
# type: "POST",
# data: "action=vote_up&id="+$(this).attr("id"),
# url: "votes12.php",
# success: function(msg)
# $("span#votes_count"+the_id).html(msg);
# //fadein the vote count
# $("span#votes_count"+the_id).fadeIn();
# //remove the spinner
# $("span#button"+the_id).remove();
# $("a.vote_down").click(function(){
# //get the id
# the_id = $(this).attr('id');
# // show the spinner
# $(this).parent().html("<img src='images/spinner.gif'/>");
# //the main ajax request
# $.ajax({
# type: "POST",
# data: "action=vote_down&id="+$(this).attr("id"),
# url: "votes12.php",
# success: function(msg)
# $("span#votes_count"+the_id).fadeOut();
# $("span#votes_count"+the_id).html(msg);
# $("span#votes_count"+the_id).fadeIn();
# $("span#button"+the_id).remove();
# </script>
# </head>
# <body>
# <?
# //This is only displayed if they have submitted the form
# if ($searching =="yes")
# //If they did not enter a search term we give them an error
# if ($find == "")
# echo "<p>You forgot to enter a search term";
# exit;
# // Otherwise we connect to our Database
# mysql_connect("mysqlv3", "username", "password") or die(mysql_error());
# mysql_select_db("sand2") or die(mysql_error());
# $find = strip_tags($find);
# $find = trim ($find);
# $result=mysql_query("SHOW TABLES FROM sand2 LIKE '%$find%'")
# or die(mysql_error());
# if(mysql_num_rows($result)>0){
# while($table=mysql_fetch_row($result)){
# print "<p class=\"topic\">$table[0]</p>\n";
# $r=mysql_query("SELECT * FROM `$table[0]`");
# print "<table class=\"navbar\">\n";
# while($row=mysql_fetch_array($r)){
# $effective_vote = $row['votes_up'] - $row['votes_down'];
# print "<tr>";
# print "<td>".'<a href="http://'.$row['site'].'" class="links2">'.$row['site'].'</a>'."</td>";
# print "<td class='votes'>".'<span class="votes_count" id="votes_count'.$row['id'].'">'.number_format($effective_vote).'</span>'."</td>";
# print "<td class='ballot'>".'<span class="button" id="button'.$row['id'].'">'.'<a href="javascript:;" class="cell1" id="'.$row['id'].'">'.Vote.'</a>'.'</span>'."</td>";
# print "</tr>\n";
# print "</table>\n";
# else{
# print "None found";
# $anymatches=mysql_num_rows($result);
# if ($anymatches == 0)
# echo "Sorry, but we can not find an entry to match your query<br><br>";
# ?> On votes12.php, I have:
# <?php
# mysql_connect("mysqlv3", "username", "password") or die(mysql_error());
# mysql_select_db("sand2") or die(mysql_error());
# function getAllVotes($id)
# Returns an array whose first element is votes_up and the second one is votes_down
# $votes = array();
# $q = "SELECT * FROM santafe WHERE id = $id";
# $r = mysql_query($q);
# if(mysql_num_rows($r)==1)//id found in the table
# $row = mysql_fetch_assoc($r);
# $votes[0] = $row['votes_up'];
# $votes[1] = $row['votes_down'];
# return $votes;
# function getEffectiveVotes($id)
# Returns an integer
# $votes = getAllVotes($id);
# $effectiveVote = $votes[0] - $votes[1];
# return $effectiveVote;
# $id = $_POST['id'];
# $action = $_POST['action'];
# //get the current votes
# $cur_votes = getAllVotes($id);
# //ok, now update the votes
# if($action=='vote_up') //voting up
# $votes_up = $cur_votes[0]+1;
# $q = "UPDATE santafe SET votes_up = $votes_up WHERE id = $id";
# elseif($action=='vote_down') //voting down
# $votes_down = $cur_votes[1]+1;
# $q = "UPDATE santafe SET votes_down = $votes_down WHERE id = $id";
# $r = mysql_query($q);
# if($r) //voting done
# $effectiveVote = getEffectiveVotes($id);
# echo $effectiveVote;
# elseif(!$r) //voting failed
# echo "Failed!";
# ?>These forums are for development with Java. Not JavaScript, which is an entirely different language. And AJAX is JavaScript. You need to use Google and find a JavaScript forum for your question (or a PHP forum if your question is really about PHP).
-
Using a variable from one class to another
Hi !
I've a class called ModFam (file ModFam.java) where I define a variable as
protected Connection dbconn;
Inside ModFam constructor I said:
try
String url = "jdbc:odbc:baselocal";
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
dbconn = DriverManager.getConnection(url);
System.err.println("Connection successful");
} ..... rest of code
This class define a TabbedPane as follows:
tabbedPane.addTab("Welcome",null,new Familias(),"Familias");
As you can see it call a new instance of the Familias class (file Familias.java).
This constructor will try to connect with the DB to populate a combo box with some data retireved from the DB.
If I do
Statement stmt;
stmt = dbconn.createStatement();
inside Familias constructor I receive the message
Familias.java:50: cannot resolve symbol
symbol : variable dbconn
location: class fam.Familias
stmt = dbconn.createStatement();
at compile time.
While I can�t use a variable defined as "protected" in one class of my package on another class of the same package ?
How could I do ?
Thanks in advance
<jl>Familias doesn't have a reference to ModFam or the Connection.
So change the constructor in Familias to be
public class Familias {
private ModFam modFam;
public Familias(ModFam m) {
modFam = m;
// ... somewhere else in the code
Statement stmt = modFam.dbconn.createStatement();
}or
public class Familias {
private Connection dbconn;
public Familias(Connection c) {
dbconn = c;
// ... somewhere else in the code
Statement stmt = dbconn.createStatement();
}And when you instantiate Familias it should then be
new Familias(this) // ModFam reference
or
new Familias(dbconn) -
Using a Variable on More than One Page
Hello,
I would like to use the same variable on three pages. Right now I can only get it to work on two. The first page has a simple HTML form where the variable is entered. The second page uses the variable just fine. I am using AJAX to refer to a third page, and I'm not sure how to use the same variable on the third page. The variable is called "find."
On the second page, I have this:
$find = strip_tags($find);
$find = trim ($find);
$result=mysql_query("SHOW TABLES FROM sand2 LIKE '%$find%'")
or die(mysql_error());
The second page then has AJAX which points to a third page/URL, and on this third page/URL, I have this:
function getAllVotes($id)
$votes = array();
$q = "SELECT * FROM santafe WHERE id = $id";
On the third page, I would like to replace the table "santafe" with the variable "find," the same variable that I use on the second page. How do I do this?
Thanks in advance,
JohnHi Mark,
The thing is, I am supplying a form for the user. Once a value for $find is entered, this value will not change if the browser is not closed, even if a new one is entered into the form.
Here is what I have:
On a page called index.php, I have the following form:
<form action="tsearch12.php" method="post">
<label>Enter Value:
<input type="text" name="find" size="55"/>
<input type="hidden" name="searching" value="yes" />
<input type="submit" name="search" value="Search" />
</label>
</form>
Then, on tsearch12.php, I have this code in the header:
<?php
session_start();
$find = strip_tags($find);
$find = trim ($find);
$_SESSION['find'] = $find;
?>
Then, later on in tsearch12.php, I have this code:
<?
if ($searching =="yes")
if ($find == "")
echo "<p>You forgot to enter a search term";
exit;
mysql_connect("mysqlv3", "username", "database") or die(mysql_error());
mysql_select_db("sand2") or die(mysql_error());
$find = strip_tags($find);
$find = trim ($find);
The page tsearch12.php later makes an AJAX request to a page called votes12.php, which has this in its header:
<?php
session_start();
?>
This code all works perfectly for the first value that the user enters in the form on index.php. However, when the user returns to index.php and enters a second value into the form, the variable $find does not change to the second value. How can I change the session to make it so that $find can change when a user returns to the original form and enters in a new value?
Thanks,
John -
Page Specific Persistence using Session Variables
Hi, I have read a lot about using session variables to persist the ReportDocument object across page loads. This works fine if you have just one page open with one report. The problem I am having is I have a web application that makes 30 or 40 different reports available to the user. To simplify the code and make it easier to add new reports I have developed a single template aspx page that can be used to view any of the reports.
My problem is that if the user opens 2 different reports in 2 separate tabs in the browser then the session variable persistence doesn't work because the session variable is available to both tabs.
Is there a way to persist the ReportDocument object which is 'page' specific.
ThanksYour best option is likely to have something that makes the session variable names unique. I've done such things as putting the current datetime in the url as a querystring parameter and appending that to the variable name. On each postback that querystring should persist.
You might be able to use the reportclientdocument object and serialize the report and persist through view state, haven't tried this with inproc ras though. A sample that uses the ras sdk can be found [here|http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples] -
Using Bind Variables in Parameter Form's Query
I want to use bind variables in the query of Parameter form. But
it does not allows. What is the other way out. The structure of
my Parameter form is as under:
State:
Customer:
Now I want that I want to list only those customer in the
Customer LOV which belongs to the selected state.
Thanks.
Muhammad NadeemCan we just link to an oracle form using a url still as we can with reports? I've built a report that requires the user to select from a dynamic list as well, and I know how to do this through forms, but can I simply call the form from a webpage?
-
Problem passing Session variable as URL parameter?
Hi,
I am trying to create a multiple page entry form using
coldfusion session. But I am having some problem when passing the
session variable to url parameter. For test purpose I have created
the following code:
<cfif Not IsDefined("SESSION.AE")>
<!--- If structure undefined, create/initialize it
--->
<cfset SESSION.AE = StructNew()>
<!--- Represent current form srep; start at one --->
<cfset SESSION.AE.StepNum = 1>
</cfif>
<cfif IsDefined("Form.GoBack")>
<cfset SESSION.AE.StepNum = #url.StepNum# - 1>
<cfelseif IsDefined("Form.Next")>
<cfset SESSION.AE.StepNum = #url.StepNum# + 1>
</cfif>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<form method="post"
action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
<input type="submit" name="GoBack" value="Back">
<input type="submit" name="Next" value="Next">
</form>
</body>
</html>
When run it I get the following error:
The value "" cannot be converted to a number
The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm: line
11
9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
10 : <cfelseif IsDefined("Form.Next")>
11 : <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
12 : <!---<cfset SESSION.AE.StepNum = #url.StepNum# +
1>--->
13 : </cfif>
I couldn't figure out where is the problem. Any help is
really appreciated.
Thanks in advance.You are mixing up your gets and posts aren't you?
You have your form method set to post which creates form
variables not
url variables. So when you try to use the url variable to set
your
session it does not exist.
Change your SESSION.AE.StepNum = #url.StepNum# to
Session.AE.StepNum =
form.StepNum, note there is no need for the #'s.
OR
change your form method="post" to form method="get"
Nagelia wrote:
> Hi,
>
> I am trying to create a multiple page entry form using
coldfusion session. But
> I am having some problem when passing the session
counter to url parameter. For
> test purpose I have created the following code:
>
> <cfif Not IsDefined("SESSION.AE")>
> <!--- If structure undefined, create/initialize it
--->
> <cfset SESSION.AE = StructNew()>
> <!--- Represent current form srep; start at one
--->
> <cfset SESSION.AE.StepNum = 1>
> </cfif>
> <cfif IsDefined("Form.GoBack")>
> <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
> <cfelseif IsDefined("Form.Next")>
> <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
> </cfif>
>
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
> </head>
> <body>
> <form method="post"
action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
> <input type="submit" name="GoBack" value="Back">
> <input type="submit" name="Next" value="Next">
> </form>
> </body>
> </html>
>
> When run it I get the following error:
>
> The value "" cannot be converted to a number
>
>
> The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm:
line 11
>
> 9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
> 10 : <cfelseif IsDefined("Form.Next")>
> 11 : <cfset SESSION.AE.StepNum = #url.StepNum# +
1>
> 12 : <!---<cfset SESSION.AE.StepNum =
#url.StepNum# + 1>--->
> 13 : </cfif>
>
> I couldn't figure out where is the problem. Any help is
really appreciated.
>
> Thanks in advance.
>
>
>
> -
How to set MULTIPLE repository variables using presentation variables
Hi,
I need to pass multiple values from presentation variable to repository.
A brief about report design :
I have two repository variables - from_dt and to_dt which are defaulted to some values from a database table and are editable by the user.
I display these default date values on the dashboard. Plus there are two dashboard date prompts allowing user to enter a date range different from what is displayed by the from_dt and to_dt. The dates entered by user are assigned to presentation variables pv_from_dt and pv_to_dt.
If user specifies a different date range then these date values are to be passed to a stored procedure which is called from the Connection Pool --> Connection Script Tab --> Execute before query. This procedure will do some calculations and populate a global temporary table before running the report.
Problem :
Now in the presentation server, in the Advanced tab, in the Prefix section, when i try to write something like this:
SET VARIABLE from_dt = '@{pv_from_dt}';
SET VARIABLE to_dt = '@{pv_to_dt}';
I get the foll error :-
Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <SET>: Syntax error [nQSError: 26012] . (HY000)
I tried all possible permutations and combinations
SET VARIABLE from_dt = '@{pv_from_dt}',SET VARIABLE to_dt = '@{pv_to_dt}'; --- gave same error
SET VARIABLE from_dt = '@{pv_from_dt}' SET VARIABLE to_dt = '@{pv_to_dt}'; -- gave same error
How do we assign values to multiple reporsitory variables... ???
Thanks
NusratHi,
I wrongly referred to the variables as "repository" variables. Both variables are Session variables. For testing i added a column field in the report with source as the session variable - VALUEOF(NQ_SESSION.from_dt). In the Prefix section i assigned a literal value - SET VARIABLE from_dt='01-JAN-2012';
When report is run, the literal value gets displayed.
The idea to update a session variable, from dashboard using presentation variable, i got from the following URL.
Go to http://oraclebizint.wordpress.com/category/obi-ee-plus/page/11/
and see the section "Oracle BI EE 10.1.3.3/2 – Updating Session Variables from Dashboards using Presentation Variables"
Thanks
Nusrat
Edited by: user10309945 on Jan 16, 2011 9:30 PM
Edited by: user10309945 on Jan 16, 2011 9:59 PM
Maybe you are looking for
-
Error message after trying to install Tiger on a B/W G3
I've tried several times now to install OS 10.4 Tiger from the black install DVD onto my B/W G3. Every time, it gives me a error message saying there were errors during installation and to restart. I've got 512-640 MB of RAM (I've removed one after m
-
Form Creation in Acrobat X Pro - unable to save as Reader Extended PDF
I am using Acrobat X Pro on the Windows 7 OS. I have created a document in Word (Office 2010), saved it as a PDF and added form fields. When I try to Save As Reader Extended PDF, the options are grayed out. How do I create a form from a Word document
-
Win 7-CS4 - Bridge - ACR 5.5 Camera Raw editing not enabled
I have just migrated to a new Win 7 system. Fresh install of PS CS4, I found I could load CR2's into ACR but not jpg's. Wehn I tried to check Camera Raw preferences in Bridge I got message "Camera Raw not enabled...." even though PS had been started
-
I had to do a factory reset with my MyBookLive earlier today due to something else going wrong yesterday, now i am trying to do another WHOLE backup and it stopped again with an "error 30" !!!! any ideas anyone please ? tim
-
hello, how do i change the language of a film on the appel tv, i know i can change it on my pc but not abbel to change it on the apple tv ?