Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Off Power App : TimeOffTypes:Allotted Time #118

Open
ThomasMichelsen opened this issue Aug 18, 2023 · 3 comments
Open

Time Off Power App : TimeOffTypes:Allotted Time #118

ThomasMichelsen opened this issue Aug 18, 2023 · 3 comments

Comments

@ThomasMichelsen
Copy link

Describe the bug
I created the Sharepoint lists exactly as described, but the reference does not seem to work.

To Reproduce
Steps to reproduce the behavior:

  1. Get and extract the zip in PA Studio
  2. Use the App-Control to see the error

Expected behavior
A working reference to the Sharepoint list

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows11
  • Browser: Edge
  • Version: 115.0.1901.203 (Officielt build) (64-bit)

Additional context
Now, allthough I configured it as described, there is a difference between how it is written:
In the code it is like this, without spaces in the listname and spaces in the column name: TimeOffTypes:Allotted Time
In the Sharepoint it is the opporsite, with spaces in the listname and without spaces in the column name: Time Off Types - AllottedTime
I have tried to correct this in the code, but with no success.

@ThomasMichelsen
Copy link
Author

Try this. These references works for me. I get a "devision by xero" error that I don't understand, though.

"data:image/svg+xml," & EncodeUrl( " <circle class='donut-segment' cx='21' cy='21' r='15.91549430918954' fill='transparent' stroke='#d2d3d4' stroke-width='3' stroke-dasharray='" & ThisItem.RequestedTimeOff / ThisItem.'Allotted Time Off' * 100 & " " & (100 - ThisItem.RequestedTimeOff / ThisItem.'Allotted Time Off'*100) & "' stroke-dashoffset='25'> " )

Best regards,
Thomas

@arpita739
Copy link

Did you figured out how to work with this one?

@arpita739
Copy link

Same for me this one doesn't work:
Text(LookUp('Time Off Balances',Employee.Email = curUserEmail && TimeOffType.Value = selectedType.Title).'TimeOffType:AllottedTime'.Value *1,"[$-en-US]#")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants