cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Custom Sharepoint Form - Viewing items from within Sharepoint

Hi,

 

I have built a custom form for my SharePoint list using PowerApps. Whenever I go to my SharePoint list to view an item it now opens the Powerapp. This wouldn't be an issue by itself, however, a lot of the fields from the Sharepoint list remain empty when viewing. 

 

Here some screenshots: 

WaterAndTomato_0-1660126624313.png

Here you can see highlighted some info I would want to be able to view when Opening the item. (Sorry I had to censor the rest because of confidentiality)

Here you can see the Opened detail view of the last item

WaterAndTomato_4-1660126921122.png

 

As you see, the "Description" field does not show anything. Also "Projected Launch Date of Service" is set to some default date.

 

I couldn't find any way to fix this, so I assumed that I would have to build a separate view mode for the form to use, like so?

 

WaterAndTomato_2-1660126796120.png

 

The problem is, the integration won't let me use the ViewForm as the "OnView" 

WaterAndTomato_3-1660126837192.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Yes

if you are using form integration then you can use LookUp(SPListName, ID=SharepointIntegration.SelectedItemID)


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

View solution in original post

6 REPLIES 6
NandiniBhagya20
Solution Sage
Solution Sage

Hi,
Don't change the OnView property in SharePoint Integration. Let it be "E2E_Request_Form"
Do you need to show FormViewer1 and hide E2E Request Form when form is in view mode ?

If Yes, then you can write below formula on visible property of E2E Request Form - 

If('E2E_Request_Form'.Mode=FormMode.View, false, true)

and on visible property of FormViewer1 you can use

If('E2E_Request_Form'.Mode=FormMode.View, true, false)

Set the Item property of FormViewer1 to SharePointIntegration.Selected If the data source is same 


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Hello Nandini,

 

thanks for the reply!

I'll try this and come back to you if I need further help 🙂

Hi again,

 

so after doing this on SP when opening an item in the list it shows "Getting your data" forever. I looked into this and then tried to see what happens when I switch the viewmodes around with a button in powerapps. 

 

Turns out when the Form is in "View" it shows nothing to display even if I previously input some data into the fields. When I put it in "edit" it's the same... Only in "New" can I see the form and actually work with it.


I am now really confused and don't understand what's happening here to be honest 😞

Hi, 

have you added anything in item property of view form


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

No, it's currently empty. I assume I have to input some link to the SP here for it to start populating the fields I have in there?

Yes

if you are using form integration then you can use LookUp(SPListName, ID=SharepointIntegration.SelectedItemID)


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Helpful resources

Top Solution Authors
Top Kudoed Authors
Users online (3,587)