Scripts adding variables

Hi all,
      How to add variables in Scripts
example : &J_1IEXCHDR-EXBED(16.2R)& and &V2& in layout
Thanks in advance

are you getting from print program ?
if so add under text element
P1  &J_1IEXCHDR-EXBED(16.2R)& ,,&V2&
here p1 is the paragraph format  maintain tab space
if you are getting from form routine then use below perform routine

Similar Messages

  • How to bind data from script created variable to embed element of XML schema (xsd) in "Data View"

    Hi, i have got another problem with livecycle designer scripting.
    I have got script line which is defining of string variable:
    var aaa = "this is my string";
    and i have got embed XML schema like this (it`s only short part of whole file):
    ... xs:element name="bbb" type="xs:string"/ ...
    After saving data to XML i would like to get "this is my string" as a value of my "bbb" XML element.
    To save this data i`m using submit button which is connect with submit.php file on my server.
    How to connect script created variable and embed XML schema element which is present on my "Data View" tab.
    Please help me a bit becouse i don`t know even where to search answer of it...
    Of course i know possibilities to create fake unvisible text field object and bind it with 'bbb' and than put "this.rawValue = aaa" to connect those two variables but i think that is not a good idea to solve it in that way. It`s too primitive

    i solve it, i should write this:
    xfa.datasets.data.bbb.value = aaa;

  • Bash scripting - adding $ to make a variable

    Hi,
    I'm trying to code the following, which should look like:
    test(){
       if [ ! -z "$PATH" ]; then
          echo PATH=$PATH
       fi
    test... but haven't been successful so far in in trying to pass "PATH" as a variable to the function.
    For instance, just do illustrate what I mean:
    test() {
       if [ ! -z "$[$1]" ]; then
          echo $1=$[$1]
       fi
    test PATHMaybe this cannot be done?
    I was also trying the following, but how to print the word PATH or $PATH
    in the function, instead of printing the content of $1 ?
    test(){
       if [ ! -z "$1" ]; then
          echo PATH=$1
       fi
    test $PATHI guess I could do the following, but perhaps there is another way?
    test(){
       if [ ! -z "$1" ]; then
          echo $2=$1
       fi
    test $PATH PATHI was also wondering about the "-z" if $1 resolves in a string that is too long. I just want to check if variable $PATH exists.
    Any ideas?
    Thanks!
    Edited by: Dude on Feb 14, 2011 7:36 PM

    Thanks very much!
    eval is the key. But in order to get what I wanted, I had to change it somewhat. Below functions finally produce the same output. (Thanks to you, I used eval as a search term in Google and found a similar example).
    howto()     {
       if eval [ ! -z "\$$1" ]; then
         eval echo $1=\$$1
       fi
    howto PATH
    howto2() {
       if [ ! -z "$PATH" ]; then
          echo PATH=$PATH
       fi
    howto2Edited by: Dude on Feb 15, 2011 6:10 AM

  • How to script creating variables based on input

    I am looking to do something that I am sure is possible but at a loss on how to do it. Maybe someone can assist. What I am looking to do is have a question that is asked, the input will be a number, what I want to do with that number is have it stored into
    a variable called "$variableX" where the X is the number someone enters.
    For example:
    Question:  Type a number from 10-20
    The user types 15, then the script outputs the Variable $Variable15, then when asked to enter a another number and they enter 19, then another variable is created called $Variable19.
    Hope this makes sense.   I was thinking of writing a bunch of If statements but I don't want to enter 10-20 of them, if one smaller script can do them all.
    Thanks,

    Yes, they will be asked "Are you adding a new disk to the server?", if the answer is yes then it will then ask for the disk number.  After they do that it will then say "Is there another disk to add?"  If so then it
    will run it again.  If no, then it will stop.
    You can wrap what I've posted above in a do loop to accomplish this.
    http://ss64.com/ps/do.html
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Peculiar problem with Essbase (Calc Script) - substitution variable / UDAs

    This is odd but I have a script like :
    VAR iloop=1,break=0;
    FIX(<required POV>)
    Loop (20,break)
    VAR Country_total1,Country_total2,Country_total3;
    FIX (@UDA(Entity,@ALIAS(@CONCATENATE("&Country",iloop)))) // &Country1, &Country2 - are substitution variables with UDAs stored as strings
    Statements;
    /* +<statements for calculating total values.. for that country and stored against variables>+ */
    Country_total1=Country_total1+ +<Calculation>+
    ENDFIX
    /* Second part : Now again the calculations stored in the variables are to be stored against specific entities */
    FIX (@UDA(Entity,@ALIAS(@CONCATENATE("&Country",iloop))))
    FIX(@ISUDA(Entity,<Check1>)
    ..... Assign to relevant account
    ENDFIX
    ENDFIX
    ENDLOOP
    ENDFIX
    Now the problem is that the first fix statement works just fine, but the FIX statement in the 'second part' throws an error
    Error: 1200354 Error parsing formula for [FIX STATEMENT] (line 66): expected type [STRING] found [EXTVAR] ([iloop]) in function [@CONCATENATE]
    If I hard code the 'second part' FIX statement to the substitution variable directly - it works just fine.
    How can the first statement work and not the second one ? They are exactly the same.

    Glenn, thanks - I hadn't thought of that :).
    But it still does not entirely solve my problem (please see my previous post depicting a requirement similar to ours )
    - We have lots of countries (50-60+ might be much more) and each country can have multiple entities (3-4 on an average - can go unto 7-8)
    - so good guess would be around 200 entities
    - So say I have to do it for 2 countries only (two entity types). Then I need 4 variables - 2 for each country ('country 1 ET1 total', 'Country 1 ET2 Total')
    When the list is 20 counties - variables become 40 :(.
    - Still leaving aside the 40 variables for a bit -
    There are subsequent steps of calculations which needs to be done based on these totals (which are exactly the same for all countries) - just that we need the correct totals to begin with and the rest is already stored in the DB
    So since I have a different variable for each country - I cannot write one single calculation block to use the variables sequentially one by one (can I ?)
    I might have to write a separate calculation block for each of these countries. (20 separate blocks)
    That's what I was trying to avoid and simplify with the substitution variable (but is not working)
    - Create substitution variables - which would store the alias of the required countries (2/10/20 as many required)
    - Loop through these substitution variables - using them one by one
    - So I just need one single block of calculation with all the variable in the calc script being reused after each country calculation is done
    - and the user need not go into the script, as the only thing that will change are the countries. And he can change it easily through the substitution variable.
    Edited by: Ankur on Jun 27, 2012 12:53 PM

  • Syntax error when adding variables in recordset (query)

    MySql,PHP,Dreamweaver,WindowsVista
    Hi I am receiving a syntax error: invalid quantifier ++ $orderNum;s*?> when adding two variables in the recordset (query) dialog box. I get the error when clicking OK.
    Here is what is entered:
    name: fieldname
    type: text
    default: -1
    runtime value: $_GET['Field']
    name: searchvalue
    type:text
    default: -1
    runtime value: $_GET['Search']
    Can anyone help with this?

    That's a completely separate issue. The error message is telling you that you have not defined the testing server correctly in the Site Definition dialog box.
    The Host directory field and URL prefix should both point to the same place, in other words, the root of your website. Host directory is the physical path, while URL prefix is the address you would put in a browser address bar.
    Select Site > Manage Sites. Select the name of the site, and click the Edit button. In the Site Definition dialog box, select the Advanced tab, and then choose Testing server from the Category list on the left.
    Depending on how your remote login works, Host directory should probably be public_html or just /. Use the same value as in the Remote server part of the Site Definition dialog box. The URL prefix should be http://gaylehansen.aisites.com/.

  • Script adding on to my flash on html page

    errors in page. this script is getting into my html page with
    the flash im adding into. my page does not show in the internet
    after upload. www.aurorabiomed.html/flashretreat.html. everytime i
    add a flash file into my webpage this script is added and my page
    has errors. it was not happening before i reformatted my harddrive
    and reinstalled dw8
    !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    <script src="../Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    </head>
    <body>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','120','height','600','src','assets/retreat07','quality','high','pluginspage','http://w ww.macromedia.com/go/getflashplayer','movie','assets/retreat07'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="120" height="600">
    <param name="movie" value="assets/retreat07.swf" />
    <param name="quality" value="high" />
    <embed src="assets/retreat07.swf" quality="high"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="120"
    height="600"></embed>
    </object></noscript>
    </body>
    </html>

    What is the location of this page in the folder structure you
    show?
    > is there something wrong with the source
    > path of the script?
    If you are getting the wrong path to the linked file, then
    your local site
    is not properly defined.
    > - mainwebsite_html folder
    > + assets folder
    > flashretreat.html
    > - scripts folder
    > - templates
    If the page you show below is in fact flashretreat.html, then
    the link that
    DW adds is correct - you have to go up one folder level, find
    the Scripts
    folder (I'm assuming you made a type in showing lower case
    above) and then
    find the required script in that folder -
    <script src="../Scripts/AC_RunActiveContent.js"
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "web_rookie" <[email protected]> wrote in
    message
    news:[email protected]...
    > in the preferences window, under code rewriting i
    disabled active content
    > for
    > 1. insert using browser safe scripts &
    > 2. convert tags to scripts on file open.
    >
    > my page works fine now. if i enable this options and the
    scripts folder is
    > also uploaded my page has errors. is there something
    wrong with the
    > source
    > path of the script? i tried transfering the folder
    inside my webpage
    > folder
    > together with the html pages and assets folder rather
    than at the root
    > folder
    > but still gives me the same error.
    >
    > - Site - Biomed (C:Biomed)
    > - mainwebsite_html folder
    > + assets folder
    > flashretreat.html
    > - scripts folder
    > - templates
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    > <title>Untitled Document</title>
    > <script src="../Scripts/AC_RunActiveContent.js"
    > type="text/javascript"></script>
    > </head>
    >
    > <body>
    > <script type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=7,0,19,0','width','120','height','600','src','assets/retreat07','quality
    > ','high','pluginspage','
    http://www.macromedia.com/go/getflashplayer','movie','as
    > sets/retreat07' ); //end AC code
    > </script><noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=7,0,19,0" width="120" height="600">
    > <param name="movie" value="assets/retreat07.swf"
    />
    > <param name="quality" value="high" />
    > <embed src="assets/retreat07.swf" quality="high"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    > type="application/x-shockwave-flash" width="120"
    height="600"></embed>
    > </object></noscript>
    > </body>
    > </html>
    >
    Text
    Text
    >

  • Bash - calling another script's variables

    Can I refer to and alter one scripts variables from another, as I with functions?
    Is it something like
    source other_script
    ...and then just referring to the variable by name?
    Komodo

    yes. When you source it, you get everything from that script -just as if it were copied and pasted to the one you are running currently.

  • Adding variables to match question slides

    Hi All,
    I am using Captivate 7 and need your help/idea/expertise on this. I am trying the following:
    Adding a drag and drop slide wherein I should be able to drop the source to any target.
    If the drop happens on the correct option (this is the challenge, how can I define the correct answer!), a message should flash saying "You are right"
    If even a single drop goes wrong, then I the right answers should flash, (this I can create a new slide though)
    But to set such conditions what should I exactly do? Please help.
    Thanks,
    Roja

    The title of your question is bit confusing. Why should you have to add variables to match question slides?
    The content of your question is totally different: each D&D slide can act as a question slide. It doesn't really have all the features of a question slide but most of them: Reporting, Score (only black/white, not partial score/penalty), Attempts, Actions On Success/Failure. When it is configured as a question its score will be reset when the user 'Retakes' a quiz with multiple attempts on quiz level etc. Progress quiz indicator will not be included however. And defining the correct answers is a breeze with the wizard or with the button Correct Answers.
    The best part about D&D are IMO the 'Object actions': you can specify an advanced action for each drag&drop act and that is what you need. Do not use a simple action, because it will release the play head. That action can show a feedback text/object that was previously hidden, it can apply an effect to an object like flashing, etc. This blog post was written for CP8, but can help maybe:
    Drag&Drop tips - Captivate blog

  • Empty Dropdown after adding variable reference to

    Hi ,
    I am facing a problem while trying to convert the currency from the report result.After right click and select Gloal currency translation ,it is giving me an empty dropdown menu.
    If I give a fixed date in the currency translation type in T- code RSCUR ,it works fine ,I get all the translation type I created in the dropdown menu.When I give a variable for time reference
    dropdown menu is empty.have anyone faced this earlier?
    we are on BI platform
    Thx
    sheeba

    Hi,
    First step is the check the data insde P table ( example /BIC/PXXX which will be there in the in master data and text tab)
    if you find the data for newely added attributes then it works fine.
    or else
    Delete the master data
    programs for individual IinfoObject  master data deletion:
    RSDMD_DEL_BACKGROUND or RSDMD_DEL_MASTER_DATA_TEXTS
    then delete the transformation and recreate the transformation followed by DTP once again
    activate all atributes individually once again
    load data to the infoobject and check it.
    you should be able to relove the problem
    santosh

  • Adding variables to LoadVars

    I have an application that reads a PHP script and populates
    the Flash applets using the following on frame 1:
    if (_root.c.n <= 0) {
    c = new LoadVars();
    c.onLoad = showContent;
    c.sendAndLoad("varReturn.php",c,"post");
    A combobox (created with the returned data) is created on
    frame 61. When a selection is chosen in the combobox I need to add
    the value returned from the combobox to the variable catvar, add
    this variable to the LoadVars object and run the script again. It
    seems to set c.catvar initially but when I use the 'sendAndLoad
    command the second time c.catvar isn't included.
    Is it possible to add variables to a LoadVars object created
    on frame 1 from frame 61?

    You are not using
    LoadVars.sendAndLoad
    properly.
    You need TWO LoadVar variables. One for the sending and one
    for the return values. You do not have an onLoad method attached to
    the send LoadVars object but rather for the return LoadVars object.
    Look at the example in help for
    LoadVars.sendAndLoad
    . It is a perfect model to do what you want to do.

  • Script Component - variables locked for read and write not available outside of post execute

    Hello,
    I have two Data flow task,
    Frist one has OLE DB Source and Script Component as Transformation
    I have package level variable called AllSiteIds
    In first DFT, i have a local varibale that is declared before PreExecute method and after ScriptMain:UserComponent line.
    This local variable is used in Input process method to concatenate the one of the row values like below
    SiteId = SiteId + Row.SID.ToString()+",";
    The package level variable AllSiteIds is set for ReadWrite on script component.
    In my post execute i am setting package level variable AllSiteIds
    Variables.AllSiteIds = SiteId;
    In my second DFT, i have OLEDB source and Script transformation and i am accessing the package level variable AllSiteIds in Preexcute but not able to do so and getting error mentioned in subject.
    My goal is to create string of all SiteIds delimited by comma and have it available in second DFT to be used in Preexcute.
    The sql command i am using to get all unique siteid's is
    Select SiteId from dbo.Services
    Group By SiteId
    Order By SiteId
    Using the result from above i need to create comma delimited string of all site ids' and store it in variable so i can use it in pre excute of second DFT.
    Please suggest on how to accomplish above?

    If all you want is to generate a string of ids then you can simply use a Execute sql task for this and use a query based on FOR XML PATH which will generate the string of ids
    http://visakhm.blogspot.in/2014/01/rowset-concatenation-with-special.html
    then inside execute sql task set resultset option as single row and store the result ina SSIS varaiable of type string.
    Once this is done you can then use this variable inside the subsequent data flow task 
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Issues adding variable production cost

    Hi
    I am having issues to find the correct way to add production cost.
    I know that basically a labour item that has cost in master data (Standard method) is added to the BOM and will then be added to the production order. However, this is a fixed cost, and even the same cost for every BOM/production oder.
    How can I add variable cost to the production that i can easily change at the end of the production?
    additional ...: I do receive invoices from external companies for the production/assembling - mostly some weeks after the production. Ho do i enter them into the system? Is there a way to link the received invoice to the cost of a production order?
    Thanks for your help
    Franz

    Thanks for your answer!
    Here's what I am going to do ... maybe someones interested in this too:
    - Create an item with standard cost evaluation and a standard cost of 1$ (I plan to use this in BOM for production cost and purchase, mainly)
    - Make this item a non-inventory, sales- and purchasing item
    - Add a price to the price list (needed if used in sales and BOM sales calculations)
    - Add the item, with a quantity relative to the production cost (external work) to be added, to the BOM / production order (i.e. 15.5)
    - Use the item to issue a PO for this external work
    - The production cost will be included in cost calaculation of item
    - The invoice for the external work can be added to the system and the item does not have to be reevaluated
    Franz

  • Adding Variables to ArrayCollection

    I cant get the Varaibles into my addItem.
    This works if I hardcode the qCUSN05:50
    public function handleQueryResult2(event:ResultEvent):void{
    myChart=event.result as ArrayCollection;
    myChart.addItem({qBRAD53:"Competition", qCUSN05:50,
    qCATG53:01});
    But this does NOT:qCUSN05:sResult6
    [Bindable]
    public var sResult6:Object;
    public function handleStringResult2(event:ResultEvent):void{
    sResult6=50;
    public function handleQueryResult2(event:ResultEvent):void{
    myChart=event.result as ArrayCollection;
    myChart.addItem({qBRAD53:"Competition", qCUSN05:sResult6,
    qCATG53:01});
    Any Thoughts? Thanks
    George

    I think this is a timing issue. You are setting the variable
    in a ResultEvent handler, and also using the variable in a
    ResultEvent handler. Maybe the variable is not set yet. Uncomment
    the line of the following code setting the variable in the other
    ResultEvent handler and you will see.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.rpc.http.HTTPService;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.collections.ArrayCollection;
    private var service:HTTPService;
    [Bindable]
    public var myChart:ArrayCollection = new ArrayCollection();
    [Bindable]
    public var sResult6:Object;
    //This works if I hardcode the qCUSN05:50
    public function handleQueryResult(event:ResultEvent):void{
    myChart.addItem({qBRAD53:"Competition", qCUSN05:50,
    qCATG53:01});
    //But this does NOT:qCUSN05:sResult6. I cant get the
    Varaibles into my addItem.
    public function handleStringResult2(event:ResultEvent):void{
    sResult6=50;
    public function handleQueryResult2(event:ResultEvent):void{
    // sResult6=50;
    myChart.addItem({qBRAD53:"Competition", qCUSN05:sResult6,
    qCATG53:01});
    public function init():void {
    myChart.addItem({qBRAD53:"Test1", qCUSN05:10, qCATG53:00});
    // This function just serves to fire a ResultEvent object.
    // We don't actually use the result.
    public function useHttpService(parameters:Object):void {
    service = new HTTPService();
    service.url="
    http://weblogs.macromedia.com/mchotin/index.xml";
    service.addEventListener("result", handleQueryResult);
    service.addEventListener("result", handleQueryResult2);
    service.addEventListener("result", handleStringResult2);
    service.addEventListener("fault", httpFault);
    service.send();
    public function httpFault(event:FaultEvent):void {
    var faultstring:String = event.fault.faultString;
    Alert.show(faultstring);
    ]]>
    </mx:Script>
    <mx:Button label="Use Service"
    click="useHttpService('Greg')"/>
    <mx:DataGrid dataProvider="{myChart}" width="100%"
    height="50%"/>
    <mx:TextArea id="txtArea" width="100%" height="50%"/>
    </mx:Application>

  • Adding variable in Report painter

    Hi Gurus,
    I am creating a new report using Report painter. Though, it is working fine, I want to bring one of the field for selection. How to add variable ? I created a variable but I am trying to insert this variable in the report painter... I am unable to find any way.
    Awaiting your help.
    thanks in advance.

    Hi,
    Go to Global Parameters Definitaion in report painter, variable will be used only along with the field, just in global paramerters enter your desired field and click in next column, system will show you a pop up select your variable for that field...
    now its just done run the report and test it!
    If you still not make it refer to standard report of such kind, you will surely get it....
    Regards,
    Sayujya

Maybe you are looking for

  • Phone recognized only in recovery mode

    What would make iTunes for windows 7 recognize iPhone in recovery mode, but not to proceeded with restore, stopping on the "snow cane". Completely not recognize restored iPhone, not even by windows auto play.  iTunes diagnostics runs with everything

  • Novice Trying to Set The CLASSPATH Variable

    I am trying to compile a file (which can be downloaded at http://java.sun.com/docs/books/tutorial/getStarted/QandE/FirstClass.java). Despite being able to successfully compile several other files, this particular one will not compile. According to my

  • Authorizations in report

    Hi all, I just need clarification regarding authorisations, my requirement is something like this, i have to pass two values for actvt & the field authorisation object - v_vfkk_fka activity - 03 & 02 field value - '001' & '002' . the code i have writ

  • Data usage in BlackBerry Curve 9380

    I am on a 250Mb allowance contract but don't know how to check how much data I have used so far. I am on Orange and I spoke to an advisor who said its best to reset the counter every month but I cant seem to find the counter. Any help??

  • Ecommerce solution for muse - For my client

    My client wants an commerce website that she can easily manage herself.  She wants the ability to upload pictures, add  and remove products, etc.   Does anyone know of a solution?  This person has very little experience with site building software, s