Variables in LiveCycle question ?

Can anyone tell me why this doesn't work with a form variable???
This works:
Button.border.fill.color.value = "255,0,0";
This doesn't:
Button.border.fill.color.value = "myColor.value,0,0";
(myColor is a Form variable that is 255)
Thanks in advance, I can't get it to work......
Rod

Hi Rod,
Try:
var myColor = "255";
Button.border.fill.color.value = myColor + ",0,0";
Let me know if that doesn't work for you.
Rod

Similar Messages

  • 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

  • BOM:  Variable-size item  Question

    Hi,
    As you all know, we can set the item category as <b>R: Variable-size</b> item in BOM when creating or editing BOM via Tcode CS01, CS02,
    My question is, when we need to use Variable-size item, what's its main fuctions? could you please give me an example?
    Thanks and best regards.

    This item category is used for components that are cut to size. If you assign a material with this item category to an activity , you must also enter data for the item. The system then calculates the necessary variable-size item quantity. Otherwise processing is as for item category L.
    Example: Variable-Size Item Data for a Sheet of Metal
    Size             dimension          Entry      Size unit
    1                 Lenght             200         MM
    2                  Width             300          MM
    If you do not enter a formula, the system calculates the quantity for the variable-size item according to the standard formula:
    Size 1 * Size 2
    The result has the dimension area:
    200 MM * 300 MM = 60,000 MM2 (square millimeters)
    The variable-size item unit must have the dimension area (MM2, CM2, or M2) or you must maintain conversion factors in the material master record.
    In the customizing of Bill of materials you must maintain the formula key for variable size item category for R.
    The variable-size item quantity is used for calculating raw material requirements:
    Raw material requirement =
    Number of variable-size items * Variable-size item quantity * Required quantity
    Base quantity
    Regards
    TAJUDDIN
    Message was edited by:
            TAJUDDIN MOHAMMED
    Message was edited by:
            TAJUDDIN MOHAMMED

  • Merging data with LiveCycle questions

    I have LiveCycle Designer 8.0 and I didn't find a forum for it so just point me in the right direction if this is not the place.
    I have a couple of questions with merging data with Livecycle PDFS
    1. XDP is the file format for merging data with LiveCycle created PDFs (FDF was with Acrobat)? if not, what is the format?
    2. We want different colors of the same PDF without actually making the different PDFS, is there a way we can do this through the merging the data?  For example: In the XDP file, we specify the color of the border of a rectangle.  When the PDF merges with the data, will the PDF be able to change the border of the rectangle with the specified color?
    3. Can a picture (a specific size) be merged in the PDF?
    Thanks!

    1. XDP is the file format for merging data with LiveCycle created PDFs (FDF was with Acrobat)? if not, what is the format?
    An XDP file is simply an XML file that packages a PDF file in XML, along with XML form and template data. Data can be merged from generic .xml or the XML version of FDF called XFDF.
    2. We want different colors of the same PDF without actually making the different PDFS, is there a way we can do this through the merging the data?  For example: In the XDP file, we specify the color of the border of a rectangle.  When the PDF merges with the data, will the PDF be able to change the border of the rectangle with the specified color?
    Yes. Consider a field called 'firstName'. I can add a script to the form:ready event that checks the value of the data merged with the field and changes the border edge color to red if the data is not equal to 'Steve'.
    // customer.page1.firstName::ready:form - (JavaScript, client)
    if (this.rawValue != "Steve") {
         this.border.edge.color.value = "255,0,0";
    3. Can a picture (a specific size) be merged in the PDF?
    Yes.
    Steve

  • Variable and Formulas Question

    Hi folks,
    I use BOXI r2 sp 4 and I have a general question re: variables and formulas in Webi reports.
    Billing Year Month and Cost of Service are standard time dimensions and measures that I use in my Webi reports and they were created at the semantic level.
    Normally, I create cross tab reports with the Billing Year Month along the horizontal axis and the Cost of Service in the Body (Business Unit or Department would be placed along the vertical axis).
    For some reason, when I use formulas/variables to modify the standard time dimensions (like changing Billing Year Month to Year), the values for the Cost of Service are returned incorrectly.
    Example.
    Semantic object: Billing Year Month = (yyyy-MM) returns correct values
    Report variable: Substr([Billing Year Month;1;4) returns incorrect values
    Can anyone please explain this problem?
    Thanks,
    Wannetta

    Hi John,
    The attribute of the Billing Year Month at the semantic level is a character type.
    After reading your response, I realize that I may not have been clear regarding the problem.
    The following formula does return the correct value in and of itself.
    >=Substr([Billing Year Month];1;4
    If I create a variable and then drag it onto my crosstab, it returns the correct value ONLY within the header.
    When I drag the cost of service measure onto the crosstab; the header values remain the same but values in the body either disappear or the change to reflect incorrect values.
    I thought one of the prime features of Webi was the ability of the Report Developer to create variables/formulas and use them in the headers to manipulate the semantic "measures" in the body (read: output) at the report level.
    Is this a matter of semantic design or does Webi not possess this capability?
    Or, is the issue entirely different?
    Thanks!
    W.

  • Variable accessibility: newbie question

    My next newbie question:
    The following two classes are in two separate files in the same a folder testClass2:
    package JavaDemos.testClass2;
    import java.awt.*;
    public class Sketcher {
        static SketchFrame window;
        static int widthXXX;
        public static int getwidthXXX() {
            return widthXXX;
        public static void main(String[] args) {
            window = new SketchFrame("Sketcher");
            widthXXX=1000;
            System.out.println("output: width = " + widthXXX);
            window.setVisible(true);
            window.specialReport();
    package JavaDemos.testClass2;
    import javax.swing.*;
    public class SketchFrame extends JFrame {
        public SketchFrame(String title) {
            setTitle(title);
            setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        public void specialReport(){
            System.out.println("number " + widthXXX);
            //     System.out.println("number " + Sketcher.getwidthXXX());
    }They don't compile.
    I get the following error message:
    JavaDemos/testClass2/SketchFrame.java [23:1] cannot resolve symbol
    symbol : variable widthXXX
    location: class JavaDemos.testClass2.SketchFrame
    System.out.println("number " + widthXXX);
    ^
    1 error
    Why isn't widthXXX directly accessible from SketchFrame?
    Thank you again in advance for any help.

    Why isn't widthXXX directly accessible from
    SketchFrame?Because it's a class variable of another class. You have to refer to it as Sketcher.widthXXX.

  • Am I able to create a conditional action or user variable on a question slide?

    Hey everyone
    We have modules where there is content slides mixed with question slides. We want the learner to answer the questions and not skip them so originally we removed the next button and just used the continue function of the question. We have lots of feedback from people that they are getting stuck as they want to go back and review the content but once they hit the question slide again (which they may have already answered) they cant get past it as they have already answered it and there is no 'next' button so they have to close and reopen the module.
    Is there a way to make it so they have to answer the question but once they have answered it the 'next' button appears so they can then keep going back and forwards within the module. I was wondering if it was possible using a conditional action or user variable?
    Thanks
    Sarah

    Go to Quiz > Settings > Required drop down and set to Answer All - The user must answer every question.

  • Using wildcards in URL variables (very simple question, i know)

    Hi all!
    Pulling my hair out over this... How do I use wildcards in URL variables? I have this code in compositionReady (which is working):
    var myurl = "http://www.mydomain.com/sub1/sub2/pagename";
    var currenturl = window.location
    if(myurl == currenturl) {
        sym.getSymbol("symbolname").play();
    It simply makes the symbol "symbolname" play when the current URL matches the variable 'myurl'. However, I want the symbol to play on ALL subpages to http://www.mydomain.com/sub1/sub2/ and therefore it seems logical to put in a wildcard like:
    http://www.mydomain.com/sub1/sub2/* or something similar, but I just can't seem to make it work??
    Any help will be greatly appreciated!
    Best,
    Thomas

    What about this ?
    var mysubdomain = "http://www.mydomain.com/sub1/sub2/";
    var currenturl = window.location.toString();
    if(currenturl.indexOf(mysubdomain) === 0) {
        sym.getSymbol("symbolname").play();
    -Dharmendra

  • Query Variable Transport Issue/Question

    Hi, i am transporting some queries into my BWQ Quality System and ended up with an error:
    Element 1Q070GEFFJXNCR690H6TJ4M13 is missing in version M 
    The queries work fine in BWD Development.
    I checked the following in table RSZGLOBV
    BWD Development System and there is Version A, B, and D
    BWQ Development System and there is only Version D
    BWP Development System and there is only Version D
    So the variable already exists in all of the system and the VARUNID is the same in all of the systems as well..
    Any ideas why I would have this issue and will there be a problem with queries already using this variable in BWQ and BWP should I transport it again to resolve this issue.  (If this would resolve the issue)
    Thanks!

    Hi,
    I faced the same issue many times and did the same what Andrey suggested.
    In your case the query element does not exist in QA and PRD in Active Version 'A', which means none of your queries in those environments are using the variable already.
    We get the description of various statuses when we do an F1 in the field version after running table RSZGLOBV. I could not understand much of the explanation given. It says when an object is saved, the version would be M and when it is activated it would be A. We save queries/elements....but activation??
    Regards,
    Murali.
    Edited by: Murali Krishna K on Mar 7, 2011 11:07 PM

  • Variable user exit question

    Hi all,
    i m looking for a code to make an User exit variable  to select the actual month and the previous month , for example in this moment ( september and October )

    Hi,
    Use Tcode: CMOD, funtion module :EXIT_SAPLRRS0_001 double click on the program ZXRSRU01, start writing ur code. The code which i gave u is for Calculate Month to date, similarly u have change the code as per ur requirement.
    Regarding User exits:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm
    to calculate "month to date" user input is "Calday" Key Date
    sample code:
    WHEN 'ZPUTMNTH'.
    IF I_STEP = 2. "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZPDATE'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(6). "low value, e.g.YYYYMM (200606) part of key date (20060625)
    L_S_RANGE-LOW+6(2) = '01'. “ low value e..g. YYYYMM01 (20060601)
    L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "high value = input
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.

  • Variable wizard creation question?

    Hi experts,
    I created a variable using wizard. In my variable their is a option called 'Can be changed during navigation' what it mean? and what is it used for?
    Thanks in advance.
    Sharat.

    Hi Sharat,
    The Changeable with Query Navigation function allows you to override the variables entry by selecting the dynamic filter.
    When using a dynamically changeable variable, that is, a variable with the activated function Changeable with Query Navigation in a query in connection with a free characteristic, you can override the variable entry with the dynamic filter. In other words, you can also access values that are not found in the value area of the variable entry. The values entered for the variables are only used to parameterize the dynamic filter for the start list.
    This function is only available for characteristic value variables in the free characteristics. When using such a variable in the filter, it behaves like a “normal” variable that cannot be changed.
    Note the following when using the Changeable with Query Navigation function:
    ·        A variable can only be changed in the query definition when it is only used in a drilldown characteristic and when there are no other restrictions to this characteristic aside from these variables.
    ·        No additional characteristic is allowed to be compounded with a variable to the affected characteristic.
    ·        For hierarchy node variables, the hierarchy must match the presentation hierarchy that has been set up.
    ·        The characteristic value is not allowed to be moved, for example offset –1. In addition, the variable is no longer changeable with the query navigation.
    regards,
    rudra.

  • Variable and Expressions Question?

    I got these questions from a practice book based on sections that talks about learning SQL
    and SSIS.  It does not have a Key to grade it.  Does any of the questions I answered look wrong(I answered in orange)?

    #5 is not correct, the answer Windows->Locals is correct
    Arthur
    MyBlog
    Twitter

  • Getting variables - a simple question

    OK, I realise this post rather smacks of ignorance, but there is something I clearly have so far failed to understand and would be highly grateful if someone could help me understand it.
    My problem is this: I pass in a variable as an argument to the main method. How can I then access that variable later in the program without passing it from method to method as I go. To be a little more precise, I mean, if I have a variable which I pass in like this:
    String resultPath = args[1];and write a method such as:
    public String getResultPath()
          return resultPath;
    } How can I later access this variable with "getResultPath"?
    For the time being, the process escapes me. What am I doing wrong?
    Thanks folks.

    Would something like the following do the job? public class AccesParam {
       private static String result;
       public static String getResult() { return result; }
       public static void main(String[] args) {
          result= args[1];
       // rest of program here; even the outside worl ca
       // access the 'result' value by using the getter method
    } kind regards,
    Jos

  • Variable class names,QUESTION

    how do I get information from a class using a String for the class name? (in an applet)

    whether you are in an applet or java application, just use Class.forName to retrieve a java.lang.Class instance for that class- then you can get field or method informaiton. There are additional security restrictions in applets, so you may not have access to the particular class, but, if it is accessible, java.lang.Class.forName("yourClassName") is the best choice.

  • Error in using a variable

    Hi All,
    I have got 2 packages, A & B. Package A includes package B and some variables.
    My question out here is that i am using assigning some values to variables in the package B, i want those values to be reflected and be usable in the package A.
    Can you please help.
    Thanks,
    Nithesh B

    Hi Nitesh,
    Please try the below steps and let me know still you face issue on this :-)
    You can ping me on [email protected]
    Steps :-
    Ist create a Gobal variable say GLOBTest (historise , to veiw the result)
    create a local variable say LocTest (historise , to veiw the result)
    Now in first pcakage say PKG1
    step 1 : drag and drop the GLOBTest Variable and select the mode as declare variable
    step 2: call the second package scenario (say PKG2)
    step 3: drag and drop the variable LocTest as assign variable :- and in assign tab put #Global.GLOBTest
    Now in pcakge 2 (PKG2)
    Drag and drop the global variable GLOBTest as assign mode and put the value as "This is a test case"
    generate the scenarios and start the package 1 (PKG1)
    once its executed without error , open the LocTest and check the historise tab , you can see the value of the global variable whcich you assigned from the child package.
    Regards,
    Rathish A M

Maybe you are looking for