Skip to main content
December 14, 2022
Question

How to move the row to another view using conditional statement

  • December 14, 2022
  • 4 replies
  • 0 views

On my Appian application website, I have used two record views using a single database table. Now I am using a radio button with the choice value Yes & No. If I select Yes the row should go to another record view if I select No it should be on the same record view on the website.

Please suggest to me how to write the conditional statement to achieve the expected result. 

a!radioButtonField(
label: "Move to NOC Standard Handover",
labelPosition: "ABOVE",
choiceLabels: {"Yes","No"},
choiceValues: {"Yes","No"},
value:ri!record['recordType!{2eff113d-30b2-4e57-8fa0-e59fe7e0115e}NH Handover.fields.{d6c838a0-cfff-4d11-bff4-e6a26c63564f}standardHandoveritems'],
saveInto: ri!record['recordType!{2eff113d-30b2-4e57-8fa0-e59fe7e0115e}NH Handover.fields.{d6c838a0-cfff-4d11-bff4-e6a26c63564f}standardHandoveritems'],
required: true,
choiceLayout: "COMPACT",
validations:{}

4 replies

stefanhelzle0001
Brainy
December 15, 2022

Sure. You would have to implement some filters on these views for each status.

December 16, 2022

Hi @stefan 
Could you please explain in a sample code snippet?
Thankyou

stefanhelzle0001
Brainy
December 16, 2022