Skip to Content
0

BUG: FUIKPIProgressView inside FUIKPIHeader crash

Feb 22 at 05:36 AM

67

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Alexandre Giguere Feb 22 at 07:20 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member
Feb 23 at 12:14 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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

0

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

0
Andreas Schlosser
Feb 22 at 08:46 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

thanks

0