Collect(
yourSOCollection,
{
Name: "",
Email: "",
Designation: "",
Contact: "",
RandID: Rand(),
ID: Last(
Sort(
'System List',
ID,
SortOrder.Ascending
)
).ID + 1
}
)
yourSOCollection
UpdateContext({varEditItem: ThisItem.RandID})
Patch(
yourSOCollection,
ThisItem,
{
Name: TextInput4.Text,
'Email': TextInput4_1.Text,
'Designation': TextInput4_2.Text,
'Contact': TextInput4_3.Text
}
);
UpdateContext({varEditItem:0})
ForAll(
yourSOCollection As ITEM1,
Patch(
'SO Details',
Defaults('SO Details'),
{
Title: ITEM1.Name,
'SO Email': ITEM1.Email,
'SO Designation': ITEM1.Designation,
'SO Phone': ITEM1.Contact,
System_List_ID: ITEM1.ID
}
)
);
UpdateContext({varEditItem: ThisItem.RandID})
If(
varEditItem.ID = ThisItem.ID,
DisplayMode.Edit,
DisplayMode.View
)
UpdateContext({varEditItem: ThisItem})
If(
!IsBlank(varEditItem),
DisplayMode.Edit,
DisplayMode.View
)
UpdateContext({varEditItem: ThisItem})
Patch(
yourSOCollection,
ThisItem,
{
Name: TextInput4.Text,
'Email': TextInput4_1.Text,
'Designation': TextInput4_2.Text,
'Contact': TextInput4_3.Text
}
);
UpdateContext({varEditItem: Blank()})
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.