Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Evaluation of local variables...

Hi,

why is it that in the following example (from tutorial 103) the query rule is evaluated on first load and the other local!Variables seem to be evaluated whenever there is a change?

a!localVariables(
  local!locationsList: rule!ONT_INT_getAllAddresses(
    adressID: null
  ),
  local!newAddress: 'type!{urn:com:appian:types:ONT_INT}address'(),
  local!showAddressBox: false,
  {
    a!sectionLayout(....

Later  the option List in the tutorial example  gets appended  with a newly entered address

a!buttonWidget(
              ...
                ),
                a!save(
                  target: local!locationsList,
                  value: append(
                    local!locationsList,
                    local!newAddress
                  )

My expectation was

a) the list gets appended

b) appian re-evaluates the variables in the form and

c)  the added element would be lost after the update of the value of the local variables, because the definition of : " local!locationsList: rule!ONT_INT_getAllAddresses( adressID: null ) in the first line would overwrite the latest change...

But it does not.

How does Appian now which variable to update and which not?

Thx and sorry for asking

  Discussion posts and replies are publicly visible

Parents Reply Children