Skip to Content
avatar image
Former Member

Picker View of FUIValuePickerFormCell wont appear

Hi, I've autogenerated an application from the SAP Cloud SDK Assistant through this tutorial that i followed, and I'd like to use a FUIValuePickerFormCell in the detail view of the application, but can't seem to do so.

I've used the sample codes given by the SAP Fiori mentor app, and added a Table View Cell of class "FUIValuePickerFormCell" in main.storyboard, but nothing happens when the cell is tapped, the pickerview doesn't come up, nor is the cell editable. Does anyone knows why is this so? Below are the codes that I used

case 6:
let cell = tableView.dequeueReusableCell(withIdentifier: FUIValuePickerFormCell.reuseIdentifier, for: indexPath) as! FUIValuePickerFormCell
            valuePickerCell = cell
            cell.isEditable = true
            cell.keyName = "Appointment Status"
            cell.valueOptions = ["1", "2", "3"]
            cell.value = 0 //index of first value
            cell.onChangeHandler = { newValue in
                if let option = self.valuePickerCell?.valueOptions[newValue]{
                    print("Selectede value option \(option)")
                }
            }
            return cell

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 31, 2017 at 09:54 AM

    Some questions:

    - Is your table view controller a subclass of FUIFormTableViewController?

    - You did not set the cell height to a fix value?

    Regards,
    Florian

    Add comment
    10|10000 characters needed characters exceeded