Handover of variable from Webtmeplate to Webtemplate
Hi,
I am trying to define via selection in an analysis item a variable and hand it over from this template to the next where
a) the same query shall display the previous selected data, togehter with other data
b) in teh new template the variable should be also available for other calculation and eg. planning funktions.
Especially with the planning function it seem to me that they only can be fed from the actually displayed web template.
Does anybody has any expearience or sources of information.
Cheers
Dirk
Three ways:
- global variable
- parameters
- package variable in library
There's no need to declare a global variable, it's always a varchar and you just assign a value to it to create it.
Check the blog of Andreas Weiden to find out how to do it:
http://andreas.weiden.orcl.over-blog.de/article-28180655.html
Similar Messages
-
Problem in BW query can read a variable from another query
dear all
now I create three queries
the name are queryA queryB queryC
there is a variable VAR_1 on queryB
there is a variable VAR_2 on queryC
webtemplate is only one and all queries belong to webtemplate
VAR_1 is DATE
VAR_2 is MONTH
in inputscreen user will input VAR_1
can we read VAR_1 and then VAR_2 = VAR_1+0(6)
I created souce on CMOD but can't read VAR_1
the code as below
case i_vnam.
when 'VAR_2'
read table i_t_var_range into s_var_range
with key vnam = 'VAR_1'.
l_date = s_var_range-low.
l_s_range-low = l_date+0(6).
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
append l_s_range to e_t_range.
endcase.
PLS HELP MEHi,
As vijay said you try ...
Let me explain:
Create another variable var_3
on queryB which is of type 'customer exit' and you write the code for this var_3 (date) in CMOD just to store this value in some ztable.
create a ztable with fields of type
1. sy-datum(system date)
2.sy-uzeit (syatem time)
3. sy-datum (for storing the value of var_1).
make first two fields as key.
Now for queryC create var_2 type 'customer exit'.
Now for this variable in CMOD , get the value of third field from ztable for the last entry in the ztable.Write the logic for caluculating month and populate var_2.
Hope its clear..
Shylaja. -
Clearing variable from Request object
Hi everyone,
After getting value from request.getParameter("var"), I want to clear this "var" variable from request scope. So that in the next coming statements if i again call the same request.getParameter("var") statement than it must return null
So how to handle this issue of clearing certain variable from request scope or flushing the whole request objectI don't know what you are trying to do but it sounds confused. I would suggest you read the parameter once, at the beginning of the code. Store it in a variable and use that variable as necessary. If you still need help then would you explain what you are trying to achieve here.
-
How to delete multiple variables from the variables list
Hello,
Iam using FrameMaker 9.0. Is there a way I can select multiple variables from the book and delete them together.
Thanks,
CP.NO in FM9. Take SQUIDDS TOOLBOX the free tool: 'Formats'
'Formats' is a very helpful tool for 'deleting' paragraph formats, character formats, cross reference formats, table formats, color definitions and variables.
You can delete unused one or all formats of selected. For paragraph and character you can also decide to 'add new one in catalog'.
-Georg -
LoadVars-using send to pass a variable from flash to php
For the life of me, I've tried everything:
I've researched LoadVars on Adobe forum, used David Powers'
books, googled 'flash to php', LoadVars, etc. and tried
sendAndLoad, send, and using $_POST, $_GET, $_REQUEST.
$HTTP_POSTVARS but I keep getting this same error. any advice
please?
I have a Unix server running Apache/PHP 4 - LoadVars worked
to load name-value pairs into an array -see thread)
My goal with this simple app is to prototype being able to
pass a variable from flash to a variable in php.
Parse error: syntax error, unexpected T_VARIABLE in
flash_to_SQL.php on line 5
Actionscript 2.0 code:
var c :LoadVars = new LoadVars();
c.testing = "123FOUR";
c.send ("
http://127.0.0.1/flash_to_SQL.php","_self","POST");
php code: (I also tried $_POST, $_GET, $_REQUEST.
$HTTP_POSTVARS)
<?php
//mysql 4.1.2, php 4 , NO mysqli
ecbo $_REQUEST ['testing'];
/?>var formData:LoadVars = new LoadVars();
formData.fname = "Name";
formData.send("
http://www.website.com/flash_php.php",
formData, "POST");
<?php
$name = $_POST['fname'];
echo $name;
?> -
How can I pass variables from one project to another using Javascript?
Hi all, I am trying to do this: let learners take one course and finish a quiz. Then based on their quiz scores, they will be sent to other differenct courses.
However, I wish keep track on their previous quiz scores as well as many other variables.
I found this nice widge of upload/download variables by CPguru (http://www.cpguru.com/2011/05/18/save-and-load-data-widget-for-adobe-captivate-4-and-adobe -captivate-5/). However, this widget works by storing variables from one project in local computer and then upload it to another project.
My targeted learners may not always use the same computer though, so using this widget seems not work.
All these courses resided in a local-made LMS which I don't have access to their code. Therefore, passing variables to PHP html files seems not work.
Based on my limited programing knowledge, I assume that using Javascript to pass variables may be the only possible way.
Can someone instruct me how to do this?
Thank you very much.If you create two MIDlet in a midlet suite, it will display as you mentioned means you can't change the display style.
-
Calendar prompt for Date variable from bex
Hi All,
I have a Bex query where I have a variable on 0CALDAY
- Customer exit (i_step = 1 to populate with current date)
- Single value
- Mandatory
I created universe on this query and in webI selection screen i do see the variable prompt.
I am not able to see the current date populated automatically since exit values are not populated to WebI at runtime.
My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
where user can enter the values directly.
I am currently on BO XI 3.1 SP3.
Is there any specific setting in Universe or bex query which is required to get this Calendar prompt instead of list of values for dates?
Note: When we were on SP1 the universe created then had same variable from bex and it still shows us Calendar prompt but ever since we upgraded to SP3 for the query splitter functionality we not able to get the calendar prompt for date variable in new universe we create
Thanks
RiteshYep.
Now tell me how you want to show that Prompt @ WebI report level.
My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
where user can enter the values directly. Exactly, i didn't get this??
@Prompt:
You have flexibility to show options like:
Mono/Multi: User can select Single value or Multiple.
BW Variable: Same we have (Single/Multiple)
Free/Constrained: User can Enter his/her value directly or No change option.
BW Variable: By defalut you will get this, once you made it to Optional input.
Persistent/Not_Persistent: Refreshed report has to show last selected value means use Persistent otherwise Not_P.
By seeing the Prompt syntax , I can say your Variable is after Customer Exit, Correct??
Workaround for your Problem is:
<FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A','Date\LovDate (Previous Day)Base',mono,primary_key)"/></CONDITION></FILTER>
You have to remove that Date class and objects from prompt syntax. Because of that it showing up LOV's not calendar.
Like:
<FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A',',mono,primary_key)"/></CONDITION></FILTER>
Why, It should be blank??
Because Date needs no class\object to show up, by default you will get Calendar on the fly.
Hope you got my point.
Thank You!! -
Looking for a better way to determine string variable from multiple options
Hi,
I trying to figure out a better way to determine a string variable from multiple options.
Say i have five pictures each with a different filename: img1 - img5...these file names could be named anything really but for this example i will keep them as img1, img2, img3, img4 and img5.
I want to display a messagebox with the string depending on what a certain variable is.
So for example, we have the number X, if X = 1 then i want the messagebox to show "img1" as the message
Essentially the way I have been doing it so far is:
Private Sub WhichImage()
Dim ImageName As String = ""
Dim i as integer
If i = 0 Then
ImageName = "img1"
End If
If i = 1 Then
ImageName = "img2"
End If
If i = 2 Then
ImageName = "img3"
End If
If i = 3 Then
ImageName = "img4"
End If
If i = 4 Then
ImageName = "img5"
End If
MessageBox.show(imagename, "Name of image", MsgBox.Style.OkOnly, MsgBoxResult.Ok)
end
Up until now, this has been fine, but what if I have 50 images, do I have to do this for all 50 images? or is there an easier way like putting the image names into a text file and have it read from the file depending on what the variable i equals? If so,
how do I go about this? Does each image name go on a separate line? can it just be separated by a comma instead? or is there a better way?
Please note that i know that i have declared "i" above in my code and not intialised it with anything, in reality "i" comes from somewhere else in the program so please ignore that part, it is not what I am concerned with.
Thanks
MersecDoes each image name go on a separate line? can it just be separated by a comma instead? or is there a better way?
Arrays are useful for this.
Dim imagenames() As String = {"img1", "img2", "img3", "img4", "img5"}
Dim imagename As String = imagenames(i)
MessageBox.Show(imagename, "Name of image")
Any sort of collection will do instead of an array, and may be simpler to manage. There are many other options - the most suitable one probably depends on where the names originally come from. For instance, if you are getting them from a folder
using the FileSystem.GetFiles method, then they are already in a collection.
If the files names never change then you may as well include them in the program code, using something like the code above. If they can change, then you could use a text file, but that means you need a file update routine. If that is required
then the way you store the names will dictate how you access them. -
How to pass a variable from one class to another class?
Hi,
Is it possible to pass a variable from one class to another? For e.g., I need the value of int a for calculation purpose in method doB() but I get an error <identifier> expected. What does the error mean? I know, it's a very, very simple question but once I learn this, I promise to remember it forever. Thank you.
class A {
int a;
int doA() {
a = a + 1;
return a;
class B {
int b;
A r = new A();
r.a; // error: <identifier> expected. What does that mean ?
int doB() {
int c = b/a; // error: operator / cannot be applied to a
}Thank you!elaine_g wrote:
I am wondering why does (r.a) give an error outside the method? What's the reason it only works when used inside the (b/r.a) maths function? This is illegal syntax:
class B {
int b;
A r = new A();
r.a; //syntax error
}Why? Class definition restricts what you can define within a class to a few things:
class X {
Y y = new Y(); //defining a field -- okay
public X() { //defining a constructor -- okay
void f() { //defining a method -- okay
}... and a few other things, but you can't just write "r.a" there. It also makes no sense -- that expression by itself just accesses a field and does nothing with it -- why bother?
This is also illegal syntax:
int doB() {
A r = new A();
r.a; // error: not a statement
}Again, all "r.a" does on its own is access a field and do nothing with it -- a "noop". Since it has no effect, writing this indicates confusion on the part of the coder, so it classified as a syntax error. There is no reason to write that. -
Is it possible to pass a variable from one animation to another?
I have multiple animations on the same page. I need to pass a variable from one to the other.
Animation One has this:
sym.setVariable("myVarOne", 1);
Animation Two has this:
var myVarOneInTwo=Edge.getComposition("EDGE-12345678").getVariable("myVarOne");
Seems like it should work, but kinda hard to tell. I put in:
console.log("myVarOneInTwo = " + myVarOneInTwo);
But I get: Javascript error in event handler! Event Type = timeline
So it seems that it doesn't like getting a variable from another animation.
Is there a way to pull a variable from one animation into another?Sorry also had to fix this:
var myVarOneInTwo=Edge.getComposition("EDGE-12345678").getVariable("myVar One");
To this:
var myVarOneInTwo=Edge.getComposition("EDGE-12345678").getStage().getVariable("myVar One"); -
How to access a variable from one program to another (independent)
Hi,
My requirement is to use a variable(value) from one program(prog1) to another (prog2). how is it possible.
Regards
Arani BhaskarGo for memory id .
passing on values from one program to another program
Program1
EXPORT (variable) TO MEMORY ID 'LOC'.
Program2
IMPORT (variable) FROM MEMORY ID 'LOC'.
LOC is the address , for more press f1 on export in abap editor. -
Reading a variable from one method to another method
I am pretty new to Java and object code, so please understand if you think I should know the answer to this.
I wish to pass a variable from one method to another within one servet. I have a doPost method:
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
String userID = (String)session.getAttribute("userID");
String title = request.getParameter("title");
PrintWriter out = response.getWriter();
out.println("userID is ..."+userID);
} and wish to pass the variable userID to:
public static void writeToDB(String title) {
try{
String connectionURL = "jdbc:mysql://localhost/cms_college";
Connection connection=null;
Class.forName("com.mysql.jdbc.Driver");
connection = DriverManager.getConnection(connectionURL, "root", "");
Statement st = connection.createStatement();
st.executeUpdate ("INSERT INTO cmsarticles (title, userID) VALUES('"+title+"','"+userID+"')");
catch(Exception e){
System.out.println("Exception is ;"+e);
}because, at the moment the userID cannot be resolved in the writeToDB method. Thanking you in anticipation.Thanks for responding.
If I replace
public static void writeToDB(String title)with
public static void writeToDB(String title, String userID)It throws up an error in the following method
public void processFileItem(FileItem item) {
// Can access all sorts of useful info. using FileItem methods
if (item.isFormField()) {
//Map<String, String> formParameters = new LinkedHashMap<String, String>();
//String filename = item.getFieldName();
//String title = item.getString();
//System.out.println("received filename is ... " + filename );
//formParameters.put(title, filename);
} else {
// Is an uploaded file, so get name & store on local filesystem
String uploadedFileName = new File(item.getName()).getName();
File savedFile = new File("c:/uploads/"+uploadedFileName);
long sizeInBytes = item.getSize();
System.out.println("uploadedFileName is " + uploadedFileName);
String title = uploadedFileName;
System.out.println("size in bytes is " + sizeInBytes);
writeToDB(title);
try {
item.write(savedFile);// write uploaded file to local storage
} catch (Exception e) {
// Problem while writing the file to local storage
} saying there are not enough arguments in writeToDB(title);
and if I put in an extra argumenet writeToDB(title,String userID);
again it does not recognise userID -
Moving Variable from one class to another.
I need to get a Variable from one class to another how would I do this?
Well this is a very tipical scehario for every enterprise application. You always create logger classes that generate log files for your application, as that is the only way to track errors in your system when its in the production enviorment.
Just create a simple class that acts as the Logger, and have a method in it that accepts a variable of the type that you are are trying to pass; most commonly a String; but can be overloaded to accept constom classes. e.g.
class Logger
public void log(String message)
writeToFile("< " + new Date() + " > " + message);
public void log(CustomClass queueEvent)
log("queue message was: " + queueEvent.getMessage() + " at: " + queueEven.getEventTime());
}Hope this makes things clearer
Regards
Omer -
Pass a Value to Variable from the unix environment in ODI (ELT)
Hi
i am very new to ODI environment.
i want know how to pass a value to variables in oracle data integrator from unix environment.
Example:
Variable name : Sales
for variable name sales i want to pass the value from unix environment.
Regards,
Raj
Edited by: user11137587 on Aug 19, 2009 6:26 AMWork Around !
You can execute OS commands using Jython script. Probably you need to flush your enviornment variables value into a file using jython script and then read those value into ODI variable from the file.
BUt may I know why you want to read environment variable vaules in ODI, Dont you think this will make your application less portable
Regards,
Amit -
OBIEE 11g How to pass variable from one prompt to another prompt in dashboard page.
How to pass variable from one prompt to another prompt in dashboard page.
I have two prompt in dashboard page as below.
Reporttype
prompt: values(Accounting, Operational) Note: values stored as
presentation variable and they are not coming from table.
Date prompt values (Account_date, Operation_date)
Note:values are coming from dim_date table.
Now the task is When user select First
Prompt value “Accounting” Then in the
second prompt should display only Accounting_dates , if user select “operational”
and it should display only operation_dates in second prompt.
In order to solve this issue I made the
first prompt “Reporttype” values(Accounting, Operational) as presentation
values (custom specific values) and default presentation value is accounting.
In second prompt Date are coming from
dim_date table and I selected Sql results as shown below.
SELECT case when '@{Reporttype}'='Accounting'
then "Dates (Receipts)"."Acct Year"
else "Dates (Receipts)"."Ops
Year" End FROM "Receipts"
Issue: Presentation variable value is not
changing in sql when user select “operation” and second prompt always shows
acct year in second prompt.
For testing pupose I kept this presentation
variable in text object of dashboard and values are changing there, but not in
second prompt sql.
Please suggest the solution.You will want to use the MoveClipLoader class (using its loadClip() and addListener() methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it. You can create an empty movieclip to load the swf into, and in that way the loaded file can be targeted using the empty movieclip instance name.
Maybe you are looking for
-
I Have an AT&T iPhone 6 and wants to give my AT&T 4 to my wife but she is a Sprint customer. Is this possible and, if so, how involved is it to convert my 4 from AT&T to Sprint?
-
[SOLVED] Virtual screen resolution in xorg.conf being ignored
I'm trying to configure a dual monitor set up but xrandr is telling me the max screen size is 1600x1600. I have already enterd a virtual resolution in xorg.conf. Section "ServerLayout" Identifier "aticonfig Layout" Screen 0 "aticonfig-Screen[0]-0" 0
-
How to keep leading Zeros in a CSV file
Hi All - I am trying to keep leading zeros in CSV file. Ex. I need 00001 but not just 1. I tried formatting the cells but not getting saved. Any advise please. Thanks.
-
IPhoto changing dates on imported pictures
I have a MBP and a Mini. While I would love to keep the iPhoto libraries synchronized much like the iTunes libraries are, I've found Apple doesn't make this easy. Usually I just stick the SD card in both computers. Sometimes I forget or am unable. So
-
Packard bell pc and adobe photoshop install prob
hi guys I need some help downloaded photoshop from adobe with the codes from the card sold at pc world -it wont install and has told me to resart which I have and has also said I need a 64bit version???