Hi xchewy,
Yes, you will need RConnection to set the IAP programatically so that you didn't get a prompt to select the IAP manually.
You will need to set the preferences before RConnection.Start() using the following code:
Code:
TCommDbConnPref prefs;
// Create overrides (connection preference variable)
prefs. SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
prefs.SetDirection(ECommDbConnectionDirectionOutgoing);
prefs.SetIapId(iConnIdArray[iConnId]);
// Sets the CommDb ID of the IAP to use for this connection
User::LeaveIfError( iConnection.Start(prefs) ); // RConnection instance
Regards,
Suyash.