Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 23-09-2008
Avatar de cirilungol
cirilungol cirilungol is offline
Miembro
 
Registrado: feb 2006
Posts: 42
Poder: 0
cirilungol Va por buen camino
PD: Si genera una unidad... es una unidad fija con ese xml... pero y si quiero cargar otro en ejecucion?... osease como cargar otro dataset con otros datos....

Responder Con Cita
  #2  
Antiguo 23-09-2008
Avatar de jhonny
jhonny jhonny is offline
Jhonny Suárez
 
Registrado: may 2003
Ubicación: Colombia
Posts: 7.058
Poder: 30
jhonny Va camino a la famajhonny Va camino a la fama
Cita:
Empezado por cirilungol Ver Mensaje
PD: Si genera una unidad... es una unidad fija con ese xml... pero y si quiero cargar otro en ejecucion?... osease como cargar otro dataset con otros datos....

Si tiene la misma estructura debe funcionar sin problema.
__________________
Lecciones de mi Madre. Tema: modificación del comportamiento, "Pará de actuar como tu padre!"

http://www.purodelphi.com/
http://www.nosolodelphi.com/
Responder Con Cita
  #3  
Antiguo 24-09-2008
Avatar de cirilungol
cirilungol cirilungol is offline
Miembro
 
Registrado: feb 2006
Posts: 42
Poder: 0
cirilungol Va por buen camino
Testas ganando el cielo jhonny , de todas formas el data binding no me acaba de convercer, ya que por mi desgracia, son varios los xml que me puedo encontrar.

Que podria hacer, para cargar dichos xml

http://camilovi-heroes.com/xml_datos...32_Request.xml
http://camilovi-heroes.com/xml_datos/Response.xml

Hago 2 Databindings, y en codigo les añado los diferentes xml, segun sean response o request?
Pueden ser 100 de tipo Request y otros tantos de tipo Response, pero tambien pueden haber de tipo msn.

.... esa seria la orientacion correcta y final??

Gracias
Responder Con Cita
  #4  
Antiguo 24-09-2008
Avatar de cirilungol
cirilungol cirilungol is offline
Miembro
 
Registrado: feb 2006
Posts: 42
Poder: 0
cirilungol Va por buen camino
Nada siento seguir dando la matraca, pero por lo menos veais lo que intento hacer, o lo que estoy haciendo con el DataBinding

parto de este xml

http://camilovi-heroes.com/gallery.xml


esto es lo que me genera el data Binding, lo solapo a un proyecto uniendo el pas creado, y busco la manera de asignarle otro gallery.xml que no es el original pero tiene la misma estructura.

encuentro esto en el pas del Data Binding

Código PHP:
Forward Decls }

  
IXMLTiltviewergalleryType = interface;
  
IXMLPhotosType = interface;
  
IXMLPhotoType = interface;

IXMLTiltviewergalleryType }

  
IXMLTiltviewergalleryType = interface(IXMLNode)
    [
'{419B47F1-8ED4-4F36-B5B7-27757DA445B7}']
    { 
Property Accessors }
    function 
Get_PhotosIXMLPhotosType;
    { 
Methods Properties }
    
property PhotosIXMLPhotosType read Get_Photos;
  
end;

IXMLPhotosType }

  
IXMLPhotosType = interface(IXMLNodeCollection)
    [
'{4915F1B3-F52E-410E-B03C-DC05C24BBA44}']
    { 
Property Accessors }
    function 
Get_Photo(IndexInteger): IXMLPhotoType;
    { 
Methods Properties }
    function 
AddIXMLPhotoType;
    function 
Insert(const IndexInteger): IXMLPhotoType;
    
property Photo[IndexInteger]: IXMLPhotoType read Get_Photo; default;
  
end;

IXMLPhotoType }

  
IXMLPhotoType = interface(IXMLNode)
    [
'{3B0E616B-38C0-4704-A2A0-4EB1EE1CF783}']
    { 
Property Accessors }
    function 
Get_ImageurlWideString;
    function 
Get_LinkurlWideString;
    function 
Get_ShowFlipButtonWideString;
    function 
Get_TitleWideString;
    function 
Get_DescriptionWideString;
    
procedure Set_Imageurl(ValueWideString);
    
procedure Set_Linkurl(ValueWideString);
    
procedure Set_ShowFlipButton(ValueWideString);
    
procedure Set_Title(ValueWideString);
    
procedure Set_Description(ValueWideString);
    { 
Methods Properties }
    
property ImageurlWideString read Get_Imageurl write Set_Imageurl;
    
property LinkurlWideString read Get_Linkurl write Set_Linkurl;
    
property ShowFlipButtonWideString read Get_ShowFlipButton write Set_ShowFlipButton;
    
property TitleWideString read Get_Title write Set_Title;
    
property DescriptionWideString read Get_Description write Set_Description;
  
end;

Forward Decls }

  
TXMLTiltviewergalleryType = class;
  
TXMLPhotosType = class;
  
TXMLPhotoType = class;

TXMLTiltviewergalleryType }

  
TXMLTiltviewergalleryType = class(TXMLNodeIXMLTiltviewergalleryType)
  protected
    { 
IXMLTiltviewergalleryType }
    function 
Get_PhotosIXMLPhotosType;
  public
    
procedure AfterConstructionoverride;
  
end;

TXMLPhotosType }

  
TXMLPhotosType = class(TXMLNodeCollectionIXMLPhotosType)
  protected
    { 
IXMLPhotosType }
    function 
Get_Photo(IndexInteger): IXMLPhotoType;
    function 
AddIXMLPhotoType;
    function 
Insert(const IndexInteger): IXMLPhotoType;
  public
    
procedure AfterConstructionoverride;
  
end;

TXMLPhotoType }

  
TXMLPhotoType = class(TXMLNodeIXMLPhotoType)
  protected
    { 
IXMLPhotoType }
    function 
Get_ImageurlWideString;
    function 
Get_LinkurlWideString;
    function 
Get_ShowFlipButtonWideString;
    function 
Get_TitleWideString;
    function 
Get_DescriptionWideString;
    
procedure Set_Imageurl(ValueWideString);
    
procedure Set_Linkurl(ValueWideString);
    
procedure Set_ShowFlipButton(ValueWideString);
    
procedure Set_Title(ValueWideString);
    
procedure Set_Description(ValueWideString);
  
end;

{ Global 
Functions }

function 
Gettiltviewergallery(DocIXMLDocument): IXMLTiltviewergalleryType;
function 
Loadtiltviewergallery(const FileNameWideString): IXMLTiltviewergalleryType;
function 
NewtiltviewergalleryIXMLTiltviewergalleryType

Pero desde la unidad Main no encuentro la funcion para poder decirle de que XMl ha de captar los datos.
Y tambien para variar recorrer ese gallery.xml y sacar todos los datos correctamente.

de veras que estoy mas perdido que un piojo en una calva.

Help please
Responder Con Cita
  #5  
Antiguo 24-09-2008
Avatar de cirilungol
cirilungol cirilungol is offline
Miembro
 
Registrado: feb 2006
Posts: 42
Poder: 0
cirilungol Va por buen camino
Me voy a contestar a mi mismo, asi tambien puedo empujar un poco con el tema

Código PHP:
procedure TForm1.Button1Click(SenderTObject);
var
  
ListaFotosIXMLTiltviewergalleryType;
  
INodoInteger;
begin

  ListaFotos
:= Loadtiltviewergallery(Edit1.Text);

  
with ListaFotos do begin
    
for INodo := 0 to Photos.Count -do
      
mPhoto.Lines.Add(Photos.Photo[INodo].Title);
    
//ShowMessage(intToStr(Photos.Count));

  
end;


end
Edit1.text es la ubicación donde se halla el xml cuya estrcuctura creada coincide con la del Data Binding.

Sigo haciendo pruebas de momento esto me va

Última edición por cirilungol fecha: 24-09-2008 a las 11:38:44.
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Comunicarse con WebServices miguel.benitez Internet 0 15-05-2008 02:10:22
Webservices y Apache para windows juanelo Internet 4 09-05-2008 17:56:36
Consulta Delphi 6, Delphi 2005 y Delphi 2006 Leviatan Varios 6 18-08-2007 16:02:08
Como compite o se integra Delphi vs Webservices n3mohack Varios 6 12-08-2006 00:22:29
XML-WebServices con Delphi Gonzalo Giraldo Internet 0 21-07-2004 02:47:32


La franja horaria es GMT +2. Ahora son las 11:31:50.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi