cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Customization of Leave Request Template App - issue/errors

Hi Experts,
 
I am trying to customize the Leave Request Template App, to reflect my needs in regards to type of leaves, but once I update the App OnStart collection, I am faced with 200+ errors in the "App checker".
 
I have reviewed all the other treads about this, but its only general suggestions or thigs i already did(as menitoned above).
Those are the threads i found:
https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/PowerApps-Template-Leave-Request/td-...
https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Issues-with-request-leave-power-app/...
 
And the latest one:
https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Leave-Request-Customization/m-p/3429...
 
I cannot seem to understand where else i should update the Variables or Collections, since i see such to be able only at the OnStart App Property.
 
My goal is to leave only Vaction and Sick Leave as types and balance + adding 1 more specific type of leave , which should go as suggested with the folllwing :
 {             
                  type: "TypeName",
                  icon: 'iconImage',  /* iconImage and iconSelectedImage represent the image files you have embedded within your app*/
                  iconselected: 'iconSelectedImage',
                  description: "Description..."
               }
 
Could anyone help me out with navigating thourg this?
 
PP: I have as well watched Shane + Laura videos and went throug MS Docs articles on Variables and Collections. Still in the dark.
 
Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Customization of Leave Request Template App - issue/errors

Hi @Anonymous ,

I'm glad that you've taken my advice!

Do you have any other problems?

If not , could you mark my answer as solution?

Thanks!

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Re: Customization of Leave Request Template App - issue/errors

Here are few screenshots:
Edited collections:
------------------------------

collection 1.PNGcollection 2.PNG

 

 

Errors:

=============error 1.PNGerror 2.PNG

Community Support
Community Support

Re: Customization of Leave Request Template App - issue/errors

Hi @Anonymous ,

Do you want to customize these three collections: RequesterBalanceCollection, LeaveCollection, BalanceCollection?

If so, you not only need to modify the formula in App.OnStart, but also you need to change all the formulas about these three collections.

For example: HomeScreen's OnVisible, LeaveBalanceScreen's OnVisible,ComfirmationScreen's OnVisible, ManagerChangeRequestScreen's OnVisible, ManagerSendEmailScreen's OnVisible,etc.

Please check all the formulas one by one. Anyone related can not be left.

Actually, customize  a template is a little complex.

I recommend you refer template and create a similar app by yourself. Everything will be more easier.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: Customization of Leave Request Template App - issue/errors

Hi @v-yutliu-msft ,

 

I just want to resolve the errors, and everywhere i could find relation i modified the forumula, unfortunatelly there are some lefovers in the variables and i am not able to navigate to resolve them.

 

I think as suggested, it will be best to create new app and just use the template for reference.

 

Thanks anyway!

Community Support
Community Support

Re: Customization of Leave Request Template App - issue/errors

Hi @Anonymous ,

I'm glad that you've taken my advice!

Do you have any other problems?

If not , could you mark my answer as solution?

Thanks!

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (8,764)