Interface Value

I want my interface to display a value in a text field (text field #2) that is the same value as a different text field (text field #1). The purpose is to save the user time so he doesn't have to type the information twice.

Text field #1 saves to a RULE INPUT called RECORD. Text field #2 saves to a RULE INPUT called EQUIPMENT. 

The interface is ignoring the value displayed in text field #2, even though it displays a value in text field #2. As a result, no value is stored in my CDT for text field #2.

My process model has a "Write to" for both RULE INPUTS and everything is going good except for this one thing that I want to carry from text field #1 to text field #2.

Here is text field #1:

a!textField(
label: "Training Event",
labelPosition: "ABOVE",
value: ri!record.trainingevent,         <<<<<<<<<<<<<<<<<<<<<<
saveInto: ri!record.trainingevent,
characterLimit: 255,
showCharacterCount: false,
required: false
),

Here is text field #2:

a!textField(
label: "Training Event",
labelPosition: "ABOVE",
value: ri!record.trainingevent,         <<<<<<<<<<<<<<<<<<<<<<<<
saveInto: ri!equipment.trainingEvent,
characterLimit: 255,
showCharacterCount: false,
required: false
),

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    HI, You would need to save 2nd rule input value in first text field's saveInto parameter like below,

    a!textField(
    label: "Training Event",
    labelPosition: "ABOVE",
    value: ri!record.trainingevent,         <<<<<<<<<<<<<<<<<<<<<<
    saveInto: {
    ri!record.trainingevent,
    a!save(ri!equipment.trainingEvent,ri!record.trainingevent)
    },
    characterLimit: 255,
    showCharacterCount: false,
    required: false
    ),
    
    Here is text field #2:
    
    a!textField(
    label: "Training Event",
    labelPosition: "ABOVE",
    value: ri!equipment.trainingEvent,         <<<<<<<<<<<<<<<<<<<<<<<<
    saveInto: ri!equipment.trainingEvent,
    characterLimit: 255,
    showCharacterCount: false,
    required: false
    ),

Reply
  • 0
    Certified Senior Developer

    HI, You would need to save 2nd rule input value in first text field's saveInto parameter like below,

    a!textField(
    label: "Training Event",
    labelPosition: "ABOVE",
    value: ri!record.trainingevent,         <<<<<<<<<<<<<<<<<<<<<<
    saveInto: {
    ri!record.trainingevent,
    a!save(ri!equipment.trainingEvent,ri!record.trainingevent)
    },
    characterLimit: 255,
    showCharacterCount: false,
    required: false
    ),
    
    Here is text field #2:
    
    a!textField(
    label: "Training Event",
    labelPosition: "ABOVE",
    value: ri!equipment.trainingEvent,         <<<<<<<<<<<<<<<<<<<<<<<<
    saveInto: ri!equipment.trainingEvent,
    characterLimit: 255,
    showCharacterCount: false,
    required: false
    ),

Children