Solved

Embedded Views in Web

Posted on 2004-08-11
25
464 Views
Last Modified: 2013-12-18
I have a page that has two embedded views. Both are set to display 'Using HTML'.

When I open the page in the browser, it displays the first view but the the 2nd one doesn't appear.

If I set both of them or one of them to display 'Using Java Applet' . then both of them appears on the browser.

I don't want to use applets in the page and want to show the content as html.
0
Comment
Question by:ninteen83
  • 10
  • 9
  • 5
  • +1
25 Comments
 
LVL 19

Expert Comment

by:madheeswar
ID: 11771557
I think you are using ND6.
Since in R5, 2 embedded views are not possible.

And as per displaying in HTML, what is the main purpose of displaying 2 embedded views?
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 11771596
And I think it is the limitation in ND6 to display one HTML embedded view and another as Java applet.

try to enable display as HTML in view properties and code the columns in view with td and tr tags and write table tag and in between create $$Viewbody field .

some thing like this:

<table>
$$ViewBody field
</table>

check this thread for more info on how to display as HTML;
http://www.experts-exchange.com/Applications/Email/Lotus_Notes_Domino/Q_21059633.html

Hope it helps.
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 11771649
0
 

Author Comment

by:ninteen83
ID: 11772029
thanks madheeswar for the help.

I'm building a web page where i'm going to display two different views. This can be done using iframe .. but i'm not confortable with iframe.

you suggested to use td & tr tags. Sounds good to me as i love working with html. Can you please describe it step by step ?
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 11772047
I am not sure whether this will work or not. But u can try. Just follow the link:
http://www.experts-exchange.com/Applications/Email/Lotus_Notes_Domino/Q_21059633.html
0
 
LVL 13

Expert Comment

by:CRAK
ID: 11776824
I may need some help from other experts as I can't manage to get this to work for the web (yet), but I have once posted a way to put TWO embedded views on a form. Can't find in though.....

Create a subform and embed the 1st of the views to be shown.
Put the subform on a form, as COMPUTED subform.
Embed the 2nd view under the computed subform.

This works for the notes client and I'm pretty sure I ran on the web before to! Currently previewing from the designer client (local). The trick depended on two details: one of them needed to be added by computation and the order in which the two were shown was critical.

It's yours if you can use it!
0
 
LVL 15

Expert Comment

by:Bozzie4
ID: 11777429
Well, 2 embedded views are possible in the Notes client in R6, so no need for workarounds.  I don't think this works for the web.

You can use iframe fairly easy to embed as many views as you like, though.
This is an example (works for IE5.5 / Mozilla 1.x):

<div id="TBOS-5YWHC6" style="position: absolute;
left: 120px; top: 132px;
width: 610px; heigth: 150px;border: 1px;border-style: solid;z-index: 2;">
<iframe id="TBOS-5YWHC6_frame" frameborder="1" width="610" height="150" scrolling="auto" src="/db.nsf/view?openview" style="top: 132px; left: 120px">
Your browser doesn't support frames - you can't use the advanced features of this site</iframe>
</div>

The other solution (to build the page using @dblookups and your own table tags) will work too, of course ....

cheers,

Tom
0
 

Author Comment

by:ninteen83
ID: 11780540
Hi CRAK

I went through ur suggestion .. still have the same problem. If I set both of them or one of them to display 'Using Java Applet', they appears on the browser otherwise they the 2nd doesn't appear. But I don't want to display applet or iframe as I'm not comfortable with them

let me try @dblookup ..

your suggestion are always welcome

:)
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 11780573
the solutoin which was proposed by Tom, should work.
And there is no issue in trying right?

U will be in big trouble if the documents are in thousands and u wil hit at 64K limit.

its better u follow iframe solution.
0
 

Author Comment

by:ninteen83
ID: 11780898
By using iframe I have to fix the height of the iframe and fixing the height will create problem. The height of the iframe doesn't increase/decrease by itself.

It seems that @dbcolumn can help me. I'm using the following to get the first document. But there are alomst 6 docs in the view.

@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 )

How to get the first documnt?? and how to get the second? how to get the link of the 1st & 2nd documents ??
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 11780949
use:
For first doc:
@Subet(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );1)

For last doc:
@Subet(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );-1)
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 11780954
Sorry it is:

For first doc:
@Subset(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );1)

For last doc:
@Subset(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );-1)
0
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.

 
LVL 15

Expert Comment

by:Bozzie4
ID: 11780963
Use a loop (you are using R6, right ?)

result := @iferror(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );"");
out := "<table>";
@for(x:=1;x:=x+1;x<=@elements(result);

secondcol := @iferror(@dblookup( "":"" ; server:database; "Late3Jobs" ; result[x] ; 2 );"");
thirdcol := @iferror(@dblookup( "":"" ; server:database; "Late3Jobs" ; result[x] ; 3 );"");

out := out:("<tr><td>"+@implode(secondcol;",")+"</td><td>"+@implode(thirdcol;",")+"</td></tr>");

);
@implode(out;@newline)

It is of course better to NOT use a lot of dblookups (performance), but get the complete result in 1 go (create a view , concatenate what you want in 1 column (value1+"#"+value2), and split that out ).  

cheers,

Tom

0
 
LVL 15

Expert Comment

by:Bozzie4
ID: 11780996
and add a closing "</table>" tag ....
0
 

Author Comment

by:ninteen83
ID: 11781126
Bozzie .. I tried loop but it gives "formula has exceeded the maximum allowable memory usage" error

I want to display only the first two documents (and only on column) ..

Madheeswar .. @Subset(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );1) works for the first one and trying to get the second document ..

0
 
LVL 19

Expert Comment

by:madheeswar
ID: 11781136
change the no's
@Subset(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );change the no's here)
0
 

Author Comment

by:ninteen83
ID: 11781137
when a document is created and opened in web .. notes generates an id for the document .. as a document id is shown below:

http://www.abc.com/web.nsf/1eb6141cfa239a5943256eed0023fb3b/ada31c6cfb3b43dd43256eed002fb0cb?OpenDocument

how to get this id in notes client ?? I tried @Text(@DocumentUniqueID) but it does not help.
0
 

Author Comment

by:ninteen83
ID: 11781244
Madheeswar .. I tried @Subset(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );2)

it displays both the first 2 documents not only the 2nd doc.
0
 
LVL 19

Accepted Solution

by:
madheeswar earned 65 total points
ID: 11781452
then use:
@Subset(@Subset(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );2);-1)

and for document id,

@Text(@DocumentUniqueID)

and in your link:

ada31c6cfb3b43dd43256eed002fb0cb

is the document unique id.
0
 

Author Comment

by:ninteen83
ID: 11781612
It helped.

and what is "1eb6141cfa239a5943256eed0023fb3b" and how to get it?

this will solve my whole problems ..
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 11781675
"1eb6141cfa239a5943256eed0023fb3b" this is view id.
No need to confuse.
0
 
LVL 15

Assisted Solution

by:Bozzie4
Bozzie4 earned 65 total points
ID: 11781763
Actually, use this for 2 documents only :

result := @iferror(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );"");
firstdoc := @if(@elements(result)>=1;result[1];"");
seconddoc := @if(@elements(result)>=2;result[2];"");

"<table>"+@newline+
"<tr><td><a href=\"/"+@webdbname+"/Late3Jobs/"+firstdoc+"?open\">"+firstdoc+"</a></td></tr>"+@newline+
"<tr><td><a href=\"/"+@webdbname+"/Late3Jobs/"+seconddoc+"?open\">"+firstdoc+"</a></td></tr>"+@newline+
"</table>"

0
 

Author Comment

by:ninteen83
ID: 11781807
Madheswar .. you've done a good job

thanks brother ..

I'm increasing it to 125 .. have fun ;)

CRAK, Bozzie4 .. thank you :)
0
 
LVL 15

Expert Comment

by:Bozzie4
ID: 11781821
This one will work too (had the arguments for the for loop reversed) ...

result := @IfError(@DbColumn( "" : "" ; @DbName ; "Late3Jobs" ; 1 );"");
out := "<table>";
@For( x:=1; x<=2; x:=x+1;
secondcol := @IfError(@DbLookup( "":"" ; @DbName; "Late3Jobs" ; result[x] ; 2 );"");
thirdcol := @IfError(@DbLookup( "":"" ;  @DbName; "Late3Jobs" ; result[x] ; 3 );"");

out := out:("<tr><td>"+result[x]+"</td><td>"+@Implode(secondcol;",")+"</td><td>"+@Implode(thirdcol;",")+"</td></tr>")
);
@Implode(out;@NewLine)+"</table>"
0
 

Author Comment

by:ninteen83
ID: 11781851
Good work Bozzie .. I've seen your reply now ..

how can I split the points .. ??
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

Title # Comments Views Activity
Lotus Notes 8.0 Forward emails for 30 days. 8 94
VBA Lotus notes 2 195
Domino Lotus Notes Client 4 67
Outlook Contact Export as .msg trying to import in Lotus Notes 5 100
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 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

20 Experts available now in Live!

Get 1:1 Help Now