cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tejaswini1234
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
yashag2255
Dual Super User II
Dual Super User II

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!

hii,,

 

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

 

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.

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')
)

 

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!

Still it shows blank value

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (37,556)