Reference workbench variable in DDX file ?
Hi All,
Is it possible to reference a workbench variable in a DDX file?
For example I would like to assign a value to margin-top element in my DDX from a workbench string variable?
<Header margin-top="85pt" margin-left="454pt">
Thanks, Yan
Hi all,
You can watch a demo about creating dynamic watermark with LC ES2 from the link below.
http://muratkuru.com.tr/?p=207
Enjoy..
Similar Messages
-
Variable created on click in edgeActions.js but want to reference it in external js file
Hi, I created a variable on-click in edgeActions.js but want to reference it in external js file. This is where I am at so far:
In my edgeActions.js I st a variable on compositionReady and then use it when I click on the symbol: questionMarkR1. This works fine.. the problem is that I don't know how to reference the variable in my external js file. This first code is working from the edgeActions.js:
Symbol.bindElementAction(compId, symbolName, "document", "compositionReady", function(sym, e) {
sym.setVariable("questionAsked", false); // sets the initial value
Symbol.bindElementAction(compId, symbolName, "${_questionMarkR1}", "click", function(sym, e) {
var questionAsked = sym.getVariable("questionAsked");
alert(questionAsked);
if (questionAsked)// if true
sym.$("checkButton2").removeClass( "hidden" );
sym.$("popUp").removeClass( "hidden" );
else //if false
sym.$("pic2a").removeClass( "hidden" );
sym.$("pic2b").removeClass( "hidden" );
sym.$("pic2c").removeClass( "hidden" );
sym.$("pic2d").removeClass( "hidden" );
sym.$("closeBox").removeClass( "hidden" );
This next part doesn't work because I don't know how to reference the variable correctly. This is what I have tried and it doesn't work:
var questionAsked = sym.getComposition().getStage().getVariable("questionAsked");
alert(questionAsked);Hi,
Edge Animate exposes some API for external scripts, which you will need to use in your case:
For more info about the Edge Animate API, see Adobe Edge Animate CC JavaScript API
Use the code as below in your external js file:
var comp = AdobeEdge.getComposition("EDGE-606063631"); // replace "EDGE-606063631" with your comp id, you can find in the .html file
var stage = comp.getStage();
var questionAsked = stage.getVariable("questionAsked");
alert(questionAsked);
hth,
Vivekuma -
PLS-S-00487, Invalid reference to variable while compiling PRO*C program
Hi,
I am writing a PRO*C code and get an error in compilation.
Code is as below:
+#include <stdio.h>+
+#include <string.h>+
EXEC SQL INCLUDE sqlca.h;
int main(int argc , char **argv)
+{+
int i;
EXEC SQL BEGIN DECLARE SECTION;
VARCHAR connString[100];
struct emp_record
+{+
char name[25];
char dept[10];
int id;
int salary;
int comm;
int tot_sal;
+}e1;+
EXEC SQL END DECLARE SECTION;
strcpy (connString.arr, "abcd/efgh@ijkl");
connString.len = strlen ( connString.arr);
+printf("\n Connection is [%d][%s]",connString.len,connString.arr);+
+EXEC SQL CONNECT :connString;+
+if(sqlca.sqlcode!=0)+
+{+
+printf("\nFailed to Connect, sqlcode is %d\n",sqlca.sqlcode);+
+printf("\nOracle Message = %s", sqlca.sqlerrm.sqlerrmc);+
+exit(-1);+
+}+
+else+
+{+
+printf("\nConnected\n");+
+}+
+EXEC SQL EXECUTE+
+BEGIN+
+emp_calc ( :e1.name,+
+:e1.id,+
+:e1.salary,+
+:e1.tot_sal+
+);+
+END;+
+END-EXEC;+
+if(sqlca.sqlcode!=0)+
+{+
+printf("Oracle Error:[%d][%s]",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc);+
+}+
+}+
Procedure code is:
+CREATE OR REPLACE PROCEDURE "EMP_CALC" (+
+pi_empname in emp.ename%type,+
+pi_empno in emp.empno%type,+
+pi_sal in emp.sal%type,+
+po_totsal out NUMBER)+
+is+
+begin+
+po_totsal := 1.1 * pi_sal;+
+dbms_output.put_line('Total Salary is:' || po_totsal);+
+end;+
*My main aim is to use elements of a structure in procedure call as parameters*
*But when I compile I get error on such usage as follows:*
Pro*C/C++: Release 11.2.0.3.0 - Production on Tue Apr 30 16:59:22 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
System default option values taken from: /mtsapp1/ora11g/product/11.2.0.3/dbhome_1/precomp/admin/pcscfg.cfg
Error at line 52, column 20 in file singleStructOra.pc
emp_calc ( :e1.name,
...................1
PLS-S-00487, Invalid reference to variable 'E1'
Error at line 52, column 1 in file singleStructOra.pc
emp_calc ( :e1.name,
1
PLS-S-00000, Statement ignored
Semantic error at line 50, column 1, file singleStructOra.pc:
BEGIN
1
PCC-S-02346, PL/SQL found semantic errors
*I would like to know how to resolve this compilation error and how do I use members of structures in such a procedure call.*
Thanks....Sadly PL/SQL blocks do not understand structs (or arrays). DML statements do understand them.
This is not very clearly stated in the manual, but it does say:
http://docs.oracle.com/cd/E11882_01/appdev.112/e10825/pc_08arr.htm#autoId33
Restrictions on Arrays of Structs
The following restrictions apply to the use of arrays of structs in Pro*C/C++:
Arrays of structs (just as with ordinary structs) are not permitted inside an embedded PL/SQL block.
http://docs.oracle.com/cd/E11882_01/appdev.112/e10825/pc_07pls.htm#autoId13
Do not use C pointer or array syntax in PL/SQL blocks. The PL/SQL compiler does not understand C host-variable expressions and is, therefore, unable to parse them.
Although the example uses an array of structs, simple structs also fail. I have always had to copy the fields to and from simple variables when calling stored procedures.
regards,
David -
Issues setting up a DDX file in Document Builder in Livecycle ES2
I am currently trying to create a DDX document in ES2's document builder, according to the tutorial at this URL:
http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.htm?content=003662.html#15553 09
I'm basically trying to render an XDP("myForm") by inserting fragments that I have specified("Fragment1") into the form.
Now, the example I mentioned above tells me to specify a source for my XDP content(which I assume is the folder where my fragments are kept), an insertion point for the fragment(which I again assume that it means the name of the subform of "myForm" where the fragment is to be inserted, which I have named "subForm1").
Then there is the fragment name, which I have specified as "Fragment1".
The DDX file validates fine, but when I try to preview the result, it firstly throws an 'xfa error' when I try to view it in the browser, and when I save the file and open it in designer it doesnt have the fragment inserted into it; just the base XDP form.
I am seriously struggling to find any help on this subject, so if anyone knows how to help, please do....
Regards
Ross MalanOK, found the solution.
I was missing the insertion point on the base document. All you do is specify a subform on the document inside designer as an insertion point, under the object tab, and then give it a name. Then you use that name again when specifying the insertion point for the XDP content in the document builder in workbench.
After that, the PDF should be generated with the fragments you specify. -
Currency Translation not working with "Time Reference from Variable"
We have created several Currency Translations using RSCUR with a fixed "Key Date". All have been working fine until we got the request to allow a variable date for the exchange rate date. I have built a variable on 0DATE which I am putting a default date value into using user exit. This default date is the SAME date as the fixed "Key Date" which we have been using. Unfortunately when we use the "Time Reference from Variable" option and use this new variable, no currency conversion is taking place, instead it only shows the original currency values. I am 100% sure that my variable is getting a value and it is the same date we are using for the fixed "Key Date" value so both methods should be using the exact same exchange rates. The documentation that I can find states:
● Time reference: The time reference for the currency translation can be either fixed or variable.
If the time reference is fixed, the time at which the exchange rate is determined is independent of the data. You have the following options:
○ You can establish that the time reference be determined upon translation.
○ You can select the current date.
○ You can specify a fixed date as the key date.
○ You can specify any variable that exists for InfoObject 0DATE.
○ You can establish that the query key date be used. This is determined in the query settings.
In my case I am only switching from option "You can specify a fixed date as the key date"=(Key Date) to "You can specify any variable that exists for InfoObject 0DATE"=(Time Reference from Variable).
What am I missing? Any help is appreciated.I neglected to mention that we are calling this currency translation through a WAD button using the SET_CURRENCY_TRANSLATION command. I did do a test by applying the currency conversion within query key figure. This seems to work. So it appears the issue is with how the WAD is processing the variable, not the query. When I display the variable in a drop down item within the WAD it does have the default value that I have assigned in user exit.
-
Using a DDX file to update a PDF file
1. can anyone send me an example of a simple DDX file (e.g. edding a comment) and how should i use it in order to edit an existing PDF file.
2. where can i find the full API\ SDK of this product?[email protected] wrote:
> 1. can anyone send me an example of a simple DDX file (e.g. edding a comment) and how should i use it in order to edit an existing PDF file.
> 2. where can i find the full API\ SDK of this product?
Look in the installation directory where you installed Assembler. You should see a 'Documentation'
folder. In it are two documents that you'll need: developer_guide.pdf and ddx_reference.pdf.
Justin Klei
Cardinal Solutions Group
www.cardinalsolutions.com -
Most elegant way to accept a variable number of files?
I am writing a program where I would like to accept a variable number of files to process. In my inexperience with LabVIEW I can think of several ways to do this, which aren't as user friendly as I'd like it to be.
I tried an array of file path controls. This will be the easiest to implement, but what I don't like is that you can't really see all the files you've inputted at once and if you select a file and want to erase it, it will query you for a file.
I tried a while loop with an empty file path to my Read Characters from File.vi, but I would like it so that the user can just specify which files they'd like to load without having to wait inbetween. Also, as I mentioned before, I would prefer it if the use
r could see which files they've decided to load and have the option of taking a file out if they should so choose.
I could try just fixing the number of files and have like 5 or so file path controls and do it like that. That seems like it would be clumsy and obviously has the problem of not being variable.
I'm just wondering if there is something that I haven't thought of, or if I have and which avenue would be the best. I feel fine about using an array of file path indicators, but wonder how I can remove indicies that are empty.Dan, use the special path constant called "Temporary Directory".
Another problem is the fact that you hardwire the path as a string ("c:\temp\...") instead of a path constant. This will make the code useless on any platform except windows.
LabVIEW Champion . Do more with less code and in less time . -
How to use variables in logical file name definition FILE
Hi Friends,
How can I use variables in logical file name definition (tcode FILE). The requirement is to pass value in these variables (based on selection criteria), and use it as part of file name. You quick response will be highly appreciated.
Thanks,
Kuldeep JoshiHi,
Thanks for your reply.
In detail, the scenario is like I have created an Open Hub. Its working fine. Now I am planning to execute this open hub using process chain and for that I have to define the file output on application server along with logical file name (using tcode FILE). The logical file name contains two variables (defined in FILE) i.e. z_dept and z_fiscperiod.
Filter value in DTP ( I will read these values from Ztable using routine )
Dept = R&D
Fisc period = 004/2009
Variables defined in tcode FILE:
z_dept for Dept
z_fiscperiod for Fiscal Period
Logical file name : <z_dept>_<z_fiscperiod>.csv
Now the challenge is to populate filter values in these two variables so that the filter value can be used for naming the output file.
My last option is to read/update SAP standard table used for storing variable values (i.e. PARAMVALUE)
Please let me know if you can help me in this issue OR is there any standard method/FM to populate value in these variables
Thanks,
Kuldeep -
Susbtitution Variables in rules file to replace a member name with another
Hi everybody,
Can I use substitution variables to replace a member name with another name in rules file?
Please let me know if we can use substitution vars.
Essbase version :11.1.2
Thanks,
K.asAre you the same guy?
http://www.network54.com/Forum/58296/thread/1287447433/Susbtitution+Variables+in+rules+file+to+replace+a+member+name+with+another+name
The answer is still, "No".
Regards,
Cameron Lackpour -
Noticed a pretty obvious bug in 5.0 ctrl+shift+d will bookmark all sites open but there is NO reference in any of the file menus, where is it located if you didn't know the shortcut from a previous version?
Right-click '''on''' tab to see that menu item.
-
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
Oracle 9.2 client ORA 8.1.7 Server:
Trying to run an SP in SQL navigator ( or PL/SQL)
I get the following error(s)
ORA-06550: line 6, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 6, column 3:
++++++++++++++++++++++++++++++++++++++++++++
Here's the Package and Proc Code with the errors at the end.
It seems not to like a Ref Cursor, but I'm not experienced enough to know the reason.
ANy Help would be very appreciated: AJACODE
++++++++++++++++++++++++++++++++++++++++++++
--Package Spec
Package RPT_NB_GUI_Param_Get_PKG
IS
TYPE rc_Params_gettbl IS RECORD (
o_QueryID Number,
o_ParameterID Number,
o_Param VARCHAR2 (20),
o_Param_Type VARCHAR2 (50),
o_Param_QueryID Number
TYPE rc_params IS REF CURSOR RETURN rc_Params_gettbl;
END; -- Package Specification RPT_NB_GUI_Param_Get_PKG
--+++++++++++++++++++++++++++++++++++++++++
-- Proc
Procedure RPT_NB_GUI_Param_Get_PROC
p_QueryID in Number ,
rc_ParamsGet IN OUT RPT_NB_GUI_Param_Get_PKG.rc_Params)
IS
-- Purpose: To generate Parameters for GUI
-- MODIFICATION HISTORY
-- Person Date Comments
-- AJ Grasso 04/11/2003 Created
BEGIN
OPEN rc_ParamsGet For
SELECT
QP.QueryID
,P.ParameterID
,P.Parameter
,PT.Parameter_Type
,PQ.Parameter_QueryID
FROM
rpt_Query_Parameter QP, rpt_Parameter P, rpt_Parameter_Type PT, rpt_parameter_query PQ
WHERE --inner join rpt_Parameter P ON
(QP.ParameterID = P.ParameterID)
AND --inner join rpt_Parameter_Type PT ON
(QP.Parameter_TypeID = PT.Parameter_TypeID)
AND --left outer join rpt_parameter_query PQ ON
(QP.Parameter_queryID = PQ.parameter_queryID)
AND (QP.QueryID = p_QueryID) ;
END; -- RPT_NB_GUI_Param_Get_PROC
-- ERRORS
-- +++++++++++++++++
ORA-06550: line 6, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 6, column 3:
PL/SQL: Statement ignored
ORA-06550: line 7, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 7, column 3:
PL/SQL: Statement ignored
ORA-06550: line 8, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 8, column 3:
PL/SQL: Statement ignored
ORA-06550: line 9, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 9, column 3:
PL/SQL: Statement ignored
ORA-06550: line 10, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 10, column 3:
PL/SQL: Statement ignored
ORA-06550: line 16, column 74:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 16, column 3:
PL/SQL: Statement ignored
ORA-06550: line 17, column 78:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 17, column 3:
PL/SQL: Statement ignored
ORA-06550: line 18, column 71:Oracle 9.2 client ORA 8.1.7 Server:
Trying to run an SP in SQL navigator ( or PL/SQL)
I get the following error(s)
ORA-06550: line 6, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 6, column 3:
++++++++++++++++++++++++++++++++++++++++++++
Here's the Package and Proc Code with the errors at the end.
It seems not to like a Ref Cursor, but I'm not experienced enough to know the reason.
ANy Help would be very appreciated: AJACODE
++++++++++++++++++++++++++++++++++++++++++++
--Package Spec
Package RPT_NB_GUI_Param_Get_PKG
IS
TYPE rc_Params_gettbl IS RECORD (
o_QueryID Number,
o_ParameterID Number,
o_Param VARCHAR2 (20),
o_Param_Type VARCHAR2 (50),
o_Param_QueryID Number
TYPE rc_params IS REF CURSOR RETURN rc_Params_gettbl;
END; -- Package Specification RPT_NB_GUI_Param_Get_PKG
--+++++++++++++++++++++++++++++++++++++++++
-- Proc
Procedure RPT_NB_GUI_Param_Get_PROC
p_QueryID in Number ,
rc_ParamsGet IN OUT RPT_NB_GUI_Param_Get_PKG.rc_Params)
IS
-- Purpose: To generate Parameters for GUI
-- MODIFICATION HISTORY
-- Person Date Comments
-- AJ Grasso 04/11/2003 Created
BEGIN
OPEN rc_ParamsGet For
SELECT
QP.QueryID
,P.ParameterID
,P.Parameter
,PT.Parameter_Type
,PQ.Parameter_QueryID
FROM
rpt_Query_Parameter QP, rpt_Parameter P, rpt_Parameter_Type PT, rpt_parameter_query PQ
WHERE --inner join rpt_Parameter P ON
(QP.ParameterID = P.ParameterID)
AND --inner join rpt_Parameter_Type PT ON
(QP.Parameter_TypeID = PT.Parameter_TypeID)
AND --left outer join rpt_parameter_query PQ ON
(QP.Parameter_queryID = PQ.parameter_queryID)
AND (QP.QueryID = p_QueryID) ;
END; -- RPT_NB_GUI_Param_Get_PROC
-- ERRORS
-- +++++++++++++++++
ORA-06550: line 6, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 6, column 3:
PL/SQL: Statement ignored
ORA-06550: line 7, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 7, column 3:
PL/SQL: Statement ignored
ORA-06550: line 8, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 8, column 3:
PL/SQL: Statement ignored
ORA-06550: line 9, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 9, column 3:
PL/SQL: Statement ignored
ORA-06550: line 10, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 10, column 3:
PL/SQL: Statement ignored
ORA-06550: line 16, column 74:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 16, column 3:
PL/SQL: Statement ignored
ORA-06550: line 17, column 78:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 17, column 3:
PL/SQL: Statement ignored
ORA-06550: line 18, column 71: -
Writing BitSet variable to a file
Hi..can anyone please tell me how to write a BitSet variable to a file? I tried using FileOutputStream...but no success.
Thanks,
FaisalThanks a lot for the reply...Please find below my code, and the error that I'm getting :
public static void toHex(BitSet v) throws IOException
static FileOutputStream outFile;
File f = new File( System.getProperty( "Programs" ), "cdr6.txt" );
outFile = new FileOutputStream(f, true);
outFile.write(v.toString());
--------------------Configuration: j2sdk1.4.1_03 <Default>--------------------
D:\Java\Programs\fileinputstream_bitset.java:25: cannot resolve symbol
symbol : method write (java.lang.String)
location: class java.io.FileOutputStream
outFile.write(v.toString());
^
1 error -
Writing complex variables in a file
Hi Dhaval,
could you explain me why i cannot write in a file my complex variable? Could i send again my files?
I can't solve my problem with Bo.
Thanks,
EmaHi Emanuele,
I tried to reproduce your scenario and observed the following.
1. the Response I got was a multiRef SOAP Message as follows from the Axis Webservice.
1 The response that I get is in the following multiRef format from the Axis Webservice.
<?xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getStatusResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<getStatusReturn href="#id0" />
</getStatusResponse>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
123
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
2. The Response that the BPEL Process Gets is just the following and not the actual value which is 123
<getStatusReturn href="#id0" />
Can you please confirm if this is correct in your case?
If so the values are never reaching the input variable for the file adapter.
Can you please see in the debug if the variable you are passing actually does get the values?
Thanks
Dhaval -
PLS-00487: Invalid reference to variable ' expression '
oracle database 10G
OS unix
One of procedure is giving error PLS-00487: Invalid reference to variable '<expression>' while compilation in above database while it is compiling
successfully in other database.
Is there any database error?PLS-00487: Invalid reference to variable "string"
Cause: A variable was referenced in a way that is inconsistent with its datatype. For example, a scalar variable might have been mistakenly referenced as a record, as follows: DECLARE CURSOR emp_cur IS SELECT empno, ename, sal FROM emp; emp_rec emp_cur%ROWTYPE; my_sal NUMBER(7,2); BEGIN ... total_sal := total_sal + my_sal.sal; -- invalid ...
Action: Check the spelling of the variable name. Make sure the variable was declared properly and that the declaration and reference are consistent regarding datatype.
Most probably the compiler "sees" some other type variable with the same name first which in the other database doesn't exist or is out of scope.
Regards
Etbin -
Anyone else having issues recently with DDX calls that seem to return corrupted text from recent PDF files. Coincidentally, Firefox 26 renders the same same document incorrectly.
AFC[email protected] wrote:
> 1. can anyone send me an example of a simple DDX file (e.g. edding a comment) and how should i use it in order to edit an existing PDF file.
> 2. where can i find the full API\ SDK of this product?
Look in the installation directory where you installed Assembler. You should see a 'Documentation'
folder. In it are two documents that you'll need: developer_guide.pdf and ddx_reference.pdf.
Justin Klei
Cardinal Solutions Group
www.cardinalsolutions.com
Maybe you are looking for
-
.
-
Ipod is frozen on do not disconnect screen....
i seriously don't know what to do with m ipod anymore. it's a 5 gen ipod video that i've had for less than a year. today i tried to sync it to my computer which is a sony vaio with windows xp and it got stuck on the do not disconnect screen. i plugge
-
Global variable in where (flux abap)
Hi after migration dataservices 11.5 to dataservices 4.2 sqlserver 2008 I have a job compositions a data flow abap which feeds out of target a table of the datawarehouse i have to declare 2 aggregate variable DATE_DEB and DATE_FIN and i use these va
-
GET ALBUM ARTWORK, HOW CAN I IF I DO NOT HAVE A LIBRARY?
HOW DO I GET ALBUM COVER IF SONGS OR NOT ON MY MUSIC LIBRARY, MEANING I ADD MY MUSIC MANUALY,RIP MY CD AND CREATE A PLAYLIST AND DRAG MUSIC INTO THE FOLDER,WHEN I CLICK ON "GET ALUM ARTWORK" NOTHING HAPPENS.. I DO NOT HAVE MY MUSIC ON MY HARD DRIVE A
-
Software Update has an option to "ignore update" is there any such option in iTunes in order to ignore download? I'm asking for 2 reasons. Number 1 is that sometimes I mistakenly buy the HD version, instead of the SD version, of a TV series and woops