Solved

Closing UIDocument problem

Posted on 2004-08-05
5
299 Views
Last Modified: 2013-12-18
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
0
Comment
Question by:kspuea
  • 2
  • 2
5 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11732412
Yes you can... Check InPreviewPane property of uidoc

~Hemanth
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 11733597
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!
0
 

Author Comment

by:kspuea
ID: 11759378
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
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 50 total points
ID: 11762846
Instead of showing a frame.. enable preview and deal it that way
0
 

Author Comment

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

~kspuea
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now