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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with overriding methods

Status
Not open for further replies.

cfm3

Programmer
Aug 3, 2009
3
US

i am fairly new to ll builder, & need some pointers in overloading some methods.

In Module: Project -> MyProjects -> Projects:ManageSelect

We need to retrieve more columns from the dtree table versus the original code, which is:
getInfo.ColumnsList = { 'DataID', 'Name', 'CreateDate', 'ModifyDate', 'SubType', 'Status' }

My question is how do i override this file (ManageSelect) to replace it with additional column names?

would i need to create a whole new module or can i use an existing custom module to do this ?

any advice or help is very welcomed
 
The easiest way is to create a new ospace, unlock it and orphan the stuff you want to change. Then, after changing the orphaned ospace, you can dump the changes into a patch.

Alternatively, you can create a completely new module (provided the changes are worth the overhead) or modify an existing one / merge the changes into one module.

However, all that requires you to have some basic oscript knowledge, otherwise it may become a frustrating experience for you. This is deep water.

Jack



 
thanks

yea so i orphaned the 'projects' object from (Project:MyProject) into an existing custom module and made the changes in the ManageSelect script.

but how do i get LL to call the new manageSelcect file ?

haha frustrating indeed.
 
I don't know what you're doing, however, if you orphan something properly, then the orphan is overriding the original...there is no need to explicitly load something if you do it correctly.

But...as mentioned, this appears to be a bit of a waste of time for you and others. I also wouldn't discuss Java code in a Java forum if I had never dealt with it.

Try to get some basic knowledge and start with basic examples helping you to understand the methods. Do a SDK/Builder training if this is of business interest for you. Knowledge doesn't fall from the sky above, that goes for everyone.

Jack
 
Please try to work with the addressbook module which is in the builder guide as a tutorial.That will definitely be a great asset when you are self studying.Attending great teachers such as Howard Pell at OT will help(it has for me).I lerent oscript by doing the addressbook module time and again.

Several core code changing helper modules exist in the livelink oscript world. Something I have used or seen being used are

CustomizationsRT(I belive it is free)
HTMLMap
OTOverride

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
 
also from the looks of things you may have not done this as is routine.
After you orphan
Unlock module
turn.fenabled =true to false and back to true(just so that when you look at it later it will show a different color other than grey)
From globals run BuildOspace
Exit builder and re-start.
Now the call should come to your overridden script.

If you are creating objects like requesthandlers,webnodeactions etc the setrequesthandlers script also should be run


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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top