Link to home
Start Free TrialLog in
Avatar of kspuea
kspuea

asked on

Closing UIDocument problem

Hi all,

I have a database which will launch a frameset(contains 4 frames) when opening.
1) I display a view in the centre frame, and the document selected/highlighted in the view will be displayed in the bottom frame.
2) I have 1 action button (called Import) on the document which will display a dialogbox for user to import something.
3) The system will read data from a CSV file and show the data on a new document for user to compare, before importing.
4) If user clicks Confirm Update button on the new document, the system will start processing.
5) And once updating data is done, the system will close the window.

So, my problem is:
1) If the user clicks the Import button when the document is displayed in the bottom frame, I will have only 1 window screen(which is my db screen). So when the updating is done, the whole application is closed automatically.
2) However, if the user opens the document in full screen, and cliicks the Import button, then I will have 2 window screens (1 is db screen, 1 is the UIDoc screen), so after importing, only the UIDoc screen is closed, the application is still opening.

My question is, can I detect it that the document is in the bottom frame or in full screen when the user clicks the Import button?

Thanks very much in advance.

~kspuea
Avatar of HemanthaKumar
HemanthaKumar

Yes you can... Check InPreviewPane property of uidoc

~Hemanth
Avatar of Sjef Bosman
Please read also http:Q_20877251 and http:Q_20796876

So I would say "No, this is not possible". The only thing you can try is to explicitly use the TargetFrame possibilities mentioned in Frames and Pages, or the @SetTargetFrame function. But if you find a way to handle your problem in a more or less general way, I'd really love to read about it!
Avatar of kspuea

ASKER

Hi Hemanth, nope, I have tried that method, it doesn't work.

sjef_bosman, I can't use TargetFrame methods...
Well, I will keep on trying. If I can get a workaround, definitely will let you guys know.

Thanks very much!

~kspuea
ASKER CERTIFIED SOLUTION
Avatar of HemanthaKumar
HemanthaKumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kspuea

ASKER

Can achieve by HemanthaKumar's method.
However, I need to change abit of my programs.  :)

~kspuea