How to fix the value for Project Base to Database or File System : WORKAROUND
"Jagdeep S. Anand (Kuro Soft Thailand)" <[email protected]>
| Newsgroups | gmane.comp.cms.opengroupware.discuss.general |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
Well I posted the question and I had to find a solution.. So here it is....
It kinda works....
The .wod file we see in OpenGroupware are acutally web object definition
files. And contain the definition and behaviour of dynamic elements
contained within an HTML page. These Dynamic elements serve as the basic
building blocks of scripted or compiled behavior of an HTML page.
As with a WEB OBJECTS application, Opengroupware, most pages sent to the
user's browser are composed of HTML from a static template combined with
HTML that's dynamically generated by dynamic elements embedded in that
template.
So in this case, I had the task to restrict the project base to "Database"
for all projects.
Steps Involved
--------------------
1. The first was to find out which html file contains the template for new
project creation page. Right click the html page and view source. All OGo
pages are well documented and show the filename and the directory location.
Directory
/opt/opengroupware.org/Library/OpenGroupware.org/LSWProject.lso/LSWProjectEd
itor.wo
HTML File : LSWProjectEditor.html
.wodFile : LSWProjectEditor.wod
2. vi the .html file and check which dynamic element defines the project
base or any other element you r looking for.
3. Each .html file has a corresponding .wod file which defines the dynamic
elements. Edit the .wod find the dynamic element and use your brain...
In this case I made the following changes
ORIGINAL CONTENT
//BasePopup : WOPopUpButton {
// list = projectBases;
// item = item;
// string = projectBaseLabel;
// selection = projectBase;
// singleSelection = YES;
//}
CHANGED CONTENT
BasePopup : WOString {
value = "1"; // Value changed to 1 -> because viewing the html file we
find
// Database option corresponds to value 1
// and the option Filesystem corresponds to value 0.
}
4. Restart opengroupware server ...
Done.................
Jagdeep Anand
CTO
Kuro Soft Thailand Co. Ltd.
Email : [email protected] <mailto:[email protected]>
"A little inaccuracy sometimes saves tons of explanation."
--
OpenGroupware.org Discussion [email protected]
http://mail.opengroupware.org/mailman/listinfo/discuss