Hi @v-xiaochen-msft
I have two screens, screen1 and screen2. Each screen has a gallery on it, gallery1 and gallery2 respectively.
Each gallery's items property is pointed towards the different data source, a SQL table1, and table2.
In gallery1 onselect property, i have created a variable to store the value of selected rows (sourceid)
Set(sourceid,Gallery1.Selected.Source_Id_Label1.Text);Navigate(Screen6_1,ScreenTransition.Fade);
I have a button(addrow) on screen2 in which Onselect property has some function, used to add a row in the gallery 2
Set(varGridEditable1, true );Patch('DAP.SourceItem',Defaults('DAP.SourceItem'),{SourceItemName:""});
if the addrow button is clicked i need to set the value of source item id (textinput) of gallery2 to the variable sourceid (from gallery1) or by default the value should be ThisItem.SourceId
The below formula i have used on the Sourceid default property is not working
If(defaultval,If(Value(sourceid)>0,ThisItem.SourceId),sourceid)
Regards,
Mahmood