list_base Class Reference

#include <list_base.hpp>

Inherits read_base, and read_base.

Inherited by Affiliate_List, Category_List, Color_List, Customer_List, Designer_List, Font_List, global_content_List, group_sites_List, groups_List, groups_List, groups_List, Manufacturer_List, menu_item_List, Order_Status_List, Ordered_Item_Option_List, Ordered_List, page_item_List, pages_List, Payment_Service_List, Payment_Type_Parameter_List, Product_Categories_List, Product_Line_List, Product_List, Promotion_List, Proofing_List, Query_Result_List, Report_Conditioning_List, Report_List, Report_Parameters_List, Report_Templates_List, Report_Type_List, roles_List, roles_List, roles_List, Scheme_Field_List, Scheme_Table_List, services_List, services_List, services_List, services_List, services_List, services_List, Size_List, Size_Price_List, Table_Field_List, Unit_List, users_List, users_List, users_List, users_List, users_List, Work_List, Work_List, WorkItems, and XXXX_List.

Collaboration diagram for list_base:

Collaboration graph
[legend]

List of all members.

Public Member Functions

string courtesyFormFields (void)
string courtesyQueryString (string start="")
void addCourtesyArg (string name, string value="")
void setPage (cgiInput &args)
string limitClause (void)
void setSort (cgiInput &args)
void reset (cgiInput &args)
void setFilter (cgiInput &args)
 list_base (cgiScript &sc)
virtual ~list_base ()
bool loadListTemplates (string path)
list_basecopyListTemplates (const cgiTemplates &in)
bool getData (string sql)
string whereClause (ocString &filterTemplate)
void maxPageFixup (void)
bool getFilteredData (string rows, string table, ocString filterTemplate, string defaultSort="", string groupBy="", string countTable="")
list_baseemitFilter (string program, string label)
list_baseemitFilters (string program, ocString labels)
list_baseemitHeadings (string pipedelimited)
list_baseemitNavigation (string program)
list_baseemitEnd (void)
void setColFormat (string fmt, int pos)
list_baseemitData (void)
virtual void sendField (int iField, ocString &td)
virtual void sendHotField (int iField, ocString &td)
virtual void derived_commence_event (void)
virtual bool derived_predata_event (void)
virtual void derived_data_event (void)
virtual void derived_complete_event (void)
void setPage (cgiInput &args)
string limitClause (void)
void setSort (cgiInput &args)
void reset (cgiInput &args)
void reset (void)
void setFilter (cgiInput &args)
 list_base (cgiScript &sc, Session_Obj &session, string sessionName="")
virtual ~list_base ()
bool loadListTemplates (string path)
list_basecopyListTemplates (const cgiTemplates &in)
bool getData (string sql)
string whereClause (ocString &filterTemplate)
void maxPageFixup (void)
bool getFilteredData (string rows, string table, ocString filterTemplate, string defaultSort="", string groupBy="", string countTable="")
list_baseemitFilter (string program, string label)
string filtersValue (int idx)
list_baseemitFilters (string program, ocString labels)
list_baseemitHeadings (string pipedelimited)
list_baseemitNavigation (string program)
list_baseemitEnd (void)
void setColFormat (string fmt, int pos)
list_baseemitData (void)
virtual void sendField (int iField, ocString &td)
virtual void sendHotField (int iField, ocString &td)
virtual void derived_commence_event (void)
virtual bool derived_predata_event (void)
virtual void derived_data_event (void)
virtual void derived_complete_event (void)

Public Attributes

bool opened
ocString editLink
 an edit link in the form of "<a target="_self" href='$prog$?Id=$key$'>$col$"
int hotCol
 -1 means no hot columns, -2 means all hot columns other-wise, the hot column is the ordinal final pos, MUST set edit link
int skipCol
 allows you to skip 1 column (to skip more than 1, override sendField() or sendHotField()
string addedCriteria
 retain added Criteria for listing here (this search criteria is not stored in the Session)
string cookiePrefix
string filter
string sort
string direction
int listPg
int itemsPerPg
int recCount
int colCount
int pgCount
int dsetCount

Protected Attributes

cgiTemplates listTemplate
cgiScriptwebIO
cgiCookie cookie
courtesy_args crtsy_args
ocString td
cgiScriptwebIO
Session_Objsession
 the means to retention of state is in the Session
string sessionName
 set this to an application unique list name if you want to retain list state (pg, filter, and order.) for a local list


Detailed Description

Definition at line 17 of file list_base.hpp.


Constructor & Destructor Documentation

list_base::list_base ( cgiScript sc  )  [inline]

virtual list_base::~list_base (  )  [inline, virtual]

Definition at line 190 of file list_base.hpp.

list_base::list_base ( cgiScript sc,
Session_Obj session,
string  sessionName = "" 
) [inline]

virtual list_base::~list_base (  )  [inline, virtual]

Definition at line 155 of file superlist_base.hpp.

References session, and Session_Obj::Synch().


Member Function Documentation

string list_base::courtesyFormFields ( void   )  [inline]

Definition at line 38 of file list_base.hpp.

References crtsy_args.

Referenced by emitNavigation().

string list_base::courtesyQueryString ( string  start = ""  )  [inline]

Definition at line 58 of file list_base.hpp.

References crtsy_args.

Referenced by emitNavigation().

void list_base::addCourtesyArg ( string  name,
string  value = "" 
) [inline]

Definition at line 84 of file list_base.hpp.

References crtsy_args.

void list_base::setPage ( cgiInput args  )  [inline]

Definition at line 88 of file list_base.hpp.

References cookie, cgiInput::count(), cgiCookie::get(), and listPg.

Referenced by list_base().

string list_base::limitClause ( void   )  [inline]

void list_base::setSort ( cgiInput args  )  [inline]

Definition at line 120 of file list_base.hpp.

References cookie, cgiInput::count(), direction, cgiCookie::get(), cgiCookie::set(), and sort.

Referenced by list_base().

void list_base::reset ( cgiInput args  )  [inline]

Definition at line 143 of file list_base.hpp.

References cookie, cgiInput::count(), and cgiCookie::set().

void list_base::setFilter ( cgiInput args  )  [inline]

bool list_base::loadListTemplates ( string  path  )  [inline]

list_base& list_base::copyListTemplates ( const cgiTemplates in  )  [inline]

Definition at line 196 of file list_base.hpp.

References listTemplate.

Referenced by Work_List::sendField().

bool list_base::getData ( string  sql  )  [inline]

string list_base::whereClause ( ocString filterTemplate  )  [inline]

void list_base::maxPageFixup ( void   )  [inline]

Definition at line 234 of file list_base.hpp.

References itemsPerPg, listPg, pgCount, and recCount.

Referenced by getFilteredData().

bool list_base::getFilteredData ( string  rows,
string  table,
ocString  filterTemplate,
string  defaultSort = "",
string  groupBy = "",
string  countTable = "" 
) [inline]

list_base& list_base::emitFilter ( string  program,
string  label 
) [inline]

list_base& list_base::emitFilters ( string  program,
ocString  labels 
) [inline]

list_base& list_base::emitHeadings ( string  pipedelimited  )  [inline]

list_base& list_base::emitNavigation ( string  program  )  [inline]

list_base& list_base::emitEnd ( void   )  [inline]

Definition at line 410 of file list_base.hpp.

References ocString::append(), cgiTemplates::getParagraph(), listPg, listTemplate, ocString::replace(), and webIO.

Referenced by group_sites_List::list_display(), XXXX_List::list_display(), global_content_List::list_display(), page_item_List::list_display(), menu_item_List::list_display(), Unit_List::list_display(), Size_List::list_display(), Size_Price_List::list_display(), Proofing_List::list_display(), Promotion_List::list_display(), Product_List::list_display(), Product_Line_List::list_display(), Payment_Type_Parameter_List::list_display(), Payment_Service_List::list_display(), Ordered_Item_Option_List::list_display(), Order_Status_List::list_display(), Manufacturer_List::list_display(), Font_List::list_display(), Designer_List::list_display(), Customer_List::list_display(), Color_List::list_display(), Product_Categories_List::list_display(), Category_List::list_display(), Affiliate_List::list_display(), Ordered_List::list_display(), pages_List::list_display(), roles_List::list_display(), users_List::list_display(), groups_List::list_display(), services_List::list_display(), Work_List::list_display(), WorkItems::list_display(), Scheme_Table_List::list_display(), Report_Conditioning_List::list_display(), Report_Type_List::list_display(), Report_Templates_List::list_display(), Report_Parameters_List::list_display(), Query_Result_List::list_display(), Table_Field_List::list_display(), Scheme_Field_List::list_display(), and Report_List::list_display().

void list_base::setColFormat ( string  fmt,
int  pos 
) [inline]

list_base& list_base::emitData ( void   )  [inline]

Definition at line 427 of file list_base.hpp.

References derived_commence_event(), derived_complete_event(), derived_data_event(), derived_predata_event(), dsetCount, openRS::getFieldCount(), cgiTemplates::getParagraph(), openRS::getRecordCount(), hotCol, listTemplate, openRS::next(), opened, read_base::rs, sendField(), sendHotField(), skipCol, td, and webIO.

Referenced by group_sites_List::list_display(), XXXX_List::list_display(), global_content_List::list_display(), page_item_List::list_display(), menu_item_List::list_display(), Unit_List::list_display(), Size_List::list_display(), Size_Price_List::list_display(), Proofing_List::list_display(), Promotion_List::list_display(), Product_List::list_display(), Product_Line_List::list_display(), Payment_Type_Parameter_List::list_display(), Payment_Service_List::list_display(), Ordered_Item_Option_List::list_display(), Order_Status_List::list_display(), Manufacturer_List::list_display(), Font_List::list_display(), Designer_List::list_display(), Customer_List::list_display(), Color_List::list_display(), Product_Categories_List::list_display(), Category_List::list_display(), Affiliate_List::list_display(), Ordered_List::list_display(), pages_List::list_display(), roles_List::list_display(), users_List::list_display(), groups_List::list_display(), services_List::list_display(), Work_List::list_display(), WorkItems::list_display(), Scheme_Table_List::list_display(), Report_Conditioning_List::list_display(), Report_Type_List::list_display(), Report_Templates_List::list_display(), Report_Parameters_List::list_display(), Query_Result_List::list_display(), Table_Field_List::list_display(), Scheme_Field_List::list_display(), and Report_List::list_display().

virtual void list_base::sendField ( int  iField,
ocString td 
) [inline, virtual]

virtual void list_base::sendHotField ( int  iField,
ocString td 
) [inline, virtual]

virtual void list_base::derived_commence_event ( void   )  [inline, virtual]

Definition at line 477 of file list_base.hpp.

Referenced by emitData().

virtual bool list_base::derived_predata_event ( void   )  [inline, virtual]

Reimplemented in Work_List.

Definition at line 478 of file list_base.hpp.

Referenced by emitData().

virtual void list_base::derived_data_event ( void   )  [inline, virtual]

Reimplemented in Table_Field_List, XXXX_List, group_sites_List, groups_List, roles_List, services_List, and users_List.

Definition at line 479 of file list_base.hpp.

Referenced by emitData().

virtual void list_base::derived_complete_event ( void   )  [inline, virtual]

void list_base::setPage ( cgiInput args  )  [inline]

Definition at line 43 of file superlist_base.hpp.

References cgiInput::count(), Session_Obj::GetData(), listPg, session, and sessionName.

string list_base::limitClause ( void   )  [inline]

void list_base::setSort ( cgiInput args  )  [inline]

void list_base::reset ( cgiInput args  )  [inline]

Definition at line 100 of file superlist_base.hpp.

References cgiInput::count(), and reset().

void list_base::reset ( void   )  [inline]

Definition at line 105 of file superlist_base.hpp.

References session, sessionName, and Session_Obj::SetData().

Referenced by list_base(), and reset().

void list_base::setFilter ( cgiInput args  )  [inline]

bool list_base::loadListTemplates ( string  path  )  [inline]

Definition at line 161 of file superlist_base.hpp.

References listTemplate, and cgiTemplates::load().

list_base& list_base::copyListTemplates ( const cgiTemplates in  )  [inline]

Definition at line 166 of file superlist_base.hpp.

References listTemplate.

bool list_base::getData ( string  sql  )  [inline]

string list_base::whereClause ( ocString filterTemplate  )  [inline]

void list_base::maxPageFixup ( void   )  [inline]

bool list_base::getFilteredData ( string  rows,
string  table,
ocString  filterTemplate,
string  defaultSort = "",
string  groupBy = "",
string  countTable = "" 
) [inline]

list_base& list_base::emitFilter ( string  program,
string  label 
) [inline]

string list_base::filtersValue ( int  idx  )  [inline]

list_base& list_base::emitFilters ( string  program,
ocString  labels 
) [inline]

list_base& list_base::emitHeadings ( string  pipedelimited  )  [inline]

list_base& list_base::emitNavigation ( string  program  )  [inline]

list_base& list_base::emitEnd ( void   )  [inline]

void list_base::setColFormat ( string  fmt,
int  pos 
) [inline]

list_base& list_base::emitData ( void   )  [inline]

virtual void list_base::sendField ( int  iField,
ocString td 
) [inline, virtual]

virtual void list_base::sendHotField ( int  iField,
ocString td 
) [inline, virtual]

virtual void list_base::derived_commence_event ( void   )  [inline, virtual]

Definition at line 453 of file superlist_base.hpp.

virtual bool list_base::derived_predata_event ( void   )  [inline, virtual]

Reimplemented in Work_List.

Definition at line 454 of file superlist_base.hpp.

virtual void list_base::derived_data_event ( void   )  [inline, virtual]

virtual void list_base::derived_complete_event ( void   )  [inline, virtual]


Member Data Documentation

Definition at line 20 of file list_base.hpp.

Referenced by copyListTemplates(), global_content_List::derived_complete_event(), menu_item_List::derived_complete_event(), Ordered_List::derived_complete_event(), services_List::derived_complete_event(), emitData(), emitEnd(), emitFilter(), emitFilters(), emitHeadings(), emitNavigation(), group_sites_List::list_display(), XXXX_List::list_display(), global_content_List::list_display(), page_item_List::list_display(), menu_item_List::list_display(), Unit_List::list_display(), Size_List::list_display(), Size_Price_List::list_display(), Proofing_List::list_display(), Promotion_List::list_display(), Product_List::list_display(), Product_Line_List::list_display(), Payment_Type_Parameter_List::list_display(), Payment_Service_List::list_display(), Ordered_Item_Option_List::list_display(), Order_Status_List::list_display(), Manufacturer_List::list_display(), Font_List::list_display(), Designer_List::list_display(), Customer_List::list_display(), Color_List::list_display(), Product_Categories_List::list_display(), Affiliate_List::list_display(), Ordered_List::list_display(), pages_List::list_display(), roles_List::list_display(), users_List::list_display(), groups_List::list_display(), services_List::list_display(), Work_List::list_display(), WorkItems::list_display(), Scheme_Table_List::list_display(), Scheme_Field_List::list_display(), Report_Conditioning_List::list_display(), Report_Type_List::list_display(), Report_Templates_List::list_display(), Report_Parameters_List::list_display(), Report_List::list_display(), loadListTemplates(), WorkItems::part(), Ordered_List::sendField(), Work_List::sendField(), and Report_List::sendHotField().

Definition at line 22 of file list_base.hpp.

Referenced by reset(), setFilter(), setPage(), and setSort().

ocString list_base::td [protected]

Definition at line 24 of file list_base.hpp.

Referenced by emitData().

Definition at line 26 of file list_base.hpp.

Referenced by emitData(), getData(), and getFilteredData().

an edit link in the form of "<a target="_self" href='$prog$?Id=$key$'>$col$"

Definition at line 28 of file list_base.hpp.

Referenced by group_sites_List::list_display(), XXXX_List::list_display(), global_content_List::list_display(), page_item_List::list_display(), menu_item_List::list_display(), Unit_List::list_display(), Size_List::list_display(), Size_Price_List::list_display(), Proofing_List::list_display(), Promotion_List::list_display(), Product_List::list_display(), Product_Line_List::list_display(), Payment_Type_Parameter_List::list_display(), Payment_Service_List::list_display(), Ordered_Item_Option_List::list_display(), Order_Status_List::list_display(), Manufacturer_List::list_display(), Font_List::list_display(), Designer_List::list_display(), Customer_List::list_display(), Color_List::list_display(), Product_Categories_List::list_display(), Category_List::list_display(), Affiliate_List::list_display(), Ordered_List::list_display(), pages_List::list_display(), roles_List::list_display(), users_List::list_display(), groups_List::list_display(), services_List::list_display(), Work_List::list_display(), WorkItems::list_display(), Scheme_Table_List::list_display(), Scheme_Field_List::list_display(), Report_Conditioning_List::list_display(), Report_Type_List::list_display(), Report_Templates_List::list_display(), Report_Parameters_List::list_display(), Report_List::list_display(), global_content_List::sendHotField(), page_item_List::sendHotField(), menu_item_List::sendHotField(), sendHotField(), Promotion_List::sendHotField(), Payment_Type_Parameter_List::sendHotField(), Category_List::sendHotField(), services_List::sendHotField(), and Report_List::sendHotField().

-1 means no hot columns, -2 means all hot columns other-wise, the hot column is the ordinal final pos, MUST set edit link

Definition at line 30 of file list_base.hpp.

Referenced by emitData(), group_sites_List::list_display(), XXXX_List::list_display(), global_content_List::list_display(), page_item_List::list_display(), menu_item_List::list_display(), Unit_List::list_display(), Size_List::list_display(), Size_Price_List::list_display(), Proofing_List::list_display(), Promotion_List::list_display(), Product_List::list_display(), Product_Line_List::list_display(), Payment_Type_Parameter_List::list_display(), Payment_Service_List::list_display(), Ordered_Item_Option_List::list_display(), Order_Status_List::list_display(), Manufacturer_List::list_display(), Font_List::list_display(), Designer_List::list_display(), Customer_List::list_display(), Color_List::list_display(), Product_Categories_List::list_display(), Category_List::list_display(), Affiliate_List::list_display(), Ordered_List::list_display(), pages_List::list_display(), roles_List::list_display(), users_List::list_display(), groups_List::list_display(), services_List::list_display(), Work_List::list_display(), WorkItems::list_display(), Scheme_Table_List::list_display(), Report_Conditioning_List::list_display(), Report_Type_List::list_display(), Report_Templates_List::list_display(), Report_Parameters_List::list_display(), Query_Result_List::list_display(), Table_Field_List::list_display(), Scheme_Field_List::list_display(), and Report_List::list_display().

allows you to skip 1 column (to skip more than 1, override sendField() or sendHotField()

Definition at line 31 of file list_base.hpp.

Referenced by emitData(), WorkItems::emitHeadings(), page_item_List::list_display(), Work_List::list_display(), WorkItems::list_display(), and Report_List::list_display().

retain added Criteria for listing here (this search criteria is not stored in the Session)

Definition at line 32 of file list_base.hpp.

Referenced by addListCriteria(), ReportEmitter::addListCriteria(), users_List::list_display(), pages_List::list_display(), Report_Templates_List::list_display(), Report_List::list_display(), main(), and whereClause().

Definition at line 76 of file list_base.hpp.

Definition at line 77 of file list_base.hpp.

Referenced by emitFilters(), setFilter(), and whereClause().

Definition at line 77 of file list_base.hpp.

Referenced by getFilteredData(), and setSort().

Definition at line 77 of file list_base.hpp.

Referenced by getFilteredData(), and setSort().

Definition at line 78 of file list_base.hpp.

Referenced by emitEnd(), emitNavigation(), limitClause(), maxPageFixup(), and setPage().

Definition at line 78 of file list_base.hpp.

Referenced by emitNavigation(), getData(), getFilteredData(), and maxPageFixup().

Definition at line 78 of file list_base.hpp.

Referenced by emitHeadings(), and emitNavigation().

Definition at line 78 of file list_base.hpp.

Referenced by emitNavigation(), and maxPageFixup().

Definition at line 78 of file list_base.hpp.

Referenced by emitData(), emitNavigation(), and getFilteredData().

Definition at line 19 of file superlist_base.hpp.

the means to retention of state is in the Session

Definition at line 22 of file superlist_base.hpp.

Referenced by maxPageFixup(), reset(), WorkItems::roleFilter(), Work_List::sendField(), setFilter(), setPage(), setSort(), and ~list_base().

string list_base::sessionName [protected]

set this to an application unique list name if you want to retain list state (pg, filter, and order.) for a local list

Definition at line 24 of file superlist_base.hpp.

Referenced by maxPageFixup(), reset(), setFilter(), setPage(), and setSort().


The documentation for this class was generated from the following files:

Generated on Sat Aug 15 12:48:23 2009 for w3systemsDevelopment by  doxygen 1.5.5