Hello,
My power app has two Combo Box:
Combo Box 1 Name: ComboBox_USR_Logon
Connected to SQL table: D_Users
Layout: Double
Primary Text: USR_LogonName VARCHAR(50)
Secondary text: USR_FullName VARCHAR(50)
SearchField: USR_FullName
Combo Box 2 Name: ComboBox_selectUGP
Connected to SQL table: D_Groups
Layout: Double
Primary Text: UGP_Nr VARCHAR(50)
Secondary text: UPG_Name VARCHAR(50)
SearchField: UGP_Name
I need a button with a function that will write to the SQL Table all combinations of the selected UGP_Nr.
A pair of UGP_Nr combinations must be separated by *
Table for writing:
Name: GroupsCombination_per_User
It has two fields:
Field1: USR_LogonName VARCHAR(50)
Field2: UGP_Nr_Combinations VARCHAR(50)
Sample data:
ComboBox_USR_Logon: USER1
ComboBox_selectUGP: 2000, 2351, 1345
The table should be written in the following form:
USER1, 2000*2351
USER1, 2351*2000
USER1, 2351*1345
USER1, 1345*2351
USER1, 1345*2000
USER1, 2000*1345