Referring to 'Train of Variables' in Formcalc

With LiveCycle Designer ES4 I'm trying to place a group of string variables used throughout my form to not not for having to change variables in several places.


I don't want to use the properties of the form > variable because we can't see the whole group at once. In other words, there are variables that must be located next to the variables subject to a clearer picture and to avoid mistakes, i.e. propertyOwner var, var propertyTract, propertyTelephone var.

Under variables in the form hierarchy, I have inserted an "Object of Script" folder and baptized "owners". In this case, I entered all the variables mentioned. Folder/object name is 'TwentyTwoHills. #variables [0]. Owners '. The first variable is

var TTHOwner1 = 'Joe Smith';

How can I refer to this variable to use to load a drop down list in my form with FormCalc?

Any help appreciated,

Thank you

Fred

Hello

in script objects you can only use JavaScript, FormCalc syntax not supported by these objects at all.

As you can not call a JavaScript for a FormCalc event action.

You can use JavaScript in all scenarios that you use script objects.

Here is an example how to do this.

Create a function in your script object, which contains nested tables.

Each table contains two values, the first represents the name of the second value.

Through the forEach method, you can simply filter the berries.

function loadValue (vValue){
  var aVars = [
  ["varA", "Lorem"],
  ["varB", "Ipsum"],
  ["varC", "Dolor"]
  ],
  vReturn;

  aVars.forEach(function (element, index) {
  if (element[0] == vValue) {
  vReturn = element[1];
  }
  });
  return vReturn;
}

Retrieve the value of the 'varA' table use this function.

Owners.loadValue ("varA");

Tags: Adobe LiveCycle

Similar Questions

  • Referring to the url variable in cfquery that contains the sign #.

    I use CF 9 and cannot figure out how to reference a url variable in my cfquery that contains a character ' # ' as part of the channel name (that is, http://somepage.cfm?variable_name=tom#h.)

    When I try to run the query, it shoots only 'tom' due to the sign #.  I tried up to double the sign # (#) but that no longer works.

    < cfquery NAME = "qryGraph".
    DATASOURCE = "DB2".
    USERNAME = #Request.UserName #.
    Password = #Request.Password # >

    SELECT THE DATE

    TABLE
    WHERE NAME = ' #variable_name #

    < / cfquery >

    Any help would be appreciated!

    Tom

    http://somepage.cfm?variable_name=tom%23h.

    And it should work without any other change.

    If you compile this code into your CFML, you can use the function urlEncodedFormat().

  • Using ChnCalculate with a variable

    The channel of LIN/LIN_Error has 3000 values inside. I want to add a correction value to each of the 3000 values inside.

    If I use a constant, it works well. For example:

    Call ChnCalculate ("Ch(""LIN/LIN_Error"") = (2 + Ch (" "LIN/LIN_Error" "" "))") adds 2 to each value.

    However if I try with a variable it does not work.

    Dim Corr

    GlobalDim "Corr".

    Corr = 2
    Call ChnCalculate ("Ch(""LIN/LIN_Error"") = (Corr + Ch (" "LIN/LIN_Error" "" "))")

    Hi Frank,.

    The problem is your first line.  By running 'Dim Corr' in the VBScript code, you force this variable name to refer to the variable in VBScript and not the variable global tiara - light color in the SCRIPT Panel does not reflect what is confusing.  If you remove the statement Dim Corr, and then the VBScript code will correctly reference the global variable.  Another way to put it is that your VBScript never affects the global variable to Corr 2.  The command correctly done ChnCalculate() refers to the global variable of Corr, but it is always set to 0.

    However, for this task, I'd recommend the ChnLinScale() function, which is simpler, will run faster, accepts regular VBScript variables and ignore so all this imbroglio.

    Dim Corr
    Corr = 20
    Call ChnLinScale ("LIN/LIN_Error", "LIN/LIN_Error", 1, Corr)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Packages to send to their own variables like package.variable?

    If a PACKAGE defines a variable, the variable should be referred to as package.variable outside the PACKAGE. To the inside of the PACKAGE itself, is there a reason to use the full name?

    Well, if the same variable name is used within the scope of the PACKAGE, then in a routine inside the PACKAGING, package.variable will remove the issues of scope. But, apart from that, is there to use it?

    I ask, because it adds a bit of text whenever it is used, and I would like to remove the mess.

    in functional terms: No.

    As you say, the only real advantage is 'less to type'

    Regarding the confusion of scope, in most places, standards suggest naming conventions which can let the scope in the name of variable - thus removing the likelihood of this.

    IE: local variable: lv_my_variable;

    That is to say a global variable (IE in the package spec): gv_my_variable;

    * shrug *.

    Standard fluctuate considerably from one place to another and from one person to another, is especially whatever standards are in place in your environment, you should probably follow.

    (unless of course something * really * jerk appears... as "Hey, use always an exception handler" (even if you have nothing to capture O_o then of course, you should take your trusty stick broke so the chance to work this case doesn't seem like that to me - an either/or/not account really seem).)

  • Question the use of Oracle query Variables

    Hello

    I am new to Oracle, I tried to extract the data from the Oracle database by using the following query which includes 1 variable SYSDATE_UTS, but when I try to execute the query I get an error. Please let me know what I am doing wrong and how I can fix.

    Error message
    -----
    ORA-06550: line 4, column 1:
    PLS-00428: an INTO clause in this SELECT statement
    -----

    Oracle query

    DECLARE SYSDATE_UTS NUMBER: = (sysdate-to_date('19700101','yyyymmdd')) * 86400;
    BEGIN

    SELECT
    INCIDENT_NUMBER,
    TO_DATE (to_char ((1/86400 * REPORTED_DATE) + to_date ('19700101', 'YYYYMMDD'), "jj/mm/aaaa hh24:mi:ss"), 'hh24:mi:ss dd/mm/yyyy') as REPORTED_DATE_TIME,
    GROUP_TRANSFERS
    LAST_MODIFIED_BY
    , to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * LAST_MODIFIED_DATE, "mm/dd/yyyy hh24:mi:ss"), 'hh24:mi:ss dd/mm/yyyy') as LAST_MODIFIED_DATE
    , (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) age
    CASE
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 0 AND 1, THEN ' 0 - 1 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 2 AND 4 and THEN 2-4 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 5 AND 9, THEN 5-9 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 10 AND 19, THEN 10-19 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) > 20 THEN ' Days 20 + ".
    ANOTHER "UNKNOWN".
    END AS AGE_GROUP
    OF IncidentDataBase
    and the STATE not in (4,5,6)
    and rownum < 10;
    END;

    If you run this query in sql * plus you can declare a sql * more variable, assign a numeric value according to 'now' and use in your application, i.e.

    SQL > variable NUMBER of SYSDATE_UTS;
    SQL > exec SYSDATE_UTS: = (sysdate-to_date('19700101','yyyymmdd')) * 86400;

    You would then call your request, referring to sql * more variable with a colon as SYSDATE_UTS prior to it (i.e.: SYSDATE_UTS)

    SELECT
    INCIDENT_NUMBER,
    TO_DATE (to_char ((1/86400 * REPORTED_DATE) + to_date ('19700101', 'YYYYMMDD'), "jj/mm/aaaa hh24:mi:ss"), 'hh24:mi:ss dd/mm/yyyy') as REPORTED_DATE_TIME,
    GROUP_TRANSFERS
    LAST_MODIFIED_BY
    , to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * LAST_MODIFIED_DATE, "mm/dd/yyyy hh24:mi:ss"), 'hh24:mi:ss dd/mm/yyyy') as LAST_MODIFIED_DATE
    , (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) age
    CASE
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 0 AND 1, THEN ' 0 - 1 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 2 AND 4 and THEN 2-4 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 5 AND 9, THEN 5-9 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 10 AND 19, THEN 10-19 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) > 20 THEN ' Days 20 + ".
    ANOTHER "UNKNOWN".
    END AS AGE_GROUP
    OF IncidentDataBase
    and the STATE not in (4,5,6)
    and rownum<>

    Table stores IncidentDataBase the "dates" in the number of seconds since the epoch unix?

  • Linux I get an error message when you run java in notebook.

    I am trying to run a simple java script from Scratchpad.
    
    <html>
    <body>
    
    <h1>My First Web Page</h1>
    
    <script>
    document.write("<p>My First JavaScript</p>");
    </script>
    
    </body>
    </html>
    ######
    
    <html>
    <body>
    
    <script>
    function myFunction()
    {
    var x="",i;
    for (i=0;i<5;i++)
      {
      x=x + "The number is " + i + "<br>";
      }
    document.getElementById("demo").innerHTML=x;
    }
    </script>
    
    </body>
    </html>
    
    the traceback error refers to the var variable;
    var x="",i;
    
    I highlight <script> to <script>
    and get this error message
    
    /*
    Exception: syntax error
    Scratchpad:4
    */

    It's this line
    var x = "", i; "

    I'm trying to run a simple loop that will be
    See the numbers in the loop, but the loop hangs.

    I need to know how to solve the problem.

    JOL

    It is not pure JavaScript code, but the code HTML.

    You cannot run this code via Notepad.

    In the second example, you are missing a container with id = 'demo' and you also call the function.

    data:text/html;charset=utf-8;base64,PGh0bWw+Cjxib2R5PgoKPGgxPk15IEZpcnN0IFdlYiBQYWdlPC9oMT4KCjxzY3JpcHQ+CmRvY3VtZW50LndyaXRlKCI8cD5NeSBGaXJzdCBKYXZhU2NyaXB0PC9wPiIpOwo8L3NjcmlwdD4KCjwvYm9keT4KPC9odG1sPgo=
    
    data:text/html;charset=utf-8;base64,PGh0bWw+Cjxib2R5Pgo8cCBpZD0iZGVtbyI+PC9wPgoKPHNjcmlwdD4KZnVuY3Rpb24gbXlGdW5jdGlvbigpCnsKdmFyIHg9IiIsaTsKZm9yIChpPTA7aTw1O2krKykKICB7CiAgeD14ICsgIlRoZSBudW1iZXIgaXMgIiArIGkgKyAiPGJyPiI7CiAgfQpkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiZGVtbyIpLmlubmVySFRNTD14Owp9Cm15RnVuY3Rpb24oKTsKPC9zY3JpcHQ+Cgo8L2JvZHk+CjwvaHRtbD4K
  • Drive upgrades

    I have a

    Precision T7500

    Serial number: Service tag removed by privacy policy > | Express service code: abducted by the Express service code privacy policy > which was shipped in December 2009. I have recently upgraded to Windows 10 and has been designed on the installation of a 2.5 inch 500 GB SSD (SATA 3) as a new boot disk and a 3.5-inch 6 drive to for backup use. I'll also have disks 2 to and 1.3 to existing that I intend to continue to use.

    Can you tell me if this machine will work satisfactorily with SSD SATA III and that I will be able to access the space 6 TB?

    Concerning

    You won't see improvement using a SATA 3 disc versus a SATA 2 drive as your comtroller does support SATA 2. But honestly, there are very little practical difference in real-world applications.

    Yes, my comment about the controller refers to training of 6 TB. Newer systems will support the readers from over 2 TB as long as you have the Intel RST up-to-date format using GPT. But 6 to push things. A controller card will make it a breeze.

  • Understanding stored procedures

    Hello

    Oracle 11.2.0.0.2

    I am trying to learn how stored procedures to use them later in the future web applications.  I was going through some documentation and found a simple stored procedure and I just wanted to see if someone could help to clarify if I understand how this stored procedure is supposed to work.

    TRIGGER XXX_TEST CREATE create a trigger with the name of XXX_TEST

    BEFORE INSERT Execute the trigger before it runs the command INSERT

    ON f.w5 FOR EACH ROW, do something "for each line' which is 'on' the table w5 belonged f schema

    START the starting point of the orders which will take place within this block

    Select count (1) IN the rt of 1934_e.doc where: new. U0 = docnum and 'AA' = a1 and a2 = 'DR' and a3! = « Z »)) ; Select all the records and put new 'in' the variable doc table belonging to f, where rt. U0 variable equals the docnum and column a1 is equal to 'AA' and column a2 is equal to 'DR' and a3 is not equal to 'Z'

    IF rt > 0 THEN conditional statement, if the rt variable is greater than 0, then below that

    : new.pt: = 9 | substr (PT 2);  concatenation of the variable which is set to match the 9

    : new. U1: = 'UNFAIR ';  sets the variable: new. U1: equal to 'EVIL'

    END IF;  end of the conditional statement

    delete from f.w5 where substr (pt, 1, 1) = 9 and U1 = "UNFAIR."  delete records from table w5 belonged to f where substring value 9 starting at position 1 with a length of 1 is equal to 9 and U1 is equal to 'FALSE'

    END;  the point of arrival of the "BEGIN"

    The part that I'm not sure of is the IF / END IF block.  I read that the | means the concatenation, but I don't really know what or why it is concatenation.  Another explanation is appreciated!  Thank you.

    Hello

    You have understood about correctly.

    There are many errors in this code.  For example, he referred to the local variables, rt and pt, but these variables are not defined anywhere.  For example, in the assignment you intrigued plus:

    : new.pt: = 9 | substr (PT 2);

    : NEW.pt initially made reference (rightly) of a column in the current insertion, but pt near the end line (without: NEW.) reference a local variable and I do not see where all the local variables are currently reported.  Perhaps the one who wrote this means use; NEW.pt in both places.

    SUBSTR (pt, 2)

    means the part of string pt starting with his 2nd character, so

    '9' || SUBSTR (pt, 2)

    a copy of the pt, but with its first character replaced by "9".

    Why the trigger would do this?  Your guess is as good as mine.  Apparently, the pt of the column is a kind of code, and the first character of the code is supposed to be "9" If there is no line in the table corresponding to the column of u0, doc and met certain other conditions, at the point where this line was inserted.

    (The | operator expected strings before and after it.)  If you use a NUMBER, such as 9, in a place where one expects a string, such as '9', Oracle will automatically convert the NUMBER to a string, but it is advisable to use the correct data in type.)

    Moreover, another error in this trigger is that he tries to DELETE rows from the same table that is based on.  A FOR EACH ROW trigger on tble f.w5 can't even read other f.w5 lines, let alone delete them.

  • Preparations for the launch of Oracle Universal Installer from/tmp/OraInstall2014-02-25_01-35-08 PM. Please wait... Error in CreateOUIProcess(): 13: permission denied

    Hi all

    Im getting below error when installing on RHEL 6 12

    Preparations for the launch of Oracle Universal Installer from/tmp/OraInstall2014-02-25_01-35-08 PM. Please wait... Error in CreateOUIProcess(): 13
    : Permission denied

    I got permission to

    mkdir Pei /u01/app/oracle/product/12.1.0/db_1

    chown-r oracle: oinstall/U01

    chmod-r 775/U01


    permission on temp

    drwxrwxrwt. 9 root root 4096/tmp


    Bash profile


    export TMP = / tmp
    export TMPDIR = $TMP
    export ORACLE_HOME=/u01/app/oracle/product/12.1.0/db_1
    export ORACLE_BASE = / u01/app/oracle
    export ORACLE_SID = BDEV
    export PATH = $ORACLE_HOME/bin: $PATH
    #export PATH = $ORACLE_HOME/OPatch: $PATH
    export LD_LIBRARY_PATH = $ORACLE_HOME/lib: / lib: / usr/lib
    Export CLASSPATH = $ORACLE_HOME/jlib: $ORACLE_HOME/rdbms/jlib

    The link refers to the TEMP variable as so defined.

    I think you would have to remove and back up/tmp at all the less for the new permissions to take effect.  I would not have thought that it is a dynamic change that takes effect by simply changing the file.

  • Two queries LOV in a point... is that possible?

    Hello

    I created a list of value form DML as below-

    Select pcrs.cost_record_status, pcrs.port_cost_record_status_id
    of ptcs_cost_record_status RFT

    But, depends on "pcrs.port_cost_record_status_id" I want only certain values to display in the list.

    For example:
    -If pcrs.port_cost_record_status_id 2
    - then view the State 2,3,4

    Select pcrs.cost_record_status, pcrs.port_cost_record_status_id
    of ptcs_cost_record_status RFT
    where pcrs.port_cost_record_status_id in (2,3,4)

    -If the State id is 1
    -can view the status of 1.5

    Select pcrs.cost_record_status, pcrs.port_cost_record_status_id
    of ptcs_cost_record_status RFT
    where pcrs.port_cost_record_status_id in (1.5)

    Any ideas on how I can have two different LOV in one?

    Thank you!!
    Ling

    LC says:
    Hello

    port_cost_record_status_id is a COMPONENT and it is retrieved from the database when the form is opened.

    It doesn't look like one (the convention is that page elements are prefixed with their page number and referred to as bind variables using the ":").

    Regarding the original question, which precedes the LOV query is:

    select pcrs.cost_record_status, pcrs.port_cost_record_status_id
    from ptcs_cost_record_status pcrs
    where pcrs.port_cost_record_status_id in (2,3,4)
    and :p1_port_cost_record_status_id = 2
    union all
    select pcrs.cost_record_status, pcrs.port_cost_record_status_id
    from ptcs_cost_record_status pcrs
    where pcrs.port_cost_record_status_id in (1,5)
    and :p1_port_cost_record_status_id = 1
    
  • : 1 and: 2?

    use jdev11.1.1.5.0 uaing adfbc.

    I have had no usecase. I just want to clarify.

    I discovered. something like.
    userSearchVO.setWhereClause ("lower (usr_login) AS ': 1' and usr_udf_suid like ': 2'" ' ");


    : 1 and: 2 refers to a bind variable. ? I didn't do it. someone told me this is what?

    I want to know what is: 1 and: 2. most of them area in the adf. using like that.

    a Cany teach me what is: 1? and: 2?

    Yes, you can use: 1 if you want to.

    When you set your view object, the default value for link style is 'Oracle named,' which is the ': p_field1 ' style. You can change it to 'Positional Oracle,' which uses the ": style 1" or "Positionnels JDBC," who use"?" as well. "

    John

  • If Condition-&gt; Package Performance Inc or Dec?

    Hello Experts,

    In my API; There are appealed for packing I have has constant variables are resolved.

    As instead of hard-coding the variable, I put all the variables in a common API.

    Now, I'm checking the performance of the API.


    constants.init_ld-> 1000 of this API set.

    My collection will deal with for about 100 000 to 300 000 records... Now, currently I have example-1 was defined in the API.

    So while the treatment instead of referring to the package variable can I put it directly to 1000 as example-2

    Will be this increases performance or decrease or remains same?

    Please confirm...

    Thanks for your comments...

    Example-1
    PROCEDURE...
    CUR C_SEL
    IS
         SELECT *
         FROM TABLE
         WHERE COND...
    BEGIN
                   ...
                   IF (l_table (i).id =constants.init_ld)
                   THEN
                      l_load := 'Y';
                   ELSE
                      l_load := 'N';
                   END IF;
                      ....
    END;
    Example-2
    PROCEDURE...
    CUR C_SEL
    IS
         SELECT *
         FROM TABLE
         WHERE COND...
    BEGIN
                   ...
                   IF l_table (i).id =1000
                   THEN
                      l_load := 'Y';
                   ELSE
                      l_load := 'N';
                   END IF;
            ....
    END;
    Published by: Linus on October 27, 2010 06:24

    The variable is declared in a package, the only real performance degradation will be the first time that the package is referenced as it is loaded into memory. Then, it is just a reference to an area of memory as if the variable were reported locally.

    Test it and see.

  • Perform mathematical calculations on a form

    I have a performance review that I want to do basic math and have no idea where to start.  I looked in the help section for FormCalc and can't make heads or tails out of it.  Anyone know where I can watch, download, or read a few resources to understand how can I get the form to multiply two different numeric fields to obtain a number.

    You are referring to the object somehow in formcalc to say this multiple field to this field.  I can do it in Excel in a blink of an eye, but the new language is shake me up.  Here's what it would look like a spreadsheet for the formulas.

    The areas where the numbers would be put in by the user would be numeric fields or drop-down list.  The shape itself is fixed.

    The formula is fine, but you have the Javascript scripting language and it's a FormCalc formula the value. You can assign the FormCalc language (at the top right of the script palette) or chang ethe formula to Javascript syntax:

    this.rawValue = GW1.rawValue * GWPercent1.rawValue

    Paul

  • Interesting addInstance problem

    Reading data from the database now using FormCalc and can have different number of dynamic subforms according to the number of entries of a particular kind.

    I generate the correct number of subforms to match the data, but I can't access the fields in the subform to fill them.

    even if (oDataConn.isEOF () == false) do
    Create a new instance and obtain a reference to it.
    var oSPC_1 is form1. SPC_1_Deadline_SF. SPC_1_List._SPC_1_Bldg_Info.addInstance (0)

    oSPC_1.BuildingNumber.rawValue = something


    oDataConn.next)
    endwhile

    Gives me an error that the oSPC_1.BuildingNumber.rawValue accessor is unknown.

    No idea what I am doing wrong, or more probably that I address wrongly?

    Thanks in advance.

    Patrick

    1. try to call the JavaScript method that is written in a Script object, such as

    scrObjName.jsFunctionName ();

    If this isn't help, try #2

    2. place your Javascript code in the click event of a button (button hidden)

    Train your writing code formcalc:

    btnHidden.execEvent ("click")

    Hope this atleast.

    Nith

    WARNING:

    ========================================================================

    "This communication is intended only for the named recipient and others authorized to receive."

    It contains confidential or legally privileged information. If you are not the recipient, please inform us immediately and note that any disclosure, copying, distribution or action that you can take based on this communication is strictly prohibited and may be illegal. Unless otherwise stated, this communication is not intended, should not be taken to create a legal or contractual relationship or other. Ministry of Finance (MOF) is not responsible for the correct and complete transmission of communication, nor for any delay in the reception.

    While MOF undertakes every reasonable effort for outgoing messages for viruses of the screen, it accepts no liability for any virus transmitted by this email. »

  • Control external SWF file?

    Is it possible to control an external SWF file with buttons on the main clip?

    I have an external SWF loading in the scene, but I wanted to order 'play', 'stop' and 'goto' with buttons outside of the SWF.

    BUD Hey!

    This can not solve your problem, but I thought I'd give it a try. [Excuse me if you knew:]

    I load content in my projects using the attached code. He downloads the content from the link provided, attaches to the "external" variable and place it in the clip 'LoadMov '.

    After that, I can handle the content by referring to the "external" variable

    for example:
    LoadMov.external.gotoAndStop (10)

    Tell me if it helps!
    John

Maybe you are looking for