cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: FUIKPIProgressView inside FUIKPIHeader crash

AlexGiguere
Contributor
0 Kudos

If you use the FUIKPIProgressView inside a FUIKPIHeader it crash

I can see there is an internal property

even if I set it to true, it still crash

There is a lot of bugs in this SDK

please fix it

thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Alexandre,

Thank you for providing the code snippet. This issue has been fixed in the latest patch, could you kindly retry with it.

https://store.sap.com/sap/cp/ui/resources/store/html/SolutionDetails.html?pid=0000014485

Thanks,

Thasneem

AlexGiguere
Contributor
0 Kudos

thanks, I just downloaded the latest patch and yes it works now (no crash)

but there is one more bug, the progress and it's tint color don't show

have you tested this or am I missing something? I am following the documentation

thanks

AlexGiguere
Contributor
0 Kudos

I have found something interessting

if you set this

kpiProgressView.isEnabled = false

it works, you can see the progress view tint color of 75%

but if you set it to true or don't set it, there are no progress indicator like in the photo above

thanks

AlexGiguere
Contributor
0 Kudos

thanks Andreas, sure, I used the code snippet from the SAP Mentor

var kpiProgressView: FUIKPIProgressView!

// KPI Position

kpiProgressView = FUIKPIProgressView(frame: CGRect())

kpiProgressView.chartSize = .small // Default

// KPI Content

kpiProgressView.isArrangedInKPIHeader = true

kpiProgressView.items = [FUIKPIMetricItem(string: "75"), FUIKPIUnitItem(string: "%")]

kpiProgressView.progress = 75 / 100

kpiProgressView.captionLabelText = "Completed"

kpiProgressView.tintColor = UIColor.preferredFioriColor(forStyle: .primary3)

kpiHeader = FUIKPIHeader(items: [kpiProgressView])

I am calling this in ViewDidLoad

after I do this

tableView.estimatedRowHeight = 98

tableView.rowHeight = UITableViewAutomaticDimension

tableView.backgroundColor = UIColor.preferredFioriColor(forStyle: .backgroundBase)

tableView.separatorStyle = .none

tableView.tableHeaderView = kpiHeader

tableView.delegate = self

tableView.dataSource = self

If you want also I could send you the Xcode project, for now I am just testing the SAPFiori framework with Mock Data inside a plist file

thanks

aschlosser
Employee
Employee
0 Kudos

Alexandre,

Thanks for reporting this; can you please share the code snippet that you're using so I can forward this to the team for analysis?

Thanks
Andreas

AlexGiguere
Contributor
0 Kudos

damn I just reply to my own answer, please check my post reply above

thanks