Displaying Changing Variables as Text

Hi there,
I'm working on a game in Animate that tracks several scores at the same time – six, to be exact. There are six personalities in the game, and the player's actions determine the positive or negative score displayed to each personality.
The player is presented with a situation and their action effects their score with one or more of the personalities. I'd like to know how to set a text field to change by a negative or positive value (not just changing to a specific number), based on which button the player chooses. I've created symbols for each of the six score fields, each one has a uniquely named text field inside the symbol.
Thanks for any help you can give!

Hi there,
Generally speaking, you want to create a variable with an initial value (setVariable), and then when you click on a button, update the variable value (getVariable, and then increment/decrement it, and then setVariable to this new value), and finally set the text field to the current value of the variable (getVariable).
Does that help? Let me know if an example file would help.
Joe

Similar Messages

  • How to display query variable in text element and format the text element

    Hi All,
    I want to display the value of the value of variable against fiscper3 and the value of the variable against 0fiscyear in the web application template from the query in the text element in the web template in BI 7 Web application designer.
    Also, in the web application designer I need to format the text element in the web application designer to set the text element to center the display change the size and make it bold. I am bit lost I cannot find these properties in the web application designer against the text element.
    Appreciate if you could kindly help.
    Thanks
    Karen

    Hi
    hope below tags would help you
    Re: Search by text on a variable
    Re: Need to display text part of TEXT variable in query designer
    regards
    nag

  • How to Display Query Variables in Text Titles?

    Hi experts,
    I have created a web template that has a query parameter screen and then displays the results in the form of charts and tables.
    My question is how do I display the parameters entered by the user in a chart title?
    For example if the user enters a date range of ISO Week 19 to 23, I want to display the chart title as: "Report Results - Week 19 to 23".
    I also want to do the same for a general title. I've tried using information fields, but they don't allow me to add additional text.
    Maybe I need to use some java script to get the parameter value?
    Keep in mind I am just starting out with this and I am using BW7.0 with the WAD.
    Thanks in advance for any assistance.

    Thanks for your response.
    I think you are referring to 3.5? Maybe 7.0 handles it differently?
    I've tried entering free text and then putting in a text web item that is hooked up to a data provider with a characteristic but that only prints out the characteristic header and not the actual value selected by the user.
    For example, I have the following:
    Report for week <text web item>
    Returns:
    Report for week ISO Week
    I would like it to return:
    Report for week 19
    Thoughts?

  • 0ORGUNIT short text displayed in variable selection screen

    Hello experts,
    I use the 0ORGUNIT as variable in the selection screen, when i use the selection button, the 0ORGUNIT is displayed as a hierarchy but the text are in short text.
    In the query, the text are well displayed in Medium-Lenght text.
    Where can i defined the parameter to obtain the same lenght for the selection screen?
    Thanks,
    Regards.

    Hello GALVAGNI,
    Go to the administrator of your InfoProvider and go to the dimension of your InfoObject 0ORGUNIT, right-click over 0ORGUNIT there and select "Provider-Specific Properties" then change the option Display to "5 Medium-Length Text".
    Assign points if helpfull.
    Diogo.

  • Static text | variable | static text

    i'm thinking i need a simple actionscript to do this but i'm
    not exactly sure. i have a dynamic text field that is loading a
    variable named count. however i would like to place static text on
    either side of the value of the variable. since the variable is an
    integer that will only increase, it's horizontal width will also
    increase as well. i can't very well place two strings of static
    text on either side of a variable that will grow in width over
    time. does that make sense?
    essentially, i want to have a dynamic text box display a
    string of text, then the value of a variable (that will change in
    length), then another string of text, but i would like it to all be
    seamless, looking as if i just typed the whole sentence in a word
    processor. thanks for your time!

    let say you have a dynamic text field with instance name
    my_txt
    when you want to increase the value, you run my_txt.text++;
    when you want to decrease the value, you run my_txt.text--;
    now, convert the dynamic text field to a movieclip symbol,
    set the instance name my_mc
    now, to set the value of text, we should use
    my_mc.my_txt.text++;
    but we are not going to set the value in this way.
    now, go into my_mc movieclip, select the 1st frame, attach
    script:
    var actualValue:Number = Number(this.my_txt.text);
    var displayValue:String = "";
    function setValue(d) {
    actualValue += d;
    displayValue = "something"+actualValue+"something";
    my_txt.text = displayValue;
    setValue(0);
    go back to your maim timeline. and now,
    when you want to increase the value, use my_mc.setValue(1);
    when you want to increase the value, use my_mc.setValue(-1);

  • Can I change the standard text for web item 'INFO_FIELD_ITEM'?

    Hello experts.
    I made a WAD template using web item 'INFO_FIELD_ITEM'.  In data binding, I used the 'Last refresh' of general text elements.   As a result, in the web browser I can see the last update date & time. (e.g. 'Last refresh: 2007.01.17 17:34:44') Then our customer want to change the default text "Last refresh" as "Working time".
    How can I change this?
    I tried to change the text symbols for program SAPLRRSV. But it worked only in Bex Analyzer not in the web.
    Our server version is Netweaver 2004s and SP10.
    Best regards.
    JY Park.

    Hello,
    I had the same problem - just wanted to display the values of a variable in an info-field, but not the caption.
    I found out, that there's a tag for Info-Field Item called ONLY_VALUES (it's the checkbox under the headers visible checkbox in the properties dialog of the Info-Field Item; in my WAD version, there's no label assigned to this checkbox, so it was not easy to find out what it should be),
    You have to set it to 'X' (check it) ; then you get the unformatted value of the variable (no caption anymore).
    <bi:INFO_FIELD_ITEM name="INFO_FIELD_ITEM_1" designheight="500" designwidth="350" >  <bi:WIDTH value="350" />
    <bi:HEIGHT value="500" />
    <bi:DATA_PROVIDER_REF value="DP_1" />
    <bi:HEADERS_VISIBLE value="" />
    <bi:ONLY_VALUES value="X" />
    You have to insert the info-field item between span tags so that you can define your own formatting values.
    The ONLY_VALUES tag works the same as the tag 'RENDER_AS_TEXT' you have with the text item , see
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    There's only one disadvantage: If you have chosen a lot of variable values (multiple selection), the variable string gets very long and no line break is performed, because all blanks in the string are replaced by nbsp's. I solved this with a little Java Script, replacing the appropriate nbsp-s with br tags.
    Hope it helps
    Beate

  • Display of variable value / Bex Web Apllication Designer

    Hello everyone,
    I am using the Bex Web Application Designer to broadcast a report in PDF format.
    In my WebTemplate, in the Info_Field_Item, i have to display a variable value : Company code.
    My problem is in the PDF generated.
    When the number of company code is 4, the result in the PDF is like this:
    Company code : Company1; Company2; Company3; Company4.
    But, when the number of companies is more than 4, for example 8, the result in the PDF is displayed like this:
    Company code : Company1
    Company code : Company2
    Company code : Company3
    Company code : Company4
    Company code : Company8
    It makes a problem of harmonization of reports, i tried many tests, but the result still the same.
    Please, can somone knows how to change it, the PDF result must be like this way (watever the number of companies):
    Company code : Company1; Company2; Company3; Company4; Company5; ...; Company8
    Thank you and have a nice day,
    Best regards.
    Amine

    I found an interesting link about creating Print versions of BI Applications.
    Here, the link, hope it helps:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/68ce8391886e47e10000000a422035/content.htm
    I made many tests in the Bex Broadcaster, but always the same issue.
    Also, i modified the size of the INFO FIELD ITEM, but it changes nothing in the final result.
    May be, there is a solution by modifiying the XHTML generated code in the Bex Web Applicatin Designer, especially the concerned line, but i don't knwo how to do, may be somone?
    the concerned line is like this:
    <bi:INFORMATION_ELEMENT_LIST type="ORDEREDLIST" >
                            <bi:INFORMATION_TYPE type="CHOICE" index="1" value="VARIABLE" >
                                <bi:VARIABLE value="AB_COMPANY" text="Company Code" />
    I am waiting your answers
    Best regards,
    Amine

  • WAD: change variable description in Info Field

    Hi guys,
    I have created a Web Template with the Web Application Designer (WAD). Using an Info Field item (Info Filed properties > Data Binding > Text Element Type > Variable Value ) I displayed the variable filter value used to launch the Web Template. The available values are: Default, Manual and Listed. I have to choose one of the listed variable changing the variable description. I tried to change it also changing the XHTML code, but launching the Web Template the system automatically recalls the original variable description.
    Can anyone let me know how I can do it?
    Thanks.
    Edited by: D-Mark on Sep 22, 2009 11:11 AM

    Hi Giulia,
         We cant do this WAD , need to do it in query designer.( Cant edit a query in WAD)
         If u want to change the descriptions of the chars u created, u can do it in the infoobject level it self.
    Regards,
    Priya.

  • Displaying a variable

    I have variables for each players score as global variables
    and i was wondering how to display them on the game board
    in text boxes
    if it's possible?
    thanks,
    Aaron

    Wow i just thought i'd have a wade through your code and
    found myself doing dog-paddle! After working out how to replicate
    your error by making the game think i'd won a game(i worked out i
    had to get all three across the top right with the first square
    last) i then experimented with a few changes that i thought might
    be causing problems:
    i removed the dynamic textboxes from the graphics they were
    in - i don't think this is a very good idea as they would not be
    able to be targetted - if they need to be inside a symbol best to
    put them in a movie-clip.
    i embedded font symbols(just numbers) - ideally you would do
    this if you've selected anti-alias for animation.
    i removed the instance names for the text fields as they were
    the same names as the variables contained within the text fields
    which could cause conflicts.
    but the winner appeared to be: i changed all your global
    variables to _root. in doing so i found several places where you
    had referenced local variables where i believe you meant to
    reference global variables. i don't know exactly what the problem
    was but i know it was when i reached this stage the problem
    resolved itself and the dynamic text boxes updated correctly. i'm
    not very familiar with global variables and text boxes as i rarely
    use global variables - i believe it's not best coding practice to
    use them(as it is to use _root as well, incidentally. but when
    you're learning best practice may not be that important i guess!)
    hopefully this helps
    craig

  • Displaying Session Variable on Dashboard & creating presentation variable

    Hi.
    I read a bit more on mysupport and it seems that :xdo_user_roles somehow displayes all kind of roles not the ones that the user acutally belongs to.
    Now I wonder if I can use NQ_SESSION.GROUP in the BI Publisher data model.
    (A)I figured that I can create a "list of values" in the data model and there I can select Oracle BI EE as a data source. maybe in the repository I can create a column that holds the nqsession_groups that I then use in the data model sql. assuming I can use a list of values in the sql.
    (B) or I pass it as a parameter to the report/data modell just like a normal dropdownlist parameter (presentation variable)
    Then I tried adding a text item on the dashboard with
    @{biServer.variables[NQ_SESSION.USER.displayName]}
    or
    Session Variable My Year : @{biServer.VARIABLES['v_USER_GROUPS']} *
    BUT none of them actually display any variables. :/
    *this one I created in the repository and has the correct values                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    When I remove "authenticated-role" from the BIConsumer Role in EM and visit my dashboard again I can see that the user is ONLY in role "AuthenticatedUser" now I wonder why this is the only one, I created a custom role in EM and added the user to that one but it does not show :/

  • Changing PO item text when material number changed in ME22N

    Hi all,
    I am facing a problem as described below. Please provide me a concrete solution.
    My customer wants me to add a custom item text as Work Authorization Data in ME21N and ME22N. I have created a user exit to implement this requirement. So whenever the user enters a material as a PO Item and saves the PO, my user exit is invoked and the custom data pertaining to that material is displayed as an item text. Later when the user edits the PO and changes the material number from any line item, the system deletes all the item texts corresponding to that line item.
    My problem is, after that when my user exit is invoked, the corresponding text is not getting stored. If I change any other data (like quantity or unit) again and saved, then the text gets saved.
    Can anyone provide me solution to make this item text get saved at the time of  change in material number itself.
    FYI, I am working on SAP R/3 - 4.7 version. If more details are needed then I shall provide them.
    Thanks and regards
    Abdul Shabeer.

    Hi,
    it does not matter if the BADI is already implemented. You can add your additional logic there. If you put break points in all methods of BADI implementation and run ME2xN then you will see when is each method called. You are right that here is no BADI method SET_DATA. What I meant is that you get a reference to PO item (type IF_PURCHASE_ORDER_ITEM_MM) in BADI method PROCESS_ITEM. This interface has to methods GET_DATA and SET_DATA. Using these methods you can get current item fields and change them according to your needs.
    Cheers

  • Material Master- Display changes thr' Z-program

    Hi,
      I have created two custom fields in MM01, which appear as DISPLAY
    only fields.
    The value in these fields is populated depending on some another
    Z-field. This value is populated in database table thr' one Z-program.
    But reqmt is like, whenever the value is changed thr' Z-program,
    material master - Environment Menu>Display changes, should display the
    change history for that material.
    Can we use some 'CHANGEDOC*' function modules in Z-program so that it
    will record the user name , tcode, time and date in CDHDR table?
    If yes, what are those FM's and what should be the sequence for using
    those function modules?
    Thanks in advance,
    Prasad

    Hello,
    First you will have to go to the domain level and click a flag for change documents in attributes. Once you have done that you need to put those fields in the object for mara. For that you need to go to transaction SCDO. Find the the material object and add your fields there. Do not forget to regnerate teh program. Now once you have done that try to see if you are getting the change pointers if not then you will have to code to create the same using these
    <b>
    SCD0                           Change document creation                                     
    CHANGEDOCUMENT_CLOSE           Change document: Close change document creation              
    CHANGEDOCUMENT_INSERT_NUMBER                                                                
    CHANGEDOCUMENT_IS_GENERATED                                                                 
    CHANGEDOCUMENT_MULTIPLE_CASE   Change document: Create change document items (multiple case)
    CHANGEDOCUMENT_OPEN            Change document: Open change document creation               
    CHANGEDOCUMENT_PREPARE_TABLES  Change document: Edit tables for change document             
    CHANGEDOCUMENT_SINGLE_CASE     Change document: Create change document items (single case)  
    CHANGEDOCUMENT_TEXT_CASE       Change document: Create change document items (text case)    
    </b>

  • When attempting to open a hyperlink to a PDF file on the web from a Microsoft WORD for Mac 2011 (14.3.9) document, Safari 7.0 instead displays the file as text?

    When attempting to open a hyperlink to a PDF file on the web from a Microsoft WORD for Mac 2011 (14.3.9) document, Safari 7.0 instead displays the file as text?

    As seen in http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/has-the-word- 2011-for-mac-invisible-toolbars/018a3ab6-0570-4ad5-abf8-5b6427fdde3e?msgId=e111b f0a-0e32-4fa3-9536-f349dad8439d
    and it worked for me:
    1. Quit Word
    2. In the Finder's menu bar, select Go > Go to folder and type or paste: ~/Library/Preferences/
    3. Click on Go
    4. Locate the preference file com.microsoft.Word.plist, then Option-drag it to the desktop to create a backup copy
    5. Go to Applications/Utilities and open Terminal
    6. Paste the following bold command at the $ prompt (it's a single line):
         defaults write com.microsoft.Word 14\\Toolbars\\Show_HIToolbar -boolean TRUE
    7. Press Return and then quit with Command Q
    8. Start Word and test. If the fix works, trash the backup file in the Desktop file. Otherwise, restore it.
    In the original source the author also mentions the change in Word 2008

  • Display a warning message (text) for document up/download in cFolders

    Hello,
    We are working in the development system of cProjects Suite 3.1 on the cFolders application. Lets say there is a collaboration which contains a folder which in turn contains a document. On clicking the document name the document details are displayed. Under the window "Current
    Version" the following text message is displayed:
    "To display the file of the current version, click the hyperlink. To edit the file of the current version, choose "Checkout" if you want to change it online, or download if you want to change it locally"
    We want to change the message text as follows:
    "To display the file of the current version, click the hyperlink. To edit the file of the current version, choose Checkout. Using the "Upload" button will result in overwriting the latest version"
    Kindly suggest the means to achieve this.
    Best Regards
    Deepak Umrankar

    if the doc is checked out
    Then
       it will use this OTR text 
       CFX_UI/INFO_DOC_DE_CONTINUE_EDIT_APP
    ELSE
       CFX_UI/INFO_DOC_DE_EDIT_APP

  • Workbook refresh displays key instead of text

    Hi,
    We are on NW2004S rampup. Our support pack level for Quality environment is 7. When we execute the workbook in management cockpit in transaction UMM_PRES, the calendar month is displayed as text. When we refresh workbooks, the calendar month changes from text to key., like from Jan 2006 - May 2006 to 01/2006 - 05/2006. This happens for every refresh. On the other hand when we log back and display, text is shown and with every subsequent refresh key is displayed. This does not happen in Quality system under 3.0b version. My search on OSS notes does not get any relevant  one. Anyone having similar experience?
    Thanks.
    Param

    Hi David,
    I am able to get the result as text only after each refresh. This is made possible as follows:
    In RSD1, I changed the following under BEX tab.
    Display  changed to Text
    Text type changed to medium type
    The Text type is  new one in 2004S as compared to 3.x.
    Tnx.
    Param

Maybe you are looking for

  • Can we design professional PHP websites in Dreamweaver CS6 ?

    Can we design professional PHP websites in Dreamweaver CS6 ?

  • HR: POSTINGS TO FINANCIAL ACCOUNTING

    Below is the menupath for HR postings to FI. I want to understand where are they linked to FI. How can I see the G/L accounts these symbolic accounts are linked to. SPRO -- Payroll -- Payroll USA -- Posting to Financial Accounting -- Activities in HR

  • Rfc with trusted systems

    Hello! I configure system landscape via SMSY and I try to generation rfc connection for added system using wizard. My system is Solution Manager 4.0,  client is 001. In future I hope to use solman for SP download approving. What client in trusted sys

  • ORA-00600: internal error code, arguments: [kcratr_nab_less_than_odr], [1],

    Hi All, In our lab 11gR2 RAC setup is up and running (11.2.0.1). Last night due to some issue with power or power failure servers went down directly. When restart the RAC server, all the RAC related services are up and running except second node VIP

  • Safari hangs at loading a page

    Hi, sorry my bad english. I am a German User but no German Board can help me. Since Monday I have a problem with Safari. When I want to load some page, the Apple-umbrella comes and Safari hangs. Safari started with a blanked page so i can used Safari