wizard choosefromlist (cfl) multipleselection
MauricePrager
Hello!
I already found several Topics about the issue multipleselection in a cfl.
But, I didn't understand the solution.
Do you have an example for me, how I can create a cfl on a textedit field with multipleselection?
The selected rows should be taken into the textedit field divided by ";" (semicolon).
Thanks a lot
Maurice
Anders Olsson
Hi Maurice,
You can use the ChooseFromList event to get the selected values to create the desired output. You can use something like this in a FormLoad Optimizer rule to create the CFL:
SwissAddonFramework.UI.Dialogs.ChooseFromList cfl = new SwissAddonFramework.UI.Dialogs.ChooseFromList(new SwissAddonFramework.UI.Dialogs.ChooseFromList.SQLQuery("SELECT blabla"), "Description", true, false, TextEdit.GetFromUID(form, "T_0FAM"));
cfl.ChooseFromListEvent += delegate(ChooseFromListEvent e)
{
if (e.Results.Count > 0)
{
string[] arr = new string[2];
e.Results[0].Values.CopyTo(arr, 0);
// Key/value pairs are now in the array. Iterate through to construct semi colon delimited output and write the result to a SAP field
}
};
MauricePrager
Thx a lot!!! That helped!
0
Please sign in to leave a comment.
Comments
0 comments