r317 - in branches/work_304: core doc res

jls17 at arinside.org jls17 at arinside.org
Thu Oct 4 11:03:10 CDT 2012


Author: jls17
Date: Thu Oct  4 11:03:09 2012
New Revision: 317
URL: http://arinside.org/changeset/317

Log:
- now call guide action is documented like in devstudio and supports "All Visible Rows" table loops (new ARS 8.0 feature)
- label fixed in field limit documentation of table fields (DocFieldDetails.cpp)

Modified:
   branches/work_304/core/AREnum.h
   branches/work_304/doc/DocAlActionStruct.cpp
   branches/work_304/doc/DocFieldDetails.cpp
   branches/work_304/res/style.css

Modified: branches/work_304/core/AREnum.h
==============================================================================
--- branches/work_304/core/AREnum.h	Thu Oct  4 11:02:41 2012	(r316)
+++ branches/work_304/core/AREnum.h	Thu Oct  4 11:03:09 2012	(r317)
@@ -2551,4 +2551,18 @@
 #endif
 		return "";
 	}
+
+	static const char* CallGuideMode(int mode)
+	{
+		switch (mode)
+		{
+		case 0: return "None";
+		case AR_CALL_GUIDE_FORM_HIDDEN: return "All Rows";
+		case AR_CALL_GUIDE_LOOP_SELECTED_ONLY: return "Selected Rows";
+#if AR_CURRENT_API_VERSION >= AR_API_VERSION_800
+		case AR_CALL_GUIDE_LOOP_ALL_ROWS_VISIBLE: return "All Visible Rows";
+#endif
+		}
+		return EnumDefault;
+	}
 };

Modified: branches/work_304/doc/DocAlActionStruct.cpp
==============================================================================
--- branches/work_304/doc/DocAlActionStruct.cpp	Thu Oct  4 11:02:41 2012	(r316)
+++ branches/work_304/doc/DocAlActionStruct.cpp	Thu Oct  4 11:03:09 2012	(r317)
@@ -1367,6 +1367,7 @@
 {
 	try
 	{
+		strm << "<p>";
 		if (action.serverName[0] == '$' /*&& action.sampleServer[0] != 0*/)
 		{
 			int fieldId = atoi(&action.serverName[1]);
@@ -1392,18 +1393,15 @@
 		{
 			strm << "Guide: " << arIn->LinkToContainer(action.guideName, rootLevel) << "<br/>" << endl;
 		}
+		strm << "</p>";
 
 		if(action.guideTableId > 0)
 		{
-			strm << "Table Loop: " << arIn->LinkToField(schemaName, action.guideTableId, rootLevel) << "<br/>" << endl;
-
-			if(action.guideMode == AR_CALL_GUIDE_LOOP_SELECTED_ONLY)
-				strm << "<input type=\"checkbox\" name=\"tblLoopInGuide\" value=\"loopTbl\" checked>Table Loop Selected Rows Only" << endl;
-			else
-				strm << "<input type=\"checkbox\" name=\"tblLoopInGuide\" value=\"loopTbl\">Table Loop Selected Rows Only" << endl;
-
+			strm << "<p class='last'>" << "Table Loop: " << CAREnum::CallGuideMode(action.guideMode) << "<br/>" << endl;
+			strm << "Table Field: " <<  arIn->LinkToField(schemaName, action.guideTableId, rootLevel);
 			CRefItem refItem(*this->obj, ifElse, nAction, REFM_CALLGUIDE_TABLELOOP);
 			arIn->AddFieldReference(schemaInsideId, action.guideTableId, refItem);
+			strm << "</p>";
 		}
 	}
 	catch(exception& e)

Modified: branches/work_304/doc/DocFieldDetails.cpp
==============================================================================
--- branches/work_304/doc/DocFieldDetails.cpp	Thu Oct  4 11:02:41 2012	(r316)
+++ branches/work_304/doc/DocFieldDetails.cpp	Thu Oct  4 11:03:09 2012	(r317)
@@ -545,7 +545,7 @@
 					if (tableSchema.compare(AR_CURRENT_SCHEMA_TAG) == 0)
 						tableSchema = schema.GetARName();
 
-					strm << "Schema: " << this->pInside->LinkToSchema(tableSchema, rootLevel);
+					strm << this->pInside->LinkToSchema(tableSchema, rootLevel);
 				}
 				strm << "<p/>" << endl;
 

Modified: branches/work_304/res/style.css
==============================================================================
--- branches/work_304/res/style.css	Thu Oct  4 11:02:41 2012	(r316)
+++ branches/work_304/res/style.css	Thu Oct  4 11:03:09 2012	(r317)
@@ -353,6 +353,12 @@
     margin-bottom: 6px;
 }
 
+p.last
+{
+    margin-top: 0px;
+    margin-bottom: 0px;
+}
+
 .form_navigation {
   margin-left: 9px;
 }


More information about the arinside-src mailing list