Interface Live view 17.4

17.4
Does anyone faced the below issue:(issue Im facing only when Interface created by using load())
I have a form which displays 5 fields, i will get data from DB using query entity for those fields and display to user. I will mark three of them are Read only and will allow user to update only two fields. I have button configured at the end of the form with Update an cancel. I created two rule inputs one is of type CDT to save the two fields that user is editing and other is of type text to save the button action. Now when i tried to check in the live view the changes are not getting reflected in the CDT interface inputs, I can see the change only in the button rule input.

e.g.
Interface Inputs:
Id number(integer)
taskDetails CDT of type AMS_taskDetails
btnAction text


= load(
 ri!taskDetails:cast(typeof('type!{xyz.appiancloud.com/.../}AMS_taskDetails'()),rule!getTaskDetailsById(
    Id: ri!Id,
    pagingInfo: topaginginfo(
      1,
      1
)
)),

 
  a!formLayout(
    label: "Update Task Details " & ri!Id,
    instructions: "Pelase Update Task End date and Time and Comments",
    contents: {
      a!textField(
        label: "Engaged Work ID:",
        labelPosition: "ABOVE",
        value: ri!Id,
        readOnly: true
      ),
      a!textField(
        label: "Task ID:",
        labelPosition: "ABOVE",
        value: toInteger(
          index(
            ri!taskDetails,
            "taskID",
            " "
          )
        ),
        readOnly: true
      ),
      a!textField(
        label: "Task Name:",
        labelPosition: "ABOVE",
        value: index(
          ri!taskDetails,
          "taskName",
          ""
        ),
        readOnly: true
      ),
     
      a!dateTimeField(
        label: "Task End Date and Time:",
        required: true(),
        value: ri!taskDetails.estEndDateAndTime,
        saveInto: {
          ri!taskDetails.estEndDateAndTime
          },
        validations: if(
          todatetime(
            ri!taskDetails.estEndDateAndTime
          ) < now(),
          "Date Cannot be Past",
          {}
        )
      ),
      a!paragraphField(
        label:"Task Comments",
        labelPosition: "ABOVE",
        value:ri!taskDetails.taskComments,
        saveInto: {
         ri!taskDetails.taskComments
         
          },
        required:true(),
        height:"SHORT"
        )
      
     
    },
    buttons:a!buttonLayout(
      PrimaryButtons:{
        a!buttonWidgetSubmit(
          Label:"Update Info",
          style:"PRIMARY",
          value:"updateInfo",
          saveInto:ri!btnAction,
           confirmHeader:"Are you sure you want to Update the End date and time and Comments?",
           confirmButtonLabel:"Yes",
           cancelButtonLabel:"No"
          
        ),
        a!buttonWidgetSubmit(
          Label:"Cancel Changes",
          style:"DESTRUCTIVE",
          value:"cancelChanges",
          saveInto:ri!btnAction
        )
       }
    )
  )
)

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Hi by any chance, did you try cleaning the browser history, cookies and cache before acting on that interface again.

    However to identify or debug this issue quickly, can you try creating a similar interface with similar type of inputs from a different system, are you still facing the same issue. If so, try restarting the server (if you are on local server) and try to raise a support ticket (if you are cloud premises)


    But I believe it will be a browser cache issue.

    Hope this will help you in identifying and debugging this issue.
  • 0
    A Score Level 2
    in reply to aloks0189
    Hi Alok thanks for your reply, Surprisingly when I comment out the query entity and then perform any action on the two editable fields then I can see the changes in interface Inputs. So I this is not a browser cache problem. Just want to know did anyone facing the same issue. I'm just checking the 17.4 features mean while I noticed this.
Reply Children
No Data