Embedded Views in Web

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.
ninteen83Asked:
Who is Participating?
 
madheeswarConnect With a Mentor Commented:
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
 
madheeswarCommented:
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
 
madheeswarCommented:
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
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
ninteen83Author Commented:
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
 
madheeswarCommented:
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
 
CRAKCommented:
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
 
Bozzie4Commented:
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
 
ninteen83Author Commented:
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
 
madheeswarCommented:
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
 
ninteen83Author Commented:
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
 
madheeswarCommented:
use:
For first doc:
@Subet(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );1)

For last doc:
@Subet(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );-1)
0
 
madheeswarCommented:
Sorry it is:

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

For last doc:
@Subset(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );-1)
0
 
Bozzie4Commented:
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
 
Bozzie4Commented:
and add a closing "</table>" tag ....
0
 
ninteen83Author Commented:
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
 
madheeswarCommented:
change the no's
@Subset(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );change the no's here)
0
 
ninteen83Author Commented:
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
 
ninteen83Author Commented:
Madheeswar .. I tried @Subset(@DbColumn( "" : "" ; server : database ; "Late3Jobs" ; 1 );2)

it displays both the first 2 documents not only the 2nd doc.
0
 
ninteen83Author Commented:
It helped.

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

this will solve my whole problems ..
0
 
madheeswarCommented:
"1eb6141cfa239a5943256eed0023fb3b" this is view id.
No need to confuse.
0
 
Bozzie4Connect With a Mentor Commented:
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
 
ninteen83Author Commented:
Madheswar .. you've done a good job

thanks brother ..

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

CRAK, Bozzie4 .. thank you :)
0
 
Bozzie4Commented:
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
 
ninteen83Author Commented:
Good work Bozzie .. I've seen your reply now ..

how can I split the points .. ??
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.