Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Embedded Views in Web

Posted on 2004-08-11
25
Medium Priority
?
473 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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
 
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 260 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 260 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

618 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