how to update multiple columns at same time?

a!update(data:fv!item,index:{"backupBy","backupOn"},value:{loggedInUser(),now()}),  is not correct, how to do it?

  Discussion posts and replies are publicly visible

Parents Reply
  • +1
    Certified Senior Developer
    in reply to immortalvirgil

    given a cdt local!example with the following structure: Id,lastName,firstName
    
    your UI componente like textfield, radiobutton,dropdown, buttonwidget.....
    
    
    
    saveinto:{
        a!save(
            target: local!example,
            value a!Update(
                data: local!example,
                index: "firstName",
                value: "Richard"
            )
        ),
        a!save(
            target: local!example,
            value a!Update(
                data: local!example,
                index: "lastName",
                value: "Michaelis"
            )
        )
    }
    
    

    for a!update you need a proper CDT structure. Index is searching in a "readOnly- way" for a specific value. and you can't update readOnly values ;) 

Children
No Data