Solved

Embedded Views in Web

Posted on 2004-08-11
25
461 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

16 Experts available now in Live!

Get 1:1 Help Now