cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anonymia25
Helper IV
Helper IV

Update item in a gallery using different datasource in a form

Hello all,

I have created a gallery from SP List: (Datasource A) with the following formula to navigate to the first screen which is view details screen. The first screen works fine, and here I added another button to navigate to second screen which is update screen with below formula:

 

 

 

Navigate(UpdateScreen,ScreenTransition.None,{itemDetails:LookUp(datasourceA, ID = displayItem.ID)});

 


In Update screen I have an edit form where user can update the fields based from the selected items in the gallery. My question is I want to update the item using Datasource B which are linked to the Datasource A. But the form display no item. I used below formula:

LookUp(datasourceB, ID = itemDetails.ID)

 
Any helps are greatly appreciated. Thanks! 

2 REPLIES 2
gabibalaban
Dual Super User
Dual Super User

Hi @anonymia25 ,

What is your Datasource property for the form ?

If is Datasource A then this datasource is ready to be updated and as you indicated as item to be updated a row from other datasource then of course that the form will not be populated. 

So item property needs to be set as format as the Datasource property in order to have values populated in the form.

 

Hope it helps !

 

Hello @gabibalaban , thanks for the clarification and my form have showed up fine now in the update screen!

Below is the Item property for the form, datasource is Activity.

LookUp(Activity, ID = ticketDetails.ID) // find the specific record in List

 
Although, now I am facing with a new issue on displaying a radio button choices list which are from another datasource (Ticket). Additionally, I wanted to display certain value from the column Substatus. I tried the formula below in Item property of the radio button and there is no error, but the radio button are not being displayed.

Filter(Choices([@Ticket].Substatus), Value = "In Progress" , Value = "Waiting for Info" , Value ="KIV", Value = "Waiting for Info", Value ="Irrelevant", Value = "Resolved")


Here is the Default property formula:

LookUp(Ticket, ID = ticketDetails.ID).Substatus.Value

 
any help are greatly appreciated, thanks!

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (4,554)