|
From: <sv...@de...> - 2005-06-03 21:52:12
|
Author: pcamacho
Date: 2005-06-03 17:52:06 -0400 (Fri, 03 Jun 2005)
New Revision: 1238
Modified:
humano2/trunk/web/portal/site/createInstance.aspx.cs
Log:
CHANGE: when creating an instance, the user is now redirected to the page=
showing all attributes value of this=20
instance (instead of the view by default).
Modified: humano2/trunk/web/portal/site/createInstance.aspx.cs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- humano2/trunk/web/portal/site/createInstance.aspx.cs 2005-06-03 21:36=
:15 UTC (rev 1237)
+++ humano2/trunk/web/portal/site/createInstance.aspx.cs 2005-06-03 21:52=
:06 UTC (rev 1238)
@@ -41,7 +41,7 @@
// El idEntity es la classId dado que estamos creando una instancia d=
el ID de id_entity
// no la clase de la clase (it's confusing, but makes sence in the en=
d.)
int classId =3D Convert.ToInt32(Request.Params["id_entity"]);
- int idview =3D Convert.ToInt32(Request.Params["idview"]);
+ //int idview =3D Convert.ToInt32(Request.Params["idview"]);
=20
int domainId =3D Convert.ToInt32(Request.Params["domainIdClass"]);
=20
@@ -68,19 +68,7 @@
}
}
=09
- //Response.End();
-
- int defaultViewId =3D dbAdapter.getDefaultViewId(classId);
- =09
- if (idview=3D=3DclassId)
- {
- //HttpContext.Current.Response.Redirect(Html.genAbsoluteUrl("/portal=
/site/" + ViewPages.showViewPage + defaultViewId));
- HttpContext.Current.Response.Redirect(Html.genAbsoluteUrl("/portal/s=
ite/Data_structured.aspx?id_entity=3D" + defaultViewId + "&classId=3D"+cl=
assId));
- }
- else
- {
- HttpContext.Current.Response.Redirect(Html.genAbsoluteUrl("/portal/s=
ite/Data_structured.aspx?id_entity=3D" + idview + "&classId=3D"+classId))=
;
- }
+ HttpContext.Current.Response.Redirect(Html.genAbsoluteUrl("/=
portal/site/Data_structured.aspx?id_entity=3D" + idEntity + "&classId=3D"=
+classId + "&action=3Dread" +"&display=3DreadXslt.aspx"));
}
=20
#region Web Form Designer generated code
|