Two quesitons for Picklist window, help please!

Hi,I have a picklist window using picklistcollection with a category view in it, I have two problem with it.

1.If user does not expand the category view and select document, when she click OK, “Invalid selection” message pop-up by notes error message, how to customize this message? I has tried collection.count=0, but it is not working, it is too late for display the message.

2.If use select any of document(s), then click OK, I use “workspace.Prompt(PROMPT_YESNO, “Are you sure you want to process?”, MsgStr2)” for the confirmation. I want this prompt display with the picklist window at the same time, so user will know which document(s) has been selected, but it is not displayed with picklist window at same time, the picklist window dispeared, the the prompt pop-up.

Thanks a lot for any helps for these two question,

Subject: Two quesitons for Picklist window, help please!

You may want to build your own dialog box instead of using the one provided. You will be able to replace the OK button and run your own code (and error checking) with it.

Subject: RE: Two quesitons for Picklist window, help please!

Thanks Phil:But how to build the dialogue box with a view inside like picklist window? Could you please give me a little bit details?

Thanks,