Question on using SAIL to pull information from DB

Hi

I am working on version 16.1.

I have a scenario where I want to display names of fruits in my drop down on SAIL whose values I am getting from DB.
In DB there are four distinct fruit names i.e. Apple, Orange, Banana, Mango and I am fetching these values via. query rule on my SAIL interface itself.
The SAIL interface rule is:
                                                                      load(
                                                                                 local!fruit,
                                                                                 local!dropDownValues:union(rule!Get_FruitData().fruitname,rule!Get_FruitData().fruitname),
                                                                                 a!formLayout(
                                                                                          label:"Drop Down Test",
                                                                                          firstColumnContents:{
                                                                                           a!dropdownField(
                                                                                                    label:"Fruit Names",
                                                                                                    placeholderLabel:"Select a fruit",
                                                                                                    choiceLabels:local!dropDownValues,
                                                                                                    choiceValues:local!dropDownValues,
                                                                                                    value:ri!fruit,
                                                                                                    saveInto:{ri!fruit
                                                                                                    }
                                                                                           )
                                                                                          },
                                                                                          buttons:a!buttonLayout(
                                                                                           primaryButtons:{
                                                                                                    a!buttonWidgetSubmit(
                                                  ...

OriginalPostID-211459

OriginalPostID-211459

  Discussion posts and replies are publicly visible

Parents
  • Thank you pavang for replying!!

    No I didn't click on Save Changes earlier but now when I clicked on it I didn't get the error.
    I will be obliged if you could explain the importance of Save Changes and if user does not click on it he will get an error so is there a way to handle this? Also expecting a basic user to always click on Save Changes would be a little difficult.

    Thanks in advance!!
Reply
  • Thank you pavang for replying!!

    No I didn't click on Save Changes earlier but now when I clicked on it I didn't get the error.
    I will be obliged if you could explain the importance of Save Changes and if user does not click on it he will get an error so is there a way to handle this? Also expecting a basic user to always click on Save Changes would be a little difficult.

    Thanks in advance!!
Children
No Data