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

i got blank values in combo box and text box field when share point list item is edited using power apps

i have customized sharepoint list  in power apps and took azure sql table has Naame column which values in combo box appeared ,, when that combobox  value is selected ,its related address should shown on text box.when new form is going to create , its working fine and value which is seletced in combo box its associated address comes into textbox.

But when existing item is going to edited, that time   combo box and address field is blank.

i set defaultselected property of combobox to 

If(
SharePointForm1.Mode = FormMode.Edit,

{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: ThisItem.'Vendor Name'
}
)

 

 

and default property of textbox to

combobox1.selected.Address

 

 

How do i solve it ? in update of sharepoint form, combobox and textbox which is used gets blank

 

7 REPLIES 7
Highlighted
Dual Super User III
Dual Super User III

Re: i got blank values in combo box and text box field when share point list item is edited using power apps

Hi @Tejaswini1234 

 

Can you try to update your formula as:
If(
SharePointForm1.Mode = FormMode.Edit,
LookUp(DataSourceName, 'Vendor Name' = ThisItem.'Vendor Name')
)
Here, you need to replace DataSourceName with the name of your actual Data Source and 'Vendor Name' is the name of column which holds this value.

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Helper IV
Helper IV

Re: i got blank values in combo box and text box field when share point list item is edited using power apps

hii,,

 

it gives me error,, how do i solve it?

 

Highlighted
Dual Super User III
Dual Super User III

Re: i got blank values in combo box and text box field when share point list item is edited using power apps

Hi @Tejaswini1234 

 

How are you setting the context for ThisItem.'Vendor Name'. Is there a gallery on the page? Can you share the error details?
Also, share the "Items" property of this combobox control.
Highlighted
Helper IV
Helper IV

Re: i got blank values in combo box and text box field when share point list item is edited using power apps

I am going to customized sharepoint list ,i took one dropdown list (Company) , combo box (Vendor )  and text box (Address), values of  comapany drop down list  and Vendor combo box comes from  azure sql database ,, when company drop down list is selected, its associated vendors should be displayed in combo box and when combobox value is selected its associated address should be displayed in textbox,,

but when on sharepoint form edit,, address , vendors gets blank. 

 

 

 

i used  below  but it gives me error like expect text value

 

If(
SharePointForm1.Mode = FormMode.Edit,
LookUp(DataSourceName, 'Vendor Name' = ThisItem.'Vendor Name')
)

 

Highlighted
Dual Super User III
Dual Super User III

Re: i got blank values in combo box and text box field when share point list item is edited using power apps

Hi @Tejaswini1234 

 

Can you update your expression as:
 
If(
SharePointForm1.Mode = FormMode.Edit,
LookUp(DataSourceName, 'Vendor Name' = ThisItem.'Vendor Name').'Vendor Name'
)
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Highlighted
Helper IV
Helper IV

Re: i got blank values in combo box and text box field when share point list item is edited using power apps

Still it shows blank value

Highlighted
Helper IV
Helper IV

Re: i got blank values in combo box and text box field when share point list item is edited using power apps

combo box defaultselecteditem

If(
SharePointForm1.Mode = FormMode.Edit,
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: ThisItem.'Vendors Name'
}
)

 

combo box item property

Search('[dbo].[vw_FlowAutomation_Vendors]_1',DataCardValue3.Selected.Value,"Company")

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (9,728)