If statement error

I was hoping that someone could help me with this problem.

I have a code one of my fields, but needed to do an "if" statement to get some results.

This is the original code that I got:

var a = this.getField ("Text8");

var b = this.getField ("Text59");

(Event.Value = Round((a.value/b.value), 1);

If the field told 77.3 then that I wanted to change to 77.4. I thought that adding the following if exposed to the code would work, but it just displayed "77.4" in the field.

If (event.value = 77.3) {}

Event.Value = 77.4;

}



I'm still learning JS, so I don't know what everything means. Any help would be greatly appreciated.

Thank you

The comparison in JavaScript operator is "is" and not "=" - use the following line:

if (event.value == 77.3) {

Tags: Acrobat

Similar Questions

  • I'm getting "ORA-00900: invalid SQL statement" error. ?

    I installed oracle 11 GR 2. and 'DBMS_METADATA_DIFF.COMPARE_ALTER ('TABLE', 'TBL_A', 'TBL_A','USER1 ','USER2 ')"to see the result as below, but I'm" ORA-00900: invalid SQL statement "error.   Any idea?



    I use:


    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for 32-bit Windows: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production




    SQL > desc user1.tbl_a
    Name                                      Null?    Type
    ----------------------------------------- -------- ----------------------------
    FIELD_A1 NOT NULL NUMBER
    FIELD_A2 VARCHAR2 (20)
    FIELD_A4 NOT NULL NUMBER (5.2)
    FIELD_A5 VARCHAR2 (10)
    FIELD_A6 NOT NULL NUMBER (2)

    SQL > desc user2.tbl_a
    Name                                      Null?    Type
    ----------------------------------------- -------- ----------------------------
    FIELD_A1 NOT NULL NUMBER
    FIELD_A2 VARCHAR2 (50)
    FIELD_A3                                           DATE
    FIELD_A4 NUMBER (5.2)
    FIELD_A5 NOT NULL VARCHAR2 (10)




    SQL > select dbms_metadata_diff.compare_alter ('TABLE', 'TBL_A', 'TBL_A', 'USER1', 'USER2') of double

    expected result:

    DBMS_METADATA_DIFF.COMPARE_ALTER ('TABLE', 'TBL_A', 'TBL_A', 'U1', 'U2')
    --------------------------------------------------------------------------------
    ALTER TABLE 'U1 '. "" ADD TBL_A "(DATE OF THE"FIELD_A3")
    ALTER TABLE 'U1 '. "" TBL_A "DROP ("FIELD_A6")
    ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ("FIELD_A2' VARCHAR2 (50))
    ALTER TABLE 'U1 '. "" TBL_A ' CHANGE ("FIELD_A4" NUMBER (5.2) DEFAULT 0)
    ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ('FIELD_A4' NULL)
    ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ('FIELD_A5' ACTIVATE NOT NULL)

    Thanks for the reply rp,

    I got the result using "select dbms_metadata_diff.compare_alter ('TABLE', 'TBL_A', 'TBL_A', 'USER1', 'USER2') from dual"

  • unexpected shutdown and restart with electric conducting State error message

    My Toshiba 305j goes through a stop because of the error driver power state failure and then restarts. This happens about every 20-30 minutes. Sometimes it will work for hours before she started it. Happens if I am on the internet or not. It is a PC at home. I've seen this problem on other forums but don't see that speculation as to the cause or the cure.

    Hello Pepperl,

    Welcome to the Microsoft Answers site!

    How long have you had this problem?

    Here here that you can try:

    Step 1:

    I recommend you update all the drivers of material first. Follow the link below to help this.

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    You can even visit the manufacturer's website to download and install the latest drivers.

    Step 2:

    To avoid the error message, update or remove the driver at fault. This behavior is not limited to device drivers; It can also occur with file system filter drivers (for example, drivers installed by an anti-virus, remote control or a backup program). To isolate the driver that is causing the problem, follow these steps:

    1. make sure your computer and all devices are on the hardware compatibility list (HCL) and have WHQL signed and certified drivers. You can use Sigverif.exe to check for unsigned drivers.

    2. check for driver updates that may be available for your hardware.

    3. update the software that use filter drivers (for example, anti-virus, remote control, and backup software).

    4 uninstall all devices that are not critical and software to help isolate the device/software that can cause the problem.

    5. install Windows in a new folder. Add drivers and restart as you proceed to isolate the driver that is causing the problem.

    Hope this information is useful.

    Kind regards

    Savan Microsoft technical support.

  • Get the SQL statement error programmatically

    Hello

    error SQL in the FORMS, you can display the erroneous SQL statement pressing (shift) (Ctrl) E on the screen. Is there a way to get the text of the SQL statement in a PL/SQL function for logging purposes?

    I get the error using SQLERRM, it's not a problem. But how can I get the SQL text of the statement?

    Thanks and regards,

    Sascha

    Sascha,

    You should be able to use the: SYSTEM. System LAST_QUERY variable forms.

    Craig...

  • Replication suddenly failing: status "inactive", "invalid state" error

    I've been replication between sites for a while.  Today, all but 1 on the States of VM replication has changed to 'Inactive'... then, of course, to the "not active (Violation of RPO).  When I try to force synchronization to occur now, web client gives me an error that synchronization is already in progress.  in vCenter, he reports that "VM is in an invalid state.

    I can't find anything about it anywhere.  have you seen this before?  I don't know what next steps I can take here;

    Hello

    In order to study we support beams. Could you file an SR and fix the support beams? Most likely, it is a connectivity problem between the host and the site of the replica.

    Thank you

    Lachezar

  • 00900 invalid SQL statement error

    I am myself to write stored procedures, teacher in TOAD 10.5 with Oracle 10 g. I get the error ORA-00900: invalid SQL statement. Here's the code, cut to the minimum sample size strip. I don't see where I'm doing something wrong.

    If I cut out the slider (take it down to just "Begin" and "End"), it runs, but I don't see anything wrong with the cursor.

    Any ideas?

    CREATE OR REPLACE PROCEDURE IN_PROCESS_CASES_BOS
    IS
    V_HELLO VARCHAR2 (10);

    CURSOR C_MAIN IS
    SELECT 'HELLO' FROM DUAL;

    BEGIN

    C_MAIN OPEN;

    LOOP
    EXTRACT THE C_MAIN IN V_HELLO;

    WHEN THE OUTPUT C_MAIN % NOTFOUND;

    END LOOP;

    CLOSE C_MAIN;
    END;
    END IN_PROCESS_CASES_BOS;
    /
    select * from user_errors;
    
    NAME                           TYPE           SEQUENCE       LINE   POSITION
    ------------------------------ ------------ ---------- ---------- ----------
    TEXT
    --------------------------------------------------------------------------------
    ATTRIBUTE MESSAGE_NUMBER
    --------- --------------
    IN_PROCESS_CASES_BOS           PROCEDURE             1         21          1
    PLS-00103: Encountered the symbol "END"
    ERROR                103
    

    You have an extra END; Remove it and the procedure compiles and runs.

  • No data found in the select statement error

    Hi all

    Find my sample table and data structure:
    SQL> desc states;
     Name                                                  Null?    Type
     ----------------------------------------------------- -------- ------------------------------------
     SNO                                                            NUMBER
     SNAME                                                          VARCHAR2(10)
    
    SQL> select*from states;
    
           SNO SNAME
    ---------- ----------
             1 kerala
             2 Tamil nadu
             3 AP
             4 MP
             5 jammu
    Now, I create a block like:
    declare
    v_state varchar2(20):=' AP';
    v_no number;
    begin
    select sno into v_no from states where sname=v_state;
    dbms_output.put_line(v_no);
    end;
    /
    After excecuting this block no data found error takes place.
    Coz in where defective condition. "AP"="AP."

    What oracle function I should use to eliminate this error.

    I tried something like
    where trunc(sname)=trunc(v_state);
    But it defective. Please help me

    / * Don't know what is your exact question, but: * /.

    use the TOPPING instead of TRUNC

    Published by: hoek on November 26, 2011 10:00

  • Person registering in the Merge statement error!

    Is it possible to save indivudual error in the MERGE statement (Update / Insert).
    I'm unable to save these error. instead of MERGING, if I update the table in the cursor loop then I am able to record the individual error but the process takes time.
    Thanks in advance.
    Deba

    Hi Deba,

    Logging of DML errors:

    SQL> create table tab1 (x number(1));
    
    Table created.
    
    SQL> exec dbms_errlog.create_error_log('tab1')
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> merge into tab1 t
      2        using (select 1 x from dual union all
      3               select 112 x from dual) s
      4  on (t.x = s.x)
      5  when not matched
      6  then insert (x) values (s.x)
      7  log errors into err$_tab1 reject limit unlimited;
    
    1 row merged.
    
    SQL>
    SQL> COL x for 9999
    SQL> select * from tab1;
    
        X
    -----
        1
    
    SQL> COL x for a4
    SQL> select ora_err_number$, X from err$_tab1;
    
    ORA_ERR_NUMBER$ X
    --------------- ----
               1438 112
    
    SQL>
    

    Concerning
    Peter

  • The transition state errors

    Here is the error:

    ReferenceError: Error #1069: property cannot be found on mx.containers.Canvas and there is no default value.
    in mx.states::SetProperty/apply() [C:\dev\beta3\sdk\frameworks\mx\states\SetProperty.as:179]
    at mx.core::UIComponent/mx.core:UIComponent::applyState() [C:\dev\beta3\sdk\frameworks\mx\cor e\UIComponent.as:6432]
    at mx.core::UIComponent/mx.core:UIComponent::commitCurrentState() [C:\dev\beta3\sdk\framework s\mx\core\UIComponent.as:6272]
    at mx.core::UIComponent/setCurrentState() [C:\dev\beta3\sdk\frameworks\mx\core\UIComponent.as: 6208]
    to mx.core::UIComponent / set currentState() [C:\dev\beta3\sdk\frameworks\mx\core\UIComponent.as:3854]
    to UIPlay / __cat2_click () [C:\Documents and Settings\drk\My Documents\Flex Builder 2.0\UIPlay\UIPlay.mxml:219]

    Here is the passage:
    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" width = "100%" height = "100%" backgroundColor = "#FFFFFF" >
    < mx: states >
    < name mx: State = "ouverts1" >
    < mx:SetProperty target = "{cat1}" name = "width" value = "390" / >
    < mx:SetProperty target = "{cat1}" name = "height" value = "390" / >
    < mx:SetProperty target = "{cat1}" name = "left" value = "0" / >
    < mx:SetProperty target = "{cat1}" name = 'top' value = '0' / >
    < / mx: State >
    < / mx: states >
    < mx:Canvas id = 'mystage' width = "390" height = "390" horizontalCenter = "0" resizeEffect = "Resize" >
    < mx:Canvas id = "cat1" left = "30" top = "30" width = "150" height = "150" backgroundColor = click on "#999999" = "{currentState = 'open1' ;}" useHandCursor = "true" buttonMode = "true" / >} "
    < / mx:Canvas >
    < / mx:Application >

    I was getting right back in with States, something I've avoided since alpha because of bugs. In the full version of the application of this test, I have paintings that don't work very well with state changes of left, right, up, down, but in this case - no chance.

    Edit: It also appears that the effects of transition and SetStyleAction SetPropertyAction also do not apply to these properties.

    My name is Ashish not brand ;)

    CornerRadius support made of canvas and shadows. To get these styles work, you need to set the solid borderStyle property so he can show a rounded border. To view the drop shadow, you must set dropShadowEnabled to true.

    I just checked the documentation and I couldn't find the reference to the left, right... as properties etc. They are listed as styles.

    Here's the ActionScript reference Guide. You can access the Web search all of these styles.

    http://livedocs.Macromedia.com/labs/1/flex20beta3/langref/index.html

    In addition, you can go to the live docs and looking for one of these styles.

    Flex 2.0 LiveDocs

    There may be a few places that listed the wrong as you have seen. Please let me know the URL, so we can fix it.

    Now, the problem with SetStyleAction. I added the transition to your code example. When you set the left styles and superior, move effect is played, and when you set the width and height properties Resize effect would play. Keep in mind, these effects of the action are just triggers, you can use these effects of the action with the other effects to choreograph the transition.

    I also added dropShadow and cornerRadius styles.


    http://www.Adobe.com/2006/mxml"layout ="absolute"width ="800"height ="800"backgroundColor ="#FFFFFF">



















    Let me know if you have any questions.

    Thank you
    -Ashish

  • ERRORS in the LOG of the capture of 2291 on UPDATE statement errors

    We are running Oracle Database 10 g Enterprise Edition Release 10.2.0.4.0 - Production 64 - bit with the options of partitioning, OLAP, Data Mining and Real Application Testing

    We used often successfully the clause of the logging of errors during the execution of the batch to the database inserts. However, we now have a situation where an UPDATE statement is default and make back up when it encounters a referential constraint foreign key [ORA-02291]. It registers with success of coercion errors [ORA-02290] Check. Foreign keys are not carried over, and they have nothing to do with unique constraints or indexes on the table that is the target of the UPDATE statement. The logging of errors table was created using the DBMS_ERRLOG package. We have created to make sure that we introduced column format errors. The same problem occurs. The UPDATE statement tries to update about 12000 lines. Any help in understanding this problem would be appreciated.

    Here's the error statement
    ORA-02291: integrity constraint (OIFS. FRAME_FK07) violated - key parent not found

    Here is the statement of the problem and its PLSQL block surrounding:

    BEGIN < < update_records > >
    UPDATE image f
    SET (company_name,
    address1_line,
    address2_line,
    address1_city,
    address1_state,
    address1_zip,
    contact1_name,
    contact1_phone_number,
    update_date,
    update_user,
    -Comments,
    facility_name,
    facility_type,
    doing_business_as,
    contact1_phone_ext,
    contact1_fax,
    contact1_email,
    contact2_name,
    contact2_phone_number,
    contact2_phone_ext,
    contact2_fax,
    contact2_email,
    source_survey,
    source_status,
    address2_city,
    address2_state,
    address2_zip,
    facility_location_number,
    attention_line,
    company_official,
    facility_irs_code
    ) =
    (SELECT company_name,
    address1_line,
    address2_line,
    address1_city,
    address1_state,
    address1_zip,
    contact1_name,
    contact1_phone_number,
    SYSDATE,
    user_in,
    facility_name,
    facility_type,
    doing_business_as,
    contact1_phone_ext,
    contact1_fax,
    contact1_email,
    contact2_name,
    contact2_phone_number,
    contact2_phone_ext,
    contact2_fax,
    contact2_email,
    source_survey,
    source_status,
    address2_city,
    address2_state,
    address2_zip,
    facility_location_number,
    attention_line,
    company_official,
    facility_irs_code
    Oifs.respondent r
    WHERE r.cin = f.cin
    )
    WHERE f.cin IN
    (SELECT cin
    Of
    (SELECT cin,
    company_name,
    address1_line,
    address2_line,
    address1_city,
    address1_state,
    address1_zip,
    contact1_name,
    contact1_phone_number,
    facility_name,
    facility_type,
    doing_business_as,
    contact1_phone_ext,
    contact1_fax,
    contact1_email,
    contact2_name,
    contact2_phone_number,
    contact2_phone_ext,
    contact2_fax,
    contact2_email,
    source_survey,
    source_status,
    address2_city,
    address2_state,
    address2_zip,
    facility_location_number,
    attention_line,
    company_official,
    facility_irs_code
    OF oifs.respondent
    LESS
    SELECT cin,
    company_name,
    address1_line,
    address2_line,
    address1_city,
    address1_state,
    address1_zip,
    contact1_name,
    contact1_phone_number,
    facility_name,
    facility_type,
    doing_business_as,
    contact1_phone_ext,
    contact1_fax,
    contact1_email,
    contact2_name,
    contact2_phone_number,
    contact2_phone_ext,
    contact2_fax,
    contact2_email,
    source_survey,
    source_status,
    address2_city,
    address2_state,
    address2_zip,
    facility_location_number,
    attention_line,
    company_official,
    facility_irs_code
    OF oifs.frame
    )
    )
    ERROR IN oifs.frame_load_errors LOG
    (job_num |) ' ' || TO_CHAR (SYSDATE, 'YYYYMMDD HH24:MI:SS'). 'update')
    REJECT LIMIT UNLIMITED;
    EXCEPTION
    WHILE OTHERS THEN
    ohub.err_pkg.record_and_continue (' msg_in = > ' problem to update the lines of FIELD ');
    LIFT;
    END update_records;

    I think and that's just a wild guess, is that your table has a trigger... or an associated view has a relaxing place.

  • SQL statement error INSERT The conflicted with the FOREIGN KEY constraint

    I recently installed a reporting for vmware vsphere software, but I get a SQL error. I opened a request for assistance with vmware, but so far they have not come up with a solution. The error is caused by: com.microsoft.sqlserver.jdbc.SQLServerException: instruction INSERT The conflicted with the FOREIGN KEY constraint 'FK_CB_VSM_NETWORK_VC_ID '. The conflict occurred in database 'VCChargebackVCC02', table "dbo." " CB_VSM_SERVER', column 'VC_ID '. I don't know a lot about SQL, so I'm lost in the extent of troubleshooting is concerned. If anyone has any ideas I'd love to hear them.

    SQL questions are better posed on Technet.  They are better equipped to manage the

    http://social.technet.Microsoft.com/forums/en-us/categories/

  • I get a window which States; - error IM32FAX. DIL how to refund it?

    I keep getting a window displaying;

    Error

    IM32FAX. DIL

    Not found

    Ok

    What is the problem and how to fix it?

    Hi Dennis,

    Please report the problem to Microsoft Community.

    It would be great if you can answer the following questions:

    1 have had any changes made on the computer before the show?

    2. What is the brand and model of the computer?

    3. when exactly you get the error message?

    The error message you get to start usually occurs if an application of Lexmark or a Lexmark device does not work correctly. You can try to uninstall and reinstall the Lexmark applications installed.

    You can view the following link to uninstall a program:

    Uninstall or change a program

    http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program

    If this seems to fix the problem, you can contact Lexmark to obtain the latest drivers Lexmark and installed applications to continue using Lexmark devices.

    Let us know if it helps, and if you need additional assistance.

  • Java if statement error: cannot reference a Variable no final inside an inner class defined in a different method

    Hi, I am a newbie to blackberry java development, and I need help. I want to check if my SearchBox is equal to 1, or any other number, but when I try and put this, I get an error, could you take a look and tell me where I'm wrong, and how I can solve this problem.

    See you soon,.

    Max.

     BasicEditField SearchBox = new BasicEditField("Go To Page Number: ", "", 3, EditField.FILTER_DEFAULT);
        add(SearchBox);
        ButtonField myPageButton = new ButtonField("Go to Page",ButtonField.CONSUME_CLICK);
        hfm3.add(myPageButton);
        add(hfm3);
    
        myPageButton.setChangeListener(new FieldChangeListener(){
            public void fieldChanged(Field Field, int context){
            if(SearchBox.equals("1"));
                Page1 Page1 = new Page1();
             UiApplication.getUiApplication().popScreen(Ui.getUiEngine().getActiveScreen());
             UiApplication.getUiApplication().pushScreen(Page1);
        }});
    

    If you want to access a local variable in an inner class you must make final.
    Another option would be to declare the variable in the class.

    Another thing: Searchbox will equal never '1', you need to use getText to return the text of the editfield.

  • Insert statement error

    Hello

    I have to write an insert statement. in which I want to promt user to enter values.

    Here's the app_name column varchar2 data type.

    INSERT INTO GSM_APP_INFO
    (APP_NAME)
    values
    (& app_name);

    but make a mistake:
    ORA-00984: column not allowed here


    Please suggest me.

    Thank you

    Use single quotes

    insert into gsm_app_info
    (app_name)
    values
    ('&app_name');
    
  • End of SQL statement error

    Hello

    I am trying to use a command to update to store the values in the column number of days.

    Don't know why it keep saying there is syntax error

    It is in the Source region of a report.
    Select
    "ID."
    '' BANK. ''
    "FDATE."
    "FFICHIER,"
    "CLERK."
    "MORTGAGE_FILE_NUMBER,"
    "MORTGAGOR."
    "PROPERTY_ADDRESS,"
    "OCCUPATION."
    "INSURED."
    "COMMISSION."
    "READY."
    "PM_COST,"
    "NUMBER_OF_DAYS."
    "PROBLEMATIC."
    "DEGENERATE."
    "LIST_TERM,"
    "CLOSING".
    "registration".
    UPDATED "REGISTRATION".
    "Number_of_Days' = BOX SET
    WHEN 'FDATE' IS NULL NULL THEN
    Else (to_date ("READY", "MM/DD/YYYY '")-to_date ("FDATE","MM/DD/YYYY '))
    END

    Then just run it. Nothing else

    create or replace trigger "PDBL2_T1".
    FRONT
    Insert or update on 'PDBL2 '.
    for each line
    declare
    number of v_number_of_days;
    Start
    IF: NEW. END_DATE IS NULL THEN
    v_number_of_days: = NULL;
    ON THE OTHER
    v_number_of_days: = to_date(:NEW.) End_date, ' DD/MM/YYYY') - to_date(:NEW.) START_DATE, "DD/MM/YYYY");
    END IF;
    : NEW. NUMBER_OF_DAYS: = v_number_of_days;
    end;

    Published by: Sheikh Mehabub on August 8, 2012 07:20

Maybe you are looking for