Hi All,
I am new to PowerApps and would like some help.
I am trying to create an app that can insert new records and edit existing records from a SQL table.
Where I'm stuck is on an Add screen, there are some fields that have to be retrieved from a SQL View. These fields are non-editable and used for inserting into the record being added to the SQL table.
The record being added has 'Customer Name', 'Job Number' - these are selected from a previous screen, 'Date Created' - which defaults to Today's date (these are also non-editable). Then there are some editable text fields. The issue is trying return the fields from the SQL View which will then be stored in the record being added with the editable fields.
I currently have on the Add screen:
DataSource= '[dbo].[Dim_BI_MonthlyProjectReporting2]_3'
Item= LookUp('[dbo].[Dim_BI_MonthlyProjectReporting2]_3', 'Customer Name' = gvCustomer.Result && 'Job Number' = gvJob.Result && Text('Date Created',"[$-en-US]dd/mm/yyyy"))
On the DataCard for the fields from the view:
Default= LookUp('[dbo].[Vw_Powerapps_MonthlyCustomerJobDate]', 'Prospect No_' = gvCustomer.Result && 'Job No_' = gvJob.Result && Text('Date Entered',"[$-en-US]dd/mm/yyyy") = Text(gvDate, "[$-en-US]dd/mm/yyyy"), 'Time Remaining Charge Days')
The fields for the view are showing up as blank. I checked the view and there are values being returned from the view.
Any help would be appreciated.