Buen dia amigo, lea agradexco si me pueden ayudar.
Estoy modificando el pattern workwith en evo 1 u4, lo que quiero es que se me genere un gxui.panel y dentro de el colocar los filtros.
Esta parte me funciona bien: (aparece el control y compila bien)
<%= WebFormControl.BeginControl("gxui.Panel","gxui_Panel1", props) %>
<%= WebFormControl.EndControl("gxui.Panel") %>
<%= WebFormControl.EndControl("gxui.Panel") %>
pero cuando intento poner algo dentro del componente, este no se visualiza ejemplo:
<%= WebFormControl.BeginControl("gxui.Panel","gxui_Panel1", props) %>
<%= WebForm.TextBlock("Text1", "", "prueba") %>
<%= WebFormControl.EndControl("gxui.Panel") %>
<%= WebForm.TextBlock("Text1", "", "prueba") %>
<%= WebFormControl.EndControl("gxui.Panel") %>
y ademas genera error al especificar:
error: No se puede convertir un objeto de tipo 'Artech.Specifier.Helper.TextBlockSpecWrapper' al tipo 'Artech.Specifier.Helper.ContainerWrapper'.
error: spc0001: Control/object 'Grid' not found/defined. Is it on the form? (Source, Line: 13#3fce6c5b-f270-4863-b01a-6ae646dd37bc, Details#adeae3c1-4f19-473f-ae4f-daab70cc8f71)
error: spc0001: Control/object 'Form' not found/defined. Is it on the form? (Source, Line: 21#da4537d5-a5a5-4def-917c-d89adc6a7e79, Details#b968c7ab-0936-4bfc-8e48-fbf4a827a373)
error: spc0000: GridGriddoes not exist and is used in events
error: spc0001: Control/object 'Grid' not found/defined. Is it on the form? (Source, Line: 13#3fce6c5b-f270-4863-b01a-6ae646dd37bc, Details#adeae3c1-4f19-473f-ae4f-daab70cc8f71)
error: spc0001: Control/object 'Form' not found/defined. Is it on the form? (Source, Line: 21#da4537d5-a5a5-4def-917c-d89adc6a7e79, Details#b968c7ab-0936-4bfc-8e48-fbf4a827a373)
error: spc0000: GridGriddoes not exist and is used in events
de que forma puedo hacerlo?
mil gracias.
2008/11/7 pHd <rmsphd@gmail.com>
Boa Tarde,Estou tentando definir uma propriedade de Variável a um UserControl de um WebPanel que estou gerando via Pattern com o seguinte comando:
Dictionary<string, Object> tabprops = new Dictionary<string, Object>();
tabprops.Add("MenuData","&MenuData");
tabprops.Add("SelectedItem","&MenuDataItem");
stabs = WebFormHelper.BeginControl("DolphinStyleMenu","Tabs",tabprops)+WebFormHelper.EndControl("DolphinStyleMenu");
Porem retorna erro ao aplicar o pattern como se o formato é inválido, e não define a propriedades, retirando as duas linhas que definem as propriedades funciona, mas sem definir as propriedades,Como definir as propriedade de Variável SDT no User Control ?A classe WebFormHelper que me sugeriram e estou utilizando é esta:
public static class WebFormHelper
{
public static string BeginControl(string type, string name, Dictionary<string, object> properties)
{Debug.Assert(type != null);if (String.IsNullOrEmpty(name))throw new PatternApplicationException(String.Format("Control must have a name ({0})", type));StringBuilder attributes = new StringBuilder();if (properties != null)foreach (KeyValuePair<string, object> prop in properties)attributes.Append(String.Format(" {0}=\"{1}\"", prop.Key, prop.Value.ToString()));return String.Format("<gx{0} ControlName=\"{1}\"{2}>", type, name, attributes.ToString());}public static string EndControl(string type)
{Debug.Assert(type != null);return String.Format("</gx{0}>", type);}}
--
Rafael
--
Cordial saludo,
Jorge A. Martinez
MundoSystem Colombia
--
Has recibido este mensaje porque estás suscrito al grupo "GeneXus" de Grupos de Google.
Para publicar una entrada en este grupo, envía un correo electrónico a genexus@googlegroups.com.
Para anular tu suscripción a este grupo, envía un correo electrónico a genexus+unsubscribe@googlegroups.com
Para tener acceso a más opciones, visita el grupo en http://groups.google.com/group/genexus?hl=es.
0 Response to "[gxpatterns-l] Problema con contenido de gxui.panel"
Publicar un comentario