Help beginners - if statements?

Hi guys,.

I am new to creating forms. I'm trying to make my business more electronic and professional by getting my mechanics to use pdf forms to complete service sheets (we are in the business of truck repair).

I enclose the worksheet I'm trying to convert a form. When I need help, is that I have a drop down list with all my names of mechanics (the list is visible on the screen only, not print). The names are in the format of the first and the last. Before completing the checklist of items, the mechanic must complete the top portion of the form.

You can see that I did a checkbox, drop down and 'read only' next 'Instruments and Gadgets. How I wish it works, is that the mechanic will check the check box if the item is "correct". After him by clicking on the box, I would like to than the textbox 'read only' to fill his initials under "I.D.". For example, if Chris Antolick was chosen as the mechanic in the large drop-down list, and Chris checks out 'Instruments and Gadgets', I would like to that CA to fill the read-only box on this line. I would like also to this same box to fill with his initials if he makes a selection in the drop-down list next to the box instead of the box (for example, if he chooses "X - a need of repair", then his initials will fill the reading only one box).

I would also like to have the initials of mechanics immediately appear at the bottom of page 2 in read only box located on the "Initials" line as soon as the mechanic is selected in the drop-down list at the top of page 1.

I'm more used to Microsoft Access forms and I would have used if instructions to do that here, but I don't think that it is even remotely close to language?

I understand that this is probably some tricky coding, but if someone could help me out that would be very, very, very much appreciated.

The form can be found here: http://motorcyclesaddlebags.bravehost.com/form1.pdf

Thank you!!

Plesae find attached an amended version of your form. I've adjusted your mechanic DDList to display the name of the mechanic, but use the initials as the declared value. See the link of the mechanic DDList tab. I also added the code box and the list of codes to enter the ID with the correct value. The fact tthat you had the field technician and mechanic field defined as global linking makes the declared value is displayed automatically. You will run out of space in the Code column to a DD and a checkbox control... .so I added OK to SD option in the second line to show you how this could work.

Let me know what you think... . If you want me to remove your form of this post, just let meknow and I will.

Paul

Tags: Adobe LiveCycle

Similar Questions

  • Help - nested Case statement

    Hello everyone.  I'm having a hell of a time trying to understand my nested case statement.  It's pretty simple, but I always feel to get this error:

    ORA-00937: not a single group group function
    * 00937. 00000 - 'not a single-group function. "
    Cause:
    Action:

    However, when I try to enter in a "group by" I get this error:

    ORA-00979: not a GROUP BY expression
    * 00979. 00000 - 'not a GROUP BY expression. "
    Cause:
    Action:

    I don't know if there is something wrong with my nested case statement syntax, or miss me something more fundamental. This is my code:
    SELECT AE.EMP_ID,
      CASE
        WHEN EP.PHYSICAL_DATE IS NULL
        THEN
          CASE
            WHEN EC.ORIGINAL_CONTRACT_START < ((SYSDATE) - 365)
            THEN 'NEEDS PHYSICAL'
            WHEN EC.ORIGINAL_CONTRACT_START < ((SYSDATE) - 330)
            THEN 'COMING UP'
            ELSE 'No'
          END
        WHEN MAX(EP.PHYSICAL_DATE) KEEP (DENSE_RANK LAST
        ORDER BY EP.PHYSICAL_DATE) < ((SYSDATE) - 365)
        THEN 'NEEDS PHYSICAL'
        WHEN MAX(EP.PHYSICAL_DATE) KEEP (DENSE_RANK LAST
        ORDER BY EP.PHYSICAL_DATE) < ((SYSDATE) - 330)
        THEN 'COMING UP'
        ELSE 'No'
      END "Needs Physical?"
    FROM AP AE
    LEFT JOIN EMP_PHYSICAL EP
    ON AE.EMP_ID = EP.EMP_ID
    LEFT JOIN POSITION_OFFERED PO
    ON AE.EMP_ID = PO.EMP_ID
    LEFT JOIN EMP_CONTRACT EC
    ON AE.EMP_ID         = EC.EMP_ID
    WHERE PO.ACTUAL_END IS NULL
    AND (EP.PHYSICAL     = 1
    OR EP.PHYSICAL      IS NULL)
    AND :P71_EMP_ID = AE.EMP_ID;
    I appreciate all help. Nice day.

    Aqua

    SELECT AE.EMP_ID,
    CASE
    WHEN EP.PHYSICAL_DATE IS NULL
    THEN
    CASE
    WHEN EC.ORIGINAL_CONTRACT_START < ((SYSDATE) - 365)
    THEN 'NEEDS PHYSICAL'
    WHEN EC.ORIGINAL_CONTRACT_START < ((SYSDATE) - 330)
    THEN 'COMING UP'
    ELSE 'No'
    END
    WHEN MAX(EP.PHYSICAL_DATE) KEEP (DENSE_RANK LAST
    ORDER BY EP.PHYSICAL_DATE) < ((SYSDATE) - 365)
    THEN 'NEEDS PHYSICAL'
    WHEN MAX(EP.PHYSICAL_DATE) KEEP (DENSE_RANK LAST
    ORDER BY EP.PHYSICAL_DATE) < ((SYSDATE) - 330)
    THEN 'COMING UP'
    ELSE 'No'
    END "Needs Physical?"
    FROM AP AE
    LEFT JOIN EMP_PHYSICAL EP
    ON AE.EMP_ID = EP.EMP_ID
    LEFT JOIN POSITION_OFFERED PO
    ON AE.EMP_ID = PO.EMP_ID
    LEFT JOIN EMP_CONTRACT EC
    ON AE.EMP_ID = EC.EMP_ID
    WHERE PO.ACTUAL_END IS NULL
    AND (EP.PHYSICAL = 1
    OR EP.PHYSICAL IS NULL)
    AND :P71_EMP_ID = AE.EMP_ID;
    GROUP BY AE.EMP_ID,EP.PHYSICAL_DATE,EC.ORIGINAL_CONTRACT_START;

    
    

    Hi,

    You need to add Group by clause at the end of the query i have added above.

  • Make "necessary" to help if field statement

    Hello

    This may be really trivial for someone, but I'm doing a text field 1 becomes a required field if someone ticks box 1. This is how far I got:

    var a = this.getField ("box 1");

    var two = this.getField ("text box 1");

    If (one.value == 'True') {two.mandatory = 'error'} else {two.mandatory = "disabled"};

    I entered it as a mouse in action in the box. There is no errors when I did it, but it is not the field is a required field.

    Also; It would be a similar script if I wanted to make the field visible/hidden with a checkbox using .its presence = "hidden" / .its presence = "visible"?

    Any help appreciated!

    OK, some code you use is intended to be used with a form created in LiveCycle Designer. It could be something like the following for an acroform:

    Script mouse upwards to the box

    Get a reference to the text field

    var f is getField ("text 1" box);.

    Set several properties for field based on the State of this checkbox

    If (event.target.value = 'Off') {}

    f.Required = false;

    f.Display = display.hidden;

    f.Value = "";

    } else {}

    f.Required = true;

    f.Display = display.visible;

    }

    This assumes that you want the script that will be triggered when the user activates / turns off the check box and the name of the text field is exactly "text box 1. Note that this code sets the value of a blank text field when the checkbox is not selected, which is normally a good thing to do.

  • JavaScript: Help with IF statement

    I'm not familiar with Java and I fight with this IF statement and I can't make it work.  I'm sure it's something pretty basic.  Can anyone help?  I tried everything, seeminly.  In this example below I'm checking if the data that the user has entered in the field of the AAA FAVOR and if it is then put in place a message and if not then set up another message.  My top node in my hierarchy is data, and then I have a MainSubform and a Contact02Subform.  I have this code attached to a button and notthing happens when I click the button.  If I delete the statement and have just the box of message by itself, then it will display the message box.  So I know that's my statement and I'm sure it's simple.  Help please?

    If

    (xfa.resolveNode("xfa.form.data.MainSubform.Contact02Subform.FAVOR").rawValue == 'AAA')

    {

    xfa.host.messageBox ("my IF");

    else ;

    xfa.host.messageBox ("my ELSE");

    endif;

    Try this.

    If (rawValue. xfa.resolveNode("xfa.form.data.MainSubform.Contact02Subform.FAVOR") is 'AAA')

    {

    xfa.host.messageBox ("my IF");

    }

    on the other

    {

    xfa.host.messageBox ("my ELSE");

    }

    endif is used in FormCalc are generally not in JavaScript.

    Thank you

    Sidonie.

  • HELP with select statement

    Hello all and thanks in advance. I'm sorry if I am posting this in the wrong section. Could someone show me how I can write this statement in oracle? for now, I have as an SQL statement in asp.net VB. Any help would be greatly appreciated!

    SELECT DISTINCT EQP_SERIAL_EQP, EQP_TYP_EQP in #TEMP
    of EQP_BASE
    where EQP_LOCAL_EQP = right (' 000000000000' + ' "& DDLTECHNUMBERS." ") Text & "(', 16) AND EQP_STAT_EQP IN ('C', ' t ',' K')"
    EQP_TYP_EQP GROUP, EQP_SERIAL_EQP
    SELECT DISTINCT EQP_TYP_EQP AS TYPE, count (1) AS COUNTY GROUP #TEMP BY EQP_TYP_EQP
    TRUNCATE TABLE #TEMP
    DROP TABLE #TEMP

    Thank you
    E

    Hello

    SELECT DISTINCT EQP_SERIAL_EQP, EQP_TYP_EQP Into #TEMP
    from EQP_BASE
    where EQP_LOCAL_EQP = right('000000000000' + '" & DDLTECHNUMBERS.Text & "', 16) AND EQP_STAT_EQP IN ('C','T','K')
    GROUP BY EQP_TYP_EQP, EQP_SERIAL_EQP
    SELECT DISTINCT EQP_TYP_EQP AS TYPE, count(1) AS COUNT from #TEMP GROUP BY EQP_TYP_EQP
    

    SELECT DISTINCT temp. EQP_TYP_EQP AS TYPE,
    Count (1) AS COUNT
    Of
    (
    SELECT DISTINCT EQP_SERIAL_EQP, EQP_TYP_EQP
    of EQP_BASE
    where EQP_LOCAL_EQP = substr ("000000000000' |") DDLTECHNUMBERS. Text 1: 16)
    AND EQP_STAT_EQP IN ('C', 'T ', ' K')
    EQP_TYP_EQP GROUP, EQP_SERIAL_EQP
    ) temp
    Temp GROUP BY. EQP_TYP_EQP

    -Pavan Kumar N

  • Need help with SQL statement

    So I am new to SQL and ORACLE. I need to know how to do the commands below in a single statement. I did it in two here, but I have no idea how do it in one. Any ideas?

    ALTER TABLE books
    ADD Catcode VARCHAR2 (3);

    ALTER TABLE books
    ADD CONSTRAINT books_catcode_fk FOREIGN KEY (catcode)
    REFERENCES (catcode) category;

    Any help appreciated ^^
    SQL> ed
    Wrote file afiedt.buf
    
      1  alter table books
      2    add( catcode varchar2(3),
      3         constraint books_catcode_fk
      4            foreign key( catcode )
      5*        references category( catcode ) )
    SQL> /
    
    Table altered.
    

    Justin

  • Help with If statement emergency please!

    Hello world

    I wonder if someone can tell me why flash seems to ignore my statements if, whenever I try to use an it ignores the condition and fair actions command. Its driving me crazy. I don't know that I do something wrong, I just can't cope.

    I put;

    on (release) {}

    If ((_root.eyeshadow = "Rose") & & (_root.lipy = 'Pink')) {}
    _root.correct._alpha = 100;
    }
    }

    It seems just action _root.correct._alpha = 100;
    even when a different color is selected.
    I was wondering can flash read a variable from another script, because otherwise it will not know what eyeshadow and lípy are. I get no error message though.

    Please help someone!
    Thank you
    Stacy.x.

    is this variable declared at the root?

    like you did here
    _root.eyeshadow1._alpha = 100;

    I'm not sure because I don't know what you have

  • Need help with update statement to be used in the stored procedure

    I have the following update statement and I get "ORA-06512. Someone of you can help me.

    ----
    UPDATE MO X SET X.MOMODEL = (SELECT Y.MOMODEL FROM MO Y WHERE Y.MOID = A_TEMP_INT3)
    WHERE X.MOID in (UPDATE MO X SET X.MOMODEL = (SELECT Y.MOMODEL FROM MO Y WHERE Y.MOID = A_TEMP_INT3)
    WHERE X.MOID in (A_TEMP_INT1, (select assocchild from mo_association
    Connect prior assocchild = assocparent
    Start with assocparent = A_TEMP_INT1)); (by selecting assocchild in mo_association
    Connect prior assocchild = assocparent
    Start with assocparent = A_TEMP_INT1));
    ----

    Note: A_TEMP_INT1 and A_TEMP_INT3 are the values of cursor and is assigned to numeric values in the code.


    Thanks for all the help in advance.

    Kind regards
    REDA
    WHERE X.MOID IN
     (SELECT ASSOCCHILD   FROM MO_ASSOCIATION
          CONNECT BY PRIOR ASSOCCHILD = ASSOCPARENT
         START WITH ASSOCPARENT = A_TEMP_INT1
         UNION
      SELECT A_TEMP_INT1 FROM DUAL );
    

    Should work.
    VR,
    Sudhakar B.

  • Numbers. Wanted to help beginners

    I just (yesterday) started using numbers on my MacBook Pro to 2013

    I've never used Excel or any other spreadsheet on computer

    I thought it would be good to make a budgeting

    I encountered a problem using one of the provided templates. One where you type in a budget and on the next page, it is a "transaction table. I reached the end of lines allocated and tried to add as many lines, which I was able to do. The problem is that what I put in these new cells (in the new lines) is not added to the totals of the budgets on the first page of the model

    I realize this is very basic and I am sorry to be so illiterate, but I can't just doesn't a way to solve this issue

    Thanks for any help

    M

    You use one of the categories shown in the budget of the sheet 1 (Budget), when you enter a new item in Transactions on the sheet 2?

    Auto

    Entertainment

    Food

    Home

    Medical

    Personal items

    Travel

    Utilities

    Other

    If you enter a new category or just an empty space in the column C on Transactions it will not pick up this budget.

  • Need help created the state machine which is based

    I need assistance with my labview program. My goal is to write a program that allows the user to activate a switch. When they do this, it will start a loop witch goes on a digital switch for 45 minutes and then 30 seconds and so on until the user did switch the switch off. The time doesn't have to be precise. I use the NI 9476 digital output card.

    I wrote the code to activate the on/off switch. I know add fuction in loop for 45 minutes a stop 30 seconds. I guess that the most effective method would be to use a state machine, but I struggle to understand.

    The program that I wrote so far without loops is attached.

    Thank you

    Barrett

    I couldn't open your vi because I do not have some of the Subvi.

    Nothing wrong with the first example posted, but I interpreted the specification a little differently.

    Edit: There was a small bug in the first zip file.

  • Helps the case statement when

    I am trying to compare the (date) "LATEST_EVENT_DT" to the "Big Date" ().

    So for 'The last event,' show "CANCELLED" If the "more great Date" is superior to the "LATEST_EVENT_DT" and if not, then display the value in the column 'LATEST_EVENT_DESC'. "

    If I take the part "Last event" everything works fine. But with it in I get the error 'keyword not found FROM or planned. " If anyone can help with this?

    Select

    LATEST_EVENT_DT,


    "OIT_Closed_Date", "OIR_Closed_Date", "OIN_Closed_Date."

    largest (LATEST_EVENT_DT, nvl ('OIT_Closed_Date', TO_DATE ('01011950', 'MMDDYYYY')), nvl ('OIR_Closed_Date', TO_DATE ('01011950', 'MMDDYYYY')), nvl ('OIN_Closed_Date', TO_DATE ('01011950', 'MMDDYYYY'))) "Big Date"

    "Last event" =.
    CASE
    WHEN LATEST_EVENT_DT < 'Date of larger' THEN 'CANCELLED '.
    OF OTHER LATEST_EVENT_DESC
    END

    of apex01.greatest_date_vw_SGD

    Thank you

    Steven

    Hi, Steven,

    What is

    "Last event" =.

    supposed to do?  Do you want the column returned by the expression BOX to appear as the "Last event" in the output?  If so, use an alias for column after the expression, as you did with "Big Date".

    You cannot define an alias for column (such as "largest Date") and then refer to this alias in the select even where it has been set.  Derive from the column in a subquery, you can reference it in a great query, like this:

    WITH got_greatest_date AS

    (

    Select LATEST_EVENT_DT

    , "OIT_Closed_Date".

    , "OIR_Closed_Date".

    , "OIN_Closed_Date".

    largest (LATEST_EVENT_DT

    nvl ('OIT_Closed_Date',

    , TO_DATE ('01011950', 'MMDDYYYY')

    )

    nvl ('OIR_Closed_Date',

    , TO_DATE ('01011950', 'MMDDYYYY')

    )

    nvl ('OIN_Closed_Date',

    , TO_DATE ('01011950', 'MMDDYYYY')

    )

    ) AS "Big Date".

    of apex01.greatest_date_vw_SGD

    )

    SELECT eff.*

    CASE

    WHEN LATEST_EVENT_DT< "greatest="">

    THEN "CANCELLED."

    OF OTHER LATEST_EVENT_DESC

    END as the "last event".

    OF got_greatest_date g

    ;

    You really like the names in double quotes?  Most people find them very confusing and a lot more trouble than they are worth.

  • Help with mousedown State in phone version

    Hello

    I am having some problems affecting the mousedown State in the version of phone of my site.

    You can check it out here: www.betterargentina.com

    On the portfolio page, I have some information hidden behind the bottle and when someone clicks on the bottle that he was supposed to appear in the text. Here, it works only in some bottles, in anothers nothing happens and in a few the right image is empty, but it has quite the same way.

    Someone might know why this is happening or know another way I can program the phone interactions?

    Thanks in advance.

    Rita Gomes

    Using the effects Panel, change the opacity for the blocks of text inside buttons from 0 to 100% State in the rollover State.

  • Need help: not prepared statement to return the value:

    Hi refugees,

    In LICS, prepared statement does not return any value...

    This is the code...

    String p_person_id = pageContext.getParameter ("person_id");

    Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();

    String payment_query = "select max (payment_date) in the xxbdf_payslip_detail_mv where assingment_id = (select assignment_id from the people_reporting_info where person_id ' + p_person_id + ') ';

    PreparedStaement stmt = stmt.executeQuery ();

    ResultSet rs = stmt.executeQuery ();

    While ((rs! = null) & & RS.) Next

    {

    java.sql.Date sql_date = rs.getDate (1);

    SOP (SQL_DATE)

    / * I tried this also * /.

    java.util.Date util_date = rs.getDate (1);

    SOP();

    String string_date = rs.getString (1);

    SOP();

    }

    and I have to format the date as "DD-MM-RRRR.

    Please give your valuable suggestions refugees...

    Thank you

    Jaya

    Jaya Hey,

    Write the code below in the PR

    Code for the prepared statement


    String PaymentData;

    String p_person_id = pageContext.getParameter ("person_id");

    System.out.println ("The person Id is" + p_person_id); check the id of the person should not be null.

    try {}

    Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();

    String query = "select max (payment_date) in the xxbdf_payslip_detail_mv where assingment_id = (select assignment_id from the people_reporting_info where person_id ' + p_person_id + '); '

    PreparedStatement stmt = conn.prepareStatement (Query);

    ResultSet = stmt. ExecuteQuery();

    While (resultset.next ())

    {

    PaymentData = (String) resultset.getString("payment_date").toString ();

    }

    Conn.Commit ();

    }

    catch (System.Exception e)

    {

    e.printStackTrace ();

    }

    See below the Code for the Date Format Conversion


    cabu.ui.validate.Formatter formatter = new OADateValidater (PaymentData, "dd-MMM-YY" "");

    Thank you

    Dilip

  • Help with If statement in menu drop down

    Hello

    I'm not too familiar with the implementation of the custom scripts and I was wondering if someone here might be able to help me. I'm figuring a discount in the form of price value if the customer applies for a military/senior discount, but if the customer is not applicable I want the field to calculate the total without factoring in a shed.

    I took a screenshot and circled the field that concerns me in red. If someone could help I would be very happy!

    PricingFormPDF.jpg

    Suppose that the names of the fields are "Subtotal", "Discount military" and "military discount amount.

    You can use this code as the custom of the latter calculation script:

    if (this.getField("Military Discount").value=="Yes") event.value = Number(this.getField("Subtotal").value) * 0.05;
    else event.value = "";
    
  • Need help: complex SQL statement

    Select segment3, 0 "other income."
    , 0 "Sales Services".
    , 0 "staff costs".
    , 0 "other staff costs".
    , 0 'Deputy '.
    , 0 'trip '.
    , 0 "collaborator".
    , 0 'training '.
    , 0 'capital '.
    , nvl (round (sum (nvl(PERIOD_ACTIVITY_A,0) + nvl(PERIOD_ACTIVITY_E,0) + nvl(PRDOPEN_A,0) + nvl(PRDOPEN_E,0)), 0), 0) "Overhead"
    , 0 "financial expenses".
    of PAN. SNP_OP_DETAIL@OFA
    where segment3 = x.new_cc and period_name = p_period
    and segment2 in (select acc_t from the CRP_REPORT_ACCT_DETAIL_T where group_id = 10)
    Group of segment3

    Please, I do not understand select segment3, 0 'other income'... There is no column called 0, what is the 0s in the select statement?

    Secondly, I don't understand PAN. SNP_OP_DETAIL@OFA

    Means says:
    Select segment3, 0 "other income."
    , 0 "Sales Services".
    , 0 "staff costs".
    , 0 "other staff costs".
    , 0 'Deputy '.
    , 0 'trip '.
    , 0 "collaborator".
    , 0 'training '.
    , 0 'capital '.
    , nvl (round (sum (nvl(PERIOD_ACTIVITY_A,0) + nvl(PERIOD_ACTIVITY_E,0) + nvl(PRDOPEN_A,0) + nvl(PRDOPEN_E,0)), 0), 0) "Overhead"
    , 0 "financial expenses".
    of PAN. SNP_OP_DETAIL@OFA
    where segment3 = x.new_cc and period_name = p_period
    and segment2 in (select acc_t from the CRP_REPORT_ACCT_DETAIL_T where group_id = 10)
    Group of segment3

    Please, I do not understand select segment3, 0 'other income'... There is no column called 0, what is the 0s in the select statement?

    0 'other income' means to select a literal value of 0 (zero) with an alias of "other income". double quotes preserve the space and upper/lower case in the alias. This alias (in space) will be difficult to use because of the so called space later.

    Secondly, I don't understand PAN. SNP_OP_DETAIL@OFA

    PAN is probably a schema, SNP_OP_DETAIL a table or view and @OFA there is a link of database indicating the table in a different database

Maybe you are looking for

  • My phone is repairable?

    Hi, I dropped my phone a month ago and I still didn't we go to repair. My phone screen is broken and the LCD screen is cracked so and it still works, but I can't do anything else that press the button on/standby to check the time. In addition, the sc

  • My Bank does not support 8 v (only 6 and 7 v). How can I download previous versions of Firefox?

    As it seems, only v 8 is available for download from mozilla. But I NEED v 7! As my Bank does not support later versions. Simpel as that. Give me a link!

  • Satellite A300D-11 s - keyboard and touchpad freezes

    Hello I have a lot of problems with my Satellite A300D-11 s (for the region of the Adriatic). I have Windows 7 Ultimate with installed all the drivers from the Toshiba site. Everything works perfectly... but... When I first time works laptop, can't i

  • Satellite C660 - suddenly lost sound

    Sound worked perfectly last night... on this morning and nothing. I checked in the Device Manager, does not show is not a problem. Ran A convenience store - no display probs. Updated drivers. Uninstalled and reinstalled sound and still nothing :( Any

  • HP Pavilion 15: HP Pavilion computer 15 laptop

    Help! Of course, my laptop has the drama when it is just out of warranty. Last night, I was doing a word doc - and it just froze so I turned it off and when it's loaded - he had a BLUE SCREEN and said: RECOVERY Your PC/device needs to be repairded -