Using variables in a project
has anyone tried to do this?
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000670.html
I follwed this word for word with flash CS3 published as
flash 9 actionscript 2.0 but only the default image1.jpg shows up.
and not the image2.jpg, so either the actionscript or the html code
is causing this not to work for me, both of which I copied and
pasted as instructed.
I test on my local IIS but I know it's not the server because
default image1.jpg is a link from a website on the internet.
I just tried it and it works for me.
Similar Messages
-
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.
-
Hi Im new to XI and Im testing a simple file to file scenario by using Variable Substitution method.
PFB the input payload of my scenario:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:INF94145_Emp_Input_MT xmlns:ns0="http://infosys.com/xi/projects/adidas/n2">
- <Employee>
- <Details>
<Name>A</Name>
<ID>1</ID>
<Designation>SE</Designation>
<Salary>123456</Salary>
<DOJ>24-02-2008</DOJ>
<Other />
- <Address>
<City>Asd</City>
<ZIP>505001</ZIP>
<Country>India</Country>
</Address>
</Details>
</Employee>
- <Employee>
- <Details>
<Name>B</Name>
<ID>2</ID>
<Designation>SE</Designation>
<Salary>123456</Salary>
<DOJ>24-02-2008</DOJ>
<Other />
- <Address>
<City>Asd</City>
<ZIP>505001</ZIP>
<Country>India</Country>
</Address>
</Details>
</Employee>
</ns0:INF94145_Emp_Input_MT>
I used the variable substitution feature of Receiver File adapter to get the Output file name as one of the Field value from payload(Employee name in this case).
Now my question is can I be able to get the output files based on employee names.i.e.,for two employee details I should get two out files and for n employee details I should get n output files.
Can anyone tell how the above scenario could be done.
Thanks for your help.
Regards,
PrajwalHi,
I have used multi mapping and I tested the same and is working fine when I test in TEST tab present in mapping.
My scenario is a file to file and also I used same fields in input and output DT(datatype) for understanding purpose.
My input data type is as follows:
- <ns1:INF94145_Emp_Input_MT xmlns:ns1="http://infosys.com/xi/projects/adidas/n2">
- <Employee>
- <Details>
<Name>A</Name>
<ID>1</ID>
<Designation>qw</Designation>
<Salary>122</Salary>
<DOJ>2-22-2222</DOJ>
<Other>asasa</Other>
- <Address>
<City>asdsada</City>
<ZIP>12</ZIP>
<Country>dsada</Country>
</Address>
</Details>
</Employee>
But when coming to END to END testing I'm getting an error in IE as follows:
<SAP:Code area="MAPPING">GENERIC</SAP:Code>
<SAP:P1>Split mapping created no messages</SAP:P1>
Can anyone say what i have to do to overcome this problem.
Thanks and regards,
Prajwal -
Using variable datastore in LKM
Hi,
I am new to ODI, I have created a POC environment and now looking at using substituition methods for KMs.
I have a situation where I have set of source tables and a direct of copy of these in my DW staging schema. I have reversed engineered both models into ODI, and created an interface where the source and target table is a variable (created 2 project varaibles then referenced them in each model as a datastore). I am planning on looping through this interface for all source to stage populations.
In a package I populate the varaibles at runtime, this works fine but I cant seem to use substituition methods for the evaluated varaible. So i.e. at runtime my table is called SALES how do I get info about the SALES datastore in the model? Is there a substitution method where you sepcify the datastore and say get a list of columns.
Thanks
Simonsmaram,
Did you add any variable in inside LKM or IKM to make the variable on RESOURCE field work? Even if you did, I do not think that would be necessary.
If you mentioned variable in the resource field, there is no other information you can derive other than resource name using that variable anyway. You still have to use data stores and other object names in substitution APIs.
What information are you exactly looking for anyway? -
Can I use a user defined project variable within a KM.
Can you please let me know how to configure that at the interface level?
Thanks.Trying to contribute...
An ODI variable can be used at any KM just like at any other ODI code. That include options or the code directly.
Cezar -
Using variables in table constaraints
Hi,
I am facing problem in using global variables in table constraints. It is giving error "911 : 42000 : java.sql.SQLException: ORA-00911: invalid character".Since I was not able to use project variable s,I have used global variables.
following is the code
insert into DEV_TGT.E$_TEST_TGT
ERR_TYPE,
ERR_MESS,
CHECK_DATE,
ORIGIN,
CONS_NAME,
CONS_TYPE,
C1,
C2
select
'F',
sysdate,
'(161666)TEST_2.TEST_TO_TETS_TGT',
'CHK',
'CK',
C1,
C2
from DEV_TGT.I$_TEST_TGT TEST_TGT
where not (
TEST_TGT.C1=#GLOBAL.V_LOAD_ID
)Hi,
Did you refreshed or Assigned that variable before using in interface ?
Flow :-
Assgin/Refresh Variable -> interface (with contrsaint using variable)
Also,
If constarint is not an integer please use quotes ( '#GLOBAL.V_LOAD_ID' )
Regards,
Rathish
Edited by: Rathish on Sep 24, 2009 5:44 PM -
Hi experts
We use NW 04s BI SP09 and NW 04s EP SP09. We have made two queries that work fine. We have tested them in RSRT and the variables (both have customer exits and manual input) are filled. They work fine if we run them in our portal one by one. If we put one of the queries in a web template it still works fine. The problem occurs when we put two or more queries (with customer exits in both queries) into one template and use the variable screen. If we dont use the variable screen (VARIABLE_SCREEN = OFF) the error dont occur. I pasted a typical error message we get below (using variable screen). The error message is displayed after the variable screen has been filled out (0P_KAYD2) and checked.
Specify a value for variable 0P_KEYD2
Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
System error in program SAPSRRK0 and form APPEND_KHANDLE_1-02- (see long text)
Log ID: 0003BA0F39140062000007F200004B9A0004233B75B61056
Initial cause
Message:
Termination message sent ERROR BRAIN (629): Specify a value for variable 0P_KEYD2 MSGV1: 0P_KEYD2ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION MSGV1: SAPMSSY1 MSGV3: UNCAUGHT_EXCEPTION
Does anyone have the same problem?
Kind regards
ErikYes, we are getting the same issue. Check out thread Error while executing query on portal-SAPMSSY1 method : UNCAUGHT_EXCEPTION
On my current project, the SAP team member said the fix would also be coming in Support Pack 11 at the end of Dec 2006. -
BPS ERROR I CREATE A NEW Manual Planning when a use variable in lead column
Dear
when a create a new manual planning have a message.
Frist
I create two variable one is Controlling Area other is Cost Element
in planning area.
next
I a create a manual planning to make a report form.i create a
manual planning layout category is key Figures and make Controlling
Area and Cost Element as lead column in next continue setup lead
columns tab.i set key figure and set Controlling Area and Cost Element
to use variable above.and finish other tab.
next
i double click manual planning system give me a message
The environment has changed; the layout can no longer be executed
notes: i can insure Controlling Area and Cost Element is a single value
and make sure both can mapping in cube
by the way when i use fixed value this form will be run.
Edited by: frank ju on Aug 6, 2009 11:13 AMHi Everybody:
I summarize the last post: In RoboHelp 7 for Word, the problem is that when I try to create a winhelp2000 project importing from a .hlp file of origin created previuosly, the import process makes error because it want to extract images that not exist on the .hlp file of origin. Thanks in advance for all the help that you can give me.
Ismael. -
Hi!
How to use Variable in mapping ? I've tried #PROJECT_CODE.VARIABLE_NAME but execution ends with an error "Illegal character"
With regards,
PsmakRThere is no need to use package name if variable is locate in the same package with the interace. Else (according with documentation):
Referring to variable MY_VAR in your objects should be done as follows:
• #MY_VAR: With this syntax, the variable must be in the same project as the object referring to it. Its value will be substituted. To avoid ambiguity, consider using fully qualified syntax by prefixing the variable name with the project code.
• #MY_PROJECT_CODE.MY_VAR: Using this syntax allows you to use variables across projects. It prevents ambiguity when 2 variables in different projects have the same name. The value of the variable will be substituted at runtime.
• #GLOBAL.MY_VAR: This syntax allows you to refer to a global variable. Its value will be substituted in your code. Refer to section Global Objects for details.
• Using “:” instead of “#”: You can use the variable as a SQL bind variable by prefixing it with a colon rather than a hash. However this syntax is subject to restrictions as it only applies to SQL DML statements.
And make sure you declare it in the package as was suggested in the previous post. -
Read HttpSession Variables in Multiples Projects...
I'm using JDeveloper 9.0.3 with BC4J+UIXML, and I have the problem:
One session varible using HttpSession created in the Project "A", don't be used in Classes of Project "B", after deploy processes.
Example:
Project "A"
file1.uix - invoking Java Class FunSessionVar (create session variables and call file2.uix in Project "B"):
import oracle.cabo.servlet.BajaContext;
import oracle.cabo.servlet.Page;
import oracle.cabo.servlet.event.PageEvent;
import oracle.cabo.servlet.event.EventResult;
import oracle.cabo.data.jbo.servlet.bind.*;
import oracle.cabo.ui.data.BoundValue;
import oracle.cabo.ui.data.DataBoundValue;
import oracle.cabo.servlet.util.RedirectUtils;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletRequest;
public class FunSessionVar
public static EventResult FunPrepSessionVar(BajaContext context
,Page page
,PageEvent event) throws Throwable
HttpServletRequest req = context.getServletRequest();
HttpSession sess = req.getSession(true);
sess.setAttribute("CodPessoaEscola", event.getParameter("CodPessoaEscola"));
sess.setAttribute("DspNomEscola", event.getParameter("DspNomEscola"));
Page browsePage = new Page(page, "../ProjectB/file2.uix");
return new EventResult(RedirectUtils.getRedirectPage(context, browsePage));
Project "B"
file2.uix - have a "null" event invoking Java Class FunReadSessionVar (read session variables and set View Object Query):
import oracle.jbo.ViewObject;
import oracle.cabo.servlet.BajaContext;
import oracle.cabo.servlet.Page;
import oracle.cabo.servlet.event.PageEvent;
import oracle.cabo.servlet.event.EventResult;
import oracle.cabo.data.jbo.servlet.bind.*;
import oracle.cabo.ui.data.BoundValue;
import oracle.cabo.ui.data.DataBoundValue;
import oracle.cabo.servlet.util.RedirectUtils;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletRequest;
public class FunReadSessionVar
public static EventResult FunPrepReadSessionVar(BajaContext context
,Page page
,PageEvent event) throws Throwable
HttpServletRequest req = context.getServletRequest();
HttpSession sess = req.getSession(true);
String valor1 = sess.getAttribute("CodPessoaEscola");
String valor2 = sess.getAttribute("DspNomEscola");
ViewObject view = ServletBindingUtils.getViewObject(context);
view.setWhereClauseParam(0,valor1);
view.setWhereClauseParam(1,valor2);
view.executeQuery();
return new EventResult(page);
Well, the method [b]sess.getAttribute("CodPessoaEscola"); return null value, but the correct value passed in
FunSessionVar (Project "A") is equal "180".
Any body have a solution for this problem ?
Thans,
DaniloJohn, thanks for your help...
The event parameters does not have null values, because if I write this command in the Pages of Project "A", the show values are correct:
<flowLayout>
<contents>
CodPessoaEscola:
<styledText data:text="text@getCodPessoaEscola" />
</contents>
</flowLayout>
(The Data Provider return HttpSession variable of CodPessoaEscola).
May be HttpSession variables have restrict scope inside Project ? Does the web.xml file have properties to configurations of this feature, before make deploy ?
Thanks,
Danilo -
Using variables to go to a section of a swf
Hi,
I have been working on a project that I finally realized
could have been, and will be, easier if I used variables within my
AS. So I came home this evening and started working on my idea and
after several hours of it not working, working part way, and
googling like mad I decided to try you all. I hope you can help.
The site I'm working on I've actually split up into multiple
swfs for easier maintenance and I'm using one container swf to load
everything in. The problem I have is that there is a "past" section
where the user can select a year and view everything about the
company that happened in that year (containing text, links to
photos, sometimes video, etc.).
So the past section is loaded into level 1 and when the user
clicks on a year I'm creating a variable called year given the
value of that year (2007, 1984, etc). The year button also unloads
the past section swf and loads another swf in level 1. I have some
actionscript at the beginning of that swf that says
if (year=2007) {
gotoAndPlay("2007");
} else if (year=2006) {
gotoAndPlay("2006");
For each year I'll have some links, more buttons, and/or
video come in and there's also a button to go back to the past
section. One of my problems is that it always goes to the frame
labelled "2007". I did get it to go to 2006 once, but I was using
two if statements instead of the if and else if. The second problem
is that when the user clicks back to the past section I need to
empty out the variable so that they can choose another year and
pass that variable.
Can anyone offer any advice, suggestions or examples?
Thanks!
phejI have been having a similar problem, and being quite new to
Flash, I'm at a loss on how to fix it. My issue is with a template
I purchased. This template has the main content pages nested a
couple layers deep. I need to be able to send people to a specific
URL that I'm hoping to get to load the movie and bring up the one
specific clip and not the main start.
I had tried using a dynamic text field to check if the
variables I was passing in through the URL were making it in (with
the correct code placed in the embed and object tags). I gave the
var box of the dynamic text the name of the variable I was passing
in: showPage.
This is what was displayed in the text box instead:
_level0.pages001.pages.instance115.showPage
Can I glean any information as to how to get this one clip to
be bookmarked? I have tried by passing in variables and also by
setting a Named Anchor in the key frame that loads this clip. That
code worked only as far as putting the NA in the url like it was
supposed to, but the actual link when pasted back in the browser
brought you back to the main start. -
Error-Receiver File Adapter using Variable substitution when file is empty
XI Experts,
We are on PI 7.0, SP14.
We are using variable subtitution to get the filename from source message. This works fine as long as we have data in the payload for filename element. But we have a scenario where we don't have to create file when certain condition does not exists in source message so in the message payload filename element will not exists in such condition and file will be empty and we should not create file.
Parameter in the communication channel for Handling empty message is "Ignore".
Does anyone knows how to handle this scneario. We don't want to default any file name in the message mapping if source file name element does not exists.
We are following getting error in the Adapter engine.
MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file
Thanks
MPYou can implement this by writing the module to throw an exception or whatever method you want to execute.
If you don't want to receive an error message then module is suitable for you.
Gaurav Jain -
Using variables to insert data in the table
I want to insert datas in the table. I use constants,
all the constants are stored properly in the table. But,
when I use variables I get the error message
"Too few parameters. expected 6".
(I declared all the fields of the table as text only.)
My program is "newt.jsp"
<%@ page language="java" import="java.sql.*" %>
<html>
<head>
<title>storing customer information in the database</title>
</head>
<body>
<%
String cno1 = request.getParameter("cno");
String n1 = request.getParameter("n");
String add11 = request.getParameter("add1");
String add21 = request.getParameter("add2");
String phone1 = request.getParameter("phone");
String email1 = request.getParameter("email");
Connection con = null;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:customer"," "," ");
Statement statement1 = con.createStatement();
Statement statement2 = con.createStatement();
statement2.executeUpdate("create table cust1 (cno varchar(20),n varchar(20),add1 varchar(20),add2 varchar(20),phone varchar(20),email varchar(20))");
statement1.executeUpdate("insert into cust1 (cno,n,add1,add2,phone,email) values(cno1,n1,add11,add21,phone1,email1)");
catch(SQLException sqle) {
System.err.println(sqle.getMessage());
catch(ClassNotFoundException cnfe) {
System.err.println(cnfe.getMessage());
catch(Exception e) {
System.err.println(e.getMessage());
finally {
try {
if(con!=null) {
con.close();
catch(SQLException sqle) {
System.err.println(sqle.getMessage());
%>
<br><br>
Mr./Ms. <%=n1 %> <br>
Your datas have been stored.<br>
</body>
</html>
Those who know answer please reply.
My thanks in advance.I would expect your insert statement to be this:
statement1.executeUpdate("insert into cust1 (cno,n,add1,add2,phone,email) values('"+cno1+"','"+n1+"','"+add11+"','"+add21+"','"+phone1+"','"+email1+"')");
If you just create a string, it's not going to fill in variables into the string by magic. -
Using variable with the same name as field name?
I have a complex proc where I have variables with the same name as field name used on a query. something like this:
SELECT a.id_table WHERE a.id_table = id_table
where the last id_table is a parameter sent to the proc:
declare procedure myproc(id_table int)
Is there any way or notation to declare the variable inside the query as a variable or I have to use a different name?Well, variables are not the only thing you have to change if you want to switch to Oracle.
Although I don't think it is good practice (to use variable name same as column name), here is one example how you can achieve it using EXECUTE IMMEDIATE and bind variable
SQL> select deptno, count(1)
2 from scott.emp
3 group by deptno;
DEPTNO COUNT(1)
30 6
20 5
10 3
SQL> set serveroutput on
SQL> declare
2 deptno varchar2(10);
3 i number;
4 begin
5 deptno:=10;
6 execute immediate
7 'select count(1) from scott.emp where deptno=:deptno' into i using deptno;
8 dbms_output.put_line('OUT ---> '||i);
9 end;
10 /
OUT ---> 3
PL/SQL procedure successfully completed.
SQL> Message was edited by:
tekicora
Message was edited by:
tekicora -
How to use settingsfilegenerator in c# project which is part of biztalk solution
As part of expression shape in the orchestration, I am calling a c# method by providing input parameters.
MyCompanyName.Integration.MyProjectName.Project.ListsProxy.SubmitFilesToDropOffLibrary
(XmlInputMessage,
MyCompanyName.Services.ConfigStore.SSOClientHelper.Read("ProjectName", "InboundTransportLocationAddress"),
InputMessage.SelectRecord.DOC_IDENTIFIER + "*");
One of the parameters "MyCompany.Services.ConfigStore.SSOClientHelper.Read("MyProjectName", "InboundTransportLocationAddress")"
is looking into the settingsfilegenerator and taking in the right values.
However,it's not picking when used as part of c# project.
As part of the method in the c# project, I have a string hardcoded with url.
string x = "http://.....";
the url need to change for every environment of deployement. So I want to change the hardcoded url to picked up from the
settingsfilegenerator.
So in the settingsfilegenerator, I have added
<Row>
<Cell ss:StyleID="s77">
<DataSubmitFileEndpoint ss:Type="String">GetTaxonomy</DataSubmitFileEndpoint>
</Cell>
<Cell ss:StyleID="s78">
<Data ss:Type="String">http://.......asmxx</Data>
</Cell>
<Cell ss:StyleID="s78">
<Data ss:Type="String">http://........</Data>
</Cell>
<Cell ss:StyleID="s78">
<Data ss:Type="String">http://........</Data>
</Cell>
<Cell ss:StyleID="s78">
<Data ss:Type="String">http://........</Data>
</Cell>
<Cell ss:StyleID="s78">
<Data ss:Type="String">http://........</Data>
</Cell>
</Row>
string x = MyCompanyName.Services.ConfigStore.SSOClientHelper.Read("MyProjectName", "GetTaxonomy");
But it's not picking up from the settingsfilegenerator. It's working when used as part of orchestration but not when used in the c# project. I have added
the reference for config store in both. But not working in c# project.Could anyone help pleaseIt's working when used as part of orchestration but not when used in the c# project. This is very confused. :(
you could check whether give a reference properly first.
Maybe you are looking for
-
i recently got my ipod replaced and i have its serial number. now i used to play a game on it which requires me to have its UDID for account transfer so how do i get its UDID when i dont have the ipod now. i have a new one now.
-
Can't open F-Fox 4 in my iMac G5 w/PowerPC CPU; icon says "not supported on this system"
I have a somewhat old iMac G5 with what I believe is a Power PC CPU. I have used Firefox as long as I've had this. I just downloaded the new Firefox 4, and it shows a classic "NO" symbol (slashed circle) over the new Firefox 4 icon. When I click on t
-
How to deliver reports to clients
Hi all, We have developed a report using BI publisher. We did the following 1. We used BI answers to draft our querries. 2. We integrated BI publisher with MS word and uploaded a template. 3. Viewed the report using BI publisher. Now, our doubt is th
-
I am about to upgrade my Mac's OS from Mountain Lion to Mavericks. I recently networked to my Mac on our home wireless network an HP 8600 all in one printer/scanner and an HP LaserPro 127. I saw a note posted in a non-Apple forum stating that the
-
CS4 601 Unrecoverable Indexing Error in INDEXING.RPLN
I have a 100 page document with indexes. It appears to be having indexing problems. With at least one index entry, when I try to delete that index, Indesign just crashes in the INDEXING.RPLN module. If I try to output the file to an INX file to reloa