Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Standard Header/Footer uisng oscript

Status
Not open for further replies.

dhavalbakhda

Programmer
Apr 4, 2012
24
IN
Hi,

How can we add standard header footer in my custom module?





Regards,
Dhaval
 
What version? You should try to trace the mechanism by observing the ViewSource.In old livelink OT programmers would basically say which file provided which
In new CS10 thy suppress HTML comments for performance but it is not that difficult .
Do you know how to trace a livelink call from the browser to in builder all the way so that you can understand the chain.look in the Dispatch method all web calls will break there to a registered server side object and its execute,it is not easy but it will make you a little bit more educated than hacking things.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
we are using CS10. Somehow i have manage to get the footer by calling weblingo file. I also got the CS10 logo in header but the global menu is missing .How to get the global menu?
I am debugging weblingo file by ;Builder.debug(), but this will only help when we are aware about the concern file. Is there any other way to trace the livelink call from the browser??
 
there may be many way sto do what you want but see if this does it for you
you may want o see files such as llfootercomponent.html etc.. as well
also try to find the Dispatch objects and put a break that is how you trace a call

Code:
<HTML>
	

	;Assoc		displayParams
	;String		url = .URL()
	;String		img = .Img()
	;Assoc		styles = $WebLL.WebUtils.DisplayStylesGet( .fPrgCtx )
	;String		htmlPrefix = .HTMLPrefix()
	;Boolean	noApplet = $Webll.WebUtils.NoJavaInHTML( .fPrgCtx )

	;String title = "YOUR XLATE/PROPERTIES HERE OR A STRING HERE"

	

<HEAD>
		//Style Support
		`%L.Styles()`
		<TITLE>`title`</TITLE>
</HEAD>

<BODY BACKGROUND="`.Img()`pattern.gif" BGCOLOR="#FFFFFF" ONLOAD="onLoadFunction()">

;;call <.ModHTMLPrefix( 'WEBADMIN' ) + 'masthead.html'>( title )

	
	;;call <htmlPrefix + "box.html">( "BEGIN")
	;;call <htmlPrefix + "box.html">( "BEGIN_SECTION")

	<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="50%">
	Hello World
	</TABLE>

	;;call <htmlPrefix + "box.html">( "END")
	
	



</BODY>
</HTML>

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
thanks appnair this is working, but I don't want any title. If I pass empty string than also some small image is displaying.
I have tried by calling another weblingo file i.e. llmastheadcomponent.html and successfully got the OT logo and global menu as a header but global menu is not working if we click on any error is coming as below:

Webpage error details


Message: Object doesn't support this property or method
Line: 2022
Char: 3
Code: 0
URI:

Message: '$.ui.navigate' is null or not an object
Line: 170
Char: 2
Code: 0
URI:

Message: '$.ui.navigate' is null or not an object
Line: 170
Char: 2
Code: 0
URI:

Any inputs??
 
looks like you have not got all the code working, suggest you review an existing page and pick up what you need from there, most of this is also covered in the training courses too.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top