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
If( SharePointForm1.Mode = FormMode.Edit, LookUp(DataSourceName, 'Vendor Name' = ThisItem.'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!
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') )
If( SharePointForm1.Mode = FormMode.Edit, LookUp(DataSourceName, 'Vendor Name' = ThisItem.'Vendor Name').'Vendor Name' )
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")
User | Count |
---|---|
254 | |
250 | |
82 | |
44 | |
27 |
User | Count |
---|---|
343 | |
266 | |
126 | |
61 | |
58 |