- srodney
- Posts : 1
Join date : 2018-12-20
Select an Associate for a Precedent
Wed 22 Jan 2020 - 12:19
Hi, I've created a common method that deals with creating precedents in Taskflow. This code loops through the associates on the file and as soon as it finds the first associate of that type on the file the code breaks out of the loop (Although there is the option to send to all associates on the file using a Boolean MultiAssociate paramater that is passed in.)
__________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________
cheers Peter, I've done this...
__________________________________________________________________________________________________________________________________
I32Window is the Window Handle of the calling application, I think you maybe able to put null in that parameter. If that doesn't work re post and I will dig a snippet out on how you can get the current window handle, Regards
__________________________________________________________________________________________________________________________________
You can usually send in 0 (zero) which is the desktop G
__________________________________________________________________________________________________________________________________
Hi Graham I wouldn't send 0 as this is a non defined handle and on Terminal Services/Citrix machines can actually be redirected to the core console. If null doesn't work you should really find out the calling application otherwise your dialog will be parented to an incorrect window and maybe hidden from user view. Regards
__________________________________________________________________________________________________________________________________
cheers guys, I've used null and it uses the current window.thanks
- Code:
foreach (FWBS.OMS.Associate associate in CurrentFile.Associates)
{
if (associate.AssocType == assocType)
{
//Code Here to create precedent using Precedent and PrecedentJob objects.
if (!multiAssociate) break;
}
}
__________________________________________________________________________________________________________________________________
- Code:
FWBS.OMS.UI.Windows.Services.Searches.PickAssociate(...)
__________________________________________________________________________________________________________________________________
cheers Peter, I've done this...
- Code:
FWBS.OMS.Associate assoc = FWBS.OMS.UI.Windows.Services.Searches.PickAssociate(CurrentFile);
- Code:
FWBS.OMS.UI.Windows.Services.Searches.PickAssociate(??????, CurrentFile, “INDIVIDUAL”, “INSURED”, “Pick”, false);
__________________________________________________________________________________________________________________________________
I32Window is the Window Handle of the calling application, I think you maybe able to put null in that parameter. If that doesn't work re post and I will dig a snippet out on how you can get the current window handle, Regards
__________________________________________________________________________________________________________________________________
You can usually send in 0 (zero) which is the desktop G
__________________________________________________________________________________________________________________________________
Hi Graham I wouldn't send 0 as this is a non defined handle and on Terminal Services/Citrix machines can actually be redirected to the core console. If null doesn't work you should really find out the calling application otherwise your dialog will be parented to an incorrect window and maybe hidden from user view. Regards
__________________________________________________________________________________________________________________________________
cheers guys, I've used null and it uses the current window.thanks
Permissions in this forum:
You cannot reply to topics in this forum
|
|