How do you reference a created global variable in a report text field?

I have created a parameter using the Globaldim statement in a script file. when I reference this parameter in any other script file during the current DIAdem session the value is passed without any issue.  Call the variable parmxyz where I assign it a value of 25.3 
The help section under Globaldim mentions that global variables can be referenced in all panels, scripts, and dialogue boxes.  When I try to insert a text box on a report page using the @@parmxyz@@ it returns NOVALUE where I expect to see 25.3 (for example).
When I substitute @@CurrDate@@ I do get the date, so I know the text box is valid.  What am I doing wrong?
Steve    M 

Hello Steve!
It should work the way you did it. But their are some circumstances wich might prevent it:
You have reseted the global script engine. All variables will be lost.
You have a Sub with the same name in a command extension script. There is no warning ;-)
One Test you can make is to put in '@@TypeName(paramxy)@@' as the expression to see the variable type. You can also try a realy unique variable name. The last option is to use ItemInfoGet to get detailed infos about your variable.
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  

Similar Messages

  • How do you reference a Formular Object on a Crystal Report using Java

    Hi all,
    I am trying to reference an object on my report which contains a Formula field.
    I have read the following 2 threads, but they refer to textObjects:
    [How do you reference a textObject on a Crystal report using Java|Re: How do you reference a textObject on a Crystal report using Java?]
    [Changing the text of ITextObject programatically|Re: Changing the text of ITextObject programatically]
    But I cannot even get those to work. I can reference a object which refers to a database field but as soon as I try
    reference a textObject or reportObject I just get a NULL variable.
    Below is the code I am useing
    IReportObject dbField = reportClientDocument.getReportDefController().findObjectByName("BOB1");
    IReportObject textBob = reportClientDocument.getReportDefController().findObjectByName("BOB2");
    "BOB1" is the name of my DB field Object, and "BOB2" can be a Text box or a Formula item and I just get nothing.
    I have just tested it with a FieldHeadingObject and that returns a valid object, so clearly I am going about this the wrong way
    for objects I place on the reports which are not driven by the database items.
    Ultimately what I want to do is reference an object in the Report Footer which will contain the RecordCount of the number of
    records contained in the report, which I am them going to use to determine if the report holds data,
    if it does I will print it, else ignore it and move on the the next report. I am doing this so that I can at an extra filter to split
    a report up into groups and produce a sinlge PDF for each group instead of one massive PDF containing all the groups.
    So if someone has a solution to any of my problems I would be very greatful, and I dont mind being told Im an idiot and should
    rather do it another way, as long as you supply that other way
    Thanks for the help
    Darren
    Edited by: Darren Jackson on Dec 16, 2009 7:29 PM
    Forgot to add am using CR4Ev2 SP3

    Right I have made some headway.
    Firstly, Im an idiot. I was making changes and setting up test fields on my report, but then when running the app, I had it looking at
    the backup report, which would explain why all the new textbox fields were not being found.
    The stupiditity did force me to delve deep and work out a fair bit of how the reports work, so cant complain too much. BUT, I am still
    not able to return values of Formula fields and formulas extra. Could someone tell me if this is even possible. I get retrieve the formula field
    name, and properties but not its value once the report has been populated. Am I wasting my time?
    Well I will continue dismantling my reports till I find the answer, or someone points me in the right direction.
    If any one is interested this is the code I used to drill down to my text boxes:
    IReportObject recCount = reportClientDocument.getReportDefController().findObjectByName("TB1");
    ITextObject obj_RecCount = (ITextObject) recCount;
    System.out.println(obj_RecCount.getName());
    Paragraphs objP = obj_RecCount.getParagraphs();
    for (int i = 0; i < objP.size(); i++){
         ParagraphElements pE = objP.getParagraph(i).getParagraphElements();
         for (int j = 0;j < pE.size(); j++){
              IParagraphTextElement pEE = (ParagraphTextElement) pE.getParagraphElement(j);
              System.out.println(pEE.getText());
    Cheers

  • How do you make the button to be displayed beside the text field?

    I need help on doing this for a company. As of above subject.

    In the intern's defense, that documentation isn't what I would call a "quick read." It's virtually >impossible to assimilate all the voodoo in one gulp. And the whole branches, buttons, items and >layout stuff is pretty frustrating. I'm just getting started, and I can sympathize with the tone of >voice. I couldn't disagree more......
    In my experience, a prerequisite of learning any computer language or system is reading the associated documentation. If you're the sort of person who likes to just dive into writing code without understanding the fundamental basics of how the language/system works then you're going to encounter lots of problems no matter whether you're using Apex, Java, Perl etc.
    Nobody is saying that you should spend days and days reading the documentation as though you were preparing for an exam, however if you don't take the time to learn some of the basic concepts then the only person who is going to suffer is you (and also perhaps the users of your system!).
    If you feel the documentation is too big for you to take in in one sitting, then break it into chunks. Set yourself a few little mini-projects to do, with each one using a different piece of functionality (for example reports, branches, collections etc).
    The more you put into learning (and using) Apex the more you will get out of it.

  • Creating global variables

    Hi,
    I am searching for the best way to create global variables so that the script can work on all adobe reader versions . I tried gobal.varibaleName at the initialize event of the form, but it is only working in the earlier versions of designer. I tried using script variables, but it always initializes the variable to string value. I have wrote some functions on the script object, and every time any functions fails, a  global variable count gets incremented. At the potsave event of the form if the count value is greater then 0 , a simple warning message is displayed . Now how to declare and initialize and increment this count variable so that the script can work on all the versions of adobe reader ?

    You need to change your code little bit..
    First,
    All Global Variables are String Type. If you use a "+" sign to add a number it will treat the value as string and append at the end.
    So if you want to do numerical calculations on the global variables first you need to convert them to the right type.
    In the below code I am parsing the value to an Integer type first before I increment it.
    Second,
    You have created a variable of name "count" which could be a reserved name. Try to avoid the reserved names for variables. So I created a variable "intCount".
    Third,
    After incrementing  value if you want to assign the value back to a Global variable you need to conver it to String type. (the opposite way like you did earlier in step 1 by converting String type to Integer)
    var a = parseInt(intCount.value) + 1 ; //Step 1
    intCount.value = a.toString();   //Step 2
    var b = parseInt(intCount.value) + 1;  //Step 3
    intCount.value = b.toString();  //Step 4
    Thanks
    Srini

  • How to Set and Use a global variable within a session?

    Dear All,
    I'm new to jsp, and would like to ask how to set and use a global variable within a session?
    Thanks in advance.
    Regards,
    Cecil

    With session.setAttribute("name",object) you can store a Attribute in the session object.
    with session.getAttribute("name") you can get it.
    That's it.
    Regards,
    Geri

  • How can you tell who the original sender of a group text is on an iPhone 5, when all that appears is a list of recipients in no particular order

    how can you tell who the original sender of a group text is on an iPhone 5, when all that appears is a list of recipients in no particular order? I can't seem to identify the sender in the details list.

    Start a separate thread to the original sender.

  • How do you change the color of the sign and fill text to the color blue

    How do you change the color of the sign and fill text to the color blue in a pdf document

    Is this using the "Fill & Sign" tab of https://cloud.acrobat.com/fillsign (for now text input is only black) or maybe using the Fill & Sign tool in Adobe Reader XI, or another application? 
    Thanks,
    Josh

  • HT4993 How do you turn the weird sound off when sending a text using the iPhone 4S

    How do you turn the weird sound off when sending a text using the iPhone 4S?

    Go to Settings-Sounds-Text Tone and change to None.  You're referring to the sound when posting a message to someone else, correct?  The only issue is if you set to none, you will not hear the incoming either.

  • How do you add the contact who sent out a group text?

    How do you add the contact who sent out a group text? Also, how do you reply to the sender without having to reply to everyone in the group text?
    Thanks

    bmm243 wrote:
    Is this feature equip for apple phones?
    No.

  • How do you add little icons (smilie faces etc) to a text message?

    How do you add little pictures (smilie faces etc) to a text message?

    I forgot to mention I have an iPhone 4s

  • How do you change categories in both transactions and budget report in the personal budget template in Numbers?

    How do you change categories in both transactions and budget report in the personal budget template in Numbers?
    I am working on both an iPad mini and a MacBook Air. 
    Whenever I change the category name in the budget report, it does not actually show up in the transactions tab when I am using the Personal Budget Template. 
    I have already tried copying and pasting a category in the budget report to add another row but it still does not show up in the transactions tab. 

    Hi golmeda,
    Check out this answer here:
    Using Numbers Personal Budget template I can't figure out how to change the categories in both tabs (budget and transact…
    If it is unclear let me know.
    quinn

  • How can I obtain a reference to a global variable?

    I wish to change the contents of the columns in a global multicolumn listbox. As far as I can see, the only way to access the columns in a multicolumn listbox is to create a reference to it and access the ItemNames property. But how can I create a reference to a to a global variable?

    You can open a reference to a global as if it is a normal VI and then get a reference to a control on that VI. I have included a little VI here with a test global variable to get the item names from an MCL in that global. I needed the MCL in the main program just to force the reference to a strict MCL reference. You could turn this into a sub VI that just returns the item names of a named MCL if that works better (then the MCL that's only used for reference would not be on your main front panel).
    This VI searches through all the names of the controls on the referenced VI until it finds the one that's asked for.
    Have fun with it.
    Rob
    Attachments:
    Get_Ref_to_MCL_in_Global.zip ‏158 KB

  • How do you get a station global or any variable to be read across UUTs executing in the parallel Sequence model?

    Dear  Support,
    I have two questions regarding the parallel sequence model:
    I am trying to find a global variable or any variable that can be universally read from any thread / step .   For instance:
    - Parallel sequence Model
    - 2 UUTs
    - The main sequence has 20  steps
    - I am looking for a variable that can be read universally across both UUTs in any step.  I have tried many, even the station global variable - as a Boolean - for "Abort" .  But that did not work either.
    Question TWO:   How can I bring out this universal variable to the UI ?  Can you point me to an example?    Do I use the "Lookup"  ,.  I could not get that to work.  Can I use the "Label"  ?  I could not get that to work neither.
    Thanks! Brad
    Brad Whaley
    LabVIEW Certified Engineer

    1. http://digital.ni.com/public.nsf/allkb/21368C716B06780A86256A5C007075DB
    2. Post UI Message http://zone.ni.com/reference/en-XX/help/370052K-01/tsapiref/reftopics/engine_postuimessage_m/
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • How do you reference the main timeline of swf1 from swf2 when swf2 is loaded into swf1?

    on this link          http://kb2.adobe.com/community/publishing/918/cpsid_91887.html
    I found this script, but I can not use it can anyone help me
    // create a variable to reference swf1's main timeline
    var swf1Main_mc:MovieClip;  // this assumes that swf1 is a movieclip.
    // create your listener to ensure this loaded swf has been added to the display list and can therefore obtain a
    // reference to its main timeline (which is always the main timeline of the loading swf).
    this.addEventListener(Event.ADDED_TO_STAGE, initF);
    function initF(e:Event):void{
        swf1Main_mc = MovieClip(this.root);

    You don't make it clear what event finish is for. But let's assume that your MC is being loaded from the clip that you're referring to as root. In the main Document Class of that swf, you'd have
    protected var customSwf:CustomSwf;//customSwf is the Class that defines your functionInSwf1protected function someFunction():void {
         var loader:Loader = new loader();
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE onLoaderLoaded);
         //rest of your loader loading code here
    protected function onLoaderLoaded(e:Event):void {
          //add to display list (you already know how to do, so I'm not writing the code)
         EventDispatcher(e.target).removeEventListener(Event.Complete, onLoaderLoaded);
         //if you had a legitimate need for path (which you don't) in mcExternal, you'd set it like this:
         this.mcExternal.path = LoaderInfo(e.target).content as MovieClip;
          //this is what you actually need to care about to do this correctly
          customSwf = LoaderInfo(e.target).content as CustomSwf;
    Now, the Class that you apply to the library symbol you're using for mcExternal should have code similar to this:
    protected function fEvent(e:Event):void {
         dispatchEvent(new Event('giveYourEventADescriptiveNameBasedOnWhatYoureReallyDoingHere', true));
    back in your main document Class:
    //should probably call from the constructor or somewhere early in the process
    protected function init():void {
         //use your real event name--your code isn't expressive enough I could guess a good name
         addEventListener('giveYourEventADescriptiveNameBasedOnWhatYoureReallyDoingHere', onEventHappened);
    protected function onEventHappened(e:Event):void {
         customSwf.customFunctioninSwf1();
         customSwf.changeVisualState();//let custom swf change alpha and change the frame #
    To the untrained I, this looks like about the same amount of code and slightly more trouble, but changing the design like this will make it much more tolerant of the changes that nearly all clients will want after you've built version 1. mcExternal's code doesn't have to change at all if swf1 changes, and your root Class already knows abotu swf1 anyway, since it's doing the loading, so having it work with it a little more doesn't hurt.
    Moving the change of visual state into your custom swf means that changes in that swf won't affect your main document Class, though you will probably have to recompile the main document unless you go to using an Interface (a topic for another day).

  • How and where will we create " hierarchy "variables?-urgent

    hi,
    how to create hierarchy variables?
    where they will be seen while creating a query?
    plz tell in detail..
    Message was edited by:
            neeraja devi

    Hi,
    Refer this
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/8db07d555411d189660000e829fbbd/frameset.htm
    When you maintain a local variable for a hierarchy node, you only need to enter the replacement type. If you want, you can also enter an identifier for the variable. For variables for hierarchies, you can only maintain an identifier, since replacement is automatically mandatory.
    When you maintain global hierarchy variables and choose replacement type "2" (replacement by manual entry), be sure to enter "3" (Mandatory variable which is not blank (technical)) in the field Optional entry.
    Hope this helps
    Regards
    Karthik

Maybe you are looking for

  • Multiple security audit failures a second

    A client's SBS 2011 machine is experiencing multiple audit failures a second and we believe it is diminishing the performance of the machine. We can't seem to find the source or how to remedy the issue. It its happening way too fast to be a human try

  • Audio and Video out of sync in PPCS6.0.3

    I imported a video clip into Adobe Premiere Pro CS 6.0.3.   I noticed that the video and audio are out of sync.   I played the video file through Windows Media Player and the audio/video are in sync.  However at 8min42sec, I noticed that the video be

  • Codecs to work with AE

    Ok, i have a piece of footage that a teacher gave me and I can't plat it because  it was encode on a Mac( I have a PC - Vista) and my system doesn't have the right codec. Makes sense. FOr the life of me I can't tell which one I am supposed to go find

  • Enhancement of Standard Datasource in LBWE.

    Hi, I am enhancing the standard datasource for additional fields from the extract structure in LBWE. I have selected the fields in maintenance and pushed them into the selection criteria (first column), and saved the daatsource change in a request. b

  • PSSimTarget.jsp: Problem in Simulating the Sun ONE Portlet Builder

    Hi there, I am getting exception when I simulate the provided examples with Sun ONE Portlet Builder 2.0 Plugin. The following error occurs in The Error Message Area: Errors generated by provider instance - see log output Error in provider method getC